/**
 * WooCommerce Product Info Button Styles
 * Version: 2.6.0
 * Simple and clean design
 */

/* CSS Variables - Modern version matching e-liquide modal */
:root {
    --wc-info-btn-primary: #3b82f6;
    --wc-info-btn-secondary: #2563eb;
    --wc-info-btn-text: #ffffff;
    --wc-info-btn-shadow: rgba(59, 130, 246, 0.3);
    --wc-info-btn-shadow-hover: rgba(59, 130, 246, 0.4);
    --wc-info-btn-size: 36px;
    --wc-info-btn-size-mobile: 36px;
    --wc-info-btn-size-small: 34px;
    --wc-info-btn-border-radius: 50%;
    --wc-info-btn-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wc-info-btn-top: 50px;
    --wc-info-btn-right: 10px;
    --wc-info-btn-icon-size: 30px;
}

/* Base container - Product image wrapper support */
.product-img-wrap,
.woocommerce-loop-product__link,
.product-image,
.product-thumb,
.attachment-woocommerce_thumbnail,
.woocommerce-product-image,
.elementor-widget-wc-products .product,
.elementor-widget-woocommerce-products .product,
.woocommerce-product-loop .product,
.nasa-products .product,
.nasa-products-sc .product,
.nasa_products_sc .product,
.nasa-products-widget .product,
.product,
.woocommerce .product,
.woocommerce ul.products li.product,
/* Brand/Marque page support */
.tax-product_brand .product,
.tax-marque .product,
.tax-brand .product,
.page-template-marque .product,
.page-template-brand .product,
/* Shifters specific selectors */
.marque-page .product,
.brand-page .product,
[class*="marque"] .product,
[class*="brand"] .product,
/* Archive page support */
.archive .product,
.taxonomy-archive .product,
.post-type-archive-product .product,
[class*="archive"] .product {
    position: relative !important;
}

/* Main container */
.wc-info-btn-container {
    position: absolute !important;
    top: var(--wc-info-btn-top) !important;
    right: var(--wc-info-btn-right) !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1 !important;
    pointer-events: all !important;
}

/* Wrapper */
.wc-info-btn-wrapper {
    position: relative !important;
    display: block !important;
    width: var(--wc-info-btn-size) !important;
    height: var(--wc-info-btn-size) !important;
}

/* Icon container - Simple solid design */
.wc-info-btn-icon {
    width: var(--wc-info-btn-size) !important;
    height: var(--wc-info-btn-size) !important;
    background: #ffffff !important;
    border-radius: var(--wc-info-btn-border-radius) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all var(--wc-info-btn-transition) !important;
    border: 2px solid #e5e7eb !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Icon hover effects - Simple animation */
.wc-info-btn-container:hover .wc-info-btn-icon {
    transform: scale(1.15) translateZ(0) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #000000 !important;
}

/* Icon focus state */
.wc-info-btn-icon:focus {
    outline: 3px solid var(--wc-info-btn-primary) !important;
    outline-offset: 3px !important;
}

/* Icon SVG - Updated color and size for new e-liquide icon */
.wc-info-btn-icon svg {
    width: var(--wc-info-btn-icon-size) !important;
    height: var(--wc-info-btn-icon-size) !important;
    fill: currentColor !important;
    transition: all var(--wc-info-btn-transition) !important;
    transform: scale(0.8) !important; /* Scale down the larger SVG */
}

/* TOOLTIP STYLES - Simple design */
.wc-info-btn-tooltip {
    position: absolute !important;
    bottom: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    z-index: 99999999 !important;
}

.tooltip-text {
    display: block !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.tooltip-arrow {
    position: absolute !important;
    bottom: -6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 6px solid #cbd5e1 !important;
}

.wc-info-btn-icon:hover .wc-info-btn-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-8px) !important;
}

