/**
 * Frontend CSS for WC Progressive Discounts
 * Version: 3.0.0
 */

/* Badge de réduction */
.wcpd-discount-badge {
    background-color: #000000;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
    animation: wcpd-pulse 2s infinite;
    position: relative;
}

@keyframes wcpd-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Prix barrés */
.woocommerce-Price-amount del {
    opacity: 0.7;
    color: #999;
}

/* Économies dans le panier */
.wcpd-cart-savings .wcpd-savings-amount {
    color: #22aa22;
    font-size: 1.2em;
    font-weight: bold;
}

.wcpd-cart-savings {
    background-color: #000000;
    color: white;
}

/* Wrapper du tableau pour le positionnement */
.wcpd-discount-table-wrapper {
    clear: both;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Tableau des remises */
.wcpd-discount-table h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.wcpd-discount-table table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.wcpd-discount-table td {
    padding: 5px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.wcpd-discount-table tr:last-child td {
    border-bottom: none;
}

.wcpd-discount-table td:first-child {
    color: #666;
}

.wcpd-discount-table td:last-child {
    text-align: right;
    font-weight: bold;
    color: #22aa22;
    padding: 10px 5px!important;
}

/* Tableau interactif */
.wcpd-discount-table.wcpd-interactive {
    padding: 20px;
    background: #fff;
    border: 2px solid #22aa22;
    margin-top: 20px;
    margin-bottom: 20px;
    clear: both;
}

.wcpd-current-state {
    background: #f0f8ff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.wcpd-current-state p {
    margin: 0;
    font-size: 15px;
}

.wcpd-simulation {
    margin-bottom: 25px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.wcpd-simulation h5 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.wcpd-savings {
    float: right;
    color: #22aa22;
    font-weight: bold;
}

.wcpd-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.wcpd-product {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.wcpd-product.current {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.wcpd-product.suggested {
    border-style: dashed;
    background: #fffbf0;
}

.wcpd-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wcpd-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.wcpd-product-info h6 {
    margin: 10px 0 5px 0;
    font-size: 13px;
}

.wcpd-product-info h6 a {
    color: #333;
    text-decoration: none;
}

.wcpd-product-price {
    margin: 5px 0;
    font-size: 14px;
}

.wcpd-product-price del {
    color: #999;
    font-size: 12px;
}

.wcpd-product-price ins {
    color: #22aa22;
    font-weight: bold;
    text-decoration: none;
}

.wcpd-discount-percent {
    font-size: 11px;
    color: #000000;
}

.wcpd-add-to-cart {
    margin-top: 10px;
}

.wcpd-add-to-cart .button {
    font-size: 12px;
    padding: 5px 15px;
    background: #22aa22;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wcpd-add-to-cart .button:hover {
    background: #1a8a1a;
}

.wcpd-add-to-cart .button.loading {
    opacity: 0.5;
}

.wcpd-total {
    text-align: right;
    font-size: 16px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.wcpd-total del {
    color: #999;
}

.wcpd-total strong {
    color: #22aa22;
    font-size: 18px;
}

/* Économies actuelles */
.wcpd-current-savings {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.wcpd-current-savings h5 {
    margin: 0 0 10px 0;
    color: #2e7d32;
    font-size: 20px;
}

.wcpd-savings-amount {
    font-size: 18px;
    margin-bottom: 10px;
}

.wcpd-savings-amount strong {
    color: #22aa22;
    font-size: 24px;
}

/* Notice de promotion */
.woocommerce-info.wcpd-promo-notice {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wcpd-discount-table {
        margin-top: 10px;
        padding: 10px;
    }
    
    .wcpd-discount-table h4 {
        font-size: 14px;
    }
    
    .wcpd-discount-table table {
        font-size: 12px;
    }
    
    .wcpd-discount-badge {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    /* Tableau interactif mobile */
    .wcpd-discount-table.wcpd-interactive {
        padding: 15px;
    }
    
    .wcpd-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .wcpd-simulation h5 {
        font-size: 16px;
    }
    
    .wcpd-savings {
        display: block;
        float: none;
        margin-top: 5px;
    }
    
    .wcpd-product {
        padding: 8px;
    }
    
    .wcpd-product-info h6 {
        font-size: 12px;
    }
    
    .wcpd-total {
        font-size: 14px;
    }
}

/* Animation pour les prix mis à jour */
.wcpd-price-updated {
    animation: wcpd-highlight 1s ease-in-out;
}

@keyframes wcpd-highlight {
    0% { background-color: transparent; }
    50% { background-color: #fffbcc; }
    100% { background-color: transparent; }
}

/* ===== NOUVEAU DESIGN COMPACT ===== */

/* Conteneur principal compact - Style similaire au bloc fidélité */
.wcpd-discount-table.wcpd-compact {
    background: #f9f9f9;
    border: 1px dashed #333;
    border-radius: 0px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: none;
    overflow: visible;
    max-width: 100%;
    position: relative;
}

/* En-tête compact */
.wcpd-header-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.wcpd-header-compact::before {
    content: '🏆';
    font-size: 24px;
}

.wcpd-cart-status {
    font-size: 16px;
    color: #666;
}

.wcpd-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Économies actuelles - version compacte */
.wcpd-current-savings-compact {
    background: #e8f5e9;
    padding: 15px 20px;
    border-bottom: 1px solid #c8e6c9;
}

.wcpd-savings-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcpd-savings-label {
    font-size: 14px;
    color: #2e7d32;
}

.wcpd-savings-value {
    font-size: 20px;
    font-weight: bold;
    color: #1b5e20;
}

/* Container des simulations */
.wcpd-simulations-compact {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Ligne de scénario */
.wcpd-scenario-row {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 15px;
    position: relative;
    overflow: visible;
}

.wcpd-scenario-row:hover {
    background: #f8fff8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #22aa22;
}

/* Badge alternatif en haut à gauche */
.wcpd-offer-badge {
    position: absolute;
    top: -12px;
    left: 15px;
    background: white;
    border: 2px solid #22aa22;
    color: #22aa22;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
}

/* Badge économie en superposition */
.wcpd-scenario-row::before {
    content: "ÉCONOMIE\A" attr(data-savings);
    white-space: pre;
    position: absolute;
    top: -8px;
    right: 15px;
    background: #1a171b;
    color: white;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 0;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    line-height: 1.2;
}

/* Indicateur Meilleure offre déplacé en bas à gauche */
.wcpd-scenario-row[data-scenario="scenario_3"] {
    position: relative;
}

.wcpd-scenario-row[data-scenario="scenario_3"]::after {
    content: "★ MEILLEURE OFFRE";
    position: absolute;
    bottom: 10px;
    left: 15px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Titre en superposition - Déplacé dans un pseudo-élément séparé */
.wcpd-scenario-row {
    position: relative;
}

.wcpd-scenario-row[data-scenario="scenario_1"] .wcpd-products-compact::before {
    content: "1 produit • -25%";
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wcpd-scenario-row[data-scenario="scenario_2"] .wcpd-products-compact::before {
    content: "2 produits • -30%";
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wcpd-scenario-row[data-scenario="scenario_3"] .wcpd-products-compact::before {
    content: "3 produits • -35%";
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Cas spécial pour 1 seul produit */
.wcpd-scenario-row[data-scenario="scenario_1"] .wcpd-products-compact {
    margin-right: 140px;
}

.wcpd-scenario-row[data-scenario="scenario_1"] .wcpd-mini-product {
    width: auto;
    min-width: 200px;
    max-width: 300px;
}

@media (max-width: 768px) {
    .wcpd-scenario-row::before {
        right: 10px;
        top: 8px;
        font-size: 9px;
        padding: 4px 8px;
    }
    
    .wcpd-scenario-row[data-scenario="scenario_3"]::after {
        bottom: 8px;
        left: 10px;
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .wcpd-products-compact::before {
        font-size: 12px;
        top: -20px;
    }
}

/* Colonnes du tableau compact */
.wcpd-offer-summary {
    display: none; /* On cache car on utilise le ::after maintenant */
}

/* Produits miniatures - Plus visibles */
.wcpd-products-compact {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .wcpd-products-compact {
        margin-right: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Symbole + entre les produits */
.wcpd-plus-sign {
    font-size: 16px;
    font-weight: bold;
    color: #666;
    margin: 0 2px;
    align-self: center;
    flex: 0 0 auto;
}

.wcpd-mini-product {
    position: relative;
    transition: all 0.3s ease;
    background: white;
    border-radius: 8px;
    padding: 0px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    flex: 0 0 auto;
    width: 180px;
    min-width: 180px;
}

.wcpd-mini-product:hover {
    transform: scale(1.05);
    z-index: 1;
    border-color: #22aa22;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Styles pour différencier les produits */
.wcpd-mini-product.current {
    border-color: #3498db;
    background: #f0f8ff;
}

.wcpd-mini-product.in-cart {
    opacity: 0.8;
}

.wcpd-mini-product.suggested {
    border-style: dashed;
    border-color: #22aa22;
}

.wcpd-product-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}

.wcpd-product-image {
    flex: 0 0 50px;
}

.wcpd-product-image img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Info produit - Layout horizontal */
.wcpd-mini-product-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.wcpd-mini-product-name {
    display: block;
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.wcpd-mini-product-prices {
    display: flex;
    align-items: flex-start;
    gap: 0px;
    line-height: 1;
    flex-direction: column;
}

.wcpd-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 10px;
}

.wcpd-mini-product-price {
    color: #cf3440;
    font-weight: bold;
    font-size: 10px;
}

/* Badge "Suggestion" - Désactivé */
.wcpd-suggestion-badge {
    display: none;
}

/* Info économies - Supprimée car maintenant en badge */

/* Bouton d'action amélioré */
.wcpd-action {
    flex: 0 0 auto;
    text-align: center;
}

.wcpd-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    background: #22aa22;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
    gap: 5px;
}

.wcpd-add-button:hover {
    background: #1a8a1a;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: white;
}

.wcpd-add-icon {
    line-height: 1;
    display: inline-block;
    font-size: 18px;
}

.wcpd-add-text {
    display: inline-block;
}

/* Animation pour attirer l'attention */
@keyframes wcpd-highlight-product {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    50% { 
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(34, 170, 34, 0.3);
    }
}

/* Effet de brillance sur les produits suggérés - Désactivé pour éviter le rectangle */
.wcpd-mini-product::after {
    display: none;
}

/* Animation au survol de la ligne */
.wcpd-scenario-row:hover .wcpd-mini-product {
    animation: wcpd-highlight-product 1s ease-in-out infinite;
}

/* Suppression de la flèche - Remplacé par rien */

/* Responsive pour le design compact */
@media (max-width: 768px) {
    .wcpd-header-compact {
        text-align: center;
        font-size: 16px;
        line-height: 1.4;
    }
    
    .wcpd-scenario-row {
        flex-direction: column;
        padding: 35px 15px 15px;
        gap: 12px;
    }
    
    .wcpd-offer-summary {
        width: 100%;
        justify-content: center;
    }
    
    .wcpd-products-compact {
        width: 100%;
        justify-content: center;
        padding: 0;
        gap: 10px;
    }
    
    .wcpd-mini-product {
        flex: 0 0 auto;
    }
    
    .wcpd-product-image img {
        width: 50px;
        height: 50px;
    }
    
    .wcpd-mini-product {
        max-width: 200px;
        padding: 8px;
    }
    
    .wcpd-mini-product-name {
        font-size: 11px;
    }
    
    .wcpd-mini-product-prices {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .wcpd-original-price {
        font-size: 11px;
    }
    
    .wcpd-mini-product-price {
        font-size: 13px;
    }
    
    .wcpd-plus-sign {
        font-size: 16px;
        margin: 0 3px;
    }
    
    .wcpd-savings-info {
        width: 100%;
        text-align: center;
        margin: 10px 0 0 0;
        padding: 0;
    }
    
    .wcpd-savings-compact {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .wcpd-savings-compact strong {
        font-size: 16px;
    }
    
    .wcpd-action {
        width: 100%;
        text-align: center;
    }
    
    .wcpd-add-button {
        width: 100%;
        max-width: 200px;
    }
}

/* Animation de chargement pour le bouton */
.wcpd-add-button.loading .wcpd-add-icon {
    animation: wcpd-spin 1s linear infinite;
}

/* Tooltip au survol des miniatures */
.wcpd-mini-product {
    position: relative;
}

.wcpd-mini-product::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 5px;
}

.wcpd-mini-product:hover::after {
    opacity: 1;
}

/* Style pour les produits variables */
.variations_form .wcpd-discount-badge {
    margin-left: 10px;
}

/* Amélioration de l'affichage dans la grille de produits */
.products .product .wcpd-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 10;
}

/* Style pour le loader AJAX */
.wcpd-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.wcpd-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: wcpd-spin 1s linear infinite;
}

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

/* Styles pour l'interface d'administration */
.wcpd-admin-notice {
    padding: 10px;
    margin: 10px 0;
    border-left: 4px solid #00a0d2;
    background-color: #f7f7f7;
}

/* Badge "En promotion" sur les images produits */
.wcpd-sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #000000;
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 9;
}

/* Styles pour le modal des suggestions */
.wcpd-dialog-overlay,
#wcpd-suggestions-dialog,
#wcpd-suggestions-dialog-shortcode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
    /* Flexbox pour centrer le contenu */
    display: none;
    align-items: center;
    justify-content: center;
}

/* Quand le modal est visible */
.wcpd-dialog-overlay[style*="display: block"],
#wcpd-suggestions-dialog[style*="display: block"],
#wcpd-suggestions-dialog-shortcode[style*="display: block"] {
    display: flex !important;
}

.wcpd-dialog-content {
    position: relative;
    background: white;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    z-index: 100000;
}

.wcpd-dialog-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100001;
}

.wcpd-dialog-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* Styles pour les sélecteurs de variations dans le modal */
.wcpd-variations-selector {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    position: relative;
    z-index: 10;
}

.wcpd-variation-group {
    margin-bottom: 15px;
    position: relative;
}

.wcpd-variation-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.wcpd-variation-group select,
.wcpd-variation-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    position: relative;
}

.wcpd-variation-group select:focus,
.wcpd-variation-select:focus {
    outline: none;
    border-color: #22aa22;
    box-shadow: 0 0 0 3px rgba(34, 170, 34, 0.1);
}

/* Styles pour les boutons de taille */
.wcpd-size-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.wcpd-size-button {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.wcpd-size-button:hover:not(.out-of-stock):not(.selected) {
    border-color: #22aa22;
    background: #f0f8f0;
}

.wcpd-size-button.selected {
    background: #22aa22;
    color: white;
    border-color: #22aa22;
}

.wcpd-size-button.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.wcpd-size-button.in-cart {
    border-color: #3498db;
    background: #e8f4f8;
}

/* Produits suggérés dans le modal */
.wcpd-suggestion-item {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.wcpd-suggested-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: column;
}

.wcpd-suggested-product {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wcpd-product-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wcpd-product-details h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.wcpd-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.wcpd-discover-button,
.wcpd-add-to-cart {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.wcpd-discover-button {
    background: #f0f0f0;
    color: #333;
}

.wcpd-discover-button:hover {
    background: #e0e0e0;
}

.wcpd-add-to-cart {
    background: #22aa22;
    color: white;
}

.wcpd-add-to-cart:hover {
    background: #1a881a;
}

.wcpd-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Assurer que le modal est scrollable sur mobile */
@media (max-width: 768px) {
    .wcpd-dialog-overlay,
    #wcpd-suggestions-dialog,
    #wcpd-suggestions-dialog-shortcode {
        padding: 10px;
    }
    
    .wcpd-dialog-content {
        width: 95%;
        max-height: 95vh;
        padding: 20px;
        margin: auto;
    }
    
    .wcpd-suggested-products {
        flex-direction: column;
    }
    
    .wcpd-suggested-product {
        min-width: 100%;
    }
}

.woocommerce-cart  #pwgc-redeem-gift-card-number{
    min-width: 300px;
}

/* Styles pour les sélecteurs de variations dans le panier */
.wcpd-variation-select option:disabled {
    color: #999;
    text-decoration: line-through;
    background-color: #f5f5f5;
}

.wcpd-no-size-message {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin: 10px 0;
}

.wcpd-no-size-message p {
    margin: 0;
    color: #856404;
    font-size: 13px;
    text-align: center;
}

/* Style pour marquer les tailles déjà dans le panier */
.wcpd-variation-select option[selected] {
    font-weight: bold;
}

/* Badge pour les produits fréquemment achetés ensemble */
.wcpd-popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FC5F49;
    color: white;
    padding: 6px 12px;
    border-radius: 0px;
    font-size: 8px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(252, 95, 73, 0.3);
}

.wcpd-badge-text {
    font-size: 8px;
    white-space: nowrap;
}

/* Bordure pour les cartes de produits fréquemment achetés ensemble */
.wcpd-suggestion-card.wcpd-frequently-bought {
    border: 2px solid #FC5F49 !important;
    box-shadow: 0 0 15px rgba(252, 95, 73, 0.15);
}

/* Position du badge sur mobile */
@media (max-width: 768px) {
    .wcpd-popular-badge {
        top: 5px;
        right: 5px;
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .wcpd-badge-text {
        font-size: 8px;
    }
}

/* ===== SYSTÈME DE SUIVI POST-ACHAT - STYLE ADAPTÉ AU THÈME ===== */

/* Container principal du suivi - style harmonisé avec le thème */
.wcpd-purchase-followup-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #e8e8e8;
}

.wcpd-purchase-followup-wrapper.c-product-grid__item--background {
    background: var(--color-bg, #fff);
}

/* Layout principal avec flexbox */
.wcpd-followup-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Section produit principal (gauche) */
.wcpd-featured-product {
    flex: 0 0 auto;
    width: 350px;
}

.wcpd-product-display {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.wcpd-product-image-link {
    flex: 0 0 120px;
    display: block;
}

.wcpd-product-image-link img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.wcpd-product-info {
    flex: 1;
}

.wcpd-product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--color-text, #333);
    line-height: 1.3;
}

.wcpd-purchase-date {
    font-size: 13px;
    color: #999;
    margin: 0 0 12px 0;
}

/* Badges d'âge style thème */
.wcpd-age-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.wcpd-age-badge.wcpd-age-new {
    background: #e8f5e9;
    color: #2e7d32;
}

.wcpd-age-badge.wcpd-age-breaking {
    background: #e3f2fd;
    color: #1565c0;
}

.wcpd-age-badge.wcpd-age-maintenance {
    background: #fff3e0;
    color: #e65100;
}

/* Section satisfaction */
.wcpd-satisfaction-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.wcpd-satisfaction-question {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--color-text, #333);
}

.wcpd-satisfaction-buttons {
    display: flex;
    gap: 10px;
}

.wcpd-satisfaction-btn {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wcpd-satisfaction-btn:hover:not(:disabled) {
    border-color: var(--color-primary, #333);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wcpd-satisfaction-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wcpd-emoji {
    font-size: 24px;
    display: block;
}

.wcpd-btn-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text, #333);
    text-transform: uppercase;
}

/* Section produits d'entretien (droite) */
.wcpd-care-products-section {
    flex: 1;
}

.wcpd-care-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--color-text, #333);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ancien style supprimé - utiliser .wcpd-care-products-row */

/* Mini produits d'entretien style thème */
.wcpd-care-product-mini {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.wcpd-care-product-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wcpd-care-thumb-wrap {
    padding: 10px;
    background: #f9f9f9;
    text-align: center;
}

.wcpd-care-thumb-wrap img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.wcpd-care-details {
    padding: 10px;
}

.wcpd-care-name {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--color-text, #333);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wcpd-care-price {
    font-size: 14px;
    font-weight: bold;
    color: var(--color-price, #333);
    margin-bottom: 10px;
}

.wcpd-care-price .woocommerce-Price-amount {
    font-size: 14px;
}

/* Bouton ajouter style thème */
.wcpd-add-care-product {
    width: 100%;
    padding: 8px;
    background: var(--color-primary, #333);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wcpd-add-care-product:hover:not(:disabled) {
    background: var(--color-primary-hover, #000);
    transform: translateY(-1px);
}

.wcpd-add-care-product:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wcpd-add-care-product.added {
    background: #4CAF50;
}

.wcpd-add-care-product i {
    font-size: 14px;
}

/* Bouton fermer discret */
.wcpd-dismiss-followup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #999;
    padding: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wcpd-dismiss-followup:hover {
    background: #f0f0f0;
    color: #333;
}

/* Message de remerciement */
.wcpd-thank-you {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 992px) {
    .wcpd-followup-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .wcpd-featured-product {
        width: 100%;
    }
    
    /* Ancien style supprimé */
}

@media (max-width: 768px) {
    .wcpd-purchase-followup-wrapper {
        padding: 20px;
    }
    
    .wcpd-product-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .wcpd-product-image-link {
        flex: 0 0 auto;
    }
    
    .wcpd-satisfaction-buttons {
        flex-direction: row;
    }
    
    /* Ancien style supprimé */
    
    .wcpd-care-thumb-wrap img {
        width: 60px;
        height: 60px;
    }
}

/* ===== PAGE D'HISTORIQUE DES ACHATS - SYSTÈME SLIDER ===== */

.wcpd-purchase-history-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wcpd-purchase-history-wrapper h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--color-text, #333);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container du slider */
.wcpd-purchases-slider {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Container des slides */
.wcpd-slides-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Slides individuels */
.wcpd-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wcpd-slide.active {
    display: block;
    opacity: 1;
}

/* Layout d'un produit unique */
.wcpd-purchase-single {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Section image (gauche) */
.wcpd-purchase-image-section {
    flex: 0 0 400px;
    text-align: center;
}

.wcpd-purchase-image-section img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

/* Section infos (droite) */
.wcpd-purchase-info-section {
    flex: 1;
    padding-left: 20px;
}

.wcpd-purchase-header h3 {
    font-size: 22px;
    margin: 0 10px 0 0;
    color: var(--color-text, #333);
    font-weight: 600;
    display: inline-block;
}

.wcpd-title-with-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.wcpd-product-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wcpd-product-title-link:hover {
    color: var(--color-primary, #0073aa);
    text-decoration: underline;
}

/* Badge d'âge à côté du titre */
.wcpd-age-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wcpd-age-new {
    background: #e3f2fd;
    color: #1976d2;
}

.wcpd-age-breaking {
    background: #e8f5e9;
    color: #388e3c;
}

.wcpd-age-maintenance {
    background: #fff3e0;
    color: #e65100;
}

.wcpd-purchase-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Badges d'âge */
.wcpd-age-new,
.wcpd-age-breaking,
.wcpd-age-maintenance {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    float: right;
}

.wcpd-age-new {
    background: #e8f5e9;
    color: #2e7d32;
}

.wcpd-age-breaking {
    background: #e3f2fd;
    color: #1565c0;
}

.wcpd-age-maintenance {
    background: #fff3e0;
    color: #e65100;
}

/* Section produits d'entretien - NOUVEAU STYLE SIMPLIFIÉ */
.wcpd-care-products-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.wcpd-care-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0 0 15px 0;
}

/* Container VERTICAL pour les produits */
.wcpd-care-products-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

/* Item de produit d'entretien - affichage en ligne dans chaque item */
.wcpd-care-products-row .wcpd-care-product-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
}

.wcpd-care-products-row .wcpd-care-product-image {
    flex: 0 0 auto;
    margin: 0;
}

.wcpd-care-products-row .wcpd-care-product-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.wcpd-care-products-row .wcpd-care-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wcpd-care-products-row .wcpd-care-product-name {
    display: block;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 5px;
}

.wcpd-care-products-row .wcpd-care-product-name:hover {
    color: #0073aa;
}

.wcpd-care-products-row .wcpd-care-product-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
}

.wcpd-care-products-row .wcpd-care-product-price {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: right;
}

.wcpd-care-products-row .wcpd-add-care-to-cart {
    padding: 6px 12px;
    font-size: 12px;
    background: #090909;
    color: white !important;
    border: 1px solid var(--color-primary, #333);
    border-radius: 0;
    cursor: pointer;
    align-self: flex-end;
    white-space: nowrap;
}

/* Legacy styles for backward compatibility */
.wcpd-care-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wcpd-care-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wcpd-care-item:last-child {
    border-bottom: none;
}

.wcpd-care-link {
    color: var(--color-text, #333);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wcpd-care-link:hover {
    color: var(--color-primary, #000);
}

.wcpd-care-price {
    font-weight: bold;
    color: var(--color-price, #333);
}

.wcpd-care-price .woocommerce-Price-amount {
    font-size: 14px;
}

/* Actions d'achat */
.wcpd-purchase-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
}

.wcpd-buy-again,
.wcpd-rate-purchase {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

.wcpd-buy-again {
    background: var(--color-primary, #333);
    color: white !important;
    border: 1px solid var(--color-primary, #333);
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
    margin: 10px auto;
    text-align: center;
}

.wcpd-buy-again:hover {
    background: var(--color-primary-hover, #000);
    transform: translateY(-2px);
    color: white !important;
}

.wcpd-rate-purchase {
    background-color: white;
    color: var(--color-text, #333) !important;
    border: 1px solid #d0d0d0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 0px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.wcpd-rate-purchase:hover {
    border-color: var(--color-primary, #333);
    background: #22aa22;
}

/* Navigation du slider */
.wcpd-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--color-text, #333);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wcpd-nav-prev {
    left: 20px;
}

.wcpd-nav-next {
    right: 20px;
}

.wcpd-slider-nav:hover {
    background: var(--color-primary, #333);
    color: white;
    border-color: var(--color-primary, #333);
}

.wcpd-slider-nav svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Dots de pagination */
.wcpd-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.wcpd-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcpd-dot.active {
    background: var(--color-primary, #333);
    width: 30px;
    border-radius: 5px;
}

.wcpd-dot:hover:not(.active) {
    background: #999;
}

/* Responsive pour le slider */
@media (max-width: 992px) {
    .wcpd-purchase-single {
        flex-direction: column;
        gap: 30px;
    }
    
    .wcpd-purchase-image-section {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .wcpd-purchase-info-section {
        padding-left: 0;
    }
    
    .wcpd-slider-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .wcpd-purchases-slider {
        padding: 10px;
    }
    
    /* Care products row responsive */
    .wcpd-care-products-row {
        gap: 10px;
    }
    
    .wcpd-care-product-item {
        padding: 8px;
        min-width: 120px;
        max-width: 150px;
    }
    
    .wcpd-care-product-image img {
        max-width: 80px;
    }
    
    .wcpd-care-product-name {
        font-size: 12px;
    }
    
    .wcpd-care-product-desc {
        font-size: 10px;
    }
    
    .wcpd-care-product-price {
        font-size: 12px;
    }
    
    .wcpd-purchase-header h3 {
        font-size: 18px;
    }
    
    .wcpd-purchase-actions {
        flex-direction: column;
    }
    
    .wcpd-slides-container {
        min-height: auto;
    }
}

.wcpd-mini-care-item a {
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
}

.wcpd-mini-care-item a:hover {
    text-decoration: underline;
}

.wcpd-care-price {
    font-weight: bold;
    color: #22aa22;
}

/* Actions d'achat */
.wcpd-purchase-actions {
    display: flex;
    gap: 10px;
}

.wcpd-buy-again,
.wcpd-rate-purchase {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.wcpd-buy-again {
    background: #22aa22;
    color: white;
    text-decoration: none;
    border: none;
}

.wcpd-buy-again:hover {
    background: #1a881a;
}

.wcpd-rate-purchase {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.wcpd-rate-purchase:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

/* Popup de notation */
.wcpd-rating-popup {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wcpd-rating-popup p {
    margin-bottom: 10px;
    font-weight: 600;
}

.wcpd-rate {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcpd-rate:hover {
    background: #22aa22;
    color: white;
}

.wcpd-rated {
    color: #22aa22;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .wcpd-purchase-followup-wrapper {
        padding: 20px;
    }
    
    .wcpd-satisfaction-buttons {
        flex-direction: column;
    }
    
    .wcpd-satisfaction-btn {
        width: 100%;
    }
    
    /* Ancien style supprimé */
    
    .wcpd-followup-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .wcpd-purchases-grid {
        grid-template-columns: 1fr;
    }
    
    .wcpd-purchase-actions {
        flex-direction: column;
    }
}

/* Info icon dans le badge de rabais */
.wcpd-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    vertical-align: middle;
    cursor: pointer;
    fill: white;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.wcpd-info-icon:hover {
    opacity: 1;
}

/* S'assurer que l'icône est bien visible dans le badge */
.wcpd-discount-badge .wcpd-info-icon {
    color: white;
    fill: white;
}

/* Tooltip */
.wcpd-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: pre-line;
    min-width: 250px;
    max-width: 300px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Flèche du tooltip */
.wcpd-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

/* Activation du tooltip au survol (desktop) */
.wcpd-discount-badge:hover .wcpd-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Sur mobile, on cache le tooltip par défaut et on le montre via JS */
@media (max-width: 768px) {
    .wcpd-tooltip {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        color: #333;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        border: 1px solid #ddd;
        min-width: 280px;
        padding: 20px;
        font-size: 14px;
    }
    
    .wcpd-tooltip::after {
        display: none;
    }
    
    .wcpd-tooltip.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Bouton fermer pour mobile */
    .wcpd-tooltip-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        background: #f0f0f0;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        line-height: 1;
        color: #666;
    }
    
    .wcpd-tooltip-close:hover {
        background: #e0e0e0;
    }
    
    /* Overlay pour mobile */
    .wcpd-tooltip-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .wcpd-tooltip-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}