/* Real-Time Currency Converter Styles */

#rtcc-currency-selector {
    position: fixed;
    z-index: 999999;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    font-family: 'Recursive';
    min-width: 200px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    left: initial !important;
    top: 48% !important;
}
rtcc-currency-selector
#rtcc-currency-selector:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.rtcc-selector-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rtcc-selector-container label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.rtcc-currency-dropdown {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.rtcc-currency-dropdown:hover {
    border-color: #999;
}

.rtcc-currency-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.rtcc-exchange-rate {
    font-size: 11px;
    color: #777;
    padding: 5px 0;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

#rtcc-rate-display {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #rtcc-currency-selector {
        top: 250px !important;
        right: -10px !important;
        padding: 12px 15px;
        min-width: 160px;
    }
    
    .rtcc-selector-container label {
        font-size: 11px;
    }
    
    .rtcc-currency-dropdown {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Loading state */
.rtcc-loading #rtcc-rate-display::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: rtcc-spin 0.6s linear infinite;
}

@keyframes rtcc-spin {
    to { transform: rotate(360deg); }
}

/* Integration with Elementor */
.elementor-widget-container #rtcc-currency-selector {
    position: relative;
    display: inline-block;
}

/* Integration with Jupiter X */
body.jupiterx #rtcc-currency-selector {
    font-family: inherit;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #rtcc-currency-selector {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .rtcc-selector-container label {
        color: #aaa;
    }
    
    .rtcc-currency-dropdown {
        background: #333;
        border-color: #555;
        color: #e0e0e0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    }
    
    .rtcc-exchange-rate {
        color: #999;
        border-top-color: #444;
    }
}

/* Print styles */
@media print {
    #rtcc-currency-selector {
        display: none;
    }
}