/**
 * Estilos para control de visualización de precios y conversiones
 */

/* Estilos base para shortcodes */
.wvp-bcv-rate,
.wvp-currency-switcher {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Estilos para tasa BCV */
.wvp-bcv-rate {
    margin: 5px 0;
}
/*
.wvp-bcv-default {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    color: #495057;
    font-size: 14px;
}*/

.wvp-bcv-minimal {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.wvp-bcv-highlight {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border-radius: 6px;
    padding: 10px 15px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,115,170,0.3);
}

.wvp-bcv-error {
    color: #dc3545;
    font-style: italic;
    font-size: 13px;
}

/* Información detallada BCV */
.wvp-bcv-detailed {
    text-align: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wvp-bcv-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.wvp-bcv-rate-main {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.wvp-bcv-date {
    font-size: 12px;
    color: #6c757d;
}

/* Estilos para selector de moneda */
.wvp-currency-switcher {
    margin: 10px 0;
}

/* Botones de moneda */
.wvp-currency-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.wvp-currency-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.wvp-currency-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.wvp-currency-btn.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.wvp-currency-btn.wvp-switching {
    opacity: 0.7;
    cursor: not-allowed;
}

.wvp-currency-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.wvp-currency-symbol {
    font-size: 14px;
    font-weight: 700;
}

/* Dropdown de moneda */
.wvp-currency-dropdown {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
}

.wvp-currency-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.25);
}

/* Toggle de moneda */
.wvp-currency-toggle {
    position: relative;
    display: inline-block;
}

.wvp-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wvp-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.wvp-toggle-slider {
    width: 20px;
    height: 20px;
    background: #6c757d;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.wvp-toggle-input:checked + .wvp-toggle-label {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.wvp-toggle-input:checked + .wvp-toggle-label .wvp-toggle-slider {
    background: white;
    transform: translateX(10px);
}

.wvp-toggle-text {
    font-size: 14px;
    font-weight: 500;
}

/* Tamaños */
.wvp-size-small .wvp-currency-btn {
    padding: 4px 8px;
    min-width: 40px;
    font-size: 12px;
}

.wvp-size-small .wvp-currency-label {
    font-size: 10px;
}

.wvp-size-small .wvp-currency-symbol {
    font-size: 12px;
}

.wvp-size-large .wvp-currency-btn {
    padding: 12px 16px;
    min-width: 80px;
    font-size: 16px;
}

.wvp-size-large .wvp-currency-label {
    font-size: 12px;
}

.wvp-size-large .wvp-currency-symbol {
    font-size: 18px;
}

/* Temas */
.wvp-theme-minimal .wvp-currency-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 0;
    margin-right: 20px;
}

.wvp-theme-minimal .wvp-currency-btn.active {
    background: transparent;
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.wvp-theme-modern .wvp-currency-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wvp-theme-modern .wvp-currency-btn.active {
    background: linear-gradient(135deg, #0073aa, #005a87);
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

/* Alcance del selector */
.wvp-scope-local .wvp-currency-switcher {
    /* Solo afecta productos cercanos */
}

.wvp-scope-global .wvp-currency-switcher {
    /* Afecta toda la página */
}

/* Información de tasa */
.wvp-rate-display {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    text-align: center;
}

/* Errores */
.wvp-currency-error {
    color: #dc3545;
    font-style: italic;
    font-size: 13px;
    padding: 8px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .wvp-currency-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .wvp-currency-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wvp-bcv-detailed {
        padding: 12px;
    }
    
    .wvp-bcv-rate-main {
        font-size: 20px;
    }
}

/* Integración con temas existentes */
.woocommerce .wvp-currency-switcher,
.woocommerce .wvp-bcv-rate {
    margin: 10px 0;
}

.single-product .wvp-currency-switcher {
    margin: 15px 0;
}

.shop .wvp-currency-switcher {
    margin: 8px 0;
}

.widget .wvp-currency-switcher {
    margin: 10px 0;
}

/* Animaciones */
.wvp-currency-btn,
.wvp-bcv-rate {
    transition: all 0.3s ease;
}

.wvp-currency-btn:hover {
    transform: translateY(-1px);
}

.wvp-theme-modern .wvp-currency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,115,170,0.4);
}
