/* BookingVO - Frontend Styles */

/* Tooltip de prévisualisation */
.bookingvo-event-tooltip {
    position: fixed;
    z-index: 999999;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    pointer-events: none;
    max-width: 175px;
    min-width: 175px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bookingvo-event-tooltip.show {
    opacity: 1; /* Sera surchargé par JS pour les événements passés */
    transform: translateY(0);
}

.bookingvo-event-tooltip.show.is-past-tooltip {
    opacity: 0.65 !important;
}

.bookingvo-tooltip-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}

.bookingvo-tooltip-title {
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.4;
}

.bookingvo-calendar-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    position: relative;
}

.bookingvo-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.bookingvo-calendar-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.bookingvo-calendar-nav {
    display: flex;
    gap: 10px;
}

.bookingvo-calendar-prev,
.bookingvo-calendar-next {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 24px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bookingvo-calendar-prev:hover,
.bookingvo-calendar-next:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.bookingvo-calendar-grid {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.bookingvo-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-weekday {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
}

.bookingvo-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #fff;
}

.bookingvo-calendar-day {
    min-height: 100px;
    min-width: 0;
    padding: 4px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bookingvo-calendar-day:nth-child(7n) {
    border-right: none;
}

.bookingvo-calendar-day.bookingvo-day-empty {
    background: #f9fafb;
    cursor: default;
}

.bookingvo-calendar-day.bookingvo-past {
    color: #d1d5db;
    cursor: default;
}

.bookingvo-calendar-day:not(.bookingvo-day-empty):not(.bookingvo-past):hover {
    background: #f9fafb;
}

.bookingvo-calendar-day.bookingvo-selected {
    background: #e5e7eb !important;
}

.bookingvo-calendar-day.bookingvo-selected .bookingvo-day-number {
    color: #1f2937;
    font-weight: 700;
}

.bookingvo-calendar-day.bookingvo-today .bookingvo-day-number {
    background: #1f2937;
    color: #fff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookingvo-day-number {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    padding: 4px 6px;
    align-self: flex-end;
}

.bookingvo-calendar-day.bookingvo-has-sessions {
    background: #fafafa;
}

/* Événements dans le calendrier */
.bookingvo-day-events {
    width: 100%;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bookingvo-day-event {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Événement qui commence (premier jour) */
.bookingvo-event-start {
    border-radius: 3px 0 0 3px;
    padding-right: 2px;
}

/* Événement qui continue (jours intermédiaires) */
.bookingvo-event-continue {
    border-radius: 0;
    padding-left: 2px;
    padding-right: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* Événement qui se termine (dernier jour) */
.bookingvo-event-end {
    border-radius: 0 3px 3px 0;
    padding-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.bookingvo-day-event:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.bookingvo-day-event.is-past {
    background: #cacaca !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.bookingvo-day-event.is-past:hover {
    transform: none;
    filter: none;
}

.bookingvo-event-time {
    font-weight: 700;
    font-size: 10px;
}

.bookingvo-event-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookingvo-day-event-more {
    padding: 2px 6px;
    font-size: 10px;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.bookingvo-day-event-more:hover {
    color: #1f2937;
}

/* Liste des sessions du jour - Non utilisée, masquée */
.bookingvo-day-sessions {
    display: none !important;
}

.bookingvo-day-sessions-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.bookingvo-day-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bookingvo-session-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bookingvo-session-info {
    flex: 1;
}

.bookingvo-session-info h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.bookingvo-session-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #6b7280;
}

.bookingvo-session-info .bookingvo-session-price {
    font-weight: 700;
    font-size: 18px;
    color: #059669;
}

.bookingvo-session {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.bookingvo-session:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bookingvo-session-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1f2937;
}

.bookingvo-session-time {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.bookingvo-session-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-session-price {
    font-weight: bold;
    font-size: 18px;
    color: #059669;
}

.bookingvo-session-remaining {
    font-size: 14px;
    color: #6b7280;
}

.bookingvo-reserve-btn {
    width: 100%;
    padding: 12px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.bookingvo-reserve-btn:hover:not(:disabled) {
    background: #2563EB;
}

.bookingvo-reserve-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Modale */
.bookingvo-modal,
#bookingvo-booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    max-width: none !important;
}

.bookingvo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.bookingvo-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.bookingvo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1f2937;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.bookingvo-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

/* En-tête de la modale avec image */
.bookingvo-modal-header {
    position: relative;
    height: 0;
    background: #cacaca;
    overflow: hidden;
    transition: height 0.4s ease;
}

.bookingvo-modal-header.loaded {
    height: 200px;
}

.bookingvo-modal-header.collapsed {
    height: 0 !important;
}

.bookingvo-modal-header-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bookingvo-modal-header.loaded .bookingvo-modal-header-image {
    opacity: 1;
    transform: scale(1);
}

/* Corps de la modale */
.bookingvo-modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
    -webkit-overflow-scrolling: touch; /* Scroll fluide sur iOS */
    position: relative;
    scroll-behavior: smooth;
}

/* Ajuster la hauteur quand l'image est masquée */
.bookingvo-modal-header.collapsed + .bookingvo-modal-body {
    max-height: calc(90vh - 12px); /* Seulement la bordure colorée */
}

/* Amélioration du scroll : sections distinctes */
.bookingvo-modal-body .bookingvo-session-info-box {
    scroll-margin-top: 20px;
}

.bookingvo-modal-body #bookingvo-booking-form {
    scroll-margin-top: 20px;
}

/* Calendrier d'occurrences : section sticky optionnelle */
.bookingvo-occurrence-calendar-wrapper {
    position: relative;
    min-height: 400px !important;
    height: auto;
}
#bookingvo-calendar-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    background: #fff url('../images/calendar-placeholder.png') center center no-repeat;
    background-size: contain;
    z-index: 10;
    overflow: hidden;
}

/* Effet de balayage animé sur le placeholder */
#bookingvo-calendar-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
.bookingvo-calendar-loading-active #bookingvo-occurrence-calendar-header,
.bookingvo-calendar-loading-active #bookingvo-occurrence-calendar {
    opacity: 0;
    pointer-events: none;
}
#bookingvo-occurrence-calendar-wrapper.bookingvo-calendar-loading-active #bookingvo-calendar-loading {
    display: flex !important;
}
.bookingvo-day-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
    pointer-events: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bookingvo-skeleton-header,
.bookingvo-skeleton-cell {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 12px;
}
.bookingvo-skeleton-header { height: 48px; }
.bookingvo-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}
.bookingvo-skeleton-cell { height: 48px; }

@keyframes bookingvo-skeleton-wave {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
.bookingvo-skeleton-header::after,
.bookingvo-skeleton-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.6), rgba(255,255,255,0));
    animation: bookingvo-skeleton-wave 1.4s infinite ease-in-out;
}


