/* ==========================================================================
   The Pickle B Club — Booking Widget  v2.2 Premium
   ========================================================================== */

/* ==========================================================================
   Quick Booking Widget  [pickleb_quick]
   ========================================================================== */

.tpbc-quick-widget {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
}

.tpbc-quick-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tpbc-quick-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: lowercase;
    margin: 0;
}

.tpbc-quick-tagline {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.tpbc-quick-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.tpbc-quick-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.tpbc-quick-selector:focus-within {
    border-color: #1b3a2d;
}

.tpbc-quick-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
}

.tpbc-quick-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tpbc-quick-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    width: 100%;
    padding-right: 24px;
}

.tpbc-quick-chevron {
    position: absolute;
    right: 0;
    color: #64748b;
    pointer-events: none;
    flex-shrink: 0;
}

.tpbc-quick-cta {
    display: block;
    width: 100%;
    padding: 18px;
    background: #1b3a2d;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
}

.tpbc-quick-cta:hover  { background: #2d5c42; }
.tpbc-quick-cta:active { transform: scale(0.99); }

@media (max-width: 600px) {
    .tpbc-quick-selectors {
        grid-template-columns: 1fr;
    }

    .tpbc-quick-title {
        font-size: 1.7rem;
    }

    .tpbc-quick-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tpbc-quick-cta {
        padding: 16px;
    }
}

/* ── Mobile step label ────────────────────────────────────────────────────── */
.tpbc-mobile-step-label {
    display: none; /* hidden on desktop */
}

@media (max-width: 600px) {
    .tpbc-mobile-step-label {
        display: block;
        text-align: center;
        font-size: 0.72rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 10px;
    }
}

/* ── Reset / Base ─────────────────────────────────────────────────────────── */
.tpbc-widget *,
.tpbc-widget *::before,
.tpbc-widget *::after {
    box-sizing: border-box;
}

.tpbc-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    color: #0f172a;
    line-height: 1.6;
    font-size: 15px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 12px 48px rgba(0,0,0,0.10);
    padding: 40px 44px 48px;
}

.tpbc-step {
    animation: tpbc-fadein 0.25s ease;
}

@keyframes tpbc-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Progress indicator ───────────────────────────────────────────────────── */
.tpbc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.tpbc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tpbc-prog-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.tpbc-prog-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    transition: color 0.25s;
}

.tpbc-progress-step--active .tpbc-prog-num {
    background: #1b3a2d;
    border-color: #1b3a2d;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(27,58,45,0.12);
}

.tpbc-progress-step--active .tpbc-prog-label {
    color: #1b3a2d;
    font-weight: 700;
}

.tpbc-progress-step--done .tpbc-prog-num {
    background: #d1fae5;
    border-color: #34d399;
    color: #065f46;
}

.tpbc-progress-step--done .tpbc-prog-label {
    color: #6b7280;
}

.tpbc-progress-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    min-width: 32px;
    max-width: 80px;
    margin-bottom: 26px;
    transition: background 0.3s;
    position: relative;
}

