/* ---------------------------------------
   BOOKING SYSTEM
--------------------------------------- */

.bookingWrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.bookingHeader {
    margin-bottom: 25px;
}

.bookingHeader h1 {
    margin: 0 0 10px 0;
}

.bookingCalendarWrap {
    width: 100%;
}


/* ---------------------------------------
   FLATPICKR
--------------------------------------- */

#bookingCalendar {
    width: 100%;
}

#bookingCalendar .flatpickr-calendar {
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#bookingCalendar .flatpickr-rContainer {
    width: 100%;
}

#bookingCalendar .flatpickr-weekdays {
    width: 100%;
}

#bookingCalendar .flatpickr-days {
    width: 100%;
}

#bookingCalendar .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: none;
}

#bookingCalendar .flatpickr-day {
    max-width: none;
    flex-basis: 14.285%;
    height: 70px;
    line-height: 70px;
    border-radius: 0;
    box-sizing: border-box;
}


/* ---------------------------------------
   AVAILABLE / UNAVAILABLE DATES
--------------------------------------- */

#bookingCalendar .flatpickr-day.availableDate {
    background: #e5f6e5;
    font-weight: bold;
    cursor: pointer;
}

#bookingCalendar .flatpickr-day.availableDate:hover {
    background: #cceccc;
}

#bookingCalendar .flatpickr-day.unavailableDate {
    opacity: 0.35;
    cursor: default;
}


/* ---------------------------------------
   SELECTED DATE
--------------------------------------- */

#bookingCalendar .flatpickr-day.selected,
#bookingCalendar .flatpickr-day.selected:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}


/* ---------------------------------------
   SLOT PANEL
--------------------------------------- */

.bookingSlots {
    margin-top: 30px;
    display: none;
}

.bookingSlots.activeSlot  {
    display: block;
}

.bookingSlots h2 {
    margin-bottom: 15px;
}


/* ---------------------------------------
   SLOT BUTTONS
--------------------------------------- */

.bookingSlotList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bookingSlot {
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
    box-sizing: border-box;
}

.bookingSlot:hover {
    background: #f3f3f3;
}

.bookingSlot.selected {
    background: #333;
    color: #fff;
    border-color: #333;
}


/* ---------------------------------------
   LOADING / EMPTY
--------------------------------------- */

.bookingLoading {
    padding: 20px 0;
}

.bookingNoSlots {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}


/* ---------------------------------------
   MOBILE
--------------------------------------- */

@media screen and (max-width: 700px) {

    #bookingCalendar .flatpickr-day {
        height: 46px;
        line-height: 46px;
        font-size: 14px;
    }

    .bookingSlotList {
        grid-template-columns: repeat(2, 1fr);
    }

    .bookingSlot {
        padding: 12px 6px;
    }

}