/* Currency Converter Styles */
.cce-currency-switcher {
    position: fixed;
    bottom: 20px;
    right: 15px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 160px;
    min-width: 120px;
}

.cce-currency-switcher:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.98);
}

.cce-switcher-container {
    padding: 8px 12px;
    position: relative;
}

.cce-currency-select {
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 20px;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 14px;
    padding-right: 28px;
    text-align: center;
}

.cce-currency-select:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.cce-currency-select:focus {
    background-color: rgba(52, 152, 219, 0.15);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.cce-currency-select option {
    background: #ffffff;
    color: #2c3e50;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 767px) {
    .cce-currency-switcher {
        bottom: 15px;
        right: 12px;
        max-width: 140px;
        min-width: 100px;
    }
    
    .cce-switcher-container {
        padding: 6px 10px;
    }
    
    .cce-currency-select {
        font-size: 12px;
        padding: 5px 6px;
        padding-right: 24px;
        background-size: 12px;
    }
}

@media (max-width: 480px) {
    .cce-currency-switcher {
        bottom: 12px;
        right: 10px;
        max-width: 120px;
        min-width: 90px;
    }
    
    .cce-switcher-container {
        padding: 5px 8px;
    }
    
    .cce-currency-select {
        font-size: 11px;
        padding: 4px 5px;
        padding-right: 20px;
        background-size: 10px;
    }
}

@media (max-width: 360px) {
    .cce-currency-switcher {
        bottom: 10px;
        right: 8px;
        max-width: 100px;
        min-width: 80px;
    }
    
    .cce-switcher-container {
        padding: 4px 6px;
    }
    
    .cce-currency-select {
        font-size: 10px;
        padding: 3px 4px;
        padding-right: 18px;
        background-size: 9px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cce-currency-switcher {
        background: rgba(44, 62, 80, 0.95);
        border-color: rgba(52, 73, 94, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .cce-currency-switcher:hover {
        background: rgba(44, 62, 80, 0.98);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
    
    .cce-currency-select {
        color: #ecf0f1;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecf0f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    }
    
    .cce-currency-select:hover {
        background-color: rgba(52, 152, 219, 0.2);
        color: #3498db;
    }
    
    .cce-currency-select:focus {
        background-color: rgba(52, 152, 219, 0.25);
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.4);
        color: #3498db;
    }
    
    .cce-currency-select option {
        background: #2c3e50;
        color: #ecf0f1;
    }
}

/* Animation for price changes */
.elementor-heading-title {
    transition: all 0.3s ease;
}

.elementor-heading-title.converting {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Floating animation for currency switcher */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

.cce-currency-switcher {
    animation: float 3s ease-in-out infinite;
}

.cce-currency-switcher:hover {
    animation: none;
}

/* Smooth transitions for all interactive elements */
.cce-currency-switcher * {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state */
.cce-currency-switcher.loading .cce-currency-select {
    opacity: 0.6;
    pointer-events: none;
}

.cce-currency-switcher.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cce-currency-switcher {
        border: 2px solid #000000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .cce-currency-select {
        border: 1px solid #000000;
        font-weight: bold;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cce-currency-switcher,
    .cce-currency-select,
    .elementor-heading-title {
        transition: none;
    }
    
    .cce-currency-switcher:hover {
        transform: none;
    }
    
    .cce-currency-switcher.loading::after {
        animation: none;
    }
}
