#brh-calendar-wrap {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: #fff;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    overflow-x: auto;
}

#brh-calendar-wrap .fc-event {
    cursor: pointer;
    font-size: 0.85em;
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#brh-calendar-wrap .fc-daygrid-day.fc-day-today {
    background: #e3f2fd;
}

#brh-calendar-wrap .fc-daygrid-block-event {
    white-space: normal;
}

#brh-calendar-wrap .fc-event-completed {
    background: #10b981;
}

#brh-calendar-wrap .fc-event-processing {
    background: #3b82f6;
}

#brh-calendar-wrap .fc-event-on-hold {
    background: #f59e0b;
}

#brh-calendar-wrap .fc-event-other {
    background: #6b7280;
}

@media (max-width: 782px) {
    #brh-calendar-wrap {
        padding: 8px 4px;
    }

    #brh-calendar-wrap .fc .fc-toolbar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    #brh-calendar-wrap .fc .fc-toolbar-title {
        font-size: 1.05em;
    }

    #brh-calendar-wrap .fc .fc-button {
        padding: 4px 8px;
        font-size: 0.8em;
    }

    #brh-calendar-wrap .fc-event {
        font-size: 0.72em;
        padding: 2px 4px;
    }

    #brh-calendar-wrap .fc .fc-daygrid-day-number {
        font-size: 0.82em;
    }
}

@media (max-width: 480px) {
    #brh-calendar-wrap .fc .fc-col-header-cell-cushion {
        font-size: 0.68em;
        padding: 4px 2px;
    }
}


/* FrontEnd CALENDAR SLOT */

.brh-booking-box {
    margin: 25px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    box-sizing: border-box;
}

.brh-booking-box h3 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: #1e293b;
}

.brh-booking-layout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.brh-booking-col-date {
    flex: 1 1 260px;
    min-width: 0;
}

.brh-booking-col-slots {
    flex: 1.6 1 200px;
    min-width: 0;
}

.brh-booking-col-date label,
.brh-booking-col-slots label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 0.95em;
}

.brh-booking-col-date .flatpickr-calendar.inline {
    width: 100% !important;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    padding: 15px;
}

.brh-booking-col-date .flatpickr-days,
.brh-booking-col-date .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.brh-booking-col-date .flatpickr-day {
    max-width: none;
    flex-basis: calc(100% / 7);
}



.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #3b82f6 !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.flatpickr-day.today {
    border-color: #93c5fd;
    background: #eff6ff;
}



#brh_slots_container {
    min-height: 120px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
}

.brh-slot-btn {
    padding: 10px 14px;
    font-size: 0.95rem;
    min-width: 70px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
    transition: all .16s;
    flex: 0 0 auto;
}

.brh-slot-btn:hover:not(:disabled) {
    background: #dbeafe;
    border-color: #60a5fa;
}

.brh-slot-btn.selected {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
}

.brh-slot-btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: .7;
}

.brh-no-slots,
.brh-loading {
    color: #64748b;
    font-style: italic;
    padding: 16px 0;
    text-align: center;
    width: 100%;
}

.custom-product-variable .variations th {
    width: 80px;
}

.custom-product-variable .variations td:last-child {
    display: flex;
}

.custom-product-variable .variations td:last-child span {
    position: relative;
    width: 100%;
    margin-right: 10px;
}

.custom-product-variable .variations td:last-child span::after {
    display: none !important;
}

#duration {
    padding: 10px;
}

.custom-product-variable .woocommerce-variation-price {
    font-size: 28px;
    font-weight: bold;
}

.flatpickr-current-month {
    padding-top: 0 !important;
}


.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 8px !important;
}

.woocommerce div.product form.cart .variations td:last-child {
    padding: 0 !important;
}


.custom-product-variable label {
    color: #6b8dfd;
}

.custom-product-variable {
    color: white !important;
}

.custom-product-variable .woocommerce-Price-amount bdi {
    font-size: 28px !important;
}

.custom-product-variable .single_add_to_cart_button:hover {
    color: white !important;
}

.flatpickr-day.selected {
    background-color: #6b8dfd !important;
}

.brh-slot-btn.selected {
    background-color: #6b8dfd !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-size: 16px;
}

.flatpickr-current-month input.cur-year {
    font-size: 16px;
}

.custom-car-total table {
    background: white !important;
}


@media (max-width: 520px) {
    .brh-booking-box {
        padding: 14px 12px;
    }

    .brh-booking-layout {
        flex-direction: column;
        gap: 20px;
    }

    .brh-booking-col-date .flatpickr-calendar.inline {
        max-width: 100%;
    }

    .brh-slot-btn {
        font-size: 0.88rem;
        padding: 9px 10px;
        min-width: 60px;
    }
}

/* FrontEnd CALENDAR SLOT */