.bookingvo-session-info-box p,
.bookingvo-session-info-box p a {
    display: block !important;
    column-count: 1 !important;
    columns: 1 !important;
}

/* Boîte d'informations de la session */
.bookingvo-session-info-box {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.bookingvo-session-date-wrapper {
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.bookingvo-session-date-wrapper .bookingvo-session-date {
    margin: 0;
}

/* Message "Complet" */
.bookingvo-full-notice {
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.bookingvo-session-info-box h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.bookingvo-event-description {
    color: #000;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.bookingvo-event-description p {
    margin: 0 0 10px 0;
}

.bookingvo-event-description p:last-child {
    margin-bottom: 0;
}

.bookingvo-session-info-box p {
    margin: 6px 0;
    font-size: 14px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge de capacité */
.bookingvo-capacity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.bookingvo-session-info-box .dashicons {
    color: #667eea;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Formulaire */
/* Masquer les champs du formulaire par défaut pour les ateliers avec occurrences */
/* (affichés par JS uniquement quand tous les créneaux sont sélectionnés) */
.bookingvo-modal-body.has-occurrences #bookingvo-form-fields-container .bookingvo-form-row,
.bookingvo-modal-body.has-occurrences #bookingvo-form-fields-container .bookingvo-qty-price-row,
.bookingvo-modal-body.has-occurrences #bookingvo-form-fields-container .bookingvo-gdpr-group,
.bookingvo-modal-body.has-occurrences #bookingvo-form-fields-container .bookingvo-newsletter-group,
.bookingvo-modal-body.has-occurrences #bookingvo-form-fields-container .bookingvo-form-actions {
    display: none;
}

.bookingvo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.bookingvo-form-group {
    margin-bottom: 15px;
}

.bookingvo-form-row .bookingvo-form-group {
    margin-bottom: 0;
}

.bookingvo-form-group input[type="text"],
.bookingvo-form-group input[type="email"],
.bookingvo-form-group input[type="tel"],
.bookingvo-form-group input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.bookingvo-form-group input::placeholder {
    color: #9ca3af;
}

.bookingvo-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 640px) {
    /* Optimisation modale mobile - Plein écran */
    .bookingvo-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .bookingvo-modal-header.loaded {
        height: 120px;
    }
    
    .bookingvo-modal-header-image {
        min-height: 120px;
    }
    
    .bookingvo-modal-body {
        padding: 15px;
        max-height: calc(100vh - 120px);
        /* Amélioration du scroll sur mobile */
        overscroll-behavior: contain;
    }
    
    .bookingvo-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    /* Réduire les espacements */
    .bookingvo-session-info-box {
        margin-bottom: 15px;
    }
    
    .bookingvo-event-description {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    /* Formulaires */
    .bookingvo-form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .bookingvo-form-row .bookingvo-form-group {
        margin-bottom: 0;
    }
    
    /* Forcer tous les form-group en une colonne */
    .bookingvo-form-group {
        grid-column: 1 / -1 !important;
    }
    
        /* Bloc créneaux sélectionnés en une colonne sur mobile */
    .bookingvo-selected-slots-wrapper {
        display: block !important;
    }
    
    #bookingvo-selected-slots-list .slots-total {
        grid-column: 1 !important;
        border-right: none !important;
        border-bottom: 1px solid #cacaca;
        padding-right: 0 !important;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    #bookingvo-selected-slots-list .slots-items {
        grid-column: 1 !important;
        padding-left: 0 !important;
    }
}

/* Très petits écrans (iPhone SE, etc.) */
@media (max-width: 375px) {
    .bookingvo-modal-body {
        padding: 12px;
    }
    
    .bookingvo-modal-header.loaded {
        height: 100px;
    }
    
    .bookingvo-modal-header-image {
        min-height: 100px;
    }
    
    .bookingvo-modal-body {
        max-height: calc(100vh - 100px);
    }
    
    .bookingvo-form-group input,
    .bookingvo-form-group select {
        font-size: 14px;
        padding: 10px;
    }
}

.bookingvo-booking-summary {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.bookingvo-booking-summary h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #000;
}

.bookingvo-booking-summary p {
    margin: 5px 0;
    font-size: 14px;
}

/* Récapitulatif en deux colonnes */
.bookingvo-recap-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
    align-items: center;
}

.bookingvo-capacity-recap {
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 8px;
    border-right: 1px solid #e5e7eb;
}

#bookingvo-summary-capacity-inline {
    font-size: 16px;
}


/* Ligne quantité + prix */
.bookingvo-qty-price-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.bookingvo-qty-price-row .bookingvo-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Masquer pour les ateliers permanents */
.bookingvo-qty-price-row[style*="display: none"] {
    display: none !important;
}

/* Récapitulatif du prix */
.bookingvo-price-recap {
    padding: 12px;
    border-radius: 6px;
    text-align: right;
    font-size: 16px;
    color: #000;
    flex-shrink: 0;
    white-space: nowrap;
}

.bookingvo-price-recap strong {
    color: #059669;
    font-size: 20px;
    font-weight: 700;
}

/* Checkbox GDPR */
.bookingvo-gdpr-group {
    margin: 15px 0;
}

.bookingvo-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.bookingvo-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
    cursor: pointer;
}

