/* ============================================================
   SAU Customer — app-style component library
   Shared "native app feel" primitives used across all customer
   pages. Scope any page with .bk-page (sets a default accent).
   Override --bk-accent inline for status-specific coloring.
   ============================================================ */

.bk-page,
.bk-detail {
    --bk-accent: var(--sau-mid);
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 1rem;
}

/* ── Page heading (title + optional subtitle) ── */
.bk-pagehead { margin-bottom: 1rem; }
.bk-pagehead h1 {
    font-weight: 900; font-size: 1.4rem; color: var(--sau-dark); margin: 0;
}
.bk-pagehead p { margin: .2rem 0 0; font-size: .88rem; color: var(--sau-muted); }

/* ── Hero (soft tinted status/summary banner) ── */
.bk-hero {
    background: var(--bk-soft, var(--sau-light));
    border: 1px solid color-mix(in srgb, var(--bk-accent) 22%, transparent);
    border-radius: 20px;
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
.bk-hero__icon {
    width: 62px; height: 62px;
    margin: 0 auto .75rem;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 50%;
    font-size: 1.9rem; color: var(--bk-accent);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--bk-accent) 30%, transparent);
}
.bk-hero__status {
    font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--bk-accent); margin-bottom: .35rem;
}
.bk-hero__ref { font-weight: 900; font-size: 1.5rem; color: var(--sau-dark); letter-spacing: .02em; }
.bk-hero__helper {
    margin: .6rem auto 0; font-size: .85rem; color: var(--sau-muted); line-height: 1.4; max-width: 320px;
}

/* ── Card ── */
.bk-card {
    background: #fff;
    border: 1px solid var(--sau-border);
    border-radius: 18px;
    padding: 1.1rem 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(4,43,26,.04);
}
.bk-card__title {
    font-weight: 800; font-size: .95rem; color: var(--sau-dark);
    margin-bottom: 1rem; display: flex; align-items: center;
}
.bk-card__title i { color: var(--bk-accent); }

/* ── Detail grid (icon-led key/value items) ── */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .75rem; }
.bk-grid--1 { grid-template-columns: 1fr; }
.bk-item { display: flex; gap: .6rem; align-items: flex-start; }
.bk-item__ico {
    flex-shrink: 0; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sau-light); border-radius: 10px;
    color: var(--sau-mid); font-size: 1rem;
}
.bk-item__label { font-size: .72rem; color: var(--sau-muted); text-transform: uppercase; letter-spacing: .04em; }
.bk-item__value { font-weight: 700; color: var(--sau-dark); font-size: .92rem; line-height: 1.25; }

/* ── Key/value rows (payment summaries etc.) ── */
.bk-pay-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 0; border-bottom: 1px dashed var(--sau-border);
}
.bk-pay-row span { color: var(--sau-muted); font-size: .9rem; }
.bk-pay-row strong { font-weight: 800; color: var(--sau-dark); font-size: 1rem; }
.bk-pay-row--sm { padding: .4rem 0; border-bottom: none; }
.bk-pay-row--sm span, .bk-pay-row--sm strong { font-size: .84rem; }

.bk-due {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: .75rem; padding: .85rem 1rem;
    background: var(--sau-light); border-radius: 12px;
}
.bk-due span { font-weight: 700; color: var(--sau-dark); font-size: .92rem; }
.bk-due strong { font-weight: 900; color: var(--sau-dark); font-size: 1.25rem; }

.bk-subhead {
    margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--sau-border);
    font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--sau-muted); margin-bottom: .35rem;
}
.bk-reject {
    margin-top: .75rem; background: #fef2f2; border-radius: 10px;
    padding: .65rem .85rem; font-size: .82rem; color: #991b1b;
}

/* ── Form fields (app-style inputs) ── */
.bk-field { margin-bottom: 1rem; }
.bk-field > label {
    display: block; font-weight: 700; font-size: .8rem; color: var(--sau-dark);
    margin-bottom: .4rem;
}
.bk-input,
.bk-page .form-control,
.bk-page .form-select {
    border-radius: 12px; border: 1.5px solid var(--sau-border);
    padding: .7rem .9rem; font-size: .95rem;
}
.bk-page .form-control:focus,
.bk-page .form-select:focus {
    border-color: var(--sau-mid); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--sau-mid) 18%, transparent);
}

/* ── Secondary text links row ── */
.bk-links {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
    margin-top: .25rem;
}
.bk-links a, .bk-links button {
    background: none; border: none; padding: .5rem .25rem;
    font-size: .9rem; font-weight: 600; color: var(--sau-dark); text-decoration: none;
}
.bk-links__danger { color: #dc2626 !important; }

/* ── Buttons ── */
.bk-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: .95rem 1rem;
    font-weight: 800; font-size: 1.02rem; border-radius: 14px; text-decoration: none;
    border: none; cursor: pointer;
}
.bk-btn--gold { background: var(--sau-gold); color: var(--sau-dark); }
.bk-btn--dark { background: var(--sau-dark); color: #fff; }
.bk-btn--outline { background: #fff; color: var(--sau-dark); border: 1.5px solid var(--sau-border); }
.bk-btn:active { transform: translateY(1px); }

/* ── Sticky app-style action bar ── */
.bk-actionbar {
    position: sticky; bottom: 0; z-index: 20;
    margin: 1rem auto 0; max-width: 560px;
    padding: .75rem 0 max(.75rem, env(safe-area-inset-bottom));
}
.bk-actionbar__btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: .95rem 1rem;
    background: var(--sau-gold); color: var(--sau-dark);
    font-weight: 800; font-size: 1.02rem; border-radius: 14px; text-decoration: none;
    box-shadow: 0 8px 24px rgba(212,175,55,.45);
}
.bk-actionbar__btn:active { transform: translateY(1px); }

/* ── Empty state ── */
.bk-empty {
    text-align: center; padding: 3rem 1.5rem; color: var(--sau-muted);
}
.bk-empty__icon { font-size: 2.6rem; color: var(--sau-border); margin-bottom: .75rem; }
.bk-empty h6 { font-weight: 800; color: var(--sau-dark); margin-bottom: .35rem; }

/* ── List rows (e.g. My Bookings) — tappable cards ── */
.bk-listrow {
    display: flex; align-items: center; gap: .85rem;
    background: #fff; border: 1px solid var(--sau-border); border-radius: 16px;
    padding: .95rem 1rem; margin-bottom: .75rem; text-decoration: none;
    box-shadow: 0 2px 10px rgba(4,43,26,.04); transition: transform .12s, box-shadow .12s;
    border-left: 4px solid var(--bk-accent);
}
.bk-listrow:active { transform: scale(.99); }
.bk-listrow__main { flex: 1; min-width: 0; }
.bk-listrow__title { font-weight: 800; color: var(--sau-dark); font-size: .98rem; }
.bk-listrow__meta { font-size: .82rem; color: var(--sau-muted); }
.bk-listrow__chevron { color: var(--sau-border); font-size: 1.2rem; }

@media (max-width: 576px) {
    .bk-actionbar {
        position: fixed; left: 0; right: 0; bottom: 0; max-width: none;
        background: #fff; border-top: 1px solid var(--sau-border);
        padding: .7rem 1rem max(.7rem, env(safe-area-inset-bottom));
        box-shadow: 0 -6px 20px rgba(0,0,0,.06);
    }
    .bk-actionbar__btn { box-shadow: none; }
    .bk-detail, .bk-page.has-actionbar { padding-bottom: 5.5rem; }
}
