/* Structure principale */
.booking-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-height: 415px;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
}

/**** Calendar *****/
.calendar-wrapper {
    position: relative;
    display: flex;
    gap: 0px;
    width: 33.33333%;
}

.month-wrapper {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #FFF;
}

.month-header {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.month-header .nav-arrow {
    box-shadow: none;
    border: 2px solid #5F2C70;
    color: #5F2C70;
    width: 40px;
    height: 40px;
    line-height: 36px;
    border-radius: 50%;
    background-color: transparent;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.month-header .nav-arrow:hover {
    background-color: #5F2C70;
    color: #fff;
}

.month-header .nav-arrow:first-child {
    position: absolute;
    top: 0px;
    left: 0px;
}

.month-header .nav-arrow:last-child {
    position: absolute;
    top: 0px;
    right: 0px;
}

.month-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.days-header {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 13px;
    height: 25px;
    font-weight: bold;
}

.days-wrapper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 50%;
}

.day.empty {
    visibility: hidden;
}

.day:hover {
    background: #5F2C70;
    color: #fff;
}

.day.active {
    background: #5F2C70;
    color: #fff;
}

.day.unavailable {
    pointer-events: none;
    opacity: 0.25;
    cursor: not-allowed;
}

/***** Hours *****/
.schedule-wrapper {
    width: 33.33333%;
    padding: 20px;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.time-slot:hover {
    background: #5F2C70;
    color: #fff;
}

.time-slot.booked {
    text-decoration: line-through;
    opacity: 0.6;
    background-color: #f8f8f8;
    cursor: not-allowed;
}

.time-slot.already-booked {
    background-color: #d1e7dd;
    color: #146c43;
    border-color: #a3cfbb;
}

/***** Summary *****/
.summary-wrapper {
    width: 33.33333%;
    padding: 20px;
}

/* Style pour le résumé des réservations */
.booking-date {
    margin-bottom: 15px;
}

.booking-date h5 {
    margin-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.booking-date ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.booking-participant {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.booking-date li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.btn-remove-booking {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
}

/* Style pour le modal */
.bkc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.bkc-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.btn-cancel, .btn-confirm {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel {
    background-color: #f8f9fa;
    color: #495057;
}

.btn-confirm {
    background-color: #5F2C70;
    color: white;
}

/* Styles pour les messages */
.loading-message,
.error-message,
.no-data-message,
.select-date-message,
.summary-message {
    padding: 15px;
    text-align: center;
    color: #666;
}

.error-message {
    color: #dc3545;
}

/* Bouton Ajouter au panier */
.add-to-cart-container {
    margin-top: 20px;
    text-align: center;
}

.add-to-cart-btn {
    background-color: #5F2C70;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 16px 26px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #4a2255;
}

.add-to-cart-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .booking-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .calendar-wrapper,
    .schedule-wrapper,
    .summary-wrapper {
        width: 100%;
    }
    
    .calendar-wrapper {
        order: 1;
    }
    
    .schedule-wrapper {
        order: 2;
    }
    
    .summary-wrapper {
        order: 3;
    }
}

@media screen and (max-width: 768px) {
    .time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .month-wrapper {
        padding: 5px;
    }
    
    .day {
        font-size: 13px;
    }
}

@media screen and (max-width: 576px) {
    .days-header {
        font-size: 12px;
    }
    
    .day {
        font-size: 12px;
    }
    
    .time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .add-to-cart-btn {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .time-slots-container {
        grid-template-columns: 1fr;
    }
    
    .days-wrapper {
        gap: 2px;
    }
    
    .month-header .nav-arrow {
        width: 30px;
        height: 30px;
        line-height: 28px;
        font-size: 14px;
    }
}

@media screen and (max-width: 320px) {
    .month-title {
        font-size: 16px;
    }
    
    .days-header {
        font-size: 10px;
    }
    
    .day {
        font-size: 11px;
    }
}