/* Show tooltip on hover - Güncellendi */
.wc-info-btn-container:hover .wc-info-btn-tooltip,
.wc-info-btn-wrapper:hover .wc-info-btn-tooltip,
.product:hover .wc-info-btn-tooltip,
.nasa-products .product:hover .wc-info-btn-tooltip,
.nasa-products-sc .product:hover .wc-info-btn-tooltip,
.nasa_products_sc .product:hover .wc-info-btn-tooltip,
.nasa-products-widget .product:hover .wc-info-btn-tooltip,
.product-img-wrap:hover .wc-info-btn-tooltip,
.woocommerce-loop-product__link:hover .wc-info-btn-tooltip,
.product-image:hover .wc-info-btn-tooltip,
.product-thumb:hover .wc-info-btn-tooltip,
.product-img:hover .wc-info-btn-tooltip,
.main-img:hover .wc-info-btn-tooltip,
/* Brand/Marque page hover support */
.tax-product_brand .product:hover .wc-info-btn-tooltip,
.tax-marque .product:hover .wc-info-btn-tooltip,
.tax-brand .product:hover .wc-info-btn-tooltip,
.page-template-marque .product:hover .wc-info-btn-tooltip,
.page-template-brand .product:hover .wc-info-btn-tooltip,
.marque-page .product:hover .wc-info-btn-tooltip,
.brand-page .product:hover .wc-info-btn-tooltip,
[class*="marque"] .product:hover .wc-info-btn-tooltip,
[class*="brand"] .product:hover .wc-info-btn-tooltip,
/* Archive page hover support */
.archive .product:hover .wc-info-btn-tooltip,
.taxonomy-archive .product:hover .wc-info-btn-tooltip,
.post-type-archive-product .product:hover .wc-info-btn-tooltip,
[class*="archive"] .product:hover .wc-info-btn-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-8px) !important;
}

/* Elementor specific adjustments */
.wc-info-btn-container.elementor-product {
    top: 15px !important;
    right: 15px !important;
}

/* Theme specific overrides - NASA Modern 8 */
.nasa-modern-8 .wc-info-btn-container {
    z-index: 9999999 !important;
}

.nasa-modern-8 .wc-info-btn-icon {
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Loading state */
.wc-info-btn-icon.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.wc-info-btn-icon.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    border-top-color: rgba(0, 0, 0, 0.8) !important;
    border-radius: 50% !important;
    animation: wc-info-btn-spin 1s linear infinite !important;
}

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

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
    .wc-info-btn-container {
        --wc-info-btn-top: 15px !important;
        --wc-info-btn-right: 10px !important;
    }
}

@media (max-width: 768px) {
    .wc-info-btn-container {
        --wc-info-btn-top: 10px !important;
        --wc-info-btn-right: 8px !important;
        --wc-info-btn-size: 36px !important;
    }
    
    .wc-info-btn-tooltip {
        font-size: 11px !important;
        padding: 6px 10px !important;
        bottom: 45px !important;
    }
    
    .tooltip-arrow {
        border-top-width: 5px !important;
        border-left-width: 5px !important;
        border-right-width: 5px !important;
    }
}

@media (max-width: 480px) {
    .wc-info-btn-container {
        --wc-info-btn-size: 32px !important;
        --wc-info-btn-icon-size: 18px !important;
    }
    
    .wc-info-btn-tooltip {
        font-size: 10px !important;
        padding: 4px 8px !important;
        bottom: 40px !important;
    }
}

/* ===== INFO MODAL STYLES - UPDATED TO MATCH E-LIQUIDE MODAL ===== */
.wc-info-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    box-sizing: border-box !important;
}

.wc-info-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.wc-info-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.wc-info-modal-content {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    max-width: 400px !important;
    width: 90% !important;
    max-height: 75vh !important;
    overflow: hidden !important;
    transform: scale(0.8) translateY(30px) !important;
    transition: all 0.2s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.wc-info-modal.show .wc-info-modal-content {
    transform: scale(1) translateY(0) !important;
}

.wc-info-modal-header {
    padding: 20px 20px 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 15px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.wc-info-modal-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    line-height: 1.3 !important;
    font-family: inherit !important;
}

.wc-info-modal-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    font-size: 20px !important;
    color: #374151 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.wc-info-modal-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #1a1a1a !important;
    transform: scale(1.1) !important;
}

