/* =========================================
   Course Booking Pro - Frontend Styles
========================================= */

:root {
    --cb-today-color: #eef4ff;
    --cb-free-color: #d4edda;
    --cb-booked-color: #f8d7da;
    --cb-selected-color: #b8daff;
}

/* =========================================
   Base
========================================= */

.cb-booking-shell,
.cb-booking-shell *,
.cb-booking-modal,
.cb-booking-modal * {
    box-sizing: border-box;
}

.cb-booking-shell {
    width: 100%;
    max-width: 100%;

    margin: 0 auto;
    padding: 14px;

    overflow: visible;

    color: #111827;
    font-family: inherit;
}
.cb-booking-details-card,
.cb-calendar-card,
.cb-selected-period-card {
    box-sizing: border-box;
}

@media (max-width: 520px) {
    .cb-booking-shell {
        padding: 10px;
    }
}

.cb-booking-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.cb-booking-details-card,
.cb-calendar-card,
.cb-selected-period-card {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cb-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cb-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.cb-select,
.cb-booking-modal-content input,
.cb-booking-modal-content select,
.cb-booking-modal-content textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: #111827;
    margin: 0px 0px 10px 0px;
}


/* =========================================
   Event Meta
========================================= */

.cb-event-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.cb-event-meta-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f8fb;
    line-height: 1.2;
}

.cb-event-meta-label {
    color: #666;
    font-size: 12px;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.1;
}

.cb-event-meta-value {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.15;
}

.cb-event-meta-item * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.cb-event-meta-label br,
.cb-event-meta-value br {
    display: none !important;
}

/* =========================================
   Calendar
========================================= */

.cb-calendar-card {
    min-height: 500px;
    overflow: visible;
}

.cb-calendar-wrap,
#calendar {
    position: relative;
    width: 100%;
    min-height: 470px;
}

.fc {
    width: 100% !important;
    min-height: 470px !important;
    max-width: 100% !important;
}

.fc-view-harness,
.fc-view-harness-active {
    min-height: 390px !important;
    height: 390px !important;
}

.fc .fc-scroller,
.fc .fc-scroller-liquid-absolute {
    overflow: hidden !important;
}

.fc-view-harness,
.fc-scrollgrid,
.fc-scrollgrid table {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================
   Toolbar
========================================= */

.fc .fc-toolbar {
    max-width: 100%;
    margin-bottom: 10px !important;
}

.fc .fc-toolbar-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px !important;
    font-weight: 700;
}

/* =========================================
   Custom Prev/Next Buttons
========================================= */

.fc .fc-prev-button,
.fc .fc-next-button {
    width: 40px !important;
    height: 28px !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    box-shadow: none !important;
}

.fc .fc-prev-button {
    background-image: url('../images/btnPrev.png') !important;
}

.fc .fc-next-button {
    background-image: url('../images/btnNext.png') !important;
}

.fc .fc-prev-button:hover,
.fc .fc-next-button:hover,
.fc .fc-prev-button:focus,
.fc .fc-next-button:focus {
    opacity: 0.9;
    background-color: transparent !important;
    box-shadow: none !important;
}

.fc .fc-icon {
    display: none !important;
}

/* =========================================
   Calendar Cells
========================================= */

.fc .fc-daygrid-day-frame {
    min-height: clamp(42px, 8vw, 62px) !important;
}

.fc .fc-daygrid-day-top {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.fc .fc-daygrid-day-number {
    position: relative;
    z-index: 5;
    margin: 0 !important;
    padding: 4px 6px !important;
    text-align: left !important;
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    line-height: 1 !important;
    color: #111827 !important;
}

/* =========================================
   Calendar States
========================================= */

.fc .fc-day-today {
    background: var(--cb-today-color) !important;
}

.fc .fc-daygrid-day.cb-free-cell {
    background: var(--cb-free-color, #d4edda) !important;
    cursor: pointer;
}

.fc .fc-daygrid-day.cb-fully-booked-cell {
    background: var(--cb-booked-color, #f8d7da) !important;
    cursor: not-allowed;
}

.fc .fc-daygrid-day.cb-selected-cell {
    background: var(--cb-selected-color, #b8daff) !important;
}

.fc .fc-daygrid-day:not(.cb-free-cell):not(.cb-fully-booked-cell):not(.cb-selected-cell) {
    background: #f3f4f6;
}

/* =========================================
   Legend
========================================= */

.cb-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
}

.cb-calendar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cb-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-block;
}

.cb-dot-available {
    background: var(--cb-free-color, #d4edda);
}

.cb-dot-booked {
    background: var(--cb-booked-color, #f8d7da);
}

.cb-dot-unavailable {
    background: #d1d5db;
}

.cb-dot-selected {
    background: var(--cb-selected-color, #b8daff);
}

/* =========================================
   Selected Booking Card
========================================= */

.cb-selected-period-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cb-selected-period-card p {
    margin: 6px 0;
}

/* =========================================
   Buttons
========================================= */

.cb-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border: none;
    border-radius: 12px;

    background: #2454a6;
    color: #fff;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cb-primary-button:hover {
    opacity: 0.92;
}

/* =========================================
   Extras
========================================= */

.cb-extras-wrap {
    margin-top: 16px;
}

.cb-extra-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.cb-extra-option input[type="number"] {
    width: 70px;
    padding: 8px;
}

/* =========================================
   Modal
========================================= */

.cb-booking-modal,
#cb-booking-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 16px;

    background: rgba(0,0,0,0.55) !important;
}

.cb-booking-modal-content,
#cb-booking-modal .cb-booking-modal-content {
    position: relative;

    width: 100%;
    max-width: 520px;

    background-color: #ffffff !important;
    background: #ffffff !important;

    opacity: 1 !important;

    border-radius: 18px;

    padding: 22px;

    box-shadow: 0 18px 50px rgba(0,0,0,0.28);

    overflow: hidden;

    z-index: 2;
}

.cb-booking-modal-content h2,
.cb-booking-modal-content h3 {
    margin-top: 0;
}

.cb-booking-summary {
    margin-bottom: 16px;
}

.cb-booking-total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 16px;
}

/* Close Button */

.cb-close-booking-modal,
#cb-close-booking-modal {
    position: absolute;

    top: 10px;
    right: 14px;
    left: auto !important;

    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: none !important;
    background: transparent !important;

    color: #111827 !important;

    font-size: 26px !important;
    line-height: 1 !important;

    padding: 0 !important;
    margin: 0 !important;

    box-shadow: none !important;

    cursor: pointer;
}

