/**
 * Styles front-end pour Woo GroupBuy
 * (Hors dashboard - voir dashboard-styles.php pour les styles du dashboard)
 */

/* ==================== VARIABLES ==================== */
:root {
    --wgb-primary: #F0B9F0;
    --wgb-secondary: #F2E2D0;
    --wgb-background: #142451;
    --wgb-success: #4CAF50;
    --wgb-danger: #f44336;
    --wgb-warning: #ffc107;
    --wgb-info: #17a2b8;
    --wgb-border: rgba(240, 185, 240, 0.3);
}

/* ==================== CONTENEURS GÉNÉRAUX ==================== */
.wgb-group-form-wrapper,
.wgb-join-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wgb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== FORMULAIRES ==================== */
.wgb-form {
    background: transparent;
    padding: 30px;
    border-radius: 8px;
}

.wgb-form-group {
    margin-bottom: 20px;
}

.wgb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Decoy', cursive;
    font-weight: medium;
    color: var(--wgb-secondary);
    font-size: 17px;
}

.wgb-form-group input[type="text"],
.wgb-form-group input[type="email"],
.wgb-form-group input[type="datetime-local"],
.wgb-form-group input[type="number"],
.wgb-form-group select,
.wgb-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid var(--wgb-secondary);
    border-radius: 4px;
    color: var(--wgb-primary);
    font-size: 16px;
    font-family: 'hoss-sharp', sans-serif;
    transition: border-color 0.3s;
}

.wgb-form-group input:focus,
.wgb-form-group select:focus,
.wgb-form-group textarea:focus {
    outline: none;
    border-color: var(--wgb-primary);
}

.wgb-form-group input::placeholder {
    color: rgba(242, 226, 208, 0.5);
}

.wgb-form-group small {
    display: block;
    margin-top: 5px;
    color: rgba(242, 226, 208, 0.7);
    font-size: 13px;
    font-family: 'hoss-sharp', sans-serif;
}

/* ==================== EMAILS CONTAINER ==================== */
#wgb-emails-container {
    margin-bottom: 10px;
}

.wgb-email-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.wgb-email-row input {
    flex: 1;
}

.wgb-remove-email {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    color: var(--wgb-danger);
    border: 1px solid var(--wgb-danger);
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.wgb-remove-email:hover:not(:disabled) {
    background: var(--wgb-danger);
    color: white;
}

.wgb-remove-email:disabled {
    border-color: rgba(242, 226, 208, 0.3);
    color: rgba(242, 226, 208, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ==================== MESSAGES ==================== */
.wgb-success,
.wgb-error,
.wgb-notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'hoss-sharp', sans-serif;
}

.wgb-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--wgb-success);
    border: 1px solid var(--wgb-success);
}

.wgb-error {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
    border: 1px solid var(--wgb-danger);
}

.wgb-notice {
    background: rgba(23, 162, 184, 0.2);
    color: var(--wgb-info);
    border: 1px solid var(--wgb-info);
}

/* ==================== INFO DE GROUPE ==================== */
.wgb-group-info {
    background: rgba(240, 185, 240, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--wgb-border);
}

.wgb-group-info p {
    margin: 10px 0;
    color: var(--wgb-secondary);
    font-family: 'hoss-sharp', sans-serif;
}

/* ==================== WELCOME SECTION ==================== */
.wgb-welcome {
    background: rgba(240, 185, 240, 0.05);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--wgb-border);
}

.wgb-welcome h2 {
    font-family: 'Decoy', cursive;
    color: var(--wgb-primary);
    font-size: 32px;
    margin-bottom: 20px;
}

.wgb-welcome p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--wgb-secondary);
    font-family: 'hoss-sharp', sans-serif;
}

/* ==================== ANIMATIONS MORPHING ==================== */

/* Conteneurs en morphing */
.wgb-morphing-out {
    position: relative;
    overflow: hidden;
}

.wgb-morphing-in {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
}

/* Animation du titre qui change */
.wgb-morph-fade-out {
    animation: morphFadeOut 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.wgb-morph-fade-in {
    animation: morphFadeIn 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes morphFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        filter: blur(5px);
    }
}

