:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --accent: #2563eb; --accent-dark: #1d4ed8; --ink: #17283e; --muted: #526479; --line: #dce4ef; --page: #f4f7fb; --surface: #fff; --danger: #a12525; --radius: 18px; --navy: #152b46; --accent-soft: #eef4ff; --focus: #2563eb; }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--page); color: var(--ink); font-size: 16px; line-height: 1.5; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    button:disabled { cursor: not-allowed; opacity: .55; }
    a { color: var(--accent-dark); }
    .checkout-app { width: min(1120px, calc(100% - 3rem)); margin: 2.5rem auto 4rem; }
    .bytehiker-branding { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
    .bytehiker-branding a { color: var(--accent-dark); text-decoration: underline; }
    .event-header { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; padding: 2rem 2.25rem; border-radius: 22px; color: white; background: var(--navy); }
    .event-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 5%, rgba(21,43,70,.92) 36%, rgba(21,43,70,.35) 78%, rgba(21,43,70,.12)); }
    .event-cover-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
    .event-header-content { min-width: 0; max-width: 40rem; }
    .organizer { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; font-size: .88rem; font-weight: 550; color: #e3ecf8; }
    .organizer img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: white; padding: .2rem; }
    h1, h2, h3, p { margin-top: 0; }
    h1 { margin-bottom: .6rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.13; letter-spacing: -.035em; font-weight: 750; overflow-wrap: anywhere; }
    h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 1.25rem; }
    h3 { font-size: 1rem; line-height: 1.4; margin-bottom: .35rem; overflow-wrap: anywhere; }
    .muted { color: var(--muted); }
    .event-header .event-subtitle { margin-bottom: 0; max-width: 35rem; color: #e3ecf8; font-size: 1rem; }
    .event-meta { display: flex; align-items: center; gap: .5rem; margin: 1.15rem 0 0; color: #e3ecf8; font-size: .88rem; font-weight: 500; }
    .status { min-height: 1.5rem; margin: .8rem 0; }
    .status.error { color: var(--danger); }
    .status.success { color: #166534; }
    .steps { display: flex; gap: 1rem; align-items: center; margin: 1.75rem .25rem; color: var(--muted); }
    .step { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; border: 0; padding: .25rem 0; color: inherit; background: transparent; font-size: .94rem; font-weight: 550; }
    .step[aria-current="step"] { color: var(--accent-dark); font-weight: 700; }
    .step-number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #aab9cb; border-radius: 50%; font-size: .85rem; background: var(--surface); }
    .step-divider { flex: 0 1 5rem; height: 1px; background: #ccd8e7; }
    .step-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
    .panel { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 16px rgba(21,43,70,.025); }
    .panel > :last-child { margin-bottom: 0; }
    .ticket-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; margin: .75rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; transition: border-color .16s ease, background-color .16s ease; }
    .voucher-toggle { margin: 1rem 0 .25rem; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
    .voucher-panel { padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
    .voucher-unit { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0; }
    .voucher-unit > span { min-width: 10rem; }
    .voucher-unit input { flex: 1 1 13rem; min-width: 0; }
    .voucher-unit button { flex: 0 0 auto; min-width: 7.5rem; }
    .voucher-unit small { color: var(--accent); }
    .ticket-details { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
    .ticket-copy { min-width: 0; overflow-wrap: anywhere; }
    .ticket-copy p { margin-bottom: .4rem; }
    .ticket-price { margin: 0; font-size: 1.05rem; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .ticket-original-price { margin-right: .35rem; color: var(--muted); font-size: .9em; font-weight: 500; }
    .ticket-discounted-total { margin: .35rem 0 0; color: var(--accent-dark); font-size: .88rem; }
    .tax-note { margin: .2rem 0 0; font-size: .78rem; color: var(--muted); font-weight: 400; }
    .quantity { display: inline-flex; align-items: center; gap: .25rem; padding: 3px; border: 1px solid #bfcee0; border-radius: 12px; background: var(--surface); }
    .quantity button { width: 44px; height: 44px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font-size: 1.3rem; line-height: 1; }
    .quantity-value { min-width: 1.5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
    .summary-panel { position: sticky; top: 1.5rem; padding: 1.5rem; border-top: 3px solid var(--accent); }
    .summary-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
    .summary-item-title { margin-bottom: .3rem; font-size: .94rem; font-weight: 650; overflow-wrap: anywhere; }
    .summary-item-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .86rem; }
    .summary-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
    .summary-row span:first-child { overflow-wrap: anywhere; }
    .summary-voucher-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, max-content); align-items: baseline; gap: .15rem .5rem; }
    .summary-voucher-title { grid-column: 1 / -1; white-space: nowrap; }
    .summary-voucher-code { grid-column: 1; min-width: 0; overflow-x: auto; color: var(--muted); font-size: .7rem; letter-spacing: -.01em; white-space: nowrap; }
    .summary-voucher-amount { grid-column: 2; min-width: 8rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .summary-total { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.2rem; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
    .tax-lines { color: var(--muted); font-size: .9rem; }
    .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    .field { min-width: 0; }
    .field.full { grid-column: 1 / -1; }
    label { display: block; margin-bottom: .45rem; font-weight: 600; font-size: .9rem; }
    .optional-label { color: var(--muted); font-size: calc(1em - 2px); font-weight: 400; }
    input[type="text"], input[type="email"], input[type="tel"] { width: 100%; min-height: 50px; border: 1px solid #8192a5; border-radius: 10px; padding: .75rem .85rem; color: var(--ink); background: #fcfdff; font-size: 1rem; }
    input:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
    input[aria-invalid="true"] { border-color: var(--danger); }
    .checkbox-row { display: flex; align-items: flex-start; gap: .7rem; margin: 1.25rem 0; padding: .85rem 0; border: 1px solid transparent; border-radius: 10px; }
    .checkbox-row.legal-consent-error { animation: legal-consent-border-attention 1s ease forwards; }
    @keyframes legal-consent-border-attention {
      0%, 49% { border-color: var(--line); }
      50%, 100% { border-color: var(--danger); }
    }
    .checkbox-row input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--accent); flex: 0 0 auto; }
    .checkbox-row label { margin: 0; font-weight: 500; }
    .legal-consent-copy { min-width: 0; }
    .checkbox-row .legal-consent-label { font-size: calc(1em - 1px); font-weight: 400; }
    .legal-consent-links { margin: .4rem 0 0 calc(20px + .7rem); font-size: calc(1em - 2px); font-weight: 400; overflow-wrap: anywhere; }
    .legal-confirmation a { color: var(--accent-dark); text-decoration: underline; }
    .help-text { display: block; margin: .35rem 0 0; color: var(--muted); font-size: .9rem; font-weight: 400; }
    .error-text { min-height: 1.25rem; margin: .75rem 0 0; color: var(--danger); }
    .step-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.75rem; }
    .button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; border: 1px solid #bfcee0; border-radius: 11px; padding: .75rem 1.1rem; color: var(--ink); background: var(--surface); font-weight: 650; line-height: 1.4; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
    .button.primary { border-color: var(--accent); color: white; background: var(--accent); box-shadow: 0 3px 8px rgba(37,99,235,.14); }
    .button.primary:hover { background: var(--accent-dark); }
    .payment-intro { margin-bottom: 1.25rem; }
    .payment-method-selector { min-width: 0; margin: 0; padding: 0; border: 0; }
    .payment-method-options { display: grid; gap: .65rem; margin-bottom: .9rem; }
    .payment-method-choice { display: flex; align-items: center; gap: .85rem; min-height: 56px; margin: 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: white; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
    .payment-method-choice:hover { border-color: #93b4f5; }
    .payment-method-choice:has(input:checked) { border-color: var(--accent); background: #eff6ff; box-shadow: 0 0 0 1px var(--accent); }
    .payment-method-choice:focus-within { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 2px; }
    .payment-method-choice:has(input:disabled) { cursor: default; }
    .payment-method-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: 0 0 auto; }
    .payment-method-brand-wrap { display: grid; place-items: center; width: 58px; min-width: 58px; height: 38px; }
    .payment-method-brand { display: block; width: 42px; height: 30px; }
    .paypal-brand { width: auto; height: auto; color: #003087; font-size: .93rem; font-style: italic; font-weight: 800; letter-spacing: -.05em; }
    .card-brand { fill: none; stroke: #425466; stroke-width: 1.6; }
    .payment-method-copy { flex: 1; min-width: 0; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
    .payment-method-icons { --payment-mark-height: 25px; display: flex; flex-wrap: nowrap; align-items: center; gap: .25rem; margin-inline-start: auto; flex-shrink: 0; }
    .payment-method-icons img { display: block; width: 40px; height: 25px; object-fit: contain; }
    .payment-provider-option, .stripe-provider-option { min-width: 0; margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
    .payment-provider-heading { margin-bottom: .65rem; }
    .payment-provider-heading h4 { margin: 0 0 .25rem; font-size: 1rem; }
    .payment-provider-heading p { margin: 0; font-size: .9rem; }
    .payment-provider-action { display: grid; gap: .75rem; margin-top: 1rem; }
    .payment-provider-action .payment-provider-option { margin-top: 0; }
    #paypal-button { min-height: 46px; margin-top: .25rem; }
    .stripe-payment-form { min-width: 0; margin: .85rem 0 1rem; }
    .payment-method-choice.payment-method-expanded:has(input:checked) { border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: none; }
    .stripe-payment-form.payment-method-inline-form { margin: -.65rem 0 0; padding: 0 1rem 1rem; border: 1px solid var(--accent); border-top: 0; border-radius: 0 0 12px 12px; background: #eff6ff; }
    #payment-panel > .step-actions { margin-top: .75rem; }
    #payment-error:empty { display: none; }
    .stripe-payment-element { min-width: 0; }
    .stripe-express-action { min-width: 0; min-height: 48px; }
    .stripe-express-action [id^="stripe-express-active-"] { min-width: 0; }
    .payment-loading { margin: .5rem 0; }
    .payment-method-retry { margin-top: .6rem; color: var(--danger); }
    .payment-method-retry .button { margin-left: .4rem; }
    .legal-confirmation { margin-top: 1.25rem; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; }
    .legal-confirmation .checkbox-row { margin: 0; padding: 0; border-color: transparent; border-radius: 4px; }
    .legal-confirmation #legal-consent-row { margin: -.4rem -.4rem 0; padding: .4rem; border-radius: 7px; }
    .legal-confirmation label { min-width: 0; min-height: 44px; cursor: pointer; }
    .stripe-provider-option { display: grid; gap: .75rem; }
    .stripe-provider-option h3 { margin-bottom: .5rem; }
    .stripe-express-section { min-width: 0; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
    .stripe-wallet-options { min-height: 48px; }
    .stripe-regular-section { min-width: 0; }
    .stripe-payment-element { min-width: 0; }
    .stripe-wallet-options { min-width: 0; margin: 0 0 .25rem; padding: .25rem 0; }
    .payment-loading { min-height: 1.25rem; margin: 0; font-size: .9rem; }
    .payment-submit { width: 100%; min-height: 50px; white-space: normal; }
    .payment-security { margin: 1rem 0 0; font-size: .86rem; line-height: 1.45; }
    #stripe-unavailable { margin: 0; }
    .result-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
    .result-heading h2 { margin-bottom: .35rem; }
    .result-heading p { margin-bottom: 0; color: var(--muted); }
    .result-icon { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 800; }
    .failure-result .result-icon { background: var(--danger); }
    .pending-result .result-icon { color: var(--ink); background: #dbeafe; }
    .confirmation-notice, .registered-participant { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #f8fafd; }
    .confirmation-notice h3, .registered-participant h3 { margin-bottom: .4rem; }
    .confirmation-notice p { margin-bottom: 0; color: var(--muted); overflow-wrap: anywhere; }
    .registered-participant > strong, .registered-participant > span, .registered-participant > small { display: block; }
    .registered-participant > span, .registered-participant > small { margin-top: .25rem; color: var(--muted); }
    .registered-participant h4 { margin: 1rem 0 .45rem; font-size: .9rem; }
    .allocation-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
    .allocation-chip { max-width: 100%; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; overflow-wrap: anywhere; }
    .confirmation-downloads { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.25rem; }
    .confirmation-downloads a[aria-disabled="true"] { opacity: .6; cursor: wait; }
    .result-actions { flex-wrap: wrap; justify-content: flex-start; }
    .legal-links { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
    .empty { padding: 1rem; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
    [hidden] { display: none !important; }
    @media (max-width: 760px) {
      .checkout-app { width: min(100% - 1rem, 560px); margin-top: .5rem; }
      .event-header { padding: 1.5rem; border-radius: 16px; }
      .steps { justify-content: space-between; gap: .35rem; margin: 1rem 0; }
      .step-divider { flex: 1; }
      .step { font-size: .9rem; }
      .step-number { width: 1.6rem; height: 1.6rem; }
      .step-layout, .form-grid { grid-template-columns: 1fr; }
      .summary-panel { position: static; }
      .ticket-card { grid-template-columns: 1fr; gap: .8rem; align-items: start; }
      .ticket-price { white-space: normal; }
      .ticket-selection { flex-direction: row; justify-content: space-between; align-items: center; }
      .step-actions { flex-direction: column-reverse; }
      .step-actions .button { width: 100%; }
      .payment-method-choice { min-height: 56px; padding: .85rem; }
      .payment-method-icons img { width: 32px; height: 20px; }
      .payment-method-icons { --payment-mark-height: 20px; }
      .payment-provider-option, .stripe-provider-option { padding: .85rem; }
      .payment-submit { min-height: 50px; }
      .result-actions { flex-direction: column; }
      .field.full { grid-column: auto; }
    }
    @media (max-width: 360px) {
      .checkout-app { width: calc(100% - .75rem); }
      .panel { padding: .85rem; }
      .step { font-size: .78rem; }
      .step-divider { min-width: .4rem; }
      .payment-method-icons img { width: 28px; height: 17.5px; }
      .payment-method-icons { --payment-mark-height: 17.5px; }
    }
    @container (max-width: 600px) {
      .payment-method-icons img { width: 32px; height: 20px; }
      .payment-method-icons { --payment-mark-height: 20px; }
    }
    @container (max-width: 360px) {
      .payment-method-icons img { width: 28px; height: 17.5px; }
      .payment-method-icons { --payment-mark-height: 17.5px; }
    }
    /* Official provider artwork scales by height and keeps its original aspect ratio. */
    .payment-method-icons .payment-method-provider-mark { width: auto; }
    /* Google's unchanged SVG includes clear space: the visible mark is 400 of
       its 742 units high. Match the visible height without cropping that space. */
    .payment-method-icons .payment-method-provider-mark[src$="/google-pay.svg"] { height: calc(var(--payment-mark-height) * 1.855); margin-block: calc(var(--payment-mark-height) * -.4275); }
    /* The transparent derivative includes extra transparent vertical padding.
       Display the original 700:155 strip proportions without stretching logos. */
    .payment-method-icons .payment-method-card-strip { width: calc(var(--payment-mark-height) * 7.2258); height: calc(var(--payment-mark-height) * 1.6); object-fit: cover; margin-block: calc(var(--payment-mark-height) * -.3); }

    .organizer-email-consent { margin: 0; }
    .organizer-email-consent .organizer-email-consent-row { min-height: 44px; align-items: flex-start; }
    .organizer-email-consent-row label { min-height: 44px; font-size: calc(1em - 1px); font-weight: 400; cursor: pointer; }
    .organizer-email-consent .help-text { display: inline; margin: 0; font-size: calc(1em - 1px); line-height: 1.45; }

.assigned-items-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin: 1rem 0 .45rem; }
.registered-participant .assigned-items-heading h4 { margin: 0; }
.assigned-items-heading .confirmation-downloads { margin: 0 0 0 auto; justify-content: flex-end; }

.sandbox-badge {
  display: inline-block;
  padding: .25rem .75rem;
  margin-bottom: .75rem;
  border: 1px solid #a16207;
  border-radius: .25rem;
  background: #facc15;
  color: #422006;
  font: 700 .875rem/1.5 system-ui, sans-serif;
}

/* Date choice is rendered only for scheduled products. */
.scheduled-date-controls{margin-block:16px 24px}.scheduled-date-actions,.scheduled-date-alternatives{display:flex;flex-wrap:wrap;gap:8px;margin-block:10px;align-items:center;justify-content:space-between}.scheduled-date-alternatives{justify-content:flex-start}.scheduled-date-alternatives .button{font-size:.875rem}.scheduled-date-dialog{box-sizing:border-box;width:min(380px,calc(100vw - 24px));max-height:85dvh;padding:16px;border:1px solid #d8e4df;border-radius:14px;background:#fff;color:#18332f}.scheduled-date-dialog::backdrop{background:rgb(14 34 29 / .5)}.scheduled-date-dialog h3{font-size:1rem;margin:0}.scheduled-date-dialog input{font:inherit;max-width:100%;padding:8px}.scheduled-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-block:14px}.scheduled-date-grid>span{text-align:center;font-size:11px}.scheduled-date-grid button{min-width:0;min-height:48px;padding:4px 0;border:1px solid #d8e4df;border-radius:6px;background:#eaf5f0;color:#18332f;cursor:pointer}.scheduled-date-grid button:disabled{background:#f4f6f5;color:#677773;cursor:default}.scheduled-date-grid button.is-sold-out{background:#fff0ef;color:#a32720;border-color:#e5aba7}.scheduled-date-grid [aria-pressed=true]{outline:2px solid #147d6b;outline-offset:0}.scheduled-date-grid small{display:block;font-size:12px;overflow-wrap:anywhere}.scheduled-ticket-icon{border-radius:8px;object-fit:cover;flex-shrink:0}.scheduled-date-dialog :focus-visible{outline:3px solid #147d6b;outline-offset:2px}

/* Free registration uses the existing details page and a quantity-only summary. */
.registration-confirmation { margin-top: 1.5rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.registration-confirmation > .button { width: 100%; }
.registration-no-payment { margin: 1rem 0 0; line-height: 1.5; }
.steps [hidden], .step-actions [hidden] { display: none; }

.registration-review { display: none; }
@media (max-width: 900px) {
  .registration-only-checkout #step-details > .summary-panel { display: none; }
  .registration-review { display: block; padding: .75rem 0; }
  .registration-review h2 { margin-bottom: .5rem; }
}

/* Checkout presentation: existing booking controls and payment-provider hosts are retained. */
.checkout-icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.event-header--with-cover { min-height: 250px; }
.event-cover-image { object-position: center 55%; }
.section-heading { margin-bottom: 1.75rem; }
.section-heading h2 { margin-bottom: .45rem; }
.section-heading p { margin-bottom: 0; font-size: .94rem; }
.step-number .checkout-icon { display: none; width: 18px; height: 18px; }
.step[aria-current="step"] .step-number { border-color: var(--accent); color: var(--surface); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.step.is-complete { color: var(--accent-dark); }
.step.is-complete .step-number { border-color: #b7cdf3; background: var(--accent-soft); }
.step.is-complete .step-number > span { display: none; }
.step.is-complete .step-number .checkout-icon { display: block; }
.ticket-card.is-selected { border-color: #8aafea; background: #f3f7ff; box-shadow: inset 0 0 0 1px #cdddf8; }
.ticket-selection { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .8rem; }
.ticket-price-block { text-align: right; }
.ticket-price-block:empty { display: none; }
.ticket-product-name { font-size: .82rem; }
.ticket-copy p { margin-bottom: .35rem; font-size: .88rem; line-height: 1.5; }
.ticket-group-heading h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.ticket-group-heading p { font-size: .88rem; margin-bottom: 1rem; }
.add-on-group { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.quantity button:not(:disabled):hover { background: var(--accent-soft); color: var(--accent-dark); }
.quantity button:active:not(:disabled) { background: #dce9ff; }
.button:not(.primary):not(:disabled):hover { border-color: #94afe0; background: var(--accent-soft); }
.button.primary:active:not(:disabled) { background: #173d97; }
.summary-heading { display: flex; align-items: center; gap: .65rem; font-size: 1.08rem; margin-bottom: .5rem; }
.summary-heading .checkout-icon { color: var(--accent); }
.summary-event-date { display: block; color: var(--muted); margin-bottom: .4rem; }
.registration-no-payment { font-size: .88rem; }
.legal-confirmation { margin-top: 1rem; }
.legal-confirmation .checkbox-row { margin-bottom: .5rem; }
.legal-consent-links { margin-top: .5rem; }
.date-selection-label { margin: 0 0 .5rem; font-weight: 650; font-size: .84rem; color: var(--muted); }
.scheduled-date-controls { margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #f8fafd; }
.scheduled-date-actions { margin: 0; gap: .65rem; }
.scheduled-date-alternatives { margin: .7rem 0 0; gap: .5rem; }
.scheduled-date-alternatives:empty { display: none; }
.selected-date-button { border-color: #8aafea; color: var(--accent-dark); background: var(--surface); }
.scheduled-date-alternatives .button { min-height: 44px; padding: .55rem .75rem; font-size: .8rem; }
.scheduled-date-dialog { border-color: var(--line); border-radius: 18px; padding: 1.25rem; color: var(--ink); box-shadow: 0 20px 60px rgba(21,43,70,.2); }
.scheduled-date-dialog::backdrop { background: rgba(21,43,70,.48); }
.scheduled-date-grid button { border-color: #c9d7eb; color: var(--accent-dark); background: var(--accent-soft); }
.scheduled-date-grid [aria-pressed=true] { outline-color: var(--accent); background: #dce9ff; }
.scheduled-date-grid button.is-sold-out { background: #fff0ef; color: #a32720; border-color: #e5aba7; }
.scheduled-date-dialog :focus-visible { outline-color: var(--focus); }
.result-heading h2 { margin: .1rem 0 .4rem; font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.result-icon .checkout-icon { width: 28px; height: 28px; }
.mobile-order-summary { display: none; }
@media (max-width: 900px) {
  .step-layout { grid-template-columns: 1fr; }
  #step-tickets > .summary-panel, #step-details > .summary-panel, #step-payment > .summary-panel { display: none; }
  .mobile-order-summary { display: block; margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f8fafd; }
  .registration-only-checkout #step-details .mobile-order-summary { display: none; }
  .mobile-order-summary .summary-heading { font-size: 1rem; }
  .mobile-order-summary .summary-item { padding: .65rem 0; }
  .mobile-order-summary .summary-total { margin-top: .75rem; padding-top: .75rem; }
  .event-header--with-cover { min-height: 220px; }
}
@media (max-width: 760px) {
  .checkout-app { margin-bottom: 2rem; }
  .event-header--with-cover::after { background: linear-gradient(90deg,rgba(21,43,70,.94),rgba(21,43,70,.62)); }
  .organizer { margin-bottom: .65rem; }
  .event-header h1 { font-size: 1.8rem; }
  .event-header .event-subtitle { font-size: .92rem; }
  .ticket-card { padding: 1rem; }
  .ticket-price-block { text-align: left; }
  .quantity { margin-left: auto; }
  .step-actions { gap: .65rem; }
  .result-icon { width: 44px; height: 44px; border-radius: 13px; }
  .scheduled-date-controls { padding: .85rem; }
  .selected-date-button { flex: 1 1 auto; }
  .scheduled-date-actions [data-add-date] { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.confirmed-event-date { display: flex; align-items: flex-start; gap: .65rem; color: var(--ink); font-weight: 600; }
.confirmed-event-date .checkout-icon { margin-top: .15rem; color: var(--accent); }
.booking-reference { color: var(--muted); font-size: .88rem; }
.booking-reference strong { color: var(--ink); margin-left: .4rem; font-variant-numeric: tabular-nums; }

/* Compact checkout: shared hosted and embedded presentation. */
:root { --radius: 14px; }
body { font-size: 16px; }
.checkout-app { width:min(1080px,calc(100% - 40px)); margin:24px auto; }
.event-header { min-height:140px; padding:18px 24px; border-radius:16px; align-items:center; }
.event-header--with-cover { min-height:140px; }
.event-header-content { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 16px; width:100%; max-width:none; }
.organizer { margin:0; font-size:12px; grid-column:1; }
.organizer img { width:28px; height:28px; }
.event-header h1 { grid-column:1/-1; margin:2px 0; font-size:30px; line-height:1.15; }
.event-header .event-subtitle { grid-column:1/-1; font-size:14px; line-height:1.4; }
.event-meta { grid-column:2; grid-row:1; margin:0; font-size:12px; }
.event-meta .checkout-icon { width:16px; height:16px; }
.steps { margin:10px 2px; gap:12px; }
.step { min-height:44px; font-size:13px; gap:8px; }
.step-number { width:26px; height:26px; font-size:12px; }
.step-divider { flex-basis:48px; }
.step-layout { grid-template-columns:minmax(0,1fr) 286px; gap:18px; }
.panel { padding:20px; border-radius:14px; }
.section-heading { margin-bottom:14px; }
h2 { font-size:20px; margin-bottom:12px; line-height:1.25; }
.section-heading h2 { margin-bottom:3px; }
.section-heading p, #step-details > .panel > p { font-size:14px; line-height:1.4; }
.ticket-card { padding:12px; margin:8px 0; gap:16px; border-radius:11px; }
.ticket-details { gap:10px; align-items:flex-start; }
.ticket-copy h3 { font-size:15px; margin-bottom:3px; line-height:1.35; }
.ticket-copy p { font-size:13px; line-height:1.4; margin:0; }
.ticket-selection { flex-direction:row; align-items:center; gap:14px; }
.ticket-price { font-size:15px; }
.ticket-price-block { min-width:60px; }
.tax-note { font-size:11px; margin-top:2px; }
.quantity { gap:0; padding:0; border-radius:9px; }
.quantity button { width:44px; height:44px; font-size:19px; }
.quantity-value { min-width:20px; font-size:14px; }
.scheduled-ticket-icon { width:32px; height:32px; border-radius:8px; }
.ticket-group-heading h3 { font-size:15px; margin-bottom:2px; }
.ticket-group-heading p { font-size:13px; margin-bottom:8px; }
.add-on-group { margin-top:16px; padding-top:14px; }
.scheduled-date-controls { margin:0 0 14px; padding:10px 12px; border-radius:11px; }
.date-selection-label { margin-bottom:6px; font-size:12px; }
.scheduled-date-actions { gap:8px; }
.scheduled-date-alternatives { gap:8px; margin-top:8px; }
.scheduled-date-alternatives .button { min-height:44px; padding:5px 10px; font-size:12px; }
.scheduled-date-actions [data-add-date] { font-size:12px; }
.button { min-height:44px; border-radius:9px; padding:9px 13px; font-size:14px; gap:8px; }
.button .checkout-icon { width:18px; height:18px; }
.step-actions { margin-top:16px; gap:8px; }
.summary-panel { padding:16px; top:14px; border-top-width:2px; }
.summary-heading { font-size:15px; gap:8px; margin-bottom:4px; }
.summary-heading .checkout-icon { width:18px; height:18px; }
.summary-item { padding:10px 0; }
.summary-item-title { font-size:13px; margin-bottom:3px; }
.summary-item-meta, .summary-event-date { font-size:12px; }
.summary-row { gap:10px; margin-top:8px; font-size:13px; }
.summary-total { padding-top:10px; margin-top:12px; font-size:17px; }
.registration-no-payment { font-size:12px; line-height:1.4; margin-top:10px; }
.voucher-toggle { font-size:13px; margin:12px 0 0; min-height:36px; }
.form-grid { gap:12px; }
label { font-size:13px; margin-bottom:5px; line-height:1.35; }
input[type=text], input[type=email], input[type=tel] { min-height:44px; padding:9px 11px; border-radius:8px; font-size:16px; }
.error-text { min-height:18px; margin-top:4px; font-size:12px; line-height:1.5; }
.registration-confirmation { margin-top:12px; padding-top:0; }
.legal-confirmation { margin-top:8px; }
.checkbox-row { gap:8px; min-height:44px; margin:8px 0; padding:8px 0; }
.checkbox-row input { width:18px; height:18px; }
.checkbox-row .legal-consent-label { font-size:13px; line-height:1.45; }
.legal-consent-links { margin:4px 0 10px 26px; font-size:12px; }
.registration-review { padding:10px 0; }
.registration-review h2 { margin-bottom:4px; }
.mobile-order-summary { padding:12px; margin-top:12px; }
.mobile-order-summary .summary-item { padding:8px 0; }
.mobile-order-summary .summary-heading { font-size:14px; }
.legal-links { margin-top:16px; padding-top:12px; gap:8px 16px; font-size:12px; }
.result-heading { gap:12px; margin-bottom:16px; }
.result-heading h2 { font-size:22px; margin-bottom:3px; }
.result-heading p { font-size:14px; }
.result-icon { width:40px; height:40px; border-radius:11px; }
.result-icon .checkout-icon { width:24px; height:24px; }
.confirmed-event-date { font-size:14px; margin:12px 0; }
.booking-reference { font-size:12px; margin:10px 0; }
.confirmation-notice, .registered-participant { padding:14px; margin-top:14px; border-radius:11px; }
.confirmation-notice h3, .registered-participant h3 { font-size:15px; }
.confirmation-notice p, .registered-participant > span { font-size:14px; }
@media(max-width:900px) {
 .step-layout { grid-template-columns:1fr; }
 .mobile-order-summary .summary-total { margin-top:10px; padding-top:8px; }
 .ticket-selection { flex-direction:row; }
 .event-header--with-cover { min-height:140px; }
}
@media(max-width:600px) {
 .event-header { min-height:140px; padding:14px 16px; border-radius:13px; }
 .event-header-content { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
 .event-header h1 { font-size:24px; line-height:1.15; margin:1px 0; }
 .event-header .event-subtitle { font-size:13px; line-height:1.35; }
 .organizer { font-size:11px; }
 .event-meta { font-size:11px; margin-top:3px; }
 .steps { margin:8px 0; gap:8px; }
 .step { font-size:12px; gap:6px; }
 .step-number { width:25px; height:25px; }
 .step-divider { flex:1 1 12px; }
 .panel { padding:14px; border-radius:12px; }
 .section-heading { margin-bottom:12px; }
 .ticket-card { padding:11px; gap:8px; }
 .ticket-selection { flex-direction:row; justify-content:space-between; gap:10px; }
 .ticket-copy p { font-size:13px; }
 .ticket-price-block { text-align:left; }
 .scheduled-date-controls { padding:10px; }
 .scheduled-date-actions .selected-date-button { font-size:12px; padding-inline:10px; }
 .scheduled-date-actions [data-add-date] { font-size:11px; padding-inline:8px; }
 .scheduled-date-alternatives .button { font-size:11px; padding:5px 8px; }
 .add-on-group { margin-top:14px; padding-top:12px; }
 .step-actions { margin-top:12px; }
 .result-actions { gap:8px; }
}
@media(min-width:375px) and (max-width:760px) {
 #buyer-form > .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #buyer-form > .form-grid > .field:nth-child(n+3) { grid-column:1/-1; }
}

/* Each card binds its tickets and add-ons to one event date and time. */
.date-ticket-card{border:1px solid #d4dfe7;border-radius:14px;overflow:hidden;margin:0 0 16px;background:#fff}
.date-ticket-header{background:#f0f5f7;border-bottom:1px solid #dce5e9;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.date-ticket-title{display:flex;align-items:center;gap:10px;min-width:0}.date-ticket-title>svg{width:20px;height:20px;flex-shrink:0}.date-ticket-title h3{font-size:15px;line-height:1.45;margin:0;color:#173f45}.date-ticket-title p{margin:3px 0 0;font-size:13px;color:#4e6470}
.date-card-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.date-card-actions .button{min-height:44px;padding:8px 10px;font-size:12px;background:transparent;border-color:transparent}.date-card-actions .remove-date{width:44px;padding:0;color:#667580}.date-card-actions .button:hover{background:#e1eaee}
.date-ticket-content{padding:2px 14px 0}.date-ticket-card .ticket-card{border:0;border-bottom:1px solid #e8edf0;border-radius:0;margin:0;padding:14px 0;background:transparent;box-shadow:none}.date-ticket-card .ticket-card.is-selected{background:transparent}.date-ticket-card .ticket-card:last-child{border-bottom:0}.date-ticket-card .ticket-copy h3{font-size:14px}.date-ticket-card .ticket-copy p{font-size:12px;line-height:1.5}.date-ticket-card .ticket-price{font-size:15px}.date-ticket-card .ticket-details{gap:10px}.date-ticket-card .add-on-group{border-top:1px solid #e8edf0;margin-top:0;padding-top:12px}.date-ticket-card .ticket-group-heading{margin-bottom:0}.ticket-group-heading h4{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.ticket-group-heading h4 span{font-weight:400;text-transform:none;letter-spacing:0}
.date-ticket-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e8edf0;background:#fafcfc;padding:11px 16px;font-size:12px;color:#576b74}.date-ticket-footer strong{font-size:14px;color:#173f45}
.add-date-button{width:100%;min-height:48px;border-style:dashed;background:transparent;justify-content:center;gap:9px;margin-bottom:8px}.add-date-button>span{margin-left:4px}.date-card-feedback:empty{display:none}.date-notice,.date-issue{font-size:12px;line-height:1.5;border-radius:7px;padding:9px 11px;margin:0 0 12px;background:#edf5fc;color:#265571}.date-issue{background:#fff2e5;color:#8a430d}
.scheduled-date-dialog{width:min(360px,calc(100vw - 24px));padding:16px;border:1px solid #d4dfe7;border-radius:16px;max-height:90dvh;overflow:auto}.date-dialog-heading,.date-month-nav{display:flex;align-items:center;justify-content:space-between;gap:8px}.date-dialog-heading h3{font-size:16px;margin:0}.date-dialog-heading .button,.date-month-nav .button{width:44px;height:44px;padding:0}.date-month-nav{margin:8px 0}.date-month-nav strong{font-size:14px}.scheduled-date-dialog .scheduled-date-grid{gap:3px}.scheduled-date-dialog .scheduled-date-grid button{min-height:44px;padding:4px 1px;border-radius:7px;overflow:hidden}.scheduled-date-grid button small{font-size:9px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}.scheduled-date-grid button.is-sold-out{background:#fff1e7;color:#a04d13;border:1px solid #efd0b8;opacity:1;text-decoration:none}.scheduled-date-grid button.is-added{background:#e5f1ef;color:#216052;opacity:1;border:1px solid #92b8ad}.calendar-key{display:flex;justify-content:space-between;gap:5px;font-size:10px;margin-bottom:0}.sold-out-key{color:#a04d13}
.summary-date-group{border-top:1px solid #e2e8eb;padding:12px 0}.summary-date-group h3{font-size:12px;line-height:1.5;margin:0;color:#244d55}.summary-date-time{font-size:11px;color:#647780;margin:3px 0 8px}.summary-date-item,.summary-date-subtotal{display:flex;justify-content:space-between;gap:10px;font-size:12px;line-height:1.5;margin-top:8px}.summary-date-item span{min-width:0;overflow-wrap:anywhere}.summary-date-item strong{white-space:nowrap;font-size:12px;font-weight:500}.summary-date-subtotal{border-top:1px dashed #dfe6e9;padding-top:8px;color:#63767e;font-size:11px}.consent-kind{display:inline-block;font-size:10px;line-height:1.5;color:#61757d;margin-left:3px;font-weight:500}.legal-confirmation .checkbox-row{align-items:flex-start}.legal-confirmation input[type=checkbox]{margin-top:3px}
@media(max-width:600px){.date-ticket-header{flex-wrap:wrap;padding:12px}.date-ticket-title{flex:1 1 100%}.date-card-actions{margin-left:auto;margin-top:-3px}.date-ticket-content{padding:0 12px}.date-ticket-card .ticket-selection{margin-left:30px;justify-content:space-between}.date-ticket-card .ticket-details{gap:8px}.date-ticket-footer{padding:10px 12px}.date-ticket-card .ticket-card{padding:12px 0}.date-ticket-card .ticket-selection:has(.ticket-price-block:empty){justify-content:flex-end}}


.organizer-email-consent .help-text{display:block;margin-top:4px}.confirmed-event-date{overflow-wrap:anywhere}

.calendar-status{min-height:18px;font-size:12px;margin:4px 0}.calendar-status .button{font-size:12px}.date-ticket-title h3:focus{outline:2px solid var(--focus);outline-offset:3px}.date-card-feedback .date-issue{scroll-margin:16px}

@media(max-width:600px){.checkout-app{width:calc(100% - 20px)}}
