/*
 * Simple theme: the step-by-step seat, table and checkout layout.
 * Every rule hangs off body.sp-flow, which theme-simple-flow.js adds once the
 * page is rearranged. Without it the page stays the normal stacked form.
 */

/* Hold the first paint until the layout is ready. The delay is the safety net
   if the script never runs: the plain form appears on its own. */
html.sp-js body:has(#sp-flow-meta):not(.sp-flow):not(.sp-flow-off) { visibility: hidden; animation: spf-show 0s 2.5s forwards; }
@keyframes spf-show { to { visibility: visible; } }

body.sp-flow {
    --f-ease: cubic-bezier(.2, .8, .2, 1);
    --f-ring: color-mix(in srgb, var(--sp-primary) 28%, transparent);
    --f-tint: color-mix(in srgb, var(--sp-primary) 9%, #fff);
    --f-tint2: color-mix(in srgb, var(--sp-primary) 22%, #fff);
    --f-taken: #E1E4E9;
    --f-shadow: 0 1px 2px rgba(18, 22, 28, .05), 0 12px 32px -8px rgba(18, 22, 28, .14);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--sp-mist) !important;
}
body.sp-flow .sp-gone { display: none !important; }
body.sp-flow.spf-on-pick { height: 100dvh; overflow: hidden; }
body.sp-flow.spf-on-pick footer { display: none; }
#spf-root { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; font-family: Geist, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--sp-body); }

@keyframes spf-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes spf-spin { to { transform: rotate(360deg); } }
@keyframes spf-shim { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes spf-pop { 0% { transform: scale(.6); } 55% { transform: scale(1.32); } 100% { transform: scale(1); } }
@keyframes spf-seatin { from { opacity: 0; transform: scale(.3); } }
@keyframes spf-grow { from { width: 0; } to { width: 100%; } }
@keyframes spf-next { from { opacity: 0; transform: translateX(26px); } }
@keyframes spf-prev { from { opacity: 0; transform: translateX(-26px); } }
@keyframes spf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Header */
.spf-nav { flex: none; position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--sp-line); }
.spf-nav-in { display: flex; align-items: center; gap: 1.1rem; height: 4rem; padding: 0 1.25rem; }
.spf-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: none; border-radius: .6rem; color: var(--sp-ink); flex: none; cursor: pointer; }
.spf-icon:hover { background: var(--sp-mist); }
.spf-icon svg, .spf-i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.spf-brand { display: flex; align-items: center; font: 700 1.05rem var(--sp-display); color: var(--sp-ink); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.spf-brand img { max-height: 2.4rem; max-width: 10rem; object-fit: contain; }
.spf-ev { min-width: 0; padding-left: 1.1rem; border-left: 1px solid var(--sp-line); line-height: 1.25; }
.spf-ev b { display: block; color: var(--sp-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spf-ev small { color: var(--sp-muted); font-size: .86rem; white-space: nowrap; }
.spf-steps { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex: none; }
.spf-st { display: flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--sp-muted); font-size: .93rem; white-space: nowrap; background: none; border: 0; padding: .2rem .25rem; border-radius: .5rem; cursor: default; }
.spf-st b { width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--sp-field); transition: background .25s, box-shadow .25s; }
.spf-st.is-on { color: var(--sp-ink); }
.spf-st.is-on b { background: var(--sp-primary); color: var(--sp-on-primary); box-shadow: 0 0 0 4px var(--f-ring); }
.spf-st.is-done { color: var(--sp-ink); cursor: pointer; }
.spf-st.is-done b { background: var(--sp-primary); color: var(--sp-on-primary); box-shadow: none; }
.spf-ln { width: 2rem; height: 2px; background: var(--sp-field); border-radius: 2px; overflow: hidden; }
.spf-ln.is-full::before { content: ""; display: block; height: 100%; background: var(--sp-primary); animation: spf-grow .5s var(--f-ease) both; }
.spf-seg { display: none; }

/* Buttons */
.spf-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.3rem; padding: .6rem 1.35rem; border: 0; border-radius: .8rem; background: var(--sp-primary); color: var(--sp-on-primary); font-weight: 600; font-size: 1.05rem; white-space: nowrap; cursor: pointer; transition: transform .15s var(--f-ease), box-shadow .2s, filter .15s, opacity .2s; }
.spf-btn:hover:not(:disabled) { filter: brightness(.94); box-shadow: 0 8px 20px -8px var(--sp-primary); }
.spf-btn:active:not(:disabled) { transform: scale(.975); }
.spf-btn:disabled { cursor: not-allowed; opacity: .42; }
.spf-btn.is-line { background: #fff; color: var(--sp-ink); box-shadow: inset 0 0 0 1px var(--sp-field); }
.spf-btn.is-line:hover { background: var(--sp-mist); filter: none; box-shadow: inset 0 0 0 1px var(--sp-muted); }
.spf-shake { animation: spf-shake .45s var(--f-ease); }

/* Map step */
.spf-pick { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 23.5rem; }
.spf-mapbox { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--sp-mist); }
.spf-alerts { flex: none; padding: .75rem .75rem 0; display: grid; gap: .5rem; }
.spf-alerts > * { margin: 0 !important; border-radius: .8rem !important; }
.spf-chips { display: none; }
.spf-vpbox { position: relative; flex: 1 1 auto; min-height: 0; }

body.sp-flow #seat-canvas-wrapper, body.sp-flow #canvas-wrapper {
    position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; max-width: none !important;
    overflow: hidden !important; border: 0 !important; border-radius: 0 !important; background: transparent !important;
    touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
body.sp-flow .spf-drag { cursor: grabbing !important; }
.spf-cv { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.spf-cv.is-anim { transition: transform .5s var(--f-ease); }
body.sp-flow #seat-canvas-container, body.sp-flow #canvas-container { transform: none !important; margin: 0 !important; background: none !important; }

/* Seats. The seat's colour comes from its ticket type (--c, set by the script). */
body.sp-flow .sc-section-header { font: 600 13px Geist, sans-serif; letter-spacing: 0; text-transform: none; color: var(--sp-muted); margin-bottom: 6px; text-align: center; }
body.sp-flow .sc-table { border-spacing: 2px; }
body.sp-flow .sc-table .sc-row-label { font: 500 11px Geist, sans-serif; color: var(--sp-muted); opacity: 0; transition: opacity .2s; }
body.sp-flow .spf-cv.is-lbl .sc-row-label { opacity: 1; }
body.sp-flow .sc-seat .sc-stripe { display: none; }
body.sp-flow .sc-seat {
    /* Same footprint as Classic (38 x 30), so a layout keeps the shape the organiser drew. */
    width: 100%; min-width: 38px; height: 30px; padding: 0; border: 0 !important; border-radius: 9px 9px 5px 5px;
    background: color-mix(in srgb, var(--c) 86%, #fff) !important; color: var(--t, #fff) !important;
    font: 600 11px/30px Geist, sans-serif; font-variant-numeric: tabular-nums;
    transition: transform .14s var(--f-ease), opacity .22s, background-color .14s;
}
body.sp-flow .spf-cv:not(.is-lbl) .sc-seat { font-size: 0; }
body.sp-flow .sc-seat:hover:not(:disabled) { transform: scale(1.3); z-index: 2; box-shadow: 0 3px 8px rgba(18, 22, 28, .3); }
body.sp-flow .sc-seat:focus-visible { outline: 3px solid var(--sp-ink); outline-offset: 1px; z-index: 4; }
body.sp-flow .sc-seat:disabled, body.sp-flow .sc-seat.sc-disabled { background: var(--f-taken) !important; color: transparent !important; cursor: not-allowed; }
body.sp-flow .sc-seat.ring-2 {
    background: var(--sp-primary) !important; color: transparent !important; z-index: 3;
    box-shadow: 0 0 0 1px #fff, 0 0 0 2.5px var(--sp-primary) !important; animation: spf-pop .34s var(--f-ease);
}
body.sp-flow .sc-seat.ring-2::after {
    content: ""; position: absolute; inset: 6px 10px; background: var(--sp-on-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.sp-flow .spf-dim { opacity: .13 !important; }
.spf-reveal .sc-seat, .spf-reveal .table-element { animation: spf-seatin .42s var(--d, 0s) var(--f-ease) both; }

/* Placeholder while the map settles */
.spf-loading .sc-seat, .spf-loading .sc-row-label, .spf-loading .sc-section-header, .spf-loading .table-element > * { visibility: hidden; }
.spf-loading .sc-section, .spf-loading .table-element, .spf-loading .spf-price, .spf-sk {
    background: linear-gradient(100deg, #EEF0F3 30%, #F8F9FA 50%, #EEF0F3 70%) !important; background-size: 220% 100% !important; animation: spf-shim 1.3s linear infinite; box-shadow: none !important; border-color: transparent !important;
}
.spf-loading .sc-section { border-radius: 14px; }
.spf-loading .spf-price { pointer-events: none; }
.spf-loading .spf-price > * { visibility: hidden; }

/* Tables on the floor plan */
body.sp-flow .table-element {
    --c: #9AA3AF; background: #fff !important; color: var(--sp-ink) !important; border: 0 !important; z-index: 2;
    box-shadow: 0 0 0 2px var(--c), 0 6px 16px -6px rgba(18, 22, 28, .3) !important;
    transition: box-shadow .18s, background-color .18s, opacity .22s; line-height: 1.1;
}
body.sp-flow .table-element strong { display: block; font: 700 14px/1.1 var(--sp-display); max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sp-flow .table-element br { display: none; }
body.sp-flow .table-element small { display: none; font-size: 9px; color: var(--sp-muted); white-space: nowrap; }
body.sp-flow .spf-cv.is-lbl .table-element small { display: block; }
body.sp-flow .table-element.available:hover { background: var(--f-tint) !important; border: 0 !important; transform: none; }
body.sp-flow .table-element.selected { background: var(--f-tint) !important; box-shadow: 0 0 0 3px var(--sp-primary) !important; z-index: 10; }
body.sp-flow .table-element.full { background: var(--sp-mist) !important; color: #8A93A1 !important; box-shadow: 0 0 0 2px #D4D7DD !important; cursor: not-allowed; }
.spf-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: color-mix(in srgb, var(--c) 86%, #fff); transition: background-color .15s, transform .2s var(--f-ease); pointer-events: none; }
.spf-dot.is-x { background: var(--f-taken); }
.spf-dot.is-on { background: var(--sp-primary); transform: scale(1.25); box-shadow: 0 0 0 1px #fff; }

/* Map tools */
.spf-ctl { position: absolute; right: 1rem; bottom: 1rem; display: flex; background: #fff; border-radius: .8rem; box-shadow: 0 0 0 1px var(--sp-line), var(--f-shadow); overflow: hidden; z-index: 5; }
.spf-ctl button { min-width: 2.75rem; height: 2.75rem; border: 0; background: #fff; color: var(--sp-ink); display: grid; place-items: center; padding: 0 .7rem; cursor: pointer; }
.spf-ctl button:hover { background: var(--sp-mist); }
.spf-ctl button + button { border-left: 1px solid var(--sp-line); }
.spf-key { position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: 1rem; padding: .5rem .85rem; background: rgba(255, 255, 255, .92); border-radius: .7rem; box-shadow: 0 0 0 1px var(--sp-line); font-size: .87rem; z-index: 5; color: var(--sp-body); }
.spf-key span { display: flex; gap: .4rem; align-items: center; }
.spf-key i { width: .85rem; height: .85rem; border-radius: .3rem .3rem .15rem .15rem; background: var(--f-taken); }
.spf-key .is-on { background: var(--sp-primary); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--sp-primary); margin-right: .15rem; }
.spf-hint { position: absolute; left: 50%; top: 1rem; translate: -50% 0; z-index: 5; background: var(--sp-ink); color: #fff; border-radius: 2rem; padding: .45rem 1rem; font-size: .9rem; font-weight: 500; white-space: nowrap; transition: opacity .25s, transform .25s var(--f-ease); pointer-events: none; display: none; }
.spf-hint.is-off { opacity: 0; transform: translateY(-8px); }

/* Right side */
.spf-rail { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: #fff; border-left: 1px solid var(--sp-line); }
.spf-rail-top { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 1.4rem 1.4rem 1rem; }
.spf-rail-top h1 { font: 700 1.65rem/1.1 var(--sp-display); color: var(--sp-ink); letter-spacing: -.022em; margin: 0; }
.spf-rail-top > p { color: var(--sp-muted); margin: .3rem 0 1.05rem; font-size: .97rem; }
.spf-prices { display: grid; gap: .4rem; }
.spf-price { --c: #9AA3AF; display: flex; align-items: center; gap: .7rem; width: 100%; padding: .62rem .8rem; border: 0; background: #fff; border-radius: .8rem; box-shadow: inset 0 0 0 1px var(--sp-line); text-align: left; cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.spf-price:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--sp-muted); }
.spf-price[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--sp-primary); background: var(--f-tint); }
.spf-price:disabled { opacity: .5; cursor: not-allowed; }
.spf-glyph { width: 1.05rem; height: 1.05rem; flex: none; border-radius: .38rem .38rem .18rem .18rem; background: var(--c); }
.spf-pn { flex: 1; min-width: 0; line-height: 1.2; }
.spf-pn b { display: block; color: var(--sp-ink); font-weight: 600; font-size: .97rem; }
.spf-pn small { color: var(--sp-muted); font-size: .84rem; }
.spf-pp { font-weight: 600; color: var(--sp-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

.spf-stub { flex: none; display: flex; flex-direction: column; max-height: 52%; background: #fff; border-top: 1px solid var(--sp-line); }
.spf-stub-head { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 1.4rem .5rem; }
.spf-stub-head h2 { font: 700 1.15rem var(--sp-display); color: var(--sp-ink); margin: 0; }
.spf-stub-head small { color: var(--sp-muted); }
.spf-plist { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 1.4rem .6rem; margin: 0; list-style: none; }
.spf-pi { display: flex; align-items: center; gap: .6rem; padding: .42rem 0; }
.spf-pi.is-new { animation: spf-rise .3s var(--f-ease); }
.spf-pi small { display: block; }
.spf-pi .spf-pp { font-weight: 500; }
.spf-pi button { width: 2rem; height: 2rem; border: 0; background: none; border-radius: .5rem; color: var(--sp-muted); display: grid; place-items: center; flex: none; cursor: pointer; }
.spf-pi button:hover { background: var(--sp-mist); color: var(--sp-ink); }
.spf-empty { color: var(--sp-muted); padding: .1rem 1.4rem .85rem; font-size: .97rem; margin: 0; }
.spf-perf { position: relative; height: 0; flex: none; border-top: 2px dashed var(--sp-line); }
.spf-perf::before, .spf-perf::after { content: ""; position: absolute; top: -.8rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--notch, #fff); box-shadow: inset 0 0 0 1px var(--sp-line); }
.spf-perf::before { left: -.75rem; clip-path: inset(0 0 0 50%); }
.spf-perf::after { right: -.75rem; clip-path: inset(0 50% 0 0); }
.spf-foot { flex: none; padding: .9rem 1.4rem 1.2rem; display: grid; gap: .8rem; }
.spf-sum { display: flex; align-items: baseline; justify-content: space-between; color: var(--sp-ink); font-weight: 500; background: none; border: 0; padding: 0; width: 100%; cursor: default; }
.spf-sum b { font: 700 1.65rem/1 var(--sp-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spf-chev { display: none; }

/* A table's seats */
.spf-rail.has-table .spf-rail-top > p, .spf-rail.has-table .spf-prices { display: none; }
.spf-tp { margin-top: 1rem; border-radius: 1rem; box-shadow: inset 0 0 0 1px var(--sp-line); padding: .95rem 1rem 1rem; animation: spf-rise .3s var(--f-ease); }
.spf-tp-h { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.spf-tp-h h3 { font: 700 1.2rem/1.2 var(--sp-display); letter-spacing: -.01em; color: var(--sp-ink); margin: 0; }
.spf-tp-h small { display: block; color: var(--sp-muted); font: 400 .9rem Geist, sans-serif; letter-spacing: 0; }
.spf-ring { position: relative; width: 15rem; height: 15rem; margin: .5rem auto .7rem; }
.spf-ring-c { position: absolute; inset: 3.95rem; border-radius: 50%; display: grid; place-content: center; text-align: center; padding: .4rem; background: var(--sp-mist); box-shadow: inset 0 0 0 1px var(--sp-line); font: 700 1.1rem/1.1 var(--sp-display); color: var(--sp-ink); }
.spf-chair { position: absolute; width: 2.75rem; height: 2.75rem; margin: -1.375rem; border: 0; padding: 0; border-radius: 50%; background: color-mix(in srgb, var(--c) 86%, #fff); color: var(--t, #fff); font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .15s var(--f-ease), background-color .15s; }
.spf-chair:hover:not(:disabled) { transform: scale(1.1); }
.spf-chair:disabled { background: var(--f-taken); color: #8A93A1; cursor: not-allowed; }
.spf-chair.is-on { background: var(--sp-primary); color: var(--sp-on-primary); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sp-primary); animation: spf-pop .34s var(--f-ease); }
.spf-link { display: block; margin: .1rem auto 0; background: none; border: 0; padding: 0; color: var(--sp-primary-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.sp-flow #tier-display:has(.currency-option) { margin-top: .75rem; }
body.sp-flow #tier-display:not(:has(.currency-option)) { display: none; }

/* Details and payment steps */
.spf-wizard { flex: 1 0 auto; padding: 1.75rem 0 4rem; background: var(--sp-mist); --notch: var(--sp-mist); --sp-notch: var(--sp-mist); overflow-x: clip; }
.spf-wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.spf-alerts-w { display: grid; gap: .6rem; margin-bottom: 1rem; }
.spf-alerts-w > * { margin: 0 !important; border-radius: .9rem !important; }
.spf-grid { display: grid; gap: 1.25rem; align-items: start; grid-template-columns: minmax(0, 1fr) 23.5rem; }
.spf-side { position: sticky; top: 1.25rem; order: 2; }
.spf-pane { animation: spf-next .36s var(--f-ease) both; }
.spf-pane.is-back { animation-name: spf-prev; }
body.sp-flow .spf-panel { background: #fff !important; border-radius: 1.25rem !important; padding: 1.5rem 1.6rem !important; box-shadow: 0 0 0 1px var(--sp-line) !important; margin: 0 0 1rem !important; }
.spf-panel > h2:first-child, .spf-panel > h3:first-child { font: 700 1.4rem/1.15 var(--sp-display) !important; color: var(--sp-ink) !important; letter-spacing: -.022em; padding: 0 !important; border: 0 !important; margin: 0 0 .9rem !important; outline: 0; }
.spf-note { color: var(--sp-muted); margin: -.6rem 0 1.1rem; }
.spf-go { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.spf-go .spf-btn { flex: 1; }
.spf-go .spf-btn.is-line { flex: 0 0 auto; }
body.sp-flow .spf-go #submit-wrap { flex: 1; display: flex; }
body.sp-flow .spf-go #submit-wrap button, body.sp-flow .spf-go > button[type=submit] { flex: 1; width: auto; min-height: 3.3rem; border-radius: .8rem; }
.spf-go #submit-hint { flex: 1 0 100%; margin: .25rem 0 0; }
.spf-submit-hint { flex: 1 0 100%; text-align: center; color: var(--sp-muted); font-size: .92rem; margin: .25rem 0 0; }
body.sp-flow .sp-busy .spf-paylabel { display: none; }
body.sp-flow .spf-swap #btn-text, body.sp-flow .spf-swap #button-text { display: none; }
.spf-msg { color: var(--sp-bad); font-size: .9rem; margin: .3rem 0 0; }
body.sp-flow .spf-bad, body.sp-flow .spf-bad:focus { border-color: var(--sp-bad) !important; }
.spf-safe { display: flex; gap: .4rem; align-items: center; justify-content: center; color: var(--sp-muted); font-size: .9rem; margin: .75rem 0 0; }

/* Order summary */
.spf-ticket { position: relative; background: #fff; border-radius: 1.4rem; box-shadow: 0 0 0 1px var(--sp-line), var(--f-shadow); }
.spf-tog { display: none; width: 100%; justify-content: space-between; align-items: center; gap: 1rem; background: none; border: 0; padding: 1rem 1.25rem; color: var(--sp-ink); font-weight: 600; cursor: pointer; }
.spf-tog svg { transition: transform .25s var(--f-ease); }
.spf-ticket.is-open .spf-tog svg { transform: rotate(180deg); }
body.sp-flow .spf-ticket .sp-stub { margin: 0 !important; padding: 0 !important; }
.spf-lines { padding: 1.05rem 1.35rem; display: grid; gap: .5rem; font-variant-numeric: tabular-nums; }
.spf-lines > div { display: flex; justify-content: space-between; gap: 1rem; }
.spf-lines small { display: block; color: var(--sp-muted); font-size: .86rem; }
.spf-tot { padding-top: .75rem; margin-top: .2rem; border-top: 1px solid var(--sp-line); color: var(--sp-ink); font-weight: 500; align-items: baseline; }
.spf-tot b { font: 700 1.5rem var(--sp-display); }
body.sp-flow .spf-lines #summary-discount { margin: 0 !important; color: var(--sp-good) !important; }
body.sp-flow .spf-ticket #coupon-box { padding: 0 1.35rem 1.25rem; margin: 0; }
.spf-side-free .spf-ticket #coupon-box { display: none; }

#spf-tip { position: fixed; z-index: 70; background: var(--sp-ink); color: #fff; border-radius: .6rem; padding: .4rem .7rem; font-size: .87rem; line-height: 1.3; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 8px)); transition: opacity .12s; white-space: nowrap; }
#spf-tip b { font-weight: 600; display: block; }
#spf-tip.is-on { opacity: 1; }
#spf-toast { position: fixed; left: 50%; bottom: 7rem; z-index: 80; translate: -50% 0; background: var(--sp-ink); color: #fff; border-radius: .8rem; padding: .7rem 1.1rem; font-weight: 500; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .3s var(--f-ease); width: max-content; max-width: calc(100vw - 2rem); }
#spf-toast.is-on { opacity: 1; transform: none; }

/* Phone and small tablet */
@media (max-width: 61.99rem) {
    .spf-nav-in { height: 3.4rem; padding: 0 .5rem 0 .4rem; gap: .35rem; }
    .spf-brand, .spf-steps { display: none; }
    .spf-ev { border: 0; padding: 0; flex: 1; }
    .spf-ev b { font-size: .98rem; }
    .spf-ev small { font-size: .82rem; }
    .spf-seg { display: flex; gap: .25rem; padding: 0 .75rem .55rem; }
    .spf-seg i { flex: 1; height: 3px; border-radius: 2px; background: var(--sp-line); transition: background-color .3s; }
    .spf-seg i.is-on { background: var(--sp-primary); }
    .spf-pick { display: flex; flex-direction: column; }
    .spf-mapbox { flex: 1 1 auto; }
    .spf-chips { display: flex; flex: none; gap: .4rem; padding: .55rem .75rem; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--sp-line); scrollbar-width: none; }
    .spf-chips::-webkit-scrollbar { display: none; }
    .spf-chips .spf-price { width: auto; flex: none; padding: .42rem .7rem; gap: .45rem; border-radius: 2rem; }
    .spf-chips .spf-pn small { display: none; }
    .spf-chips .spf-pn b { font-size: .9rem; font-weight: 500; white-space: nowrap; }
    .spf-chips .spf-pp { font-size: .9rem; }
    .spf-chips .spf-glyph { width: .85rem; height: .85rem; }
    .spf-rail { flex: none; border: 0; max-height: 64%; box-shadow: 0 -10px 30px -18px rgba(18, 22, 28, .4); position: relative; z-index: 6; }
    .spf-rail-top { padding: 0; flex: 0 1 auto; }
    .spf-rail-top h1, .spf-rail-top > p, .spf-rail-top .spf-prices { display: none; }
    .spf-tp { margin: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--sp-line); padding: .75rem 1rem .85rem; }
    .spf-ring { width: 12.5rem; height: 12.5rem; margin: .1rem auto .55rem; }
    .spf-ring-c { inset: 3.3rem; font-size: .95rem; }
    .spf-chair { width: 2.65rem; height: 2.65rem; margin: -1.325rem; }
    .spf-stub { max-height: none; border: 0; min-height: 0; }
    .spf-stub-head, .spf-stub .spf-perf, .spf-empty { display: none; }
    .spf-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom)); gap: .75rem; }
    .spf-sum { display: block; text-align: left; cursor: pointer; min-height: 2.75rem; }
    .spf-sum > span { display: flex; align-items: center; gap: .25rem; font-size: .88rem; color: var(--sp-muted); font-weight: 400; }
    .spf-sum b { font-size: 1.3rem; display: block; margin-top: .1rem; }
    .spf-chev { display: inline-flex; transition: transform .25s var(--f-ease); }
    .spf-stub.is-open .spf-chev { transform: rotate(180deg); }
    .spf-sum:disabled { cursor: default; }
    .spf-sum:disabled .spf-chev { display: none; }
    .spf-plist { display: none; max-height: 32dvh; padding: .4rem 1rem; }
    .spf-stub.is-open .spf-plist { display: block; border-bottom: 1px solid var(--sp-line); animation: spf-rise .25s var(--f-ease); }
    .spf-foot .spf-btn { min-height: 3rem; font-size: 1rem; }
    .spf-ctl { right: .75rem; bottom: .75rem; }
    .spf-key { left: .75rem; bottom: .75rem; gap: .7rem; padding: .4rem .6rem; font-size: .8rem; }
    .spf-hint { display: block; }
    .spf-wizard { padding: .9rem 0 2rem; }
    .spf-grid { grid-template-columns: minmax(0, 1fr); }
    .spf-side { position: static; order: 0; }
    .spf-tog { display: flex; }
    .spf-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--f-ease); }
    .spf-ticket.is-open .spf-body { grid-template-rows: 1fr; }
    .spf-body > div { min-height: 0; overflow: hidden; }
    body.sp-flow .spf-panel { padding: 1.2rem 1.1rem !important; border-radius: 1.1rem !important; }
    .spf-go { position: sticky; bottom: 0; margin: 1rem -1.25rem -2rem; padding: .7rem 1.25rem calc(.7rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--sp-line); z-index: 6; }
    body.sp-flow:not(.spf-on-pick) footer { margin-top: 0; }
    #spf-toast { bottom: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
    body.sp-flow *, body.sp-flow *::before, body.sp-flow *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Payment method logos: a fixed white box so the list lines up and logos stay readable on the selected tint. */
body.sp-flow .spf-gw-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 84px; height: 40px; margin-left: 12px; padding: 5px 7px; background: #fff; border: 1px solid var(--sp-line); border-radius: 8px; }
body.sp-flow .spf-gw-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 61.99rem) {
    body.sp-flow .spf-gw-logo { width: 64px; height: 34px; margin-left: 8px; padding: 4px 5px; }
}

/* Quotation link beside the map. */
body.sp-flow .spf-quote { margin-top: .9rem; padding-top: .85rem; border-top: 1px solid var(--sp-line); font-size: .92rem; color: var(--sp-muted); }
body.sp-flow .spf-quote p { margin: 0; font-size: inherit; color: inherit; }
body.sp-flow .spf-quote-note { display: none; margin-top: .25rem; font-size: .84rem; }
body.sp-flow .spf-quote.has-picks .spf-quote-note { display: block; }
body.sp-flow .spf-rail.has-table .spf-quote { display: none; }
@media (max-width: 61.99rem) {
    body.sp-flow .spf-quote { margin: 0; padding: .6rem 1rem; border-top: 0; border-bottom: 1px solid var(--sp-line); }
}

/* "Joining as" on seat and table pages. */
body.sp-flow .spf-panel:has(> #category-section[style*="none"]) { display: none; }
body.sp-flow #category-section { margin: 0; }
body.sp-flow #category-section .space-y-2 { display: grid; gap: .55rem; }
body.sp-flow #category-section .space-y-2 > * { margin: 0; }
body.sp-flow .joining-option { padding: .85rem 1rem; border: 2px solid var(--sp-line); border-radius: .9rem; background: #fff; transition: border-color .15s, background-color .15s; }
body.sp-flow .joining-option:has(input:checked) { border-color: var(--sp-primary); background: color-mix(in srgb, var(--sp-primary) 8%, #fff); }
body.sp-flow .joining-option:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sp-primary) 22%, transparent); }
body.sp-flow .joining-description { color: var(--sp-muted); line-height: 1.35; margin-top: .1rem; }
body.sp-flow #joining-hint { display: none !important; margin: .65rem 0 0; color: var(--sp-bad); }
body.sp-flow #category-section.spf-need #joining-hint { display: block !important; }
