/* The pages both websites share (ticket shop, checkout, claim, manage, hand-off, link and member sale, receipt, loyalty claim,
   404) on the Elio host. Loaded after app.css and elio.css. Drawn like the checkout views of the final design
   (Elio/proposals/final/Main.dc.html): the pink page, white rounded cards, yellow and blue accents, the step pills, GT Maru for
   the headings and Bricolage Grotesque for the text.

   How the FERRY templates get there without being copied:
   - the brand colours in their inline styles are CSS variables (--tx-*, defined for FERRY in app.css); this file gives them
     the Elio values below, and the classes of app.css are re-coloured by class;
   - where the markup has to differ (the ticket page, the claim step, the share step) the Elio theme has its own template
     under templates/themes/elio/site/checkout, with the same ids, fields and Stimulus targets (see SiteTemplates). */

/* The tokens of the pages: ink is black on white cards and on the pink page; the accent text is blue. */
body.elio-tx {
    --tx-ink-rgb: 0 0 0;
    --tx-accent: var(--elio-blue);
    --tx-accent-rgb: 0 0 255;
    --tx-pink: var(--elio-pink);
    --tx-danger: #b3001b;
    --tx-danger-soft: #b3001b;
    --tx-danger-rgb: 179 0 27;
    /* The FERRY tokens that app.css reads (Tailwind theme variables). */
    --color-ferry-pink: var(--elio-pink);
    --color-ferry-pink-deep: #b00868;
    --color-ferry-yellow: var(--elio-blue);
    --color-ferry-black: var(--elio-black);
    --font-marker: var(--elio-display);
    --font-body: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-display: var(--elio-display);
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}

/* ---- header of the focused pages: wordmark left, "Cancel" (or the page's one control) right, as in the design ---- */
.elio-chrome { padding-top: 20px; padding-bottom: 20px; }
.elio-tx .checkout-cancel { color: var(--elio-black); font-weight: 800; font-size: 17px; text-decoration: none; padding: 12px 0; min-height: 48px; display: inline-flex; align-items: center; }
.elio-tx .checkout-cancel:hover { color: var(--elio-white); }
.elio-tx .manage-who { color: var(--elio-black); font-weight: 800; font-size: 15px; overflow-wrap: anywhere; text-align: right; }
.elio-tx .tx-paid-chip { background: var(--elio-yellow); border: 0; padding: 9px 18px; }

/* ---- the page shell: a white card on the pink page; the checkout and shop pages have their own cards, so their shell is bare ---- */
.elio-tx .elio-main { padding: 4px 48px 96px; }
.elio-tx .page-shell {
    --elio-h1: var(--elio-black);
    --elio-panel-bg: transparent;
    --elio-panel-border: 2px solid var(--elio-black);
    background: var(--elio-white);
    color: var(--elio-black);
    border-radius: 40px;
    box-sizing: border-box;
    padding: clamp(24px, 4vw, 48px);
    margin-top: 0;
    animation: none;
}
.elio-tx .page-shell:has(> .checkout-wizard):not(.page-shell--claim),
.elio-tx .page-shell:has(> .elio-flow),
.elio-tx .page-shell.ticket-shop,
.elio-tx .page-shell.ticket-empty {
    --elio-h1: var(--elio-yellow);
    --elio-panel-bg: var(--elio-white);
    --elio-panel-border: 0;
    background: transparent;
    color: var(--elio-black);
    padding: 0;
    max-width: none !important;
}
.elio-tx .receipt-wrap { min-height: 0; padding: 0; max-width: 1180px; margin: 0 auto; background: transparent; animation: none; }
.elio-tx .receipt-card { background: var(--elio-white); color: var(--elio-black); border: 0; border-radius: 40px; box-sizing: border-box; overflow: hidden; }
@container (max-width: 640px) {
    .elio-tx .elio-main { padding: 0 16px 64px; }
    .elio-tx .page-shell { border-radius: 28px; }
}

.elio-tx .page-shell h1,
.elio-tx .page-title,
.elio-tx .ticket-shop__title { font-family: var(--elio-display); font-weight: 900 !important; letter-spacing: -.01em !important; line-height: .98; color: var(--elio-h1, var(--elio-black)); }
.elio-tx .page-shell h1 { font-size: clamp(40px, 6vw, 84px) !important; }
.elio-tx .page-shell--claim h1 { font-size: clamp(34px, 4.6vw, 56px) !important; }
.elio-tx .receipt-card h1 { font-family: var(--elio-display); font-weight: 900 !important; letter-spacing: -.01em !important; line-height: .98; color: var(--elio-black); }
.elio-tx .page-shell a:not([class]) { color: var(--elio-blue); font-weight: 700; }
.elio-tx .eyebrow { color: var(--elio-blue); letter-spacing: .08em; font-size: 15px; }
.elio-tx .eyebrow--yellow { color: var(--elio-blue); }
.elio-tx .field-label .req { color: var(--elio-pink); }

