/* ==========================================================================
   LTickets seat picker (/sitplekke?v=) — venue map, "Jou sitplekke",
   buyer details. Builds on main.css tokens + tickets.css (tk-*). The seats
   themselves are styled by seatmap.css (core); this file styles the page
   around the map. Static and calm: no entrance animation.

   Phone (< 1020px): one column, the selection is a bottom sheet that
   expands; the buyer details sit in the page flow under the map.
   ========================================================================== */

.sp-page [hidden],
.sp-closed [hidden] { display: none !important; }

.sp-page {
    padding-block: clamp(1.1rem, 0.7rem + 1.4vw, 2rem) clamp(2.6rem, 2rem + 3vw, 4.5rem);
}

/* ------------------------------------------------------------- header */
.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--t-fast);
}
.sp-back:hover { color: var(--accent-alt); }
.sp-back svg { width: 16px; height: 16px; flex: none; }
.sp-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sp-head { margin-bottom: 1.3rem; }
.sp-head__row {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 0.6rem + 1vw, 1.4rem);
    margin-top: 0.9rem;
}
.sp-head__poster {
    flex: none;
    width: 64px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}
.sp-head__text { min-width: 0; }
.sp-head__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-alt);
}
.sp-head__title {
    margin-top: 0.3rem;
    font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.sp-head__facts {
    list-style: none;
    padding: 0;
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.3rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}
.sp-head__facts li { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; }
.sp-head__facts svg { width: 16px; height: 16px; flex: none; color: var(--accent-alt); }
.sp-head__note { margin-top: 0.35rem; font-size: 0.82rem; color: var(--text-dim); }

/* ------------------------------------------------------ alerts / banners */
.sp-alert,
.sp-error { margin-bottom: 1rem; }
.sp-error { scroll-margin-top: 7rem; }
.sp-error:focus { outline: none; box-shadow: 0 0 0 2px rgba(216, 48, 47, 0.45); }

.sp-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--r);
    background: var(--surface);
    font-weight: 600;
    font-size: 0.95rem;
}
.sp-banner svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; }
.sp-banner--out { color: #ffb0aa; border-color: rgba(226, 31, 40, 0.42); background: rgba(226, 31, 40, 0.1); }
.sp-banner--closed,
.sp-banner--soon,
.sp-banner--gone { color: var(--gold); border-color: rgba(247, 180, 29, 0.35); background: var(--gold-soft); }

/* -------------------------------------------------------------- layout */
.sp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(330px, 28vw, 420px);
    gap: clamp(1.2rem, 0.8rem + 1.5vw, 2.2rem);
    align-items: start;
}
.sp-main { min-width: 0; display: grid; gap: 0.9rem; }

.sp-skip {
    position: absolute;
    left: -9999px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--accent);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
}
.sp-skip:focus,
.sp-skip:focus-visible { position: static; justify-self: start; }