.tpbc-progress-line--done {
    background: linear-gradient(90deg, #34d399, #a7f3d0);
}

/* ── Section heading / sub ────────────────────────────────────────────────── */
.tpbc-section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1b3a2d;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.tpbc-section-sub {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ── Date navigation ──────────────────────────────────────────────────────── */
.tpbc-date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

/* The [< date >] group as a single bordered unit */
.tpbc-date-nav-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tpbc-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    line-height: 1;
    flex-shrink: 0;
}

.tpbc-nav-btn:hover  { background: #f0fdf4; border-color: #1b3a2d; color: #1b3a2d; }
.tpbc-nav-btn:active { transform: scale(0.92); }

/* Custom date display — shows "Jun 20, 2026" */
.tpbc-date-display {
    padding: 9px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    letter-spacing: -0.01em;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

/* Native date input: hidden but functional (triggers calendar on click) */
.tpbc-date-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.tpbc-date-input-wrap input[type="date"] {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 1; /* must be >0 — iOS Safari ignores touch on opacity:0 elements */
    border: none;
    font-size: 16px; /* prevents iOS auto-zoom */
}

.tpbc-today-btn {
    padding: 9px 18px;
    background: #1b3a2d;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.tpbc-today-btn:hover  { background: #2d5c42; }
.tpbc-today-btn:active { transform: scale(0.96); }

/* ── Date dropdown list ───────────────────────────────────────────────────── */
.tpbc-cal-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    z-index: 100;
    width: 220px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
    user-select: none;
}
.tpbc-date-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.1s;
}
.tpbc-date-opt:hover { background: #f1f5f9; }
.tpbc-date-opt--holiday { opacity: 0.45; cursor: default; pointer-events: none; }
.tpbc-date-opt--selected {
    font-weight: 700;
    color: #1b3a2d;
}
.tpbc-date-opt-check {
    width: 16px;
    font-size: 0.85rem;
    color: #1b3a2d;
    flex-shrink: 0;
}

/* ── Minimum booking notice (Step 1) ─────────────────────────────────────── */
.tpbc-min-booking-notice {
    margin: 0 0 18px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    font-style: italic;
}

/* ── Legend ───────────────────────────────────────────────────────────────── */
.tpbc-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px 10px 0 0;
    padding: 10px 18px;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.tpbc-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tpbc-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.tpbc-swatch--available  { background: #fff; border: 1.5px solid #cbd5e1; }
.tpbc-swatch--selected   { background: #1b3a2d; border: 1.5px solid #1b3a2d; }
.tpbc-swatch--booked     { background: #fca5a5; border: 1.5px solid #ef4444; }
.tpbc-swatch--maintenance { background: #e2e8f0; border: 1.5px solid #cbd5e1; }

/* ── Schedule wrap ────────────────────────────────────────────────────────── */
#tpbc-schedule-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 14px 14px;
    border-top: none;
}

/* Scrollbar styling for webkit */
#tpbc-schedule-wrap::-webkit-scrollbar { height: 6px; }
#tpbc-schedule-wrap::-webkit-scrollbar-track { background: #f1f5f9; }
#tpbc-schedule-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ── Loading ──────────────────────────────────────────────────────────────── */
.tpbc-loading {
    text-align: center;
    padding: 48px 20px 40px;
    color: #64748b;
    font-size: 0.88rem;
}

.tpbc-pb-loader {
    width: 44px;
    height: 76px;
    margin: 0 auto 14px;
    position: relative;
}

.tpbc-pb-ball {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 0;
    left: 0;
    animation: tpbc-pb-bounce 0.72s cubic-bezier(0.36, 0, 0.66, -0.45) infinite alternate;
    filter: drop-shadow(0 5px 10px rgba(170, 210, 0, 0.4));
}

.tpbc-pb-shadow {
    width: 44px;
    height: 7px;
    background: rgba(27,58,45,0.22);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: tpbc-pb-shadow 0.72s ease-in-out infinite alternate;
}

@keyframes tpbc-pb-bounce {
    from { top: 0;    transform: scaleX(1)    scaleY(1); }
    to   { top: 32px; transform: scaleX(1.12) scaleY(0.86); }
}

@keyframes tpbc-pb-shadow {
    from { transform: scale(1);    opacity: 0.32; }
    to   { transform: scale(0.55); opacity: 0.1; }
}

/* ── Grid table ───────────────────────────────────────────────────────────── */
.tpbc-grid-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
    font-size: 0.82rem;
    background: #fff;
}

/* Court header cells */
.tpbc-th-time {
    width: 76px;
    min-width: 76px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}

.tpbc-th-court {
    text-align: center;
    padding: 20px 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    min-width: 140px;
}

.tpbc-court-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 10px;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.tpbc-court-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 2px 8px rgba(27,58,45,0.12);
}

.tpbc-court-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.tpbc-court-rate {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 500;
}

/* Time label column */
.tpbc-time-label {
    padding: 0 10px 0 12px;
    color: #94a3b8;
    font-size: 0.72rem;
    white-space: nowrap;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    height: 48px;
    text-align: right;
    font-weight: 500;
}

/* ── Slot cells ───────────────────────────────────────────────────────────── */
.tpbc-slot {
    height: 48px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    border-left: 1px solid #e2e8f0;
    cursor: default;
    padding: 4px 5px;
    transition: background 0.12s;
}

.tpbc-slot-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 600;
    min-height: 36px;
}

/* Available */
.tpbc-slot--available .tpbc-slot-inner {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #94a3b8;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.tpbc-slot--clickable { cursor: pointer; }

.tpbc-slot--clickable:hover .tpbc-slot-inner {
    border-color: #1b3a2d;
    background: #f0fdf4;
}

/* Selected */
.tpbc-slot--selected .tpbc-slot-inner {
    background: linear-gradient(135deg, #1b3a2d, #2d5c42) !important;
    border: 1.5px solid #1b3a2d !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(27,58,45,0.3);
}

/* Booked */
.tpbc-slot--booked .tpbc-slot-inner {
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

/* Past */
.tpbc-slot--past .tpbc-slot-inner {
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    color: transparent;
}

/* Blocked */
.tpbc-slot--blocked .tpbc-slot-inner {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
}

/* Maintenance */
.tpbc-slot--maintenance .tpbc-slot-inner {
    background: #e2e8f0;
    border: 1.5px solid #cbd5e1;
    color: #64748b;
}

/* Past (earlier than now on today's date) */
.tpbc-slot--past .tpbc-slot-inner {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #cbd5e1;
    cursor: default;
}

/* ── Min notice ───────────────────────────────────────────────────────────── */
.tpbc-min-notice {
    text-align: center;
    margin-top: 12px;
    font-size: 0.82rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 500;
}

/* ── Equipment rental section (Step 2) ────────────────────────────────────── */
.tpbc-rental-section {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 18px 0 4px;
    background: #f8fafc;
}

.tpbc-rental-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.tpbc-rental-heading strong {
    font-size: 0.9rem;
    color: #0f172a;
}

.tpbc-rental-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-left: 2px;
}

.tpbc-rental-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.tpbc-rental-item:last-child {
    border-bottom: none;
}

.tpbc-rental-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tpbc-rental-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
}

.tpbc-rental-item-price {
    font-size: 0.76rem;
    color: #64748b;
}

.tpbc-rental-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tpbc-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #1b3a2d;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, border-color 0.12s;
    line-height: 1;
    font-family: inherit;
}

.tpbc-qty-btn:hover {
    background: #1b3a2d;
    border-color: #1b3a2d;
    color: #fff;
}

.tpbc-qty-val {
    min-width: 20px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.tpbc-rental-total-row {
    margin-top: 12px;
    font-size: 0.82rem;
    color: #475569;
    text-align: right;
}

.tpbc-rental-total-row strong {
    color: #1b3a2d;
}

/* ── Rental addon divs (shown after form-summary and review-box) ──────────── */
.tpbc-rental-addon {
    margin-top: 0;
    border-top: 1px dashed #e2e8f0;
}

.tpbc-rental-addon-inner {
    padding: 10px 16px 12px;
}

.tpbc-rental-addon .tpbc-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #475569;
    padding: 3px 0;
}

.tpbc-rental-addon-eq-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1b3a2d;
    border-top: 1px solid #e2e8f0;
    margin-top: 6px;
    padding-top: 6px;
}

/* ── Selection bar ────────────────────────────────────────────────────────── */
.tpbc-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1b3a2d, #2d5c42);
    color: #fff;
    padding: 16px 22px;
    border-radius: 14px;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(27,58,45,0.25);
}

#tpbc-selection-summary {
    font-size: 0.88rem;
    line-height: 1.55;
    font-weight: 500;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.tpbc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.tpbc-btn:active { transform: scale(0.97); }

.tpbc-btn--primary {
    background: #1b3a2d !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(27,58,45,0.30);
}

.tpbc-btn--primary:hover:not(:disabled) {
    background: #2d5a45 !important;
    box-shadow: 0 4px 14px rgba(27,58,45,0.38);
}

.tpbc-btn--primary:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tpbc-btn--secondary {
    background: transparent;
    color: #1b3a2d;
    border: 2px solid #1b3a2d;
}

.tpbc-btn--secondary:hover {
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(27,58,45,0.1);
}

/* ── Back button ──────────────────────────────────────────────────────────── */
.tpbc-back-btn {
    background: none;
    border: none;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    transition: color 0.15s;
}

.tpbc-back-btn:hover { color: #1b3a2d; }

/* ── Form summary / review box ────────────────────────────────────────────── */
.tpbc-form-summary,
.tpbc-review-box {
    background: linear-gradient(135deg, #f0fdf4, #f8fffc);
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 26px;
}

.tpbc-summary-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #d1fae5;
}

.tpbc-summary-row:last-child { border-bottom: none; }

.tpbc-summary-label {
    color: #64748b;
    min-width: 96px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.tpbc-summary-value {
    font-weight: 600;
    color: #0f172a;
}

.tpbc-review-total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid #a7f3d0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b3a2d;
    display: flex;
    justify-content: space-between;
}

.tpbc-credits-deduction {
    border-top: 1px dashed #a7f3d0;
    color: #065f46;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ── Credits offer (Step 2) ───────────────────────────────────────────────── */
.tpbc-credits-offer {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    border: 1.5px solid #6ee7b7;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0;
}

.tpbc-credits-offer-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tpbc-credits-offer-text {
    flex: 1;
    font-size: 0.88rem;
    color: #065f46;
    line-height: 1.4;
}

.tpbc-credits-offer-text strong { color: #1b3a2d; }
.tpbc-credits-offer-text small  { display: block; color: #64748b; margin-top: 2px; font-size: 0.8rem; }

.tpbc-credits-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #065f46;
    cursor: pointer;
    white-space: nowrap;
}

.tpbc-credits-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1b3a2d;
    cursor: pointer;
}

/* ── Pass offer (Step 2) ──────────────────────────────────────────────────── */
.tpbc-pass-offer {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fefce8;
    border: 1.5px solid #fde047;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 12px 0;
}

.tpbc-pass-offer-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tpbc-pass-offer-text {
    flex: 1;
    font-size: 0.88rem;
    color: #713f12;
    line-height: 1.4;
}

.tpbc-pass-offer-text strong { color: #713f12; }
.tpbc-pass-offer-text small  { display: block; color: #92400e; margin-top: 2px; font-size: 0.8rem; }

.tpbc-pass-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #713f12;
    cursor: pointer;
    white-space: nowrap;
}

.tpbc-pass-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #92400e;
    cursor: pointer;
}

/* Pass discount row in summary */
.tpbc-pass-applied-row .tpbc-summary-value.tpbc-pass-discount { color: #065f46; }
.tpbc-review-total.tpbc-pass-free { color: #065f46; }

/* ── Credits full-cover notice (Step 3) ───────────────────────────────────── */
.tpbc-credits-full-cover {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    border: 1.5px solid #34d399;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 20px 0;
}

.tpbc-credits-full-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.tpbc-credits-full-cover div {
    font-size: 0.9rem;
    color: #065f46;
    line-height: 1.5;
}

.tpbc-credits-full-cover strong { color: #1b3a2d; font-size: 0.95rem; }

.tpbc-credits-full-cover p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.84rem;
}

/* ── Credits row in confirmation table ────────────────────────────────────── */
.tpbc-credits-row td { color: #065f46 !important; font-weight: 600; }

/* ── Booking form ─────────────────────────────────────────────────────────── */
.tpbc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tpbc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.tpbc-form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tpbc-form-group .req { color: #ef4444; }

.tpbc-form-group input,
.tpbc-form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tpbc-form-group input::placeholder,
.tpbc-form-group textarea::placeholder {
    color: #cbd5e1;
}

.tpbc-form-group input:focus,
.tpbc-form-group textarea:focus {
    outline: none;
    border-color: #2d7a4f;
    box-shadow: 0 0 0 3px rgba(45,122,79,0.1);
}

.tpbc-form-error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 0.84rem;
    margin-bottom: 16px;
    font-weight: 500;
    border: 1px solid #fecaca;
}

.tpbc-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* ── Payment method cards ─────────────────────────────────────────────────── */
.tpbc-payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 10px;
}

.tpbc-payment-card {
    display: block;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 14px 20px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.tpbc-payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.tpbc-payment-card:hover {
    border-color: #1b3a2d;
    background: #f8fffc;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27,58,45,0.12);
}

.tpbc-payment-card--selected {
    border-color: #1b3a2d !important;
    background: #f0fdf4 !important;
    box-shadow: 0 4px 16px rgba(27,58,45,0.15) !important;
    transform: translateY(-2px);
}

/* Checkmark badge on selected card */
.tpbc-payment-card--selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #1b3a2d;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 22px;
    text-align: center;
}

.tpbc-payment-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.tpbc-payment-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 2px;
}

.tpbc-payment-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.tpbc-payment-desc {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.4;
}

/* ── Error ────────────────────────────────────────────────────────────────── */
.tpbc-error {
    color: #991b1b;
    background: #fee2e2;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin: 8px 0;
    border: 1px solid #fecaca;
    font-weight: 500;
}

/* ── Confirmation ─────────────────────────────────────────────────────────── */
.tpbc-confirm-wrap {
    text-align: center;
    padding: 48px 24px 40px;
}

.tpbc-confirm-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2d7a4f, #1b3a2d);
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 8px 28px rgba(45,122,79,0.35);
    animation: tpbc-pulse 2s ease-in-out infinite;
}

@keyframes tpbc-pulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(45,122,79,0.35); }
    50%       { box-shadow: 0 8px 36px rgba(45,122,79,0.55); }
}

.tpbc-confirm-wrap h3 {
    font-size: 1.65rem;
    color: #1b3a2d;
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tpbc-confirm-sub {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tpbc-confirm-table {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 28px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.tpbc-confirm-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.tpbc-confirm-table td:first-child {
    color: #64748b;
    width: 120px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
}

/* ── Payment instructions box ─────────────────────────────────────────────── */
.tpbc-payment-instructions {
    max-width: 460px;
    margin: 0 auto 28px;
    text-align: left;
}

.tpbc-pay-box {
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.88rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tpbc-pay-box--gcash   { border: 1.5px solid #4ade80; }
.tpbc-pay-box--bank    { border: 1.5px solid #93c5fd; }
.tpbc-pay-box--location{ border: 1.5px solid #e2e8f0; }
.tpbc-pay-box--credits { border: 1.5px solid #a7f3d0; }

.tpbc-pay-box-title {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.tpbc-pay-box--gcash    .tpbc-pay-box-title { background: #dcfce7; color: #15803d; }
.tpbc-pay-box--bank     .tpbc-pay-box-title { background: #dbeafe; color: #1d4ed8; }
.tpbc-pay-box--location .tpbc-pay-box-title { background: #f8fafc; color: #374151; }
.tpbc-pay-box--credits  .tpbc-pay-box-title { background: #d1fae5; color: #065f46; }

.tpbc-pay-box-body {
    padding: 16px 18px;
    background: #fff;
}

.tpbc-pay-box-body p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.tpbc-pay-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.tpbc-pay-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.tpbc-pay-table td:first-child {
    color: #64748b;
    width: 40%;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tpbc-pay-note {
    font-size: 0.79rem !important;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: 6px;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

/* ── QR code ──────────────────────────────────────────────────────────────── */
.tpbc-pay-qr-wrap {
    text-align: center;
    margin: 0 auto 14px;
}
.tpbc-pay-qr {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 6px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    padding: 6px;
}
.tpbc-pay-qr-label {
    font-size: 0.78rem !important;
    color: #64748b;
    margin: 0 !important;
}

/* ── Responsive — Tablet (≤768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .tpbc-widget {
        padding: 28px 24px 36px;
        border-radius: 18px;
    }

    .tpbc-progress {
        margin-bottom: 32px;
    }

    .tpbc-prog-num {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .tpbc-prog-label {
        font-size: 0.66rem;
    }

    .tpbc-progress-line {
        min-width: 24px;
        max-width: 60px;
    }
}

/* ── Responsive — Mobile (≤600px) ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .tpbc-widget {
        padding: 22px 16px 32px;
        border-radius: 0;
        box-shadow: none;
        /* Let the page/theme handle outer padding on mobile */
    }

    /* Compact progress: hide labels, shrink circles */
    .tpbc-progress {
        margin-bottom: 26px;
    }

    .tpbc-prog-label {
        display: none;
    }

    .tpbc-prog-num {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .tpbc-progress-line {
        min-width: 18px;
        max-width: 40px;
        margin-bottom: 0;
    }

    /* Date nav: compact */
    .tpbc-date-nav {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* date input inherits the full-cover rule from base — no override needed */

    .tpbc-nav-btn {
        width: 34px;
    }

    .tpbc-today-btn {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    /* Legend: smaller, tighter */
    .tpbc-legend {
        gap: 12px;
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    /* Minimum notice: tighter on mobile */
    .tpbc-min-booking-notice {
        font-size: 0.78rem;
        padding: 8px 12px;
        margin-bottom: 14px;
    }

    /* ── Grid: force all courts to fit without horizontal scroll ── */
    .tpbc-grid-table {
        min-width: 0;          /* override desktop min-width */
        table-layout: fixed;   /* equal-width columns */
        width: 100%;
    }

    .tpbc-th-time,
    .tpbc-time-label {
        width: 54px;
        min-width: 54px;
        padding: 0 4px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .tpbc-th-court {
        padding: 8px 2px 6px;
    }

    /* Court images: small on mobile */
    .tpbc-court-img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        margin-bottom: 4px;
    }

    /* Placeholder icon when no image is set */
    .tpbc-court-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #dcfce7;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        margin: 0 auto 4px;
    }

    .tpbc-th-court {
        padding: 8px 2px 6px;
    }

    .tpbc-court-name {
        font-size: 0.68rem;
        font-weight: 700;
    }

    .tpbc-court-rate {
        font-size: 0.6rem;
    }

    /* Slots: taller touch targets */
    .tpbc-slot { height: 50px; }
    .tpbc-time-label { height: 50px; }

    /* Available pill: white with border — matches the legend */
    .tpbc-slot--available .tpbc-slot-inner {
        background: #fff;
        border: 1.5px solid #cbd5e1;
        border-radius: 20px;
        color: #94a3b8;
        font-size: 0.68rem;
        font-weight: 500;
        margin: 3px;
    }

    .tpbc-slot--clickable:hover .tpbc-slot-inner {
        background: #f0fdf4;
        border-color: #1b3a2d;
        color: #1b3a2d;
    }

    /* Form: single column */
    .tpbc-form-row { grid-template-columns: 1fr; }

    /* Selection bar: stacked */
    .tpbc-selection-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tpbc-selection-bar .tpbc-btn {
        width: 100%;
        justify-content: center;
    }

    /* Payment cards: single column */
    .tpbc-payment-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tpbc-payment-card {
        padding: 16px 18px;
    }

    .tpbc-payment-card-inner {
        flex-direction: row;
        text-align: left;
        gap: 14px;
    }

    .tpbc-payment-icon {
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    .tpbc-payment-card--selected::after {
        top: 50%;
        transform: translateY(-50%);
        right: 14px;
    }

    /* Buttons: full width on mobile */
    .tpbc-form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .tpbc-form-footer .tpbc-btn {
        width: 100%;
        justify-content: center;
    }

    /* Review / confirm */
    .tpbc-confirm-wrap {
        padding: 32px 8px 28px;
    }

    .tpbc-confirm-wrap h3 {
        font-size: 1.35rem;
    }

    .tpbc-confirm-table {
        font-size: 0.82rem;
    }

    .tpbc-payment-instructions {
        max-width: 100%;
    }
}

/* ── Responsive — Very small (≤380px) ────────────────────────────────────── */
@media (max-width: 380px) {
    .tpbc-widget {
        padding: 18px 12px 28px;
    }

    .tpbc-progress-line {
        min-width: 12px;
        max-width: 28px;
    }

    .tpbc-prog-num {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   Staff Panel  [pickleb_staff]
   ========================================================================== */

/* ── Login screen ─────────────────────────────────────────────────────────── */
.tpbc-staff-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
    padding: 24px 16px;
}

.tpbc-staff-login-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.tpbc-staff-login-logo {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.tpbc-staff-login-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1b3a2d;
    margin: 0 0 6px;
}

.tpbc-staff-login-box p {
    color: #6b7280;
    font-size: 0.88rem;
    margin: 0 0 20px;
}

.tpbc-staff-pw-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.tpbc-staff-pw-input:focus {
    outline: none;
    border-color: #2d7a4f;
    box-shadow: 0 0 0 3px rgba(45,122,79,0.1);
}

.tpbc-staff-login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1b3a2d 0%, #2d7a4f 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.tpbc-staff-login-btn:hover { opacity: 0.9; }

.tpbc-staff-error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.84rem;
    margin-bottom: 16px;
    font-weight: 500;
}

/* ── Full-bleed outer wrapper (breaks out of theme's narrow column) ──────── */
.tpbc-staff-outer {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 0 40px;
    box-sizing: border-box;
}
@media(max-width:768px) {
    .tpbc-staff-outer { padding: 0 12px; }
}

/* ── Panel wrapper ────────────────────────────────────────────────────────── */
.tpbc-staff-panel {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: #111827;
    display: flex;
    flex-direction: row;
    min-height: 700px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.tpbc-staff-sidebar {
    width: 215px;
    min-width: 215px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.tpbc-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tpbc-sidebar-brand-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }

.tpbc-sidebar-brand-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.2;
}

.tpbc-sidebar-brand-sub {
    font-size: 0.6rem;
    font-weight: 600;
    color: #4b5563 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3px;
}

.tpbc-sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
    scrollbar-width: none;
}
.tpbc-sidebar-nav::-webkit-scrollbar { display: none; }

.tpbc-sidenav-group {
    padding: 0 8px;
    margin-bottom: 4px;
}

.tpbc-sidenav-group-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 8px 5px;
}

.tpbc-staff-sidebar .tpbc-sidenav-item,
.tpbc-staff-sidebar a.tpbc-sidenav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #9ca3af !important;
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s;
    margin-bottom: 1px;
    cursor: pointer;
}

.tpbc-staff-sidebar .tpbc-sidenav-item:hover,
.tpbc-staff-sidebar a.tpbc-sidenav-item:hover {
    background: rgba(255,255,255,0.07);
    color: #e5e7eb !important;
    text-decoration: none !important;
}

.tpbc-staff-sidebar .tpbc-sidenav-item.active,
.tpbc-staff-sidebar a.tpbc-sidenav-item.active {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

.tpbc-sidenav-icon {
    flex-shrink: 0;
    opacity: 0.75;
}
.tpbc-sidenav-item.active .tpbc-sidenav-icon,
.tpbc-sidenav-item:hover .tpbc-sidenav-icon { opacity: 1; }

.tpbc-sidenav-badge {
    margin-left: auto;
    background: #2d2d2d;
    color: #d1d5db;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.5;
}
.tpbc-sidenav-item.active .tpbc-sidenav-badge {
    background: #2d7a4f;
    color: #fff;
}

.tpbc-sidebar-foot {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.tpbc-staff-sidebar .tpbc-sidenav-signout,
.tpbc-staff-sidebar a.tpbc-sidenav-signout { color: #6b7280 !important; }
.tpbc-staff-sidebar .tpbc-sidenav-signout:hover,
.tpbc-staff-sidebar a.tpbc-sidenav-signout:hover { color: #9ca3af !important; background: rgba(255,255,255,0.04) !important; }

/* ── Main content area ────────────────────────────────────────────────────── */
.tpbc-staff-main {
    flex: 1;
    min-width: 0;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    overflow: auto;
    position: relative;
    padding: 20px;
}

/* NBF spans full width despite main padding */
.tpbc-staff-nbf {
    margin: -20px -20px 20px;
}

/* ── Content area (legacy, kept for any direct uses) ─────────────────────── */
.tpbc-staff-content {
    flex: 1;
    padding: 20px;
}

/* ── Section titles ───────────────────────────────────────────────────────── */
.tpbc-staff-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.tpbc-staff-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.tpbc-staff-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1b3a2d 0%, #2d5c42 100%);
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px 14px 0 0;
}

.tpbc-staff-brand {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.tpbc-staff-header-title {
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tpbc-staff-signout {
    margin-left: auto;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.15s;
}

.tpbc-staff-signout:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
}

/* ── Status tabs (bookings view) ──────────────────────────────────────────── */
.tpbc-staff-status-tabs {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    padding: 12px 16px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.tpbc-staff-status-tab {
    padding: 8px 12px;
    font-size: 0.81rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px 6px 0 0;
}

.tpbc-staff-status-tab:hover { color: #1b3a2d; background: #f9fafb; }

.tpbc-staff-status-tab.active {
    color: #1b3a2d;
    border-bottom-color: #1b3a2d;
    background: #fff;
}

.tpbc-staff-status-count {
    background: #f1f5f9;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.6;
}

.tpbc-staff-status-tab.active .tpbc-staff-status-count {
    background: #1b3a2d;
    color: #fff;
}

/* ── Two-row nav ──────────────────────────────────────────────────────────── */
.tpbc-staff-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tpbc-staff-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.tpbc-staff-tabs::-webkit-scrollbar { display: none; }

.tpbc-staff-tabs--primary {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.tpbc-staff-tabs--secondary {
    background: #f8fafc;
}

.tpbc-staff-tab {
    padding: 11px 15px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tpbc-staff-tabs--secondary .tpbc-staff-tab {
    font-size: 0.78rem;
    padding: 8px 13px;
    color: #9ca3af;
}

.tpbc-staff-tab:hover { color: #1b3a2d; }

.tpbc-staff-tab.active {
    color: #1b3a2d;
    border-bottom-color: #2d7a4f;
    background: rgba(45,122,79,0.04);
}

.tpbc-staff-tabs--secondary .tpbc-staff-tab.active {
    color: #2d7a4f;
    border-bottom-color: #2d7a4f;
    background: rgba(45,122,79,0.05);
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.tpbc-staff-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
}

.tpbc-staff-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

/* ── Stat cards (reports) ─────────────────────────────────────────────────── */
.tpbc-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    border-left: 3px solid #e5e7eb;
}
.tpbc-stat-card--green { border-left-color: #16a34a; background: #f0fdf4; }
.tpbc-stat-card--yellow { border-left-color: #d97706; background: #fffbeb; }
.tpbc-stat-card--red { border-left-color: #dc2626; background: #fef2f2; }

.tpbc-stat-label {
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
    font-weight: 600;
}
.tpbc-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}
.tpbc-stat-sub {
    font-size: 0.71rem;
    color: #9ca3af;
    margin-top: 3px;
}

/* ── Filter form ──────────────────────────────────────────────────────────── */
.tpbc-staff-filter-form {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.tpbc-staff-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.tpbc-staff-filter-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tpbc-staff-filter-field label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tpbc-staff-filter-field input,
.tpbc-staff-filter-field select {
    padding: 7px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    font-size: 0.84rem;
    font-family: inherit;
    background: #fff;
    color: #111827;
    transition: border-color 0.15s;
}

.tpbc-staff-filter-field input:focus,
.tpbc-staff-filter-field select:focus {
    outline: none;
    border-color: #1b3a2d;
}

/* Filter action buttons — side by side, bottom-aligned */
.tpbc-staff-filter-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    align-self: flex-end;
}

/* ── Shared button ────────────────────────────────────────────────────────── */
.tpbc-staff-btn {
    display: inline-block;
    padding: 7px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
}

.tpbc-staff-btn:hover { background: #f1f5f9; border-color: #9ca3af; color: #1a1a1a; }

.tpbc-staff-btn--primary {
    background: #1b3a2d;
    border-color: #1b3a2d;
    color: #fff;
}

.tpbc-staff-btn--primary:hover { background: #2d5c42; border-color: #2d5c42; color: #fff; }

/* Period/filter toggle active — light green, not dark */
.tpbc-staff-btn--period-active {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #15803d;
    font-weight: 600;
}
.tpbc-staff-btn--period-active:hover { background: #dcfce7; border-color: #16a34a; color: #15803d; }

/* ── Schedule nav ─────────────────────────────────────────────────────────── */
.tpbc-staff-sched-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.tpbc-staff-sched-date-label {
    font-size: 0.95rem;
    color: #1b3a2d;
    margin-left: 4px;
}

.tpbc-staff-date-input {
    padding: 6px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
}

/* ── Schedule legend ──────────────────────────────────────────────────────── */
.tpbc-staff-sched-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    font-size: 0.78rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tpbc-staff-sl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.tpbc-staff-sl::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.tpbc-staff-sl--available         { background: #f9fafb; color: #374151; }
.tpbc-staff-sl--available::before { background: #e5e7eb; border: 1px solid #d1d5db; }

.tpbc-staff-sl--confirmed-paid         { background: #d1fae5; color: #065f46; }
.tpbc-staff-sl--confirmed-paid::before { background: #34d399; }

.tpbc-staff-sl--confirmed-pending         { background: #fff7ed; color: #c2410c; }
.tpbc-staff-sl--confirmed-pending::before { background: #fb923c; }

.tpbc-staff-sl--pending         { background: #fef9c3; color: #92400e; }
.tpbc-staff-sl--pending::before { background: #fbbf24; }

/* ── Schedule grid ────────────────────────────────────────────────────────── */
.tpbc-staff-sched-wrap {
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
}

.tpbc-staff-sched-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
    font-size: 0.8rem;
}

.tpbc-staff-sched-th-time {
    width: 72px;
    padding: 10px 12px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.tpbc-staff-sched-th-court {
    padding: 10px 12px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    font-weight: 600;
    text-align: center;
    min-width: 130px;
}

.tpbc-staff-sched-time {
    padding: 6px 10px;
    color: #6b7280;
    font-size: 0.76rem;
    white-space: nowrap;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
    vertical-align: middle;
}

.tpbc-staff-sched-cell {
    padding: 4px 8px;
    border-bottom: 1px solid #f1f5f9;
    border-left: 1px solid #e5e7eb;
    vertical-align: middle;
    height: 44px;
}

.tpbc-staff-sched--available         { background: #fff !important; }
.tpbc-staff-sched--confirmed-paid    { background: #dcfce7 !important; }
.tpbc-staff-sched--confirmed-pending { background: #fff7ed !important; }
.tpbc-staff-sched--pending           { background: #fef9c3 !important; }
.tpbc-staff-sched--maintenance       { background: #f1f5f9 !important; }

.tpbc-staff-sched-label  { font-size: 0.72rem; color: #9ca3af; }
.tpbc-staff-sched-booking { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.tpbc-staff-sched-booking strong { font-size: 0.78rem; color: #1a1a1a; }
.tpbc-staff-sched-booking span   { font-size: 0.72rem; color: #6b7280; }

/* ── Bookings table ───────────────────────────────────────────────────────── */
.tpbc-staff-table-wrap {
    overflow-x: auto;
    border-top: 1px solid #e5e7eb;
}

.tpbc-staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    min-width: 700px;
    background: #fff;
}

.tpbc-staff-table thead tr {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.tpbc-staff-table thead th,
.tpbc-staff-table thead th * {
    padding: 11px 14px !important;
    background: #f8fafc !important;
    color: #6b7280 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
    text-align: left !important;
    border: none !important;
    box-shadow: none !important;
}

.tpbc-staff-table tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
    background: #fff !important;
}

.tpbc-staff-table tbody tr:hover { background: #fafafa !important; }

.tpbc-staff-table tbody td {
    padding: 12px 14px !important;
    vertical-align: top !important;
    color: #111827 !important;
}

.tpbc-staff-muted {
    color: #9ca3af;
    font-size: 0.77rem;
    display: block;
    margin-top: 2px;
    line-height: 1.4;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.tpbc-staff-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tpbc-staff-badge--pending   { background: #fef3c7; color: #92400e; }
.tpbc-staff-badge--confirmed { background: #dcfce7; color: #15803d; }
.tpbc-staff-badge--paid      { background: #dcfce7; color: #15803d; }
.tpbc-staff-badge--cancelled { background: #fee2e2; color: #b91c1c; }
.tpbc-staff-badge--completed { background: #f1f5f9; color: #64748b; }

/* ── Action buttons ───────────────────────────────────────────────────────── */
.tpbc-staff-actions-cell { white-space: normal; vertical-align: middle !important; }

.tpbc-staff-act {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    margin: 0 4px 4px 0;
    font-family: inherit;
    transition: all 0.15s;
    line-height: 1;
    white-space: nowrap;
}

.tpbc-staff-act--confirm {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}

.tpbc-staff-act--confirm:hover {
    background: #dcfce7;
    border-color: #4ade80;
    color: #166534;
}

.tpbc-staff-act--paid {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}

.tpbc-staff-act--paid:hover { background: #dcfce7; border-color: #4ade80; }

.tpbc-staff-act--cancel {
    background: #fff5f5;
    color: #b91c1c;
    border-color: #fca5a5;
}

.tpbc-staff-act--cancel:hover { background: #fee2e2; border-color: #f87171; }

.tpbc-staff-act--showed {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}
.tpbc-staff-act--showed:hover { background: #dcfce7; border-color: #4ade80; }

.tpbc-staff-act--noshow {
    background: #fff5f5;
    color: #b91c1c;
    border-color: #fca5a5;
}
.tpbc-staff-act--noshow:hover { background: #fee2e2; border-color: #f87171; }

.tpbc-staff-badge--checkin-showed {
    background: #dcfce7;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}
.tpbc-staff-badge--checkin-noshow {
    background: #fee2e2;
    color: #b91c1c;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.tpbc-staff-act:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Proof cell ───────────────────────────────────────────────────────────── */
.tpbc-staff-proof-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tpbc-staff-proof-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.tpbc-staff-link {
    color: #2d7a4f;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
}

.tpbc-staff-link:hover { text-decoration: underline; }

.tpbc-staff-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.tpbc-staff-btn-sm:hover { background: #f1f5f9; border-color: #d1d5db; color: #374151; }

.tpbc-staff-btn-sm--danger {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff5f5;
}
.tpbc-staff-btn-sm--danger:hover { background: #fee2e2; border-color: #ef4444; color: #b91c1c; }

/* ── New Booking Form (staff) ─────────────────────────────────────────────── */
/* ── Export CSV button ────────────────────────────────────────────────────── */
.tpbc-staff-export-form {
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #f1f5f9;
}

.tpbc-staff-export-btn {
    font-size: 0.78rem;
    color: #374151;
    border-color: #e5e7eb;
    background: #f9fafb;
    gap: 5px;
}

.tpbc-staff-export-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

/* ── New Booking Form (staff) ─────────────────────────────────────────────── */
.tpbc-staff-nbf-toggle {
    margin-left: auto;
    margin-right: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    white-space: nowrap;
}

.tpbc-staff-nbf-toggle:hover { background: rgba(255,255,255,0.28); }

.tpbc-staff-nbf {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tpbc-staff-nbf-inner {
    padding: 20px 24px 24px;
    max-width: 860px;
}

.tpbc-staff-nbf-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1b3a2d;
    margin: 0 0 16px;
}

.tpbc-staff-nbf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .tpbc-staff-nbf-grid { grid-template-columns: 1fr; }
}

.tpbc-staff-nbf-col { display: flex; flex-direction: column; gap: 12px; }

.tpbc-staff-nbf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tpbc-staff-nbf-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tpbc-staff-nbf-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tpbc-staff-nbf-field label small {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.tpbc-staff-nbf-field input,
.tpbc-staff-nbf-field select,
.tpbc-staff-nbf-field textarea {
    padding: 8px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.855rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.tpbc-staff-nbf-field input:focus,
.tpbc-staff-nbf-field select:focus,
.tpbc-staff-nbf-field textarea:focus {
    outline: none;
    border-color: #1b3a2d;
}

.tpbc-staff-nbf-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    min-height: 48px;
    align-items: flex-start;
    align-content: flex-start;
}

.tpbc-nbf-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 9px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.12s;
    line-height: 1.2;
}

.tpbc-nbf-slot:hover:not(.tpbc-nbf-slot--taken) {
    border-color: #1b3a2d;
    background: #f0fdf4;
}

.tpbc-nbf-slot--selected {
    background: #1b3a2d !important;
    border-color: #1b3a2d !important;
    color: #fff !important;
}

.tpbc-nbf-slot--selected .tpbc-nbf-slot-rate { color: rgba(255,255,255,0.8); }

.tpbc-nbf-slot--taken {
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: default;
    opacity: 0.55;
}

.tpbc-nbf-slot-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
}

.tpbc-nbf-slot-rate {
    font-size: 0.68rem;
    color: #64748b;
}

.tpbc-staff-nbf-slot-summary {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1b3a2d;
    background: #d1fae5;
    padding: 6px 10px;
    border-radius: 7px;
    margin-top: 4px;
}

.tpbc-staff-nbf-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tpbc-staff-nbf-footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tpbc-staff-nbf-success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ── Gap Alerts view ──────────────────────────────────────────────────────── */
.tpbc-staff-gap-intro {
    padding: 16px 20px;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tpbc-staff-gap-intro p {
    margin: 0;
    color: #78350f;
    font-size: 0.85rem;
    flex: 1;
    min-width: 200px;
}

.tpbc-staff-gap-table {
    margin: 0;
    border-top: none;
}

.tpbc-staff-gap-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    color: #64748b;
    gap: 8px;
}

.tpbc-staff-gap-empty span { font-size: 2rem; }

.tpbc-staff-act--block {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.tpbc-staff-act--block:hover { background: #ffedd5; }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .tpbc-staff-panel { flex-direction: column; min-height: auto; border-radius: 10px; }
    .tpbc-staff-sidebar { width: 100%; min-width: 0; flex-direction: row; align-items: center; }
    .tpbc-sidebar-brand { padding: 12px 14px; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.06); }
    .tpbc-sidebar-brand-sub { display: none; }
    .tpbc-sidebar-nav { display: flex; flex-direction: row; padding: 6px 8px; overflow-x: auto; scrollbar-width: none; }
    .tpbc-sidebar-nav::-webkit-scrollbar { display: none; }
    .tpbc-sidenav-group { display: contents; }
    .tpbc-sidenav-group-label { display: none; }
    .tpbc-sidenav-item { padding: 6px 10px; font-size: 0.78rem; margin-bottom: 0; white-space: nowrap; }
    .tpbc-sidenav-icon { display: none; }
    .tpbc-sidebar-foot { padding: 4px 8px; border-top: none; border-left: 1px solid rgba(255,255,255,0.06); margin-left: auto; }
    .tpbc-sidenav-signout span { display: none; }
    .tpbc-sidenav-signout .tpbc-sidenav-icon { display: block; }
    .tpbc-staff-login-box { padding: 28px 20px; }
    .tpbc-staff-filter-row { flex-direction: column; }
    .tpbc-staff-sched-date-label { display: none; }
    .tpbc-staff-nbf-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOP WIDGET
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.tpbc-shop-hero {
    text-align: center;
    padding: 32px 0 20px;
}

.tpbc-shop-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #3d5a0a;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 6px;
}

.tpbc-shop-hero-sub {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* "Shop by Category" heading */
.tpbc-shop-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

/* Filter bar: search + sort */
.tpbc-shop-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 20px;
    flex-wrap: wrap;
}

.tpbc-shop-search-wrap {
    position: relative;
    flex: 1 1 200px;
    min-width: 160px;
}

.tpbc-shop-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.tpbc-shop-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
}
.tpbc-shop-search-input:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132,204,22,.15);
    background: #fff;
}

.tpbc-shop-sort-select {
    padding: 9px 32px 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
    white-space: nowrap;
}
.tpbc-shop-sort-select:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132,204,22,.15);
}

/* Category label pill on product cards */
.tpbc-shop-card-cover-label--cat {
    background: rgba(132,204,22,.85) !important;
    color: #1e293b !important;
}

/* Category tab bar */
.tpbc-shop-cat-bar {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
    flex-wrap: wrap;
    padding-bottom: 0;
}

.tpbc-shop-cat-btn {
    padding: 8px 16px 16px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: -2px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8 !important;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.tpbc-shop-cat-btn--active { color: #3d5a0a !important; border-bottom-color: #3d5a0a !important; }
.tpbc-shop-cat-btn:hover:not(.tpbc-shop-cat-btn--active) { color: #64748b !important; }

/* Grid — 3-col desktop, 2-col mobile */
.tpbc-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 100px;
}

/* Card shell */
.tpbc-shop-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tpbc-shop-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.tpbc-shop-card--oos { opacity: 0.55; }

/* ── Collection-card cover (the full-bleed image + gradient + overlay text) */
.tpbc-shop-card-cover {
    position: relative;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Pass cover — dark olive gradient background (no photo needed) */
.tpbc-shop-card-cover--pass .tpbc-shop-card-cover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #1a3304 0%, #3d6b10 60%, #6aad1c 100%);
}

/* Product cover with no photo */
.tpbc-shop-card-cover--nophoto {
    background: linear-gradient(145deg, #1e293b, #334155);
}

/* Dark gradient at the bottom — the signature Pickle Club Davao look */
.tpbc-shop-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 20%,
        rgba(0,0,0,0.15) 50%,
        rgba(0,0,0,0.72) 100%
    );
    pointer-events: none;
}

/* Text overlay */
.tpbc-shop-card-cover-overlay {
    position: relative;
    z-index: 1;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tpbc-shop-card-cover-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d4f170;
    margin-bottom: 4px;
    align-self: flex-start;
}

.tpbc-shop-card-cover-label--oos {
    background: rgba(220, 38, 38, 0.88) !important;
    color: #fff !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.06em !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    text-transform: uppercase;
}

.tpbc-shop-card-cover-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tpbc-shop-card-cover-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
    margin: 4px 0 0;
    line-height: 1.4;
}

.tpbc-shop-card-cover-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #d4f170;
    margin-top: 6px;
    letter-spacing: -0.01em;
}

/* Sale pricing — struck original + highlighted sale price */
.tpbc-shop-card-cover-price--sale .tpbc-shop-price-orig {
    font-size: 0.82em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    margin-right: 6px;
}
.tpbc-shop-card-cover-price--sale .tpbc-shop-price-now {
    color: #fca5a5;
}

/* Card footer — add button below the cover */
.tpbc-shop-card-footer {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}

.tpbc-shop-variant-select {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
}

.tpbc-shop-variant-select.tpbc-input-error { border-color: #dc2626; animation: tpbc-shake 0.3s; }

/* The add-to-cart button — full width, pill shaped */
.tpbc-shop-add-btn {
    width: 100%;
    padding: 10px 12px;
    background: #f1f5f9;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: center;
}

.tpbc-shop-add-btn:hover { background: #3d5a0a; color: #fff; }
.tpbc-shop-add-btn--added { background: #ecfccb !important; color: #3f6212 !important; }

/* Qty stepper (inside footer) */
.tpbc-shop-card-footer .tpbc-shop-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.tpbc-shop-card-footer .tpbc-qty-btn {
    background: #f8fafc;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #374151;
    transition: background 0.12s;
    flex-shrink: 0;
}

.tpbc-shop-card-footer .tpbc-qty-btn:hover { background: #e2e8f0; }

.tpbc-shop-card-footer .tpbc-qty-val {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
}

/* Coming soon placeholder */
.tpbc-shop-coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.tpbc-shop-coming-icon { font-size: 3rem; margin-bottom: 12px; }
.tpbc-shop-coming-soon h3 { color: #1e293b; margin: 0 0 8px; font-size: 1.2rem; }
.tpbc-shop-coming-soon p  { margin: 0; font-size: 0.9rem; color: #94a3b8; }

/* Cart bar — floating pill */
.tpbc-shop-cart-bar {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background: #1e293b;
    color: #fff;
    padding: 12px 12px 12px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 999;
    white-space: nowrap;
    font-size: 0.88rem;
}

.tpbc-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d4f170;
    color: #2d4a06;
    font-weight: 800;
    font-size: 0.78rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.tpbc-shop-cart-bar .tpbc-btn {
    padding: 9px 22px;
    font-size: 0.88rem;
    border-radius: 50px;
    flex-shrink: 0;
}

/* Checkout — two-column layout */
.tpbc-shop-checkout-cols {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 8px;
}

.tpbc-shop-summary-head {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 14px;
}

.tpbc-shop-order-summary {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 16px;
}

.tpbc-checkout-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.88rem;
}

.tpbc-checkout-item:last-child { border-bottom: none; }

.tpbc-checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.tpbc-checkout-item-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.tpbc-checkout-item-name { color: #1e293b; font-weight: 600; }
.tpbc-checkout-item-name em { color: #94a3b8; font-style: normal; }

.tpbc-checkout-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.tpbc-checkout-item-qty { font-size: 0.78rem; color: #94a3b8; }
.tpbc-checkout-item-price { font-weight: 700; color: #3d5a0a; }

.tpbc-shop-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tpbc-shop-total-row strong { font-size: 1.25rem; color: #3d5a0a; letter-spacing: -0.01em; }

.tpbc-btn--full { width: 100%; }

/* Confirmation */
.tpbc-confirm-details-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin: 16px auto;
    text-align: left;
    max-width: 480px;
}

.tpbc-confirm-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    color: #374151;
}

.tpbc-confirm-row:last-child { border-bottom: none; }

.tpbc-confirm-section-head {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3d5a0a;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
}

.tpbc-confirm-pass-code {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.88rem;
    color: #374151;
}

.tpbc-confirm-pass-code:last-child { border-bottom: none; }

.tpbc-pass-code-pill {
    display: inline-block;
    background: #ecfccb;
    color: #3f6212;
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid #d9f99d;
    margin: 2px 0;
}

/* ─── Staff panel shop/passes ───────────────────────────────────────────── */

.tpbc-staff-shop-section { padding: 20px; }

.tpbc-staff-shop-order-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.tpbc-staff-shop-order-num    { font-family: monospace; font-weight: 700; font-size: 0.9rem; color: #1e293b; }
.tpbc-staff-shop-order-customer { font-size: 0.88rem; color: #64748b; }
.tpbc-staff-shop-order-total  { font-weight: 700; color: #5b7c10; margin-left: auto; }

.tpbc-staff-shop-order-status {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.tpbc-staff-shop-order-status--pending   { background:#fef3c7; color:#92400e; }
.tpbc-staff-shop-order-status--paid      { background:#dcfce7; color:#14532d; }
.tpbc-staff-shop-order-status--complete  { background:#e0f2fe; color:#0c4a6e; }
.tpbc-staff-shop-order-status--cancelled { background:#fee2e2; color:#7f1d1d; }

.tpbc-staff-passes-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.tpbc-staff-passes-table th {
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.tpbc-staff-passes-table td   { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: #374151; vertical-align: middle; }
.tpbc-staff-passes-table tr:last-child td { border-bottom: none; }
.tpbc-staff-passes-table tr:hover td { background: #f8fafc; }

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes tpbc-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tpbc-shop-grid { grid-template-columns: repeat(2, 1fr); }
    .tpbc-shop-checkout-cols { grid-template-columns: 1fr; }
    .tpbc-shop-order-summary { position: static; }
}

@media (max-width: 640px) {
    .tpbc-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tpbc-shop-cart-bar { left: 10px; right: 10px; width: auto; margin: 0; border-radius: 16px; }
}

@media (max-width: 400px) {
    .tpbc-shop-grid { grid-template-columns: 1fr; }
}
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.tpbc-shop-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.tpbc-shop-tab--active,
.tpbc-shop-tab:hover { color: #5b7c10; border-bottom-color: #5b7c10; }

/* Grid */
.tpbc-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 80px; /* space for cart bar */
}

/* Card */
.tpbc-shop-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.tpbc-shop-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.tpbc-shop-card--oos { opacity: 0.6; }

.tpbc-shop-card-icon {
    font-size: 2.4rem;
    text-align: center;
    padding: 20px 16px 8px;
    background: #f8fafc;
}

.tpbc-shop-card-img { aspect-ratio: 4/3; overflow: hidden; background: #f1f5f9; }
.tpbc-shop-card-img img { width: 100%; height: 100%; object-fit: cover; }

.tpbc-shop-card-body {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tpbc-shop-card-name { font-size: 1rem; font-weight: 700; color: #1e293b; }
.tpbc-shop-card-desc { font-size: 0.82rem; color: #64748b; line-height: 1.4; }
.tpbc-shop-card-meta { font-size: 0.8rem; color: #94a3b8; }
.tpbc-shop-card-price { font-size: 1.1rem; font-weight: 700; color: #5b7c10; margin-top: 4px; }

.tpbc-oos-badge { color: #dc2626 !important; font-weight: 600; }

.tpbc-shop-card-actions {
    padding: 10px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tpbc-shop-variant-select {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #374151;
    background: #fff;
}

.tpbc-shop-variant-select.tpbc-input-error { border-color: #dc2626; animation: tpbc-shake 0.3s; }

@keyframes tpbc-shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.tpbc-shop-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 0.95rem;
}

/* Cart bar */
.tpbc-shop-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background: #1e293b;
    color: #fff;
    padding: 14px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    z-index: 999;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
}

.tpbc-shop-cart-bar .tpbc-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* Checkout layout */
.tpbc-shop-checkout-cols {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 28px;
    align-items: start;
}

.tpbc-shop-order-summary {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.tpbc-checkout-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.tpbc-checkout-item:last-child { border-bottom: none; }

.tpbc-checkout-item-name { flex: 1; color: #374151; }
.tpbc-checkout-item-name em { color: #94a3b8; font-style: normal; }
.tpbc-checkout-item-qty { color: #94a3b8; }
.tpbc-checkout-item-price { font-weight: 700; color: #1e293b; white-space: nowrap; }

.tpbc-shop-total-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
    font-size: 1.05rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
}

.tpbc-shop-total-row strong { color: #5b7c10; font-size: 1.15rem; }

/* Confirmation */
.tpbc-confirm-details-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.tpbc-confirm-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid #e2e8f0;
}

.tpbc-confirm-row:last-child { border-bottom: none; }

.tpbc-confirm-section-head {
    font-weight: 700;
    font-size: 0.9rem;
    color: #5b7c10;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
}

.tpbc-confirm-pass-code {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.88rem;
    color: #374151;
}

.tpbc-confirm-pass-code:last-child { border-bottom: none; }

.tpbc-pass-code-pill {
    display: inline-block;
    background: #ecfccb;
    color: #3f6212;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #d9f99d;
    margin: 4px 0;
}

/* Staff panel shop/passes tabs */
.tpbc-staff-shop-section { padding: 20px; }
.tpbc-staff-shop-order-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.tpbc-staff-shop-order-num { font-family: monospace; font-weight: 700; font-size: 0.9rem; color: #1e293b; }
.tpbc-staff-shop-order-customer { font-size: 0.88rem; color: #64748b; }
.tpbc-staff-shop-order-total { font-weight: 700; color: #5b7c10; margin-left: auto; }
.tpbc-staff-shop-order-status {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.tpbc-staff-shop-order-status--pending  { background:#fef3c7; color:#92400e; }
.tpbc-staff-shop-order-status--paid     { background:#dcfce7; color:#14532d; }
.tpbc-staff-shop-order-status--complete { background:#e0f2fe; color:#0c4a6e; }
.tpbc-staff-shop-order-status--cancelled{ background:#fee2e2; color:#7f1d1d; }

/* Staff passes table */
.tpbc-staff-passes-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tpbc-staff-passes-table th {
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.tpbc-staff-passes-table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: #374151; vertical-align: middle; }
.tpbc-staff-passes-table tr:last-child td { border-bottom: none; }
.tpbc-staff-passes-table tr:hover td { background: #f8fafc; }

/* Mobile shop */
@media (max-width: 640px) {
    .tpbc-shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tpbc-shop-checkout-cols { grid-template-columns: 1fr; }
    .tpbc-shop-order-summary { position: static; }
    .tpbc-shop-cart-bar { left: 12px; right: 12px; width: auto; margin: 0; border-radius: 14px; }
}

@media (max-width: 400px) {
    .tpbc-shop-grid { grid-template-columns: 1fr; }
}

/* ── Cart widget ─────────────────────────────────────────────────────────── */
.tpbc-cart-widget { max-width: 1100px; margin: 0 auto; }
.tpbc-cart-step   { display: block; }

/* Two-column layout */
.tpbc-cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* ── Left column ── */
.tpbc-cart-left {}

.tpbc-cart-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tpbc-cart-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
}

.tpbc-cart-top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tpbc-cart-clear-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 0.85rem;
    color: #ef4444 !important;
    cursor: pointer;
    font-weight: 500;
}
.tpbc-cart-clear-btn:hover { text-decoration: underline; }

.tpbc-cart-continue-link {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
}
.tpbc-cart-continue-link:hover { color: #3d5a0a; text-decoration: underline; }

/* Cart table */
.tpbc-cart-table {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.tpbc-cart-row {
    display: grid;
    grid-template-columns: 1fr 140px 100px;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}
.tpbc-cart-row:last-child { border-bottom: none; }

.tpbc-cart-row--head {
    padding: 12px 24px;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
}

.tpbc-cart-col--product { display: flex; align-items: flex-start; }
.tpbc-cart-col--qty     { display: flex; justify-content: center; }
.tpbc-cart-col--total   { font-weight: 700; color: #1e293b; font-size: 1rem; text-align: right; }

/* Thumbnail */
.tpbc-cart-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f1f5f9;
}
.tpbc-cart-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.tpbc-cart-product-wrap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tpbc-cart-product-info { flex: 1; }

.tpbc-cart-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
    line-height: 1.3;
}
.tpbc-cart-item-variant {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
}
.tpbc-cart-item-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: #3d5a0a;
    margin-bottom: 6px;
}
.tpbc-cart-remove-link {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 0.78rem;
    color: #94a3b8 !important;
    cursor: pointer;
    text-decoration: underline;
}
.tpbc-cart-remove-link:hover { color: #ef4444 !important; }

/* Qty controls */
.tpbc-cart-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.tpbc-cart-qty-wrap .tpbc-qty-btn {
    width: 34px;
    height: 34px;
    background: #f8fafc !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 1.1rem;
    color: #1e293b !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    flex-shrink: 0;
    line-height: 1;
}
.tpbc-cart-qty-wrap .tpbc-qty-btn:hover { background: #e2e8f0 !important; }
.tpbc-cart-qty-wrap .tpbc-qty-val {
    min-width: 34px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 4px 4px;
}

/* ── Right column: Order summary card ── */
.tpbc-cart-right {}

.tpbc-cart-summary-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.tpbc-cart-summary-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 18px;
}

.tpbc-cart-summary-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.tpbc-cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
}
.tpbc-cart-summary-line--muted { color: #94a3b8; font-weight: 400; }

.tpbc-cart-summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 16px;
}

.tpbc-cart-summary-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.tpbc-cart-summary-subtotal span { font-size: 0.95rem; font-weight: 600; color: #1e293b; }
.tpbc-cart-summary-subtotal strong { font-size: 1.4rem; font-weight: 800; color: #1e293b; }

.tpbc-cart-summary-note {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin: 0 0 18px;
    line-height: 1.4;
}

.tpbc-cart-checkout-btn {
    width: 100%;
    font-size: 1rem;
    padding: 14px 20px !important;
    border-radius: 50px !important;
    margin-bottom: 14px;
}

.tpbc-cart-summary-continue {
    display: block;
    text-align: center;
    font-size: 0.83rem;
    color: #64748b;
    text-decoration: none;
}
.tpbc-cart-summary-continue:hover { color: #3d5a0a; text-decoration: underline; }

/* Empty cart */
.tpbc-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.tpbc-cart-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.tpbc-cart-empty p    { font-size: 1rem; margin: 0 0 24px; }

/* Payment hint */
.tpbc-payment-hint { font-size: 0.85rem; color: #64748b; margin: -6px 0 14px; }

/* Payment cards — div-based, JS-driven */
.tpbc-payment-card {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}
.tpbc-payment-card:focus-visible { box-shadow: 0 0 0 3px rgba(27,58,45,.25) !important; }

/* Cart mobile */
@media (max-width: 820px) {
    .tpbc-cart-layout { grid-template-columns: 1fr; }
    .tpbc-cart-summary-card { position: static; }
    .tpbc-cart-right { order: -1; }
}
@media (max-width: 480px) {
    .tpbc-cart-row { grid-template-columns: 1fr 110px 80px; padding: 16px 14px; gap: 10px; }
    .tpbc-cart-row--head { display: none; }
    .tpbc-cart-thumb { width: 56px; height: 56px; }
}

/* ── Shop Preview Widget (home page) ─────────────────────────────────────── */
.tpbc-preview-widget {
    position: relative;
    max-width: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Preview grid: mirror shop page layout, remove cart-bar spacing */
.tpbc-preview-widget .tpbc-shop-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
@media (max-width: 900px) {
    .tpbc-preview-widget .tpbc-shop-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile: break out of Elementor column so cards are the same width as the shop page */
@media (max-width: 640px) {
    #tpbc-preview-widget {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 12px;
        box-sizing: border-box;
    }
    .tpbc-preview-widget .tpbc-shop-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    /* Shrink overlay content so title never gets clipped on narrow cards */
    .tpbc-preview-widget .tpbc-shop-card-cover-overlay {
        padding: 8px 10px 10px;
        gap: 2px;
    }
    .tpbc-preview-widget .tpbc-shop-card-cover-label {
        font-size: 0.55rem;
        margin-bottom: 2px;
    }
    .tpbc-preview-widget .tpbc-shop-card-cover-title {
        font-size: 0.8rem;
        line-height: 1.15;
    }
    .tpbc-preview-widget .tpbc-shop-card-cover-desc {
        font-size: 0.65rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .tpbc-preview-widget .tpbc-shop-card-cover-price {
        font-size: 0.85rem;
        margin-top: 3px;
    }
}
@media (max-width: 400px) {
    .tpbc-preview-widget .tpbc-shop-grid { grid-template-columns: 1fr !important; }
}

.tpbc-preview-footer {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.tpbc-preview-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #1b3a2d !important;
    color: #1b3a2d !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}
.tpbc-preview-view-all:hover {
    background: #1b3a2d !important;
    color: #fff !important;
}

/* ── Payment countdown timer ─────────────────────────────────────────────── */
.tpbc-payment-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 18px;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 500;
    line-height: 1.4;
}
.tpbc-payment-timer strong {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}
.tpbc-timer-icon { font-size: 1.1rem; flex-shrink: 0; }

.tpbc-payment-timer--expired {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* ── Proof of Payment Upload ──────────────────────────────────────────────── */
.tpbc-proof-upload {
    margin-top: 28px;
    padding: 24px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
}

.tpbc-proof-upload-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.tpbc-proof-upload-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 16px;
}

.tpbc-proof-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}
.tpbc-proof-dropzone:hover,
.tpbc-proof-dropzone.tpbc-proof-dropzone--over {
    border-color: #1b3a2d;
    background: #f0fdf4;
}
.tpbc-proof-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.tpbc-proof-dropzone-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}
.tpbc-proof-dropzone-text {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
}
.tpbc-proof-dropzone-text strong {
    color: #1b3a2d;
    text-decoration: underline;
    cursor: pointer;
}

.tpbc-proof-preview {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}
.tpbc-proof-preview img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.tpbc-proof-preview-name {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tpbc-proof-preview-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    line-height: 1;
}
.tpbc-proof-preview-remove:hover { color: #ef4444; }

.tpbc-proof-upload-btn {
    margin-top: 14px;
    width: 100%;
    padding: 13px 20px !important;
    border-radius: 50px !important;
    font-size: 0.95rem;
}

.tpbc-proof-result {
    margin-top: 12px;
    font-size: 0.88rem;
    text-align: center;
    display: none;
}
.tpbc-proof-result--ok  { color: #16a34a; }
.tpbc-proof-result--err { color: #ef4444; }

.tpbc-proof-success-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    color: #15803d;
    font-size: 0.88rem;
    font-weight: 600;
}
.tpbc-proof-success-box span { font-size: 1.3rem; }

.tpbc-proof-skip {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
}
.tpbc-proof-skip:hover { color: #64748b; }

/* ==========================================================================
   v5.0 — Staff Panel: Accounts, Courts, Promos, Holidays, Waitlist, Audit
   ========================================================================== */

/* ── Sidebar who-am-I strip ──────────────────────────────────────────────── */
.tpbc-sidebar-who {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.04);
}
.tpbc-sidebar-who-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.tpbc-sidebar-who-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f9fafb;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tpbc-sidebar-who-role {
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.2;
    text-transform: capitalize;
}

/* ── Staff login form — email field ──────────────────────────────────────── */
.tpbc-staff-login-box input[type="email"].tpbc-staff-pw-input {
    margin-bottom: 8px;
}

/* ── Shared: form labels & inputs inside new views ───────────────────────── */
.tpbc-staff-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.tpbc-staff-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 0.9rem;
    color: #111827;
    background: #fff;
    transition: border-color .15s;
}
.tpbc-staff-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
textarea.tpbc-staff-input { resize: vertical; }

/* ── Danger button variant ───────────────────────────────────────────────── */
.tpbc-staff-btn--danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}
.tpbc-staff-btn--danger:hover { background: #fee2e2; }

/* ── Small button variant ────────────────────────────────────────────────── */
.tpbc-staff-btn--sm {
    font-size: 0.78rem !important;
    padding: 4px 10px !important;
}

/* ── Dynamic pricing rows ────────────────────────────────────────────────── */
.tpbc-pricing-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.tpbc-pricing-row .tpbc-staff-input {
    width: auto;
    flex-shrink: 0;
}

/* ── Sale badge on product button ────────────────────────────────────────── */
.tpbc-sale-badge {
    display: inline-block;
    background: #fef9c3;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Announcement banner (front-end display) ─────────────────────────────── */
.tpbc-announcement {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tpbc-announcement--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.tpbc-announcement--warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.tpbc-announcement--success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }

/* ── Audit log table tweaks ──────────────────────────────────────────────── */
#tpbc-audit-wrap .tpbc-staff-table td { font-size: 0.83rem; vertical-align: top; }
#tpbc-audit-wrap .tpbc-staff-table td:first-child { white-space: nowrap; }

/* ── Promo codes table ────────────────────────────────────────────────────── */
#tpbc-pc-list-wrap .tpbc-staff-table td:first-child { font-family: monospace; }

/* ── Waitlist status colours ─────────────────────────────────────────────── */
.tpbc-wl-status--waiting  { color: #d97706; font-weight: 600; }
.tpbc-wl-status--notified { color: #2563eb; font-weight: 600; }
.tpbc-wl-status--booked   { color: #16a34a; font-weight: 600; }
.tpbc-wl-status--expired  { color: #9ca3af; }

/* ── Theme override: active nav item should use brand green, not browser-default blue ── */
.nv-nav-wrapper .current-menu-item > a,
.nv-nav-wrapper .current-menu-item > a:hover,
.nv-nav-wrapper .current_page_item > a,
.nv-nav-wrapper .current_page_item > a:hover,
.nv-nav-wrapper .current_page_ancestor > a {
    color: #1b3a2d !important;
}

/* ── Shop order cancellation notice ───────────────────────────────────
   Shop orders are never cancelled online — every cancellation goes through
   staff so stock, court passes, gift cards and promo uses unwind properly.
   Shown on the checkout form (before ordering) and on the confirmation
   screen (after ordering). */
.tpbc-cancel-note {
    margin: 18px 0 0;
    padding: 11px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #64748b;
}
.tpbc-cancel-note a,
.tpbc-cancel-note a:visited {
    color: #1e293b !important;
    background: transparent !important;
    text-decoration: underline;
    font-weight: 600;
}
.tpbc-cancel-note a:hover,
.tpbc-cancel-note a:focus {
    color: #2d6a4f !important;
    background: transparent !important;
}
.tpbc-cancel-note--confirm {
    max-width: 460px;
    margin: 22px auto 0;
    text-align: center;
}