.bookingvo-checkbox-label span {
    font-size: 12px;
    color: #000;
    line-height: 1.4;
}

/* Bouton "C'est pour offrir" */
.bookingvo-gift-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bookingvo-gift-toggle-btn:hover {
    background: #fef3c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.bookingvo-gift-toggle-btn.active {
    background: #f59e0b;
    color: #fff;
    border-color: #d97706;
}

.bookingvo-gift-toggle-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Boutons d'action */
.bookingvo-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.bookingvo-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.bookingvo-btn-cancel {
    background: #6b7280;
    color: white;
}

.bookingvo-btn-cancel:hover {
    background: #4b5563;
}

.bookingvo-btn-pay {
    background: #3b82f6;
    color: white;
}

.bookingvo-btn-pay:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bookingvo-btn-send {
    background: #10b981;
    color: white;
}

.bookingvo-btn-send:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

/* Message d'erreur */
.bookingvo-form-message {
    margin-top: 15px;
}

.bookingvo-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.bookingvo-success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.bookingvo-btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.bookingvo-form-message {
    margin-top: 15px;
}

.bookingvo-error {
    padding: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    margin-top: 10px;
}

/* Espace client */
.bookingvo-space-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bookingvo-space-wrapper h2 {
    margin-bottom: 30px;
}

.bookingvo-space-wrapper h3 {
    margin: 30px 0 15px 0;
    color: #374151;
}

/* Coordonnées utilisateur */
.bookingvo-user-info {
    background: #333;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

.bookingvo-user-info {
    position: relative;
}

.bookingvo-user-info-content {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.bookingvo-edit-info-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.bookingvo-edit-info-btn:hover {
    transform: scale(1.05);
}

.bookingvo-edit-info-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: -16px;
}

.bookingvo-user-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 15px;
}