.wc-info-modal-body {
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.wc-info-modal-body p {
    margin: 0 0 15px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #374151 !important;
    font-family: inherit !important;
}

.wc-info-modal-features {
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.wc-info-modal-features h4 {
    margin: 0 0 12px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    font-family: inherit !important;
}

.wc-info-modal-features ul {
    margin: 0 !important;
    padding-left: 20px !important;
    list-style: none !important;
}

.wc-info-modal-features li {
    margin: 6px 0 !important;
    padding-left: 20px !important;
    position: relative !important;
    font-size: 13px !important;
    color: #374151 !important;
    font-family: inherit !important;
}

.wc-info-modal-features li:before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    color: #3b82f6 !important;
    font-weight: bold !important;
}

.wc-info-modal-price {
    background: #3b82f6 !important;
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: center !important;
    margin: 15px 0 !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    font-family: inherit !important;
}

.wc-info-modal-footer {
    padding: 15px 20px 20px 20px !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.wc-info-modal-btn {
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    text-transform: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.wc-info-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #374151 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.wc-info-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #1a1a1a !important;
    transform: translateY(-1px) !important;
}

.wc-info-modal-btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
}

.wc-info-modal-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .wc-info-modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 10px !important;
        max-height: 90vh !important;
    }
    
    .wc-info-modal-header {
        padding: 20px 20px 0 20px !important;
    }
    
    .wc-info-modal-header h3 {
        font-size: 18px !important;
    }
    
    .wc-info-modal-body {
        padding: 20px !important;
    }
    
    .wc-info-modal-body p {
        font-size: 14px !important;
    }
    
    .wc-info-modal-features {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    
    .wc-info-modal-features h4 {
        font-size: 15px !important;
    }
    
    .wc-info-modal-features li {
        font-size: 13px !important;
    }
    
    .wc-info-modal-price {
        font-size: 16px !important;
        padding: 10px 16px !important;
    }
    
    .wc-info-modal-footer {
        padding: 15px 20px 20px 20px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .wc-info-modal-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .wc-info-modal-content {
        width: 98% !important;
        margin: 5px !important;
        border-radius: 12px !important;
    }
    
    .wc-info-modal-header {
        padding: 15px 15px 0 15px !important;
    }
    
    .wc-info-modal-header h3 {
        font-size: 16px !important;
    }
    
    .wc-info-modal-body {
        padding: 15px !important;
    }
    
    .wc-info-modal-features {
        padding: 12px !important;
        margin: 12px 0 !important;
    }
    
    .wc-info-modal-features h4 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .wc-info-modal-features li {
        font-size: 12px !important;
        margin: 6px 0 !important;
    }
    
    .wc-info-modal-price {
        font-size: 15px !important;
        padding: 8px 12px !important;
        margin: 15px 0 !important;
    }
    
    .wc-info-modal-footer {
        padding: 12px 15px 15px 15px !important;
    }
    
    .wc-info-modal-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* Échantillon Dropdown Styles - Updated to match e-liquide modal */
.echantillon-option-container {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f9fafb !important;
    width: 100%;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    font-family: inherit !important;
    display: flex;
    gap: 15px;
    flex-direction: column;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.echantillon-info h4 {
    margin: 0 0 10px 0 !important;
    color: #374151 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
}

.echantillon-info p {
    margin: 0 !important;
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
}

.echantillon-selector label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #374151 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: inherit !important;
}

.echantillon-segmented-control {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.segmented-control-container {
    position: relative !important;
    display: flex !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 2px !important;
    overflow: hidden !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    min-height: 40px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.segment-btn {
    flex: 1 !important;
    padding: 10px 12px !important;
    border: none !important;
    background: transparent !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
}

.segment-btn:hover {
    color: #1a1a1a !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.segment-btn.active {
    color: white !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.segment-btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.segment-btn:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.segment-slider {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: calc(50% - 2px) !important;
    height: calc(100% - 4px) !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.segmented-control-container.slide-right .segment-slider {
    transform: translateX(100%) !important;
}

/* Override theme styles */
.echantillon-segmented-control button,
.echantillon-segmented-control .segment-btn {
    all: unset !important;
    flex: 1 !important;
    padding: 10px 12px !important;
    border: none !important;
    background: transparent !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: hidden !important;
}

.echantillon-segmented-control button:hover,
.echantillon-segmented-control .segment-btn:hover {
    color: #1a1a1a !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.echantillon-segmented-control button.active,
.echantillon-segmented-control .segment-btn.active {
    color: white !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* AJAX Error Message Styles - Updated */
.wc-ajax-error-message {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%) !important;
    color: #374151 !important;
    padding: 15px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    z-index: 999999 !important;
    max-width: 300px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    animation: slideInRight 0.3s ease-out !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Accessibility improvements */
.wc-info-btn-icon:focus {
    outline: 2px solid var(--wc-info-btn-primary, #3b82f6) !important;
    outline-offset: 2px !important;
}

.wc-info-btn-icon[role="button"] {
    cursor: pointer !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wc-info-btn-icon {
        border: 2px solid currentColor !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wc-ajax-error-message {
        animation: none !important;
    }
    
    .wc-info-btn-icon {
        transition: none !important;
    }
}

.wc-ajax-error-message strong {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
}

/* Mobile Responsiveness for Échantillon */
@media (max-width: 768px) {
    .echantillon-option-container {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .echantillon-info h4 {
        font-size: 15px !important;
    }
    
    .echantillon-info p {
        font-size: 13px !important;
    }
    
    .echantillon-selector label {
        font-size: 13px !important;
    }
    
    .echantillon-selector select {
        padding: 8px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .echantillon-option-container {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }
    
    .echantillon-info h4 {
        font-size: 14px !important;
    }
    
    .echantillon-info p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    .echantillon-selector label {
        font-size: 12px !important;
    }
    
    .echantillon-selector select {
        padding: 6px !important;
        font-size: 12px !important;
    }
}

/* Échantillon disabled state for WC Fields Factory */
.echantillon-disabled {
    opacity: 0.5 !important;
    position: relative !important;
    pointer-events: none !important;
}

/* Visual dimming for disabled fields */
.echantillon-disabled input,
.echantillon-disabled select,
.echantillon-disabled textarea,
.echantillon-disabled button {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #f5f5f5 !important;
}

.echantillon-disabled label {
    color: #999 !important;
    cursor: not-allowed !important;
}

/* Visual indicator for disabled state */

/* ============================================
   BASE GRATUITE MODAL STYLES
   ============================================ */

/* Base Gratuite Modal Container */
.wc-base-gratuite-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wc-base-gratuite-modal.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Modal Overlay */
.wc-base-gratuite-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    z-index: 999998;
}

/* Modal Content */
.wc-base-gratuite-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 999999;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Close Button */
.wc-base-gratuite-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000000;
}

.wc-base-gratuite-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* Modal Body */
.wc-base-gratuite-body {
    padding: 30px;
}

/* Modal Title */
.wc-base-gratuite-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* Modal Description */
.wc-base-gratuite-description {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

/* Options Container */
.wc-base-gratuite-options {
    margin: 0 0 25px 0;
}

/* Radio Option */
.wc-base-gratuite-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.wc-base-gratuite-option:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.wc-base-gratuite-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* Radio Input */
.wc-base-gratuite-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0 12px 0 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* Option Label */
.wc-base-gratuite-option label {
    flex: 1;
    font-size: 15px;
    color: #1f2937;
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
}

.wc-base-gratuite-option.selected label {
    font-weight: 500;
    color: #1f2937;
}

/* Confirm Button */
.wc-base-gratuite-confirm {
    width: 100%;
    padding: 14px 20px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.wc-base-gratuite-confirm:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.wc-base-gratuite-confirm:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wc-base-gratuite-content {
        max-width: 95%;
        width: 95%;
    }
    
    .wc-base-gratuite-body {
        padding: 20px;
    }
    
    .wc-base-gratuite-title {
        font-size: 20px;
    }
    
    .wc-base-gratuite-description {
        font-size: 14px;
    }
    
    .wc-base-gratuite-option {
        padding: 12px;
    }
    
    .wc-base-gratuite-option label {
        font-size: 14px;
    }
    
    .wc-base-gratuite-confirm {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .wc-base-gratuite-content {
        border-radius: 8px;
    }
    
    .wc-base-gratuite-body {
        padding: 15px;
    }
    
    .wc-base-gratuite-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .wc-base-gratuite-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .wc-base-gratuite-option {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .wc-base-gratuite-option input[type="radio"] {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .wc-base-gratuite-option label {
        font-size: 13px;
    }
}
