/**
 * Magical RSD Currency Estimator - Styles
 */

/* Loading state */
.mrce-loading {
    cursor: wait;
}

.mrce-loading * {
    pointer-events: none;
}

/* Currency dropdown styling */
.mrce-currency-dropdown {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    min-width: 80px;
}

.mrce-currency-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Currency switch buttons */
.mrce-currency-switch {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mrce-currency-switch:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.mrce-currency-switch.active {
    background: #0073aa;
    color: #fff;
    border-color: #005a87;
}

.mrce-currency-switch:focus {
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Currency switcher container */
.mrce-currency-switcher {
    display: inline-block;
    margin: 10px 0;
}

.mrce-currency-switcher label {
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* Currency display */
.mrce-current-currency {
    font-weight: bold;
    color: #0073aa;
}

/* Responsive design */
@media (max-width: 768px) {
    .mrce-currency-switch {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .mrce-currency-dropdown {
        padding: 8px 12px;
        font-size: 16px; /* Better for mobile */
    }
}

/* Loading spinner (optional) */
.mrce-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: mrce-spin 1s linear infinite;
    margin-left: 5px;
}

@keyframes mrce-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