.bookingvo-user-info-item .dashicons {
    color: white;
    font-size: 20px;
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .bookingvo-user-info-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Header des réservations */
.bookingvo-space-header {
    margin-bottom: 30px;
}

.bookingvo-space-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Section */
.bookingvo-section {
    margin-bottom: 40px;
}

.bookingvo-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.bookingvo-section-header .dashicons {
    color: #333;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.bookingvo-section-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #374151;
}

.bookingvo-badge {
    background: #333;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* Grille de cartes */
.bookingvo-bookings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Carte de réservation */
.bookingvo-booking-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.bookingvo-booking-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.bookingvo-booking-card.bookingvo-booking-highlighted {
    border: 3px solid #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: bookingvo-highlight-pulse 2s ease-in-out;
}

@keyframes bookingvo-highlight-pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(16, 185, 129, 0.5);
    }
}

.bookingvo-booking-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}

.bookingvo-booking-card-content {
    padding: 20px;
}

.bookingvo-booking-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-booking-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.bookingvo-booking-card-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.bookingvo-booking-card-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
}

.bookingvo-booking-card-info-item .dashicons {
    color: #333;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.bookingvo-booking-card-info-item strong {
    color: #1f2937;
    font-size: 16px;
}

/* Liste des créneaux réservés (espace client) */
.bookingvo-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
}

.bookingvo-slot-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
}

.bookingvo-slot-chip .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #6b7280;
}

.bookingvo-slot-chip-text {
    white-space: nowrap;
}

.bookingvo-booking-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bookingvo-btn-card {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    justify-content: center;
}

.bookingvo-btn-card .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.bookingvo-btn-card-primary {
    background: #333;
    color: white;
}

.bookingvo-btn-card-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bookingvo-btn-card-secondary {
    background: #6b7280;
    color: white;
}

.bookingvo-btn-card-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.bookingvo-btn-card-gift {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 2px solid #fbbf24;
}

.bookingvo-btn-card-gift:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.bookingvo-btn-card-danger {
    background: #ef4444;
    color: white;
}

.bookingvo-btn-card-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.bookingvo-btn-card-info {
    background: #3b82f6;
    color: white;
}

.bookingvo-btn-card-info:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bookingvo-btn-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Sessions passées */
.bookingvo-booking-card.bookingvo-booking-past {
    opacity: 0.6;
    filter: grayscale(50%);
}

.bookingvo-booking-card.bookingvo-booking-past:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bookingvo-booking-card-past-actions {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.bookingvo-btn-card-qr-only {
    background: #6b7280;
    color: white;
    width: 100%;
    justify-content: center;
}

.bookingvo-btn-card-qr-only:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.bookingvo-no-cancel {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 12px;
    padding: 8px 0;
}

.bookingvo-no-cancel .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* État vide */
.bookingvo-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.bookingvo-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin: 0 auto 20px;
}

.bookingvo-empty-state p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .bookingvo-bookings-grid {
        grid-template-columns: 1fr;
    }
    
    .bookingvo-booking-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.bookingvo-table-responsive {
    overflow-x: auto;
}

.bookingvo-bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bookingvo-bookings-table thead {
    background: #f9fafb;
}

.bookingvo-bookings-table th,
.bookingvo-bookings-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-bookings-table th {
    font-weight: 600;
    color: #374151;
}

.bookingvo-bookings-table tbody tr:hover {
    background: #f9fafb;
}

.bookingvo-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bookingvo-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.bookingvo-status-paid {
    background: #d1fae5;
    color: #065f46;
}

.bookingvo-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.bookingvo-status-refunded {
    background: #dbeafe;
    color: #1e40af;
}

.bookingvo-status-awaiting_payment {
    background: #fef3c7;
    color: #92400e;
}

.bookingvo-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.bookingvo-no-cancel {
    color: #6b7280;
    font-size: 12px;
}

