
/**
 * CSS Styles for Currency Switcher
 * Add this to your theme's style.css or as a separate stylesheet
 */

/* Dropdown Style */
.currency-switcher-dropdown {
    display: inline-block;
    position: relative;
    margin: 10px 0;
}

.currency-switcher {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    min-width: 80px;
}

.currency-switcher:hover {
    border-color: #aaa;
}

/* Button Style */
.currency-switcher-buttons {
    display: inline-flex;
    margin: 10px 0;
}

.currency-button {
    padding: 8px 12px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-button:hover {
    background-color: #eaeaea;
}

.currency-button.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Responsive styles */
@media screen and (max-width: 480px) {
    .currency-switcher-buttons {
        display: flex;
        width: 100%;
    }

    .currency-button {
        flex: 1;
        text-align: center;
    }
}

/* Additional style for displaying currency symbol in product prices */
.woocommerce-Price-currencySymbol {
    margin-right: 3px;
}

/* Currency Loader Overlay */
.currency-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.currency-loader {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
}

.currency-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.currency-loader-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

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

/* Currency Loader Overlay */
.currency-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.currency-loader {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
}

.currency-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.currency-loader-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

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