/* ---- the Elio blocks of the checkout views (see themes/elio/site/checkout) ---- */
.elio-tx .elio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 28px; align-items: start; }
.elio-tx .elio-grid--split { gap: 32px 56px; }
.elio-tx .elio-card { background: var(--elio-white); color: var(--elio-black); border-radius: 36px; padding: 32px; box-sizing: border-box; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; min-width: 0; }
.elio-tx .elio-card h1 { font-size: 30px !important; line-height: 1.05; color: var(--elio-black); margin: 4px 0 0; }
.elio-tx .elio-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.elio-tx .elio-stack > p { font-size: 17px; }
.elio-tx .elio-stack > h1 { margin: 0; font-size: clamp(40px, 5.6vw, 80px) !important; }
.elio-tx .elio-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 24px; }
.elio-tx .elio-pill { display: inline-block; font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 9px 18px; border-radius: 999px; background: var(--elio-white); color: var(--elio-black); }
.elio-tx .elio-pill--yellow { background: var(--elio-yellow); color: var(--elio-black); }
.elio-tx .elio-eyebrow { font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--elio-black); }
.elio-tx .elio-h2 { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--elio-blue); }
.elio-tx .elio-callout .elio-h2 { color: var(--elio-yellow); letter-spacing: .04em; margin-bottom: 8px; }
.elio-tx .elio-lede { font-size: 20px; font-weight: 500; }
.elio-tx .elio-note { margin: 0; font-size: 15px; }
.elio-tx .elio-callout { background: var(--elio-blue); color: var(--elio-white); border-radius: 28px; padding: 24px; }
.elio-tx .elio-callout p { font-size: 17px; margin: 0; }
.elio-tx .elio-tile { display: flex; align-items: center; gap: 12px; background: var(--elio-white); color: var(--elio-black); border-radius: 24px; padding: 14px 18px; }
.elio-tx .elio-tile__poster { width: 48px; height: 64px; flex: none; border-radius: 12px; background-size: cover; background-position: center 25%; }
.elio-tx .elio-tile__title { font-weight: 800; font-size: 18px; }
.elio-tx .elio-tile__sub { font-size: 15px; }
.elio-tx .elio-event { display: flex; align-items: center; gap: 16px; }
.elio-tx .elio-event__poster { width: 72px; aspect-ratio: 3 / 4; flex: none; border-radius: 12px; background-size: cover; background-position: center; }
.elio-tx .elio-bands { border-top: 2px solid var(--elio-black); margin-top: 10px; }
.elio-tx .elio-summary { display: flex; flex-direction: column; gap: 16px; }
.elio-tx .elio-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 18px; }
.elio-tx .elio-summary__row--total { padding-top: 14px; border-top: 2px solid var(--elio-black); }
.elio-tx .elio-summary__row--total span:first-child { font-weight: 800; font-size: 20px; }
.elio-tx .elio-summary__row--total span:last-child { font-family: var(--elio-display); font-weight: 900; font-size: 38px; line-height: 1; color: var(--elio-pink); }
.elio-tx .elio-summary__row[hidden] { display: none; }
.elio-tx .elio-cta { width: auto; align-self: flex-start; padding: 15px 30px; min-height: 56px; font-size: 19px; }
.elio-tx .elio-card .group-night { display: flex; flex-direction: column; gap: 12px; }

/* ---- wizard: the three step pills "1 Tickets / 2 Payment / 3 Claim", the current one yellow on blue ---- */
.elio-tx .checkout-wizard { margin: 0 0 32px; }
.elio-tx .checkout-wizard__list { gap: 8px; font-size: 15px; letter-spacing: .04em; }
.elio-tx .checkout-wizard__sep { display: none; }
.elio-tx .checkout-wizard__item,
.elio-tx .checkout-wizard__item.is-done { padding: 9px 18px; border-radius: 999px; background: var(--elio-white); color: var(--elio-black); font-weight: 800; }
.elio-tx .checkout-wizard__item.is-current,
.elio-tx .checkout-wizard__item.is-current.is-payment { background: var(--elio-yellow); color: var(--elio-blue); }
.elio-tx .page-shell--claim .checkout-wizard__item:not(.is-current) { box-shadow: inset 0 0 0 2px var(--elio-black); }