.bookingvo-login-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Page de détail premium */
.bookingvo-booking-detail-premium {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.bookingvo-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.bookingvo-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bookingvo-back-btn:hover {
    background: #f3f4f6;
    transform: translateX(-4px);
}

.bookingvo-back-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bookingvo-detail-header h2 {
    flex: 1;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.bookingvo-detail-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.bookingvo-detail-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}

.bookingvo-detail-content {
    padding: 32px;
}

.bookingvo-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.bookingvo-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-detail-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bookingvo-detail-info-icon {
    width: 48px;
    height: 48px;
    background: #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bookingvo-detail-info-icon .dashicons {
    color: white;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.bookingvo-detail-info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bookingvo-detail-info-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bookingvo-detail-info-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.bookingvo-detail-price {
    font-size: 20px;
    color: #333;
}

.bookingvo-detail-description {
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.bookingvo-detail-description h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.bookingvo-detail-description p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bookingvo-detail-customer {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.bookingvo-detail-customer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-detail-customer-header .dashicons {
    color: #333;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.bookingvo-detail-customer-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.bookingvo-detail-customer-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bookingvo-detail-customer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-size: 15px;
}

.bookingvo-detail-customer-item .dashicons {
    color: #333;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bookingvo-detail-actions-premium {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.bookingvo-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bookingvo-btn-detail .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bookingvo-btn-detail-primary {
    background: #333;
    color: white;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

.bookingvo-btn-detail-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 51, 51, 0.4);
}

.bookingvo-btn-detail-secondary {
    background: #6b7280;
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.bookingvo-btn-detail-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
}

@media (max-width: 768px) {
    .bookingvo-detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .bookingvo-detail-header {
        flex-wrap: wrap;
    }
    
    .bookingvo-detail-content {
        padding: 24px;
    }
}

/* Anciens styles (compatibilité) */
.bookingvo-booking-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.bookingvo-detail-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bookingvo-detail-section h3 {
    margin-top: 0;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.bookingvo-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .bookingvo-calendar-body {
        grid-template-columns: 1fr;
    }
    
    .bookingvo-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .bookingvo-bookings-table {
        font-size: 14px;
    }
    
    .bookingvo-bookings-table thead {
        display: none;
    }
    
    .bookingvo-bookings-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
    }
    
    .bookingvo-bookings-table td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .bookingvo-bookings-table td:last-child {
        border-bottom: none;
    }
    
    .bookingvo-bookings-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #374151;
    }
    
    .bookingvo-form-actions {
        flex-direction: column;
    }
    
    .bookingvo-btn {
        width: 100%;
    }
}

/* ============================================
   SHORTCODE LISTE
   ============================================ */

.bookingvo-liste-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bookingvo-liste-item {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bookingvo-liste-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Image à gauche */
.bookingvo-liste-image {
    width: 300px;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}

/* Contenu principal */
.bookingvo-liste-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bookingvo-liste-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.bookingvo-liste-places-inline {
    font-size: 20px;
    font-weight: 600;
    margin-left: 8px;
}

.bookingvo-liste-dates {
    font-size: 14px;
    color: #000;
    font-weight: 400;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-liste-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* Bloc de droite avec prix et bouton */
.bookingvo-liste-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    gap: 20px;
    border-left: 1px solid #e5e7eb;
    min-width: 150px;
}

.bookingvo-liste-price {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    color: white;
}

.bookingvo-liste-btn {
    padding: 14px 32px;
    border: 2px solid white;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    background: transparent !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.bookingvo-liste-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.bookingvo-liste-complet {
    padding: 14px 32px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.bookingvo-no-events {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6b7280;
}

/* Responsive Liste */
@media (max-width: 1024px) {
    .bookingvo-liste-image {
        width: 250px;
        min-width: 250px;
    }
}

@media (max-width: 960px) {
    .bookingvo-liste-item {
        flex-direction: column;
    }
    
    .bookingvo-liste-image {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    
    .bookingvo-liste-content {
        padding: 20px;
    }
    
    .bookingvo-liste-actions {
        flex-direction: column;
        border-left: none;
        padding: 30px;
        gap: 24px;
    }
    
    .bookingvo-liste-price {
        font-size: 32px;
    }
    
    .bookingvo-liste-btn,
    .bookingvo-liste-complet {
        width: 100%;
        padding: 16px 32px;
    }
}

/* ============================================
   SHORTCODE GRILLE
   ============================================ */

.bookingvo-grille-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.bookingvo-grille-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.bookingvo-grille-item {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.bookingvo-grille-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.bookingvo-grille-image {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}


.bookingvo-grille-badge-full {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bookingvo-grille-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bookingvo-grille-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.bookingvo-grille-places-inline {
    font-size: 18px;
    font-weight: 600;
    margin-left: 4px;
}

.bookingvo-grille-dates {
    font-size: 14px;
    color: #000;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-grille-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bookingvo-grille-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding: 24px 20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
}

.bookingvo-grille-price {
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    line-height: 1;
    color: white;
}

.bookingvo-grille-btn {
    padding: 14px 24px;
    border: 2px solid white;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    background: transparent !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bookingvo-grille-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.bookingvo-grille-complet {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Grille */
@media (max-width: 1024px) {
    .bookingvo-grille-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .bookingvo-grille-grid {
        grid-template-columns: 1fr !important;
    }
    
    .bookingvo-grille-places-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bookingvo-grille-btn,
    .bookingvo-grille-complet {
        width: 100%;
    }
}

/* Mini-calendrier de sélection d'occurrence - Style clean et épuré */
.bookingvo-occurrence-calendar-wrapper {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin: 20px 70px;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease, padding 0.6s ease, margin 0.6s ease;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.bookingvo-occurrence-calendar-wrapper.visible,
.bookingvo-occurrence-calendar-wrapper.bookingvo-calendar-loading-active {
    max-height: 1000px;
    opacity: 1;
    padding: 24px;
    margin: 20px 70px;
}

.bookingvo-occurrence-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 24px 0;
    background: transparent;
    border-bottom: none;
}

.bookingvo-occurrence-calendar-title {
    font-weight: 600;
    font-size: 20px;
    color: #1f2937;
    text-align: center;
    flex: 1;
    letter-spacing: -0.02em;
}

.bookingvo-occurrence-calendar-prev,
.bookingvo-occurrence-calendar-next {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.bookingvo-occurrence-calendar-prev:hover,
.bookingvo-occurrence-calendar-next:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: none;
}

.bookingvo-occurrence-calendar-prev .dashicons,
.bookingvo-occurrence-calendar-next .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bookingvo-occurrence-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 0;
    background: transparent;
}

.bookingvo-occurrence-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    color: #111827;
    position: relative;
    min-height: 44px;
}

.bookingvo-occurrence-calendar-day:not(.disabled):not(.bookingvo-occurrence-calendar-day-label):hover {
    background: #f3f4f6;
}

.bookingvo-occurrence-calendar-day.selected {
    /* La couleur de fond est appliquée dynamiquement via JavaScript */
    color: white;
    font-weight: 500;
    box-shadow: none;
    transform: none;
}

.bookingvo-occurrence-calendar-day.disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    font-weight: 400;
}

.bookingvo-occurrence-calendar-day.disabled:hover {
    transform: none;
    box-shadow: none;
    background: #d1d5db;
}

.bookingvo-occurrence-calendar-day-label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    padding: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: default;
    background: transparent;
    border: none;
    aspect-ratio: auto;
    min-height: auto;
}

.bookingvo-occurrence-calendar-day-label:hover {
    background: transparent;
}

.bookingvo-occurrence-calendar-month {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    padding: 10px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 10px;
}

/* Tooltip personnalisé pour les créneaux */
#bookingvo-calendar-tooltip {
    position: fixed;
    z-index: 999999;
    background: #1f2937;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    max-width: 200px;
}

#bookingvo-calendar-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

#bookingvo-calendar-tooltip .bookingvo-tooltip-line {
    white-space: nowrap;
}

#bookingvo-calendar-tooltip .bookingvo-tooltip-line + .bookingvo-tooltip-line {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#bookingvo-calendar-tooltip .bookingvo-tooltip-line strong {
    color: #10b981;
}

/* Masquer les champs permanents pour les ateliers avec occurrences */
.bookingvo-modal-body.has-occurrences #bookingvo-permanent-fields-row {
    display: none !important;
}

/* Animation pour la liste des créneaux sélectionnés */
#bookingvo-selected-slots-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

#bookingvo-selected-slots-list.visible {
    max-height: 500px;
    opacity: 1;
}