.cb-booking-modal-content button,
.cb-booking-modal-content .button,
.cb-booking-modal-content .cb-primary-button {
    min-height: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
}

/* =========================================
   Loading Overlay
========================================= */

.cb-calendar-loading {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.75);

    z-index: 20;

    gap: 12px;

    font-weight: 700;
}

.cb-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 4px solid #d1d5db;
    border-top-color: #2454a6;
    animation: cbSpin 0.8s linear infinite;
}

@keyframes cbSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 520px) {

    .cb-booking-details-card,
    .cb-calendar-card,
    .cb-selected-period-card {
        padding: 10px;
        border-radius: 12px;
    }

    .cb-calendar-card {
        max-width: 100%;
        min-height: 430px;
        padding: 8px;
    }

    .cb-calendar-wrap,
    #calendar {
        min-height: 410px;
    }

    .fc {
        min-height: 410px !important;
    }

    .fc-view-harness,
    .fc-view-harness-active {
        min-height: 330px !important;
        height: 330px !important;
    }

    .fc .fc-toolbar-title {
        font-size: 16px !important;
    }

    .fc .fc-col-header-cell-cushion,
    .fc .fc-daygrid-day-number {
        font-size: 11px !important;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 38px !important;
        overflow: hidden !important;
    }

    .fc .fc-daygrid-day-top {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .fc .fc-daygrid-day-number {
        margin: 0 !important;
        padding: 3px 4px !important;
        text-align: left !important;
        float: none !important;
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        line-height: 1 !important;
    }

    .cb-booking-modal-content {
        padding: 18px;
        border-radius: 14px;
    }

    .cb-close-booking-modal,
    #cb-close-booking-modal {
        top: 8px;
        right: 10px;
    }
}
/* =========================================
   Final Button + Modal Close Fixes
========================================= */

/* Main buttons */

.cb-primary-button,
button.cb-primary-button,
#cb-confirm-booking,
#cb-open-booking-modal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 44px !important;
    min-height: 44px !important;

    padding: 0 18px !important;

    border: none !important;
    border-radius: 12px !important;

    background: #2454a6 !important;
    color: #fff !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    vertical-align: middle !important;

    text-align: center !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
}

/* Remove inherited WP button spacing */

.cb-primary-button span,
.cb-primary-button *,
#cb-confirm-booking *,
#cb-open-booking-modal * {
    line-height: 1 !important;
}

/* Modal close button */

.cb-close-booking-modal,
#cb-close-booking-modal {
    position: absolute !important;

    top: 10px !important;
    right: 12px !important;
    left: auto !important;

    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 999px !important;

    background: #f3f4f6 !important;
    color: #111827 !important;

    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    box-shadow: none !important;

    cursor: pointer !important;

    z-index: 10 !important;
}

.cb-close-booking-modal:hover,
#cb-close-booking-modal:hover {
    background: #e5e7eb !important;
}

.tempo{
    padding: 0px 18px 16px 19px !important;
	
	    padding: 0px 18px 29px 19px !important;
		
}

#xxcb-close-booking-modal {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: grid !important;
    place-items: center !important;

    line-height: 0 !important;
    font-size: 0 !important;

    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
}

#cb-close-booking-modal::before {
    content: "×";
    display: block;
    font-size: 24px;
    line-height: 1;
    transform: translateY(-2px);
}

button.cb-primary-button::before,
button.cb-primary-button::after {
    display: none !important;
	
}


#cb-close-booking-modal {
    padding: 0 !important;
}
.cb-booking-spacer {
	height:10px;
	width:10px;
}