/* ---- panels, buttons, fields, flashes ---- */
.elio-tx .panel { background: var(--elio-panel-bg, var(--elio-white)); color: var(--elio-black); border: var(--elio-panel-border, 0); border-radius: 36px; padding: 32px; }
.elio-tx .panel .field-label,
.elio-tx .field-label { color: var(--elio-black); font-weight: 700; font-size: 16px; }

.elio-tx .btn-yellow { background: var(--elio-yellow); color: var(--elio-blue); animation: none; font-family: inherit; font-size: 19px; }
.elio-tx .btn-yellow:hover { color: var(--elio-blue); }
.elio-tx .btn-magenta,
.elio-tx .btn-pink { background: var(--elio-blue); color: var(--elio-white); font-size: 19px; }
.elio-tx .btn-magenta:hover,
.elio-tx .btn-pink:hover { color: var(--elio-white); }
.elio-tx .btn-outline { border: 2px solid var(--elio-black); color: var(--elio-black); font-family: inherit; }
.elio-tx .btn-outline:hover { border-color: var(--elio-blue); color: var(--elio-blue); }
.elio-tx .btn-pill-wide { min-height: 56px; }
.elio-tx .pay-submit { font-family: inherit; }

.elio-tx .site-input { background: var(--elio-white); color: var(--elio-black); border: 2px solid var(--elio-black); border-radius: 14px; font-family: inherit; min-height: 52px; }
.elio-tx .site-input:focus { border-color: var(--elio-blue); box-shadow: 0 0 0 4px rgba(0, 0, 255, .18); background: var(--elio-white); }
.elio-tx .site-input::placeholder { color: rgba(0, 0, 0, .5); }
/* app.css draws the select's chevron as two small gradients; the shorthand above resets their size and position, so they are set again here (white box, dark chevron). */
.elio-tx select.site-input {
    appearance: none;
    padding-right: 40px;
    background-color: var(--elio-white);
    background-image: linear-gradient(45deg, transparent 50%, var(--elio-black) 50%), linear-gradient(135deg, var(--elio-black) 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 2px), calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
/* The consent lines (attested, newsletter, terms) are white text in app.css: black on the white cards and panels here, the box beside its text. */
.elio-tx .opt-in { align-items: flex-start; color: var(--elio-black); font-size: 15px; }
.elio-tx .opt-in span { flex: 1; min-width: 0; }
.elio-tx .opt-in input { margin: 0; }
.elio-tx .opt-in-privacy { margin: 0; font-size: 14px; color: rgba(0, 0, 0, .65); }
.elio-tx .opt-in-privacy a { color: var(--elio-blue); font-weight: 700; }
.elio-tx .page-shell input[type="checkbox"],
.elio-tx .page-shell input[type="radio"] { accent-color: var(--elio-blue); }

.elio-tx .flash { border-radius: 24px; background: var(--elio-black); color: var(--elio-white); border: 0; }
.elio-tx .flash--success { background: var(--elio-yellow); color: var(--elio-black); }
.elio-tx form ul { color: var(--elio-black); }
.elio-tx .email-suggestion { background: var(--elio-white); color: var(--elio-black); border: 2px solid var(--elio-black); border-radius: 24px; }
.elio-tx .email-suggestion__ask strong { color: var(--elio-blue); }
.elio-tx .email-suggestion__keep { color: var(--elio-black); }
.elio-tx .email-suggestion__keep:hover { color: var(--elio-blue); }

/* ---- pay: hold clock, steppers, payment methods ---- */
.elio-tx .qty-stepper { border: 2px solid var(--elio-black); border-radius: 999px; }
.elio-tx .qty-stepper button,
.elio-tx .qty-stepper input { color: var(--elio-black); font-family: inherit; }
.elio-tx .hold-clock { --tx-ink-rgb: 255 255 255; background: var(--elio-black); color: var(--elio-white); border: 0; border-radius: 999px; padding: 10px 20px; }
.elio-tx .hold-clock__dot { background: var(--elio-yellow); }
.elio-tx .hold-clock__time { color: var(--elio-white); font-family: inherit; font-size: 18px; font-weight: 800; }
.elio-tx .pay-method { border: 2px solid var(--elio-black); border-radius: 999px; background: transparent; color: var(--elio-black); font-family: inherit; font-weight: 800; }
.elio-tx .pay-method.is-selected { background: var(--elio-yellow); border-color: var(--elio-black); color: var(--elio-blue); }

/* ---- ticket shop: white night cards and basket on the pink page ---- */
.elio-tx .ticket-shop__title { color: var(--elio-yellow); }
.elio-tx .ticket-shop__count { color: var(--elio-black); font-family: var(--elio-display); transform: none; }
.elio-tx .ticket-night,
.elio-tx .ticket-basket,
.elio-tx .ticket-resume,
.elio-tx .ticket-shop__note { background: var(--elio-white); color: var(--elio-black); border: 0; border-radius: 36px; }
.elio-tx .ticket-shop__note { border-radius: 24px; }
.elio-tx .ticket-night.is-in-basket { box-shadow: 0 0 0 4px var(--elio-yellow); }
.elio-tx .ticket-night__tag { background: var(--elio-yellow); color: var(--elio-blue); border-radius: 999px; transform: none; }
.elio-tx .ticket-night__when { color: var(--elio-blue); }
.elio-tx .ticket-night__title { color: var(--elio-black); font-family: var(--elio-display); font-weight: 900; letter-spacing: -.01em; }
.elio-tx .ticket-night__title:hover,
.elio-tx .ticket-night__more:hover { color: var(--elio-blue); }
.elio-tx .ticket-night__desc { color: rgba(0, 0, 0, .75); }
.elio-tx .ticket-night__more { color: var(--elio-blue); }
.elio-tx .ticket-night__cap { color: var(--elio-pink); }
.elio-tx .ticket-band,
.elio-tx .elio-bands .ticket-band { border-top: 0; border-bottom: 2px solid var(--elio-black); }
.elio-tx .ticket-band__name,
.elio-tx .ticket-band--on-sale .ticket-band__name,
.elio-tx .ticket-band__price,
.elio-tx .ticket-band--on-sale .ticket-band__price { color: var(--elio-black); font-weight: 800; }
.elio-tx .ticket-band__note,
.elio-tx .ticket-band__entry { color: rgba(0, 0, 0, .65); }
.elio-tx .ticket-band__note.is-urgent { color: var(--elio-black); background: var(--elio-pink); border-radius: 999px; padding: 3px 10px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 800; }
.elio-tx .ticket-band__badge,
.elio-tx .ticket-band--on-sale .ticket-band__badge { border: 0; border-radius: 999px; background: var(--elio-yellow); color: var(--elio-blue); }
.elio-tx .ticket-band--next .ticket-band__badge { background: var(--elio-pink); color: var(--elio-black); }
.elio-tx .ticket-step { border: 0; gap: 6px; }
.elio-tx .ticket-step button { background: var(--elio-black); color: var(--elio-white); font-family: inherit; width: 48px; height: 48px; font-size: 24px; }
.elio-tx .ticket-step .ticket-band__dec { color: var(--elio-white); }
.elio-tx .ticket-step button:disabled { background: rgba(0, 0, 0, .25); color: var(--elio-white); }
.elio-tx .ticket-step__qty,
.elio-tx .ticket-step.is-active .ticket-step__qty { color: var(--elio-black); font-family: var(--elio-display); font-weight: 900; font-size: 28px; width: 34px; }
.elio-tx .ticket-basket__title { color: var(--elio-blue); }
.elio-tx .ticket-basket__badge { background: var(--elio-pink); color: var(--elio-black); }
.elio-tx .ticket-basket__empty,
.elio-tx .ticket-basket__line-label,
.elio-tx .ticket-basket__remove,
.elio-tx .ticket-basket__row,
.elio-tx .ticket-basket__label,
.elio-tx .ticket-basket__hint { color: rgba(0, 0, 0, .65); }
.elio-tx .ticket-basket__lines,
.elio-tx .ticket-basket__row--total { color: var(--elio-black); }
.elio-tx .ticket-basket__row--total span:last-child { color: var(--elio-pink); font-family: var(--elio-display); }
.elio-tx .ticket-basket__rule { background: var(--elio-black); height: 2px; }
.elio-tx .ticket-basket__pay { background: var(--elio-blue); color: var(--elio-white); border-radius: 999px; }
/* .btn-yellow:hover (blue text) would put blue on this blue button. */
.elio-tx .ticket-basket__pay:hover { color: var(--elio-white); }
.elio-tx .ticket-bar { background: var(--elio-blue); color: var(--elio-white); border-radius: 999px; }
.elio-tx .ticket-bar__cta { background: var(--elio-yellow); color: var(--elio-blue); border-radius: 999px; }
.elio-tx .ticket-resume__text,
.elio-tx .ticket-resume [data-hold-countdown-target] { color: var(--elio-black); }
.elio-tx .ticket-resume { border: 2px solid var(--elio-black); border-radius: 24px; }
.elio-tx .ticket-resume__link { background: var(--elio-blue); color: var(--elio-white); border-radius: 999px; }
.elio-tx .ticket-overlay__card { background: var(--elio-white); color: var(--elio-black); border: 0; border-radius: 36px; }
.elio-tx .ticket-overlay__title { color: var(--elio-blue); transform: none; font-family: var(--elio-display); }
.elio-tx .ticket-overlay__text,
.elio-tx .ticket-overlay__text b { color: var(--elio-black); }
.elio-tx .ticket-overlay__back { color: var(--elio-black); border-color: var(--elio-black); }

/* ---- empty shop: the sign-up on the pink page ---- */
.elio-tx .ticket-empty { color: var(--elio-black); }
.elio-tx .ticket-empty__marker { color: var(--elio-black); font-family: var(--elio-display); transform: none; }
.elio-tx .ticket-empty__title { color: var(--elio-yellow); font-family: var(--elio-display); font-weight: 900; letter-spacing: -.01em; }
.elio-tx .ticket-empty__lede,
.elio-tx .ticket-empty__hint { color: var(--elio-black); }
.elio-tx .ticket-empty__input { background: var(--elio-white); color: var(--elio-black); border: 2px solid var(--elio-black); border-radius: 14px; }
.elio-tx .ticket-empty__input::placeholder { color: rgba(0, 0, 0, .5); }
.elio-tx .ticket-empty__submit { background: var(--elio-blue); color: var(--elio-white); border-radius: 999px; }
.elio-tx .ticket-empty__submit:hover { background: var(--elio-black); }
.elio-tx .ticket-empty__chip { background: var(--elio-yellow); color: var(--elio-black); border-radius: 999px; }
.elio-tx .ticket-empty__again,
.elio-tx .ticket-empty__agenda { color: var(--elio-black); }

/* ---- claim, manage, share ---- */
.elio-tx .claim-ticket { background: var(--elio-pink); color: var(--elio-black); border-radius: 32px; }
.elio-tx .claim-ticket__body { background: none; }
.elio-tx .claim-ticket__copy { --tx-accent: var(--elio-black); }
.elio-tx .claim-ticket__qr { background: var(--elio-white); border-radius: 20px; }
.elio-tx .claim-ticket__copy { overflow-wrap: anywhere; }
/* Narrow: the QR goes under the text instead of covering it (app.css keeps copy and QR side by side in one nowrap row). */
@container (max-width: 640px) {
    .elio-tx .claim-ticket__body { flex-direction: column; align-items: stretch; gap: 22px; }
    .elio-tx .claim-ticket__qr { margin-left: 0; align-self: center; }
}
.elio-tx .claim-poster { border-radius: 14px; }
.elio-tx .manage-label { color: var(--elio-blue); letter-spacing: .08em; }
.elio-tx .manage-ready,
.elio-tx .manage-used,
.elio-tx .manage-night-chip { border-radius: 28px; }
.elio-tx .manage-chip { border-radius: 999px; }
.elio-tx .manage-btn { border-radius: 999px; font-family: inherit; }
.elio-tx .manage-btn--ink { background: var(--elio-yellow); color: var(--elio-blue); }
.elio-tx .group-night { border-radius: 28px; }

/* ---- receipt ---- */
.elio-tx .receipt-check { background: var(--elio-yellow); color: var(--elio-black); }
.elio-tx .receipt-qty { border-radius: 999px; background: var(--elio-yellow); color: var(--elio-black); }

/* ---- 404 ---- */
.elio-notfound { padding-top: 16px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.elio-notfound__digits { margin: 0; font-family: var(--elio-display); font-weight: 900; font-size: clamp(120px, 24vw, 320px); line-height: .85; color: var(--elio-white); }

/* ---- loyalty claim (stand-alone page: pink, black button) ---- */
.elio-tx .loyalty-claim__title { font-family: var(--elio-display); color: var(--elio-yellow); }
.elio-tx .loyalty-claim__cta { background: var(--elio-black); color: var(--elio-white); border-radius: 999px; }
.elio-tx .loyalty-claim__store { border-radius: 999px; }
.elio-tx .loyalty-claim__other { color: var(--elio-black); }