#bookingvo-selected-slots-list img {
    height: 80px;
    margin-right: 30px;
}

#bookingvo-selected-slots-list .slots-total {
    border-top: 1px solid #cacaca;
    padding-top: 10px;
    margin-top: 10px;
}

.bookingvo-selected-slots-wrapper {
    display: block;
}

#bookingvo-selected-slots-list {
    display: contents;
}

#bookingvo-selected-slots-list .slots-total {
    grid-column: 1;
    border-top: none;
    border-right: 1px solid #cacaca;
    padding-right: 15px;
    margin-top: 0;
}

#bookingvo-selected-slots-list .slots-items {
    grid-column: 2;
    padding-left: 15px;
    padding-right: 15px;
    /* Le layout des cartes est géré par .bookingvo-selected-slots-inner */
}

/* Grille des créneaux sélectionnés (mode OU) : 2 colonnes sur desktop */
.bookingvo-selected-slots-inner {
    width: auto !important; /* Surcharger le width:100% inline */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bookingvo-single-slot-display {
    width: calc(33.333% - 10px) !important; /* 3 colonnes, avec l'espace du gap */
    box-sizing: border-box;
    font-size: 12px !important;
}

.bookingvo-gift-redeem-counter {
    font-size: 32px;
    font-weight: 700;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.limit-reached {
    font-style: normal;
    font-weight: 700;
}

/* ==========================
   Mode cadeau ("C'est pour offrir")
   ========================== */

/* Alignement bouton cadeau + quantité */
.bookingvo-gift-mode #bookingvo-gift-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

.bookingvo-gift-mode #bookingvo-qty-price-row,
.bookingvo-gift-mode .bookingvo-qty-price-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.bookingvo-gift-mode #bookingvo-qty-wrapper {
    margin: 0;
}

.bookingvo-gift-mode #bookingvo-price-recap {
    margin: 0;
}