/* -------------------------------------------------------------- legend */
.sp-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.sp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.36rem 0.75rem 0.36rem 0.45rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-pill);
    background: rgba(30, 20, 17, 0.75);
    font-size: 0.82rem;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
}
.sp-chip--state { background: transparent; color: var(--text-muted); }
.sp-chip__dot {
    flex: none;
    width: 1rem;
    height: 1rem;
    border-radius: 5px;
    background: #8a7d72;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
.sp-chip__dot--glyph { background: none; box-shadow: none; color: var(--text-muted); }
.sp-chip__dot--glyph svg { width: 100%; height: 100%; }
.sp-chip__name { font-weight: 600; }
.sp-chip--state .sp-chip__name { font-weight: 500; }
.sp-chip__price { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-chip__price.is-off { color: var(--text-dim); font-weight: 500; }
/* "net 3 te koop": fewer seats of the category for sale than look free. */
.sp-chip__left {
    padding: 0.08rem 0.45rem;
    border-radius: var(--r-pill);
    background: rgba(226, 31, 40, 0.16);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 600;
}

/* ------------------------------------------------------------- the map */
.sp-mapcard {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    background:
        radial-gradient(90% 55% at 50% 0%, rgba(247, 180, 29, 0.07), transparent 65%),
        linear-gradient(180deg, #130d0b, #0b0706);
    box-shadow: var(--shadow);
}
.sp-map {
    position: relative;
    height: clamp(420px, 70vh, 820px);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.sp-map .sm-svg,
.sp-map__svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    touch-action: none;
    cursor: grab;
}
.sp-map .sm-svg:active { cursor: grabbing; }
.sp-map .sm-seat { cursor: pointer; }
.sp-map__loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.92rem;
    pointer-events: none;
}
.sp-map.is-failed .sp-map__loading { color: var(--gold); pointer-events: auto; }
.sp-map.is-failed .sm-svg { visibility: hidden; }

.sp-zoom {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.sp-zoom__btn {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(30, 20, 17, 0.92);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.sp-zoom__btn:hover { border-color: var(--accent); background: var(--surface-2); }
.sp-zoom__btn svg { width: 18px; height: 18px; }

.sp-notice {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    z-index: 3;
    width: max-content;
    max-width: calc(100% - 1.5rem);
    transform: translateX(-50%);
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: rgba(12, 9, 7, 0.94);
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: var(--shadow);
    pointer-events: none;
}
.sp-hint { margin-top: -0.2rem; font-size: 0.82rem; color: var(--text-dim); }

/* ----------------------------------------------------------- tooltip */
.sp-tip {
    position: fixed;
    z-index: 120;
    max-width: 260px;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(23, 16, 14, 0.97);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.4;
    pointer-events: none;
}
.sp-tip[hidden] { display: none; }
.sp-tip__title { display: block; font-weight: 700; }
.sp-tip__line { display: block; color: var(--text-muted); }
.sp-tip__cat { display: flex; align-items: center; gap: 0.4rem; color: var(--text); }
.sp-tip__dot { flex: none; width: 0.7rem; height: 0.7rem; border-radius: 3px; }
.sp-tip__price { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-tip__wheel { color: var(--gold); }
.sp-tip__mine { color: #6ee7a8; font-weight: 600; }
.sp-tip__state { color: #ff9a92; font-weight: 600; }

/* ----------------------------------------- tickets without a seat (GA) */
.sp-ga {
    padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.sp-ga__title { font-size: 1.2rem; }
.sp-ga__lead { margin: 0.3rem 0 0.9rem; font-size: 0.86rem; color: var(--text-muted); }

/* --------------------------------------------------- list alternative */
.sp-alt {
    border: 1px solid var(--border-soft);
    border-radius: var(--r);
    background: rgba(23, 16, 14, 0.6);
    scroll-margin-top: 6rem;
}
.sp-alt__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    cursor: pointer;
    list-style: none;
}
.sp-alt__summary::-webkit-details-marker { display: none; }
.sp-alt__summary::after {
    content: "";
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    margin-right: 0.2rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translateY(-2px);
}
.sp-alt[open] > .sp-alt__summary::after { transform: rotate(-135deg) translateY(-2px); }
.sp-alt__summary:hover .sp-alt__title { color: var(--accent-alt); }
.sp-alt__head { display: grid; gap: 0.15rem; min-width: 0; }
.sp-alt__title { font-weight: 600; color: var(--text); transition: color var(--t-fast); }
.sp-alt__sub { font-size: 0.8rem; color: var(--text-dim); }
.sp-alt__body { display: grid; gap: 1rem; padding: 0 1.1rem 1.1rem; }
.sp-alt__seats { min-width: 0; margin: 0; padding: 0; border: 0; }
.sp-alt__legend { margin-bottom: 0.6rem; padding: 0; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.sp-alt__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr));
    gap: 0.45rem;
}
.sp-alt__seat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-sm);
    background: rgba(12, 9, 7, 0.5);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.sp-alt__seat:hover { border-color: var(--border); }
.sp-alt__seat input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.sp-alt__seat:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sp-alt__seat:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.sp-alt__seat:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-alt__label { font-weight: 600; color: var(--text); }
.sp-alt__wheel { font-size: 0.74rem; color: var(--gold); }
.sp-alt__price { margin-left: auto; font-size: 0.78rem; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-alt__empty { color: var(--text-dim); font-size: 0.88rem; }

/* ================================================== side: selection ===== */
.sp-side {
    position: sticky;
    top: 6rem;
    min-width: 0;
    max-height: calc(100vh - 7rem);
    display: grid;
    gap: 1rem;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 2px;          /* room for focus rings inside the scroll box */
}

.sp-sheet {
    display: grid;
    gap: 0.9rem;
    padding: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #2c1c17, var(--surface));
    box-shadow: var(--shadow);
}
.sp-sheet__grip,
.sp-sheet__toggle { display: none; }
.sp-sheet__head { display: grid; gap: 0.2rem; }
.sp-sheet__head .tk-summary__eyebrow { margin: 0; }
.sp-sheet__count {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.15;
}
.sp-sheet__body {
    max-height: 46vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-inline: -0.25rem;
    padding: 0.1rem 0.25rem;
    scrollbar-width: thin;
}

.sp-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.sp-lines:focus { outline: none; }
.sp-lines__empty {
    padding: 1rem 0.9rem;
    border: 1px dashed var(--border-soft);
    border-radius: var(--r-sm);
    color: var(--text-dim);
    font-size: 0.88rem;
    text-align: center;
}
.sp-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.3rem 0.7rem;
    padding: 0.6rem 0.4rem 0.6rem 0.6rem;
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    background: rgba(12, 9, 7, 0.5);
}
.sp-line__badge {
    min-width: 3.1rem;
    padding: 0.4rem 0.5rem;
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
    font-variant-numeric: tabular-nums;
}
.sp-line--ga .sp-line__badge { border: 1px solid var(--border-soft); box-shadow: none; }
.sp-line__info { display: grid; gap: 0.15rem; min-width: 0; }
.sp-line__where { font-size: 0.8rem; line-height: 1.35; color: var(--text-muted); overflow-wrap: anywhere; }
.sp-line__typename { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.sp-line--ga .sp-line__typename { order: -1; }
/* Ticket type of a seat whose category has several: its own row under the seat. */
.sp-line__type {
    grid-column: 2 / -1;
    width: 100%;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    border-radius: 8px;
    font-size: 0.86rem;
    background-position: right 0.6rem center;
}
.sp-line__tag { font-size: 0.74rem; font-weight: 600; color: var(--gold); }
.sp-line__price {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--gold);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.sp-line__remove,
.sp-line__spacer { width: 2.2rem; height: 2.2rem; }
.sp-line__remove {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--text-muted);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.sp-line__remove:hover { color: var(--text); border-color: var(--border); background: var(--accent-soft); }
.sp-line__remove svg { width: 16px; height: 16px; }

.sp-sheet__foot { display: grid; gap: 0.8rem; }
.sp-sheet__bar { display: grid; gap: 0.9rem; }
.sp-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--hairline);
}
.sp-total span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.sp-total strong {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.sp-msg {
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(216, 48, 47, 0.3);
    border-radius: var(--r-sm);
    background: rgba(216, 48, 47, 0.08);
    color: #ffc7c2;
    font-size: 0.88rem;
    line-height: 1.45;
}
.sp-msg--info { border-color: rgba(247, 180, 29, 0.32); background: var(--gold-soft); color: #f8d98a; }
.sp-continue:disabled,
.sp-pay:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.sp-pay.is-busy { opacity: 0.8; cursor: progress; transform: none; }

/* -------------------------------------------------------- buyer details */
.sp-details {
    display: grid;
    gap: 1rem;
    padding: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    scroll-margin-top: 6rem;
}
.sp-details__title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
}
.sp-details__title:focus { outline: none; }
.sp-details .form { gap: 1rem; }
.sp-details .tk-summary__warn,
.sp-details .tk-summary__confirm,
.sp-details .tk-summary__secure { margin: 0; }
.sp-details__back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--t-fast);
}
.sp-details__back:hover { color: var(--accent-alt); }
.sp-details__back svg { width: 15px; height: 15px; }

/* ================================================ friendly dead ends ===== */
.sp-closed__card {
    max-width: 640px;
    margin-inline: auto;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    text-align: center;
}
.sp-closed__card .eyebrow { margin: 0.4rem 0 0; }
.sp-closed__card .eyebrow::before { display: none; }
.sp-closed__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(247, 180, 29, 0.3);
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
}
.sp-closed__icon svg { width: 28px; height: 28px; }
.sp-closed__title { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); text-wrap: balance; }
.sp-closed__text { max-width: 52ch; color: var(--text-muted); }
.sp-closed__card .sp-error { width: 100%; margin: 0.4rem 0 0; text-align: left; }
.sp-closed__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

