.cbs-booking-wrapper {
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Intro text ──────────────────────────────────────────────── */
.cbs-intro-text {
    margin-bottom: 40px;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

/* ── Loading / error states ──────────────────────────────────── */
.cbs-error {
    padding: 20px;
    color: #6b7280;
    font-style: italic;
}

/* ── Skeleton loader ─────────────────────────────────────────── */
@keyframes cbs-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.cbs-skel-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 1200px 100%;
    animation: cbs-shimmer 1.5s infinite linear;
}

.cbs-skel-slot {
    height: 40px;
    width: 100%;
}

.cbs-skeleton-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* ── Empty state (missing clinician params) ──────────────────── */
.cbs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.cbs-empty-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 14px;
}

.cbs-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.cbs-empty-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    max-width: 320px;
    line-height: 1.5;
}

/* ── Week navigation bar ─────────────────────────────────────── */
.cbs-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.cbs-week-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827;
}

.cbs-booking-wrapper .cbs-nav-btn {
    background: none;
    border: none;
    color: #2d8f8f;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.15s;
}

.cbs-booking-wrapper .cbs-nav-btn:hover:not(:disabled) {
    background: #f0fafa;
}

.cbs-booking-wrapper .cbs-nav-btn:disabled {
    color: #d1d5db;
    cursor: default;
}

/* ── Week grid — 5 equal columns (Mon–Fri) ───────────────────── */
.cbs-week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* ── Day column ──────────────────────────────────────────────── */
.cbs-day-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cbs-day-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.cbs-no-slots {
    text-align: center;
    color: #d1d5db;
    font-size: 0.9rem;
    margin: 0;
    padding: 8px 0;
}

/* ── Slot buttons ────────────────────────────────────────────── */
.cbs-slot-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cbs-booking-wrapper .cbs-slot-btn {
    width: 100%;
    padding: 10px 8px;
    background: #2d8f8f;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.cbs-booking-wrapper .cbs-slot-btn:hover {
    background: #267a7a;
}

.cbs-booking-wrapper .cbs-slot-btn.cbs-slot-selected {
    background: #1a5c5c;
    border-color: #0f3d3d;
    transform: scale(1.02);
}

.cbs-booking-wrapper .cbs-slot-btn .cbs-check-icon {
    display: inline-block;
    vertical-align: middle;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    flex-shrink: 0;
}

/* ── Confirmation banner — hidden, slot button checkmark used instead ── */
#cbs-selected-slot-display {
    display: none !important;
}

/* ── Booking form ────────────────────────────────────────────── */
#cbs-booking-form {
    margin-top: 12px;
    position: relative;
}

/* Overlay — removed (not hidden) by JS when a slot is selected */
#cbs-form-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    min-height: 80px;
}
#cbs-form-overlay p {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    text-align: center;
    padding: 20px;
}

/* ── State selector ──────────────────────────────────────────── */
.cbs-state-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    flex-wrap: wrap;
}

.cbs-state-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.cbs-state-option {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.cbs-state-option input[type="radio"] {
    accent-color: #2d8f8f;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Responsive: stack to 2 cols on small screens ────────────── */
@media (max-width: 600px) {
    .cbs-week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