/* Sécurité : cacher le bloc calendrier / créneaux en mode cadeau */
.bookingvo-gift-mode #bookingvo-occurrence-fields-row {
    display: none !important;
}

.bookingvo-selected-slots-wrapper .slots-total p {
    line-height: 1.2;
}

.slots-total em {
    font-style: normal;
    font-weight: 700;
}

#bookingvo-or-mode-selected-slots {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    margin-bottom: 0;
}

#bookingvo-or-mode-selected-slots.visible {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 20px;
}

/* Style flat pour le dropdown de sélection de créneau */
#bookingvo-occurrence-slot {
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

#bookingvo-occurrence-slot:hover {
    opacity: 0.9;
}

#bookingvo-occurrence-slot:focus {
    outline: none;
    opacity: 1;
}

/* Media queries pour le calendrier d'occurrences */
@media (max-width: 1200px) {
    .bookingvo-occurrence-calendar-wrapper {
        margin: 20px 60px;
    }
}

@media (max-width: 992px) {
    .bookingvo-occurrence-calendar-wrapper {
        margin: 20px 50px;
    }
}

@media (max-width: 768px) {
    .bookingvo-occurrence-calendar-wrapper {
        margin: 20px 40px;
    }
}

@media (max-width: 640px) {
    .bookingvo-occurrence-calendar-wrapper {
        padding: 16px !important;
        margin: 10px 0 !important;
    }
    
    .bookingvo-occurrence-calendar-wrapper.visible {
        padding: 16px !important;
        margin: 10px 0 !important;
    }
    
    .bookingvo-occurrence-calendar-header {
        padding: 0 0 16px 0;
    }
    
    .bookingvo-occurrence-calendar-title {
        font-size: 18px;
    }
    
    .bookingvo-occurrence-calendar-day {
        min-height: 36px;
        font-size: 14px;
    }
    
    .bookingvo-occurrence-calendar-day-label {
        font-size: 11px;
        min-height: 32px;
    }
    
    #bookingvo-occurrence-calendar {
        gap: 3px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .bookingvo-occurrence-calendar-wrapper {
        margin: 0;
        padding: 0;
    }
}

/* ========================================
   MODALE DE TICKET
   ======================================== */

.bookingvo-ticket-modal-content {
    max-width: 650px !important;
    max-height: 90vh;
    overflow: visible !important;
    border-radius: 16px !important;
}

.bookingvo-ticket-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.bookingvo-ticket-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 10px 30px;
    color: white;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.bookingvo-ticket-image {
    display: none;
}

.bookingvo-ticket-overlay {
    display: none;
}

.bookingvo-ticket-title-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.bookingvo-ticket-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white !important;
    text-shadow: none;
}

.bookingvo-ticket-id {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 600;
    color: white !important;
}

.bookingvo-ticket-body {
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    overflow-y: auto;
    flex: 1;
}

.bookingvo-ticket-qr {
    flex-shrink: 0;
}

.bookingvo-ticket-qr canvas,
.bookingvo-ticket-qr img {
    border: 4px solid #f3f4f6;
    border-radius: 12px;
    max-width: 180px;
    height: auto;
    display: block;
}

.bookingvo-ticket-info {
    flex: 1;
}

.bookingvo-ticket-info-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-ticket-info-row:last-child {
    border-bottom: none;
}