/* ============================== production page: seated performances ===== */
/* /produksie links a performance with a seat map to this picker instead of
   showing quantity steppers (views/produksie.php loads this file for it). */
a.tk-perf--seats { color: inherit; text-decoration: none; }
/* The date cards are ~270 px wide: the button goes under the text, never beside it. */
.tk-perf--seats { flex-wrap: wrap; }
.tk-perf--seats .tk-perf__body { flex: 1 1 calc(100% - 4.6rem); min-width: 0; }
.tk-perf--seats .tk-perf__cta,
.tk-perf--seats .tk-perf__state { margin-left: 4.4rem; }
a.tk-perf--seats:hover { border-color: var(--accent); }
.tk-perf__avail { font-size: 0.78rem; font-weight: 600; color: var(--gold); }
.tk-perf__cta {
    flex: none;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--accent-alt), var(--accent) 55%, var(--accent-deep));
    box-shadow: 0 10px 24px -12px rgba(226, 31, 40, 0.7);
    color: var(--accent-contrast);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.tk-perf__cta svg { width: 14px; height: 14px; }
.tk-step__lead { margin: -0.3rem 0 1rem; font-size: 0.9rem; color: var(--text-muted); }
.tk-prog__seats { white-space: nowrap; }

/* ========================================================== responsive === */
@media (max-width: 1019px) {
    .sp-layout { grid-template-columns: minmax(0, 1fr); }
    /* Room under the page (and its footer) for the fixed selection bar. */
    body.sp-has-sheet { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }

    .sp-side {
        position: static;
        max-height: none;
        overflow: visible;
        display: block;
        padding: 0;
    }

    /* The selection becomes a bottom sheet: a slim bar that expands. */
    .sp-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        max-height: 88vh;
        padding: 0.45rem clamp(0.9rem, 3vw, 1.4rem) calc(0.75rem + env(safe-area-inset-bottom, 0px));
        border-width: 1px 0 0;
        border-radius: 20px 20px 0 0;
        background: linear-gradient(180deg, #2a1b16, #1a1210);
        box-shadow: 0 -18px 50px -14px rgba(0, 0, 0, 0.85);
    }
    .sp-sheet__grip {
        display: block;
        flex: none;
        width: 2.6rem;
        height: 4px;
        margin: 0.1rem auto 0;
        border-radius: 4px;
        background: rgba(246, 241, 234, 0.22);
    }
    .sp-sheet__head { display: none; }
    .sp-sheet__body {
        display: none;
        max-height: 52vh;
        margin: 0;
        padding: 0.2rem 0;
    }
    .sp-sheet.is-open .sp-sheet__body { display: block; }
    .sp-sheet__foot { gap: 0.55rem; }
    .sp-msg { padding: 0.55rem 0.75rem; font-size: 0.84rem; }

    .sp-sheet__bar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .sp-sheet__toggle {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.05rem;
        padding: 0.3rem 0.1rem;
        text-align: left;
    }
    .sp-sheet__sum {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        max-width: 100%;
        min-width: 0;
    }
    .sp-sheet__sum strong { overflow: hidden; font-size: 0.98rem; text-overflow: ellipsis; white-space: nowrap; }
    .sp-sheet__sumtotal {
        font-family: var(--font-display);
        font-size: 1.15rem;
        color: var(--gold);
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    .sp-sheet__more {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.78rem;
        color: var(--text-muted);
    }
    .sp-sheet__more svg { width: 14px; height: 14px; }
    .sp-sheet.is-open .sp-sheet__more svg { transform: rotate(180deg); }
    .sp-sheet:not(.has-seats) .sp-sheet__more { display: none; }
    .sp-total { display: none; }
    .sp-continue {
        flex: none;
        width: auto;
        padding: 0.8rem 1.35rem;
        font-size: 0.98rem;
    }

    .sp-details { margin-top: 1.2rem; }
}

@media (max-width: 640px) {
    .sp-map { height: 62vh; height: 62svh; min-height: 340px; }
    .sp-mapcard { margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-width: 1px 0; }
    .sp-legend {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(var(--gutter) * -1);
        padding: 0.1rem var(--gutter);
        scrollbar-width: none;
    }
    .sp-legend::-webkit-scrollbar { display: none; }
    .sp-head__poster { width: 52px; height: 65px; }
    /* Top corner on phones: the selection bar covers the bottom of the map. */
    .sp-zoom { top: 0.6rem; right: 0.6rem; bottom: auto; }
    .sp-notice { left: 0.75rem; max-width: calc(100% - 4.6rem); transform: none; }
    .sp-alt__grid { grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); }

    a.tk-perf--seats { flex-wrap: wrap; }
    a.tk-perf--seats .tk-perf__body { flex-basis: calc(100% - 4.6rem); }
    a.tk-perf--seats .tk-perf__cta { margin-left: 4.4rem; }
}

@media (max-width: 380px) {
    .sp-continue { padding-inline: 1rem; }
    .sp-line { grid-template-columns: auto minmax(0, 1fr) auto; }
    .sp-line__price { grid-column: 2; grid-row: 2; justify-self: start; }
}
