/* ------------ SHARED ------------ */
.nsbc-section {
    margin-bottom: 40px;
}

.nsbc-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #007794;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
}

/* ---- 1. PASS CARD ---- */
.nsbc-pass-card {
    background: #f7fcfd;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #007794;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nsbc-pass-card:last-child {
    margin-bottom: 0;
}

.nsbc-pass-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nsbc-pass-type {
    font-weight: 700;
    font-size: 16px;
    color: #002b36;
}

.nsbc-pass-expiry {
    font-size: 13px;
    color: #666;
}

.nsbc-pass-sessions {
    text-align: right;
}

.nsbc-pass-count {
    font-size: 22px;
    font-weight: 700;
    color: #007794;
}

.nsbc-pass-label {
    font-size: 12px;
    color: #666;
    display: block;
}

/* ---- 2. UPCOMING BOOKINGS ---- */
.nsbc-bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.nsbc-bookings-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.nsbc-bookings-table td {
    padding: 10px 8px;
    vertical-align: middle;
}

.nsbc-bookings-table td:last-child {
    text-align: right;
}

/* ---- 3. SESSION LIST ---- */
.nsbc-date-group {
    margin-bottom: 28px;
}

.nsbc-date-header {
    font-size: 16px;
    font-weight: 600;
    color: #002b36;
    padding-bottom: 6px;
    border-bottom: 2px solid #007794;
    margin-bottom: 10px;
}

.nsbc-session-header,
.nsbc-session-card {
    display: grid;
    /*grid-template-columns: repeat(4, 1fr);*/
    grid-template-columns: 1.5fr 90px 130px 1fr;
    align-items: center;
    padding: 10px 16px;
    gap: 0;
}

.nsbc-session-card .nsbc-cta-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    margin: 0 !important;
}

.nsbc-session-card .nsbc-cta-btn:hover {
    background: #005f75;
}

.nsbc-session-header {
    font-size: 12px;
    font-weight: 700;
    color:#007794;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
}

.nsbc-session-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
}

.nsbc-slot { color: #007794; font-weight: 600; }

.nsbc-availability {
    display: inline-block;
    background: #eaf4f7;
    color: #007794;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    width: fit-content;
    white-space: nowrap;
    font-style: normal !important;
}

.nsbc-availability-mobile-text {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: normal !important;
    display: none;
}

.nsbc-group-name { 
    color: #002b36;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.nsbc-booking-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.nsbc-booking-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.nsbc-notice {
    background: #e8f4f5;
    border-left: 4px solid #007794;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.nsbc-book-btn {
    background: #007794;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

.nsbc-book-btn:hover { background: #005f75; }

.nsbc-cancel-btn {
    background: transparent;
    color: #d63638;
    border: 1px solid #d63638;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nsbc-cancel-btn:hover {
    background: #d63638;
    color: #fff;
}

.nsbc-hidden-week { 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 0 !important;
}

.nsbc-hidden-week.expanded {
    max-height: 2000px;
    margin-bottom: 28px !important;
}

.nsbc-show-more {
    display: block;
    margin: 16px 0 0;
    background: transparent;
    color: #007794;
    border: 1px solid #007794;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nsbc-show-more:hover {
    background: #007794;
    color: #fff;
}

.nsbc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 9999;
}

.nsbc-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.nsbc-toast.success { background: #00a32a; }
.nsbc-toast.error { background: #d63638; }

/* ---- 4. READONLY SESSION LIST PAGE ---- */
.nsbc-public-schedule {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.nsbc-public-cta {
    background: #f7fcfd;
    border-left: 4px solid #007794;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.nsbc-public-cta h2 {
    margin-top: 0;
    color: #002b36;
}

.nsbc-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    margin: 12px;
    transition: all 0.2s ease;
    background: #007794;
    color: #fff !important;
}

.nbsc-cta-btn:hover {
    background: #005f75;
}

.nsbc-cta-btn--outline {
    background: transparent;
    color: #007794 !important;
    border: 1px solid #007794;
}

.nsbc-cta-btn--outline:hover {
    background: #007794;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 600px) {
    /* Hide desktop header */
    .nsbc-session-header {
        display: none !important;
    }

    /* Card reset */
    .nsbc-session-card {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        padding: 12px 14px !important;
        gap: 4px !important;
        border: 2px solid #e8e8e8 !important;
        border-left: 4px solid #007794 !important;
        border-radius: 6px !important;
        margin-bottom: 15px !important;
        background: #fff !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    /* Group name — brand anchor */
    .nsbc-session-card .nsbc-group-name {
        order: -1 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #007794 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        margin-bottom: 2px !important;
    }

    /* Time */
    .nsbc-session-card .nsbc-slot {
        font-size: 17px !important;
        font-weight: 600 !important;
        color: #002b36 !important;
    }

    /* Full width button */
    .nsbc-session-card .nsbc-book-btn,
    .nsbc-session-card .nsbc-cancel-btn {
        width: auto !important;
        min-width: 140px !important;
        text-align: center !important;
        padding: 10px 20px !important;
        margin-top: 6px !important;
    }

    /* No pass / full text */
    .nsbc-session-card > span:not(.nsbc-slot):not(.nsbc-availability):not(.nsbc-group-name):not(.nsbc-availability-mobile-text) {
        font-size: 12px !important;
        color: #aaa !important;
        font-style: italic !important;
        margin-top: 4px !important;
    }

    .nsbc-availability-mobile-text {
        display: inline;
    }

    /* Full session — muted */
    .nsbc-session-card.is-full {
        opacity: 0.6 !important;
    }

    /* Upcoming bookings */
    .nsbc-bookings-table,
    .nsbc-bookings-table tbody,
    .nsbc-bookings-table tr,
    .nsbc-bookings-table td {
        display: block !important;
        width: 100% !important;
    }

    .nsbc-bookings-table {
        border-collapse: collapse !important;
        border: none !important;
    }

    .nsbc-bookings-table tr {
        border: 2px solid #e8e8e8 !important;
        border-left: 4px solid #007794 !important;
        border-radius: 6px !important;
        padding: 12px 14px !important;
        margin-bottom: 15px !important;
        border-bottom: 2px solid #e8e8e8 !important;
    }

    .nsbc-bookings-table td {
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
    }

    /* Date */
    .nsbc-bookings-table td:nth-child(1) {
        font-size: 12px !important;
        color: #888 !important;
        margin-bottom: 2px !important;
    }

    /* Time */
    .nsbc-bookings-table td:nth-child(2) {
        font-size: 17px !important;
        font-weight: 600 !important;
        color: #002b36 !important;
    }

    /* Group */
    .nsbc-bookings-table td:nth-child(3) {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #007794 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        order: -1 !important;
        margin-bottom: 4px !important;
    }

    /* Cancel button */
    .nsbc-bookings-table td:nth-child(4) {
        margin-top: 8px !important;
    }

    .nsbc-bookings-table td:nth-child(4) .nsbc-cancel-btn {
        width: auto !important;
        min-width: 120px !important;
    }

    /* Toast Notification */
    .nsbc-toast {
        bottom: calc(env(safe-area-inset-bottom) + 16px) !important;
        right: 16px !important;
        left: 16px !important;
        text-align: center !important;
        transform: opacity 0.3 ease, transform 0.3s ease;
    }
}