.bookingvo-ticket-info-row .dashicons {
    width: 24px;
    height: 24px;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.bookingvo-ticket-info-row > div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bookingvo-ticket-label {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.bookingvo-ticket-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.bookingvo-ticket-slots {
    margin-top: 0;
}

.bookingvo-ticket-slots-list {
    padding-left: 0;
    margin-top: 0;
}

.bookingvo-ticket-slot-item {
    padding: 8px 0;
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.bookingvo-ticket-slot-item:last-child {
    border-bottom: none;
}

.bookingvo-ticket-footer {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.bookingvo-download-ticket {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bookingvo-download-ticket .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Bouton secondaire pour le ticket */
.bookingvo-btn-card-secondary {
    background: #6b7280;
    color: white;
}

.bookingvo-btn-card-secondary:hover {
    background: #4b5563;
}

/* Responsive pour la modale de ticket */
@media (max-width: 640px) {
    .bookingvo-ticket-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .bookingvo-ticket-header {
        padding: 10px 20px;
    }
    
    .bookingvo-ticket-title {
        font-size: 22px;
    }
    
    .bookingvo-ticket-body {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .bookingvo-ticket-qr {
        text-align: center;
    }
    
    .bookingvo-ticket-qr canvas,
    .bookingvo-ticket-qr img {
        max-width: 160px;
        margin: 0 auto;
    }
    
    .bookingvo-ticket-footer {
        padding: 0 20px 30px 20px;
    }
}

/* Badge Complet */
.bookingvo-badge-complet {
    display: inline-block;
    padding: 6px 12px;
    background: #dc2626;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bookingvo-liste-item .bookingvo-badge-complet,
.bookingvo-grille-item .bookingvo-badge-complet {
    margin-top: 10px;
}

/* =====================================================
   FORMAT SMALL - Liste compacte
   ===================================================== */
.bookingvo-liste-small .bookingvo-liste-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    gap: 20px;
}

.bookingvo-liste-small .bookingvo-liste-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Image miniature ronde */
.bookingvo-liste-small .bookingvo-liste-image {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Contenu compact */
.bookingvo-liste-small .bookingvo-liste-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
}

/* Titre + Prix sur la même ligne */
.bookingvo-liste-small .bookingvo-liste-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    color: #374151;
}

/* Dates/horaires */
.bookingvo-liste-small .bookingvo-liste-dates {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
}

/* Masquer la description en mode small */
.bookingvo-liste-small .bookingvo-liste-description {
    display: none;
}

/* Bloc actions compact */
.bookingvo-liste-small .bookingvo-liste-actions {
    padding: 0;
    min-width: auto;
    border: none;
    background: transparent !important;
    flex-direction: row;
    gap: 12px;
}

/* Prix compact */
.bookingvo-liste-small .bookingvo-liste-price {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

/* Bouton compact - utilise la couleur de l'atelier (défini en style inline) */
.bookingvo-liste-small .bookingvo-liste-btn {
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 6px;
    color: white !important;
    border: none !important;
    letter-spacing: 0.5px;
    background: var(--btn-bg) !important;
}

.bookingvo-liste-small .bookingvo-liste-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Badge complet compact */
.bookingvo-liste-small .bookingvo-badge-complet {
    padding: 8px 16px;
    font-size: 11px;
    margin: 0;
}

/* Responsive small */
@media (max-width: 768px) {
    .bookingvo-liste-small .bookingvo-liste-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .bookingvo-liste-small .bookingvo-liste-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .bookingvo-liste-small .bookingvo-liste-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* =====================================================
   FORMAT SMALL - Grille compacte (5 colonnes)
   ===================================================== */
.bookingvo-grille-small .bookingvo-grille-grid {
    gap: 12px;
}

.bookingvo-grille-small .bookingvo-grille-item {
    border-radius: 6px;
}

.bookingvo-grille-small .bookingvo-grille-image {
    height: 100px;
}

.bookingvo-grille-small .bookingvo-grille-content {
    padding: 10px;
}

.bookingvo-grille-small .bookingvo-grille-title {
    font-size: 13px;
    margin-bottom: 4px;
}

.bookingvo-grille-small .bookingvo-grille-dates {
    font-size: 11px;
    margin-bottom: 6px;
}

.bookingvo-grille-small .bookingvo-grille-description {
    display: none;
}

.bookingvo-grille-small .bookingvo-grille-footer {
    padding: 8px 24px 20px 24px;
}

.bookingvo-grille-small .bookingvo-grille-price {
    font-size: 14px;
}

.bookingvo-grille-small .bookingvo-grille-btn {
    padding: 6px 12px;
    font-size: 10px;
    border: 1px solid white;
}

/* Responsive grille small */
@media (max-width: 1200px) {
    .bookingvo-grille-small .bookingvo-grille-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .bookingvo-grille-small .bookingvo-grille-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .bookingvo-grille-small .bookingvo-grille-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =====================================================
   SHORTCODE DROPDOWN
   ===================================================== */
.bookingvo-dropdown-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 500px;
}

.bookingvo-dropdown-select {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.bookingvo-dropdown-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bookingvo-dropdown-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #ccc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bookingvo-dropdown-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bookingvo-dropdown-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* =====================================================
   SHORTCODE BUTTON
   ===================================================== */
.bookingvo-button-shortcode {
    transition: all 0.2s ease;
}

.bookingvo-button-shortcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