@keyframes morphFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Animation des sections qui se rétractent */
.wgb-morph-shrink {
    animation: morphShrink 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes morphShrink {
    0% {
        opacity: 1;
        max-height: 1000px;
        transform: scaleY(1);
        transform-origin: top;
        margin-bottom: 40px;
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: scaleY(0);
        margin-bottom: 0;
        padding-top: 0;
    }
}

/* Animation des sections qui se déploient */
.wgb-morph-expand {
    animation: morphExpand 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes morphExpand {
    0% {
        opacity: 0;
        max-height: 0;
        transform: scaleY(0);
        transform-origin: top;
        margin-bottom: 0;
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
    100% {
        opacity: 1;
        max-height: 1000px;
        transform: scaleY(1);
        margin-bottom: 40px;
    }
}

/* Animation des champs qui se transforment */
.wgb-form-group {
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.wgb-morphing-out .wgb-form-group {
    animation: fieldMorphOut 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.wgb-morphing-in .wgb-form-group {
    animation: fieldMorphIn 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes fieldMorphOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
}

@keyframes fieldMorphIn {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Animation du bouton qui se transforme */
.wgb-morphing-out .wgb-btn-submit {
    animation: buttonMorph 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes buttonMorph {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotateZ(5deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) rotateZ(10deg);
    }
}

/* Effet de particules (optionnel mais impressionnant) */
.wgb-morphing-out::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(240, 185, 240, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particlesFade 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes particlesFade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* ==================== AMÉLIORATION DE LA FLUIDITÉ ==================== */
.wgb-registration-modal,
.wgb-creation-modal {
    will-change: transform, opacity;
}

.wgb-form-section {
    will-change: transform, opacity, max-height;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .wgb-container,
    .wgb-group-form-wrapper,
    .wgb-join-page {
        padding: 10px;
    }
    
    .wgb-form {
        padding: 20px;
    }
    
    .wgb-email-row {
        flex-direction: column;
    }
    
    .wgb-remove-email {
        width: 100%;
    }
    
    /* Animations simplifiées sur mobile */
    @keyframes morphShrink {
        0% {
            opacity: 1;
            transform: translateY(0);
        }
        100% {
            opacity: 0;
            transform: translateY(-20px);
            max-height: 0;
        }
    }
    
    @keyframes morphExpand {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ==================== LOADING OVERLAY ==================== */
.wgb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 36, 81, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wgb-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wgb-loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

/* Spinner animé */
.wgb-loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    position: relative;
}

.wgb-loading-spinner::before,
.wgb-loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.wgb-loading-spinner::before {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(240, 185, 240, 0.2);
    border-top-color: var(--wgb-primary);
    animation: wgb-spin 1s linear infinite;
}

.wgb-loading-spinner::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 4px solid rgba(242, 226, 208, 0.2);
    border-bottom-color: var(--wgb-secondary);
    animation: wgb-spin 0.8s linear infinite reverse;
}

@keyframes wgb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message de chargement */
.wgb-loading-message {
    font-family: 'Decoy', cursive;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--wgb-secondary);
    margin-bottom: 25px;
    min-height: 2em;
    transition: opacity 0.3s ease;
}

.wgb-loading-message.changing {
    opacity: 0;
}

/* Progress bar */
.wgb-loading-progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    height: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wgb-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--wgb-primary), #f5d0f5, var(--wgb-primary));
    background-size: 200% 100%;
    border-radius: 30px;
    width: 0%;
    transition: width 0.4s ease;
    animation: wgb-progress-shimmer 2s linear infinite;
}

@keyframes wgb-progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pourcentage */
.wgb-loading-percentage {
    font-family: 'Decoy', cursive;
    font-size: 1rem;
    color: var(--wgb-primary);
    margin-top: 15px;
    opacity: 0.9;
}

/* Petit texte d'info en bas */
.wgb-loading-subtext {
    font-size: 0.85rem;
    color: rgba(242, 226, 208, 0.6);
    margin-top: 20px;
    font-style: italic;
}

/* Animation d'entrée du contenu */
.wgb-loading-overlay.active .wgb-loading-content {
    animation: wgb-loading-appear 0.4s ease forwards;
}

@keyframes wgb-loading-appear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animation de sortie */
.wgb-loading-overlay.closing {
    opacity: 0;
}

.wgb-loading-overlay.closing .wgb-loading-content {
    animation: wgb-loading-disappear 0.3s ease forwards;
}

@keyframes wgb-loading-disappear {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.05) translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .wgb-loading-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .wgb-loading-spinner {
        width: 50px;
        height: 50px;
    }

    .wgb-loading-message {
        font-size: 1.2rem;
    }
}

/* ==================== BOUTON RETIRER PARTICIPANT ==================== */
.wgb-btn-remove-participant {
    display: inline-flex!important;
    align-items: center!important;
    justify-content: center!important;
    gap: 6px!important;
    width: 100%!important;
    padding: 10px 16px!important;
    background: linear-gradient(135deg, #EB0101 0%, #c40000 100%)!important;
    color: #fff !important;
    font-family: 'hoss-sharp', sans-serif!important;
    font-size: 13px!important;
    font-weight: 600!important;
    text-decoration: none!important;
    border: none!important;
    border-radius: 6px!important;
    cursor: pointer!important;
    transition: all 0.3s ease!important;
    box-shadow: 0 2px 8px rgba(235, 1, 1, 0.2)!important;
    margin-left: 0!important;
}

.wgb-btn-remove-participant:hover {
    background: linear-gradient(135deg, #c40000 0%, #a00000 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 1, 1, 0.4);
}

.wgb-btn-remove-participant:active {
    transform: translateY(0);
}

.wgb-btn-remove-participant:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wgb-participant-proxy-action {
    display: flex!important;
    flex-wrap: wrap!important;
    gap: 8px!important;
    margin-top: 10px!important;
}

/* ==================== BOUTON FORCER PAIEMENTS ==================== */
.wgb-finalization-force-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.wgb-force-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.wgb-force-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.wgb-btn-force-payments {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

.wgb-btn-force-payments:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.wgb-btn-force-payments:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wgb-btn-force-payments .wgb-btn-icon {
    display: flex;
    align-items: center;
}

.wgb-btn-force-payments .wgb-btn-icon svg {
    stroke: white;
}

/* ==================== PAGE ORDER-RECEIVED - ADRESSES ==================== */

/* Section principale */
section.woocommerce-customer-details {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 40px !important;
}

/* Conteneur col2-set - CSS GRID pour forcer côte à côte */
.woocommerce-customer-details .col2-set,
.woocommerce-customer-details .woocommerce-columns--addresses,
.woocommerce-customer-details > section,
section.woocommerce-customer-details section.col2-set,
section.woocommerce-customer-details section.addresses,
.woocommerce-columns--2.col2-set.addresses,
section.woocommerce-columns.woocommerce-columns--2.woocommerce-columns--addresses.col2-set.addresses {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
}
.woocommerce-column--shipping-address h2{
    font-family: 'hoss-sharp'!important;
}
/* Chaque colonne d'adresse occupe 50% - FORCÉ */
.woocommerce-customer-details .col2-set .col-1,
.woocommerce-customer-details .col2-set .col-2,
.woocommerce-customer-details .col2-set > div,
.woocommerce-customer-details section > div.woocommerce-column,
.woocommerce-customer-details section > .col-1,
.woocommerce-customer-details section > .col-2,
section.woocommerce-customer-details section.col2-set > div,
.col2-set.addresses .woocommerce-column--billing-address,
.col2-set.addresses .woocommerce-column--shipping-address,
.woocommerce-columns--addresses .woocommerce-column,
section.col2-set.addresses > div.woocommerce-column,
section.col2-set.addresses > div.col-1,
section.col2-set.addresses > div.col-2 {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 4px 20px rgba(20, 36, 81, 0.08) !important;
    border: 1px solid rgba(20, 36, 81, 0.08) !important;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
    display: block !important;
}

/* Titres des adresses - Decoy font comme le reste du site */
.woocommerce-customer-details h2.woocommerce-column__title,
.col2-set .woocommerce-column__title,
.woocommerce-column--billing-address h2,
.woocommerce-column--shipping-address h2 {
    font-family: 'Decoy', cursive !important;
    font-size: 22px !important;
    color: #142451 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #F0B9F0 !important;
    font-weight: normal !important;
}

/* Contenu des adresses */
.woocommerce-customer-details address {
    font-style: normal !important;
    color: #142451 !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
    padding: 15px !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    border-left: 3px solid #F0B9F0 !important;
}

.woocommerce-customer-details address p {
    margin: 5px 0 !important;
}

/* Téléphone et email */
.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email {
    display: block !important;
    margin-top: 10px !important;
    padding: 8px 12px !important;
    background: rgba(240, 185, 240, 0.1) !important;
    border-radius: 6px !important;
    color: #142451 !important;
}

/* Page order-received - Style général */
.woocommerce-order-received .woocommerce-order {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Message de confirmation */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-left: 4px solid #4CAF50;
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    color: #142451;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Détails de la commande */
.woocommerce-order-received .woocommerce-order-details {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(20, 36, 81, 0.08);
    margin-bottom: 30px;
}

.woocommerce-order-received .woocommerce-order-details__title {
    font-family: 'Decoy', cursive !important;
    font-size: 24px;
    color: #142451;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #F0B9F0;
}

/* Tableau des produits */
.woocommerce-order-received .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(20, 36, 81, 0.1);
    color: #142451;
}

.woocommerce-order-received .woocommerce-table--order-details thead th {
    background: rgba(240, 185, 240, 0.15);
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th {
    background: transparent;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 18px;
    font-weight: bold;
    color: #142451;
    background: rgba(240, 185, 240, 0.1);
}

/* Responsive */
@media (max-width: 700px) {
    .woocommerce-customer-details .col2-set,
    .woocommerce-customer-details .woocommerce-columns--addresses,
    .woocommerce-customer-details > section,
    section.woocommerce-customer-details section.col2-set,
    .woocommerce-columns--2.col2-set.addresses {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-customer-details .col2-set .col-1,
    .woocommerce-customer-details .col2-set .col-2,
    .woocommerce-customer-details .col2-set > div,
    .woocommerce-customer-details section > div.woocommerce-column,
    .col2-set.addresses .woocommerce-column--billing-address,
    .col2-set.addresses .woocommerce-column--shipping-address,
    .woocommerce-columns--addresses .woocommerce-column {
        max-width: 100% !important;
        width: 100% !important;
    }

    .woocommerce-order-received .woocommerce-order-details {
        padding: 20px 15px;
    }

    .woocommerce-order-received .woocommerce-table--order-details th,
    .woocommerce-order-received .woocommerce-table--order-details td {
        padding: 10px 8px;
        font-size: 14px;
    }
}

/* ==================== CRÉNEAUX DE LIVRAISON (COMMANDES GROUPÉES) ==================== */

.wgb-delivery-section {
    margin-top: 25px;
    padding: 25px;
    background: rgba(242, 226, 208, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(240, 185, 240, 0.3);
}

.wgb-delivery-section h5 {
    display: flex;
    align-items: center;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--wgb-secondary);
}

.wgb-delivery-section h5 svg {
    color: #F0B9F0;
}

.wgb-delivery-desc {
    margin: 0 0 20px 0;
    color: var(--wgb-secondary);
    font-size: 14px;
    opacity: 0.85;
}

/* Grille des créneaux */
.wgb-delivery-slots-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

/* Chaque option de créneau */
.wgb-delivery-slot-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(242, 226, 208, 0.1);
    border: 2px solid rgba(242, 226, 208, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wgb-delivery-slot-option:hover {
    border-color: #F0B9F0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 185, 240, 0.2);
}

.wgb-delivery-slot-option.selected,
.wgb-delivery-slot-option:has(input:checked) {
    border-color: var(--wgb-secondary);
    background: rgba(242, 226, 208, 0.15);
    box-shadow: 0 4px 15px rgba(242, 226, 208, 0.1);
}

.wgb-delivery-slot-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Contenu du créneau */
.wgb-slot-option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wgb-slot-option-day {
    font-size: 11px;
    font-weight: 600;
    color: #F0B9F0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wgb-slot-option-date {
    font-size: 15px;
    font-weight: 700;
    color: var(--wgb-secondary);
}

.wgb-slot-option-cutoff {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: rgba(242, 226, 208, 0.7);
    margin-top: 3px;
}

.wgb-slot-option-cutoff svg {
    flex-shrink: 0;
}

/* Icône de sélection */
.wgb-slot-option-check {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(242, 226, 208, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wgb-delivery-slot-option.selected .wgb-slot-option-check,
.wgb-delivery-slot-option:has(input:checked) .wgb-slot-option-check {
    background: var(--wgb-secondary);
    border-color: var(--wgb-secondary);
    color: var(--wgb-background);
}

/* Note d'info */
.wgb-delivery-info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0 0 0;
    padding: 10px 14px;
    background: rgba(240, 185, 240, 0.15);
    border-radius: 8px;
    font-size: 12px;
    color: var(--wgb-secondary);
}

.wgb-delivery-info-note svg {
    flex-shrink: 0;
    color: #F0B9F0;
}

/* Avertissement pas de créneaux */
.wgb-no-slots-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    background: #FDF5F5;
    border: 2px solid #F0B9F0;
    border-radius: 10px;
    color: #142451;
    font-size: 14px;
}

.wgb-no-slots-warning svg {
    flex-shrink: 0;
    color: #F0B9F0;
}

/* Input date fallback */
.wgb-delivery-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid #F2E2D0;
    border-radius: 8px;
    font-size: 15px;
    color: #142451;
    background: #fff;
    transition: border-color 0.2s ease;
}

.wgb-delivery-input:focus {
    outline: none;
    border-color: #F0B9F0;
}

/* Responsive créneaux groupés */
@media (max-width: 480px) {
    .wgb-delivery-slots-group {
        grid-template-columns: 1fr;
    }

    .wgb-delivery-slot-option {
        padding: 14px 15px;
    }

    .wgb-delivery-section {
        padding: 20px 15px;
    }
}