/* /tickets/purchase: three steps beside one order summary.
   Shared buttons, form fields, dialogs and the spectator pass stay in ticket-checkout.css; tokens come from tokens.css. */
.co-header { border-bottom: 1px solid var(--n3); }
.co-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; width: min(1120px, calc(100% - 64px)); min-height: 72px; margin: auto; padding-block: 10px; }
.co-logo img { display: block; width: auto; height: 44px; }
.co-steps { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.co-steps li { display: flex; align-items: center; gap: 10px; }
.co-steps li + li::before { content: ""; width: 40px; height: 1px; margin-right: 2px; background: var(--n5); }
.co-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--n6); border-radius: 50%; font-size: 13px; }
.co-steps li[aria-current] { color: #fff; }
.co-steps li[aria-current] > span { border-color: #ef8bbe; background: #b6005c; }
.co-steps li[data-done] { color: #ff9fce; }
.co-steps li[data-done] > span { border-color: #ff8ac5; }
.co-steps li[data-done] + li::before { background: #ff8ac5; }
.co-account { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.co-secure { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.co-account :is(a, button) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: #ff9fce; font-weight: 700; text-decoration: none; }
.co-account :is(a, button):hover { color: #fff; }

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; gap: 40px 64px; width: min(1120px, calc(100% - 64px)); margin: 32px auto 64px; }
.co-single { display: block; max-width: 760px; }
.co-single .ticket-complete-heading > p { font-size: 15px; }
.co-single .ticket-order-strip { font-size: 14px; }
.co-single .ticket-order-strip small { font-size: 12px; }
.co-single .ticket-order-strip > a { font-size: 13px; }
.co-single .ticket-footnote { font-size: 13px; }
.co-main { min-width: 0; }
.co-main h1 { margin: 8px 0 0; font: 400 clamp(34px, 4.4vw, 48px)/1.05 var(--display); text-transform: uppercase; text-wrap: balance; }
.co-main h1 > span { color: var(--pink); }
.co-intro { max-width: 520px; margin: 8px 0 24px; color: var(--muted); font-size: 15px; }
.co-main .ticket-back { color: #ff9fce; font-size: 14px; text-decoration: none; }
.co-main .ticket-back:hover { color: #fff; }
.co-main :is(.ticket-error, .ticket-notice) { font-size: 14px; }
.co-main .ticket-footnote { font-size: 13px; }

.co-events { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.co-events legend, .co-tiers legend { margin-bottom: 12px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.co-event { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border: 1px solid var(--n4); border-radius: var(--r-choice); background: var(--n1); }
label.co-event { cursor: pointer; }
.co-event[data-selected=true] { border-color: #ff8ac5; background: var(--n2); box-shadow: inset 0 0 0 1px #ff8ac5; }
.co-event:has(input:focus-visible), .co-tier:has(input:focus-visible) { outline: 2px solid #ff8ac5; outline-offset: 4px; }
.ticket-checkout :is(.co-event, .co-tier) input { flex: none; width: 22px; height: 22px; margin: 0; outline: none; accent-color: var(--pink); }
.co-event-date { display: grid; flex: none; justify-items: center; gap: 4px; width: 60px; padding: 8px 0; border: 1px solid var(--n5); border-radius: var(--r-button); background: #000; color: #ff9fce; font: 400 14px/1 var(--display); text-transform: uppercase; }
.co-event-date b { color: #fff; font: 400 28px/1 var(--display); }
.co-event-copy { min-width: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.co-event-copy strong { display: block; color: #fff; font-size: 17px; }

.co-tiers { display: grid; gap: 12px; min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.co-tier { --edge: #ff8ac5; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 20px; border: 1px solid var(--n5); border-radius: var(--r-choice); background: var(--n1); cursor: pointer; transition: border-color var(--micro), background-color var(--micro); }
.co-tier[data-tier=vip_pit_stop] { --edge: #e6c87c; }
.co-tier:hover { border-color: var(--edge); }
.co-tier[data-selected=true] { border-color: var(--edge); background: var(--n2); box-shadow: inset 0 0 0 1px var(--edge); }
.co-tier[data-tier=vip_pit_stop][data-selected=true] { background: linear-gradient(130deg, #2c2518, #17171e); }
.ticket-checkout .co-tier input { margin-top: 3px; }
.ticket-checkout .co-tier[data-tier=vip_pit_stop] input { accent-color: #e6c87c; }
.co-tier-copy { display: grid; gap: 2px; min-width: 0; }
.co-tier-copy strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 18px; line-height: 1.4; }
.co-tier-tag { padding: 2px 8px; border: 1px solid #e6c87c; border-radius: var(--r-button); color: #f4dca0; font-size: 11px; line-height: 1.4; letter-spacing: .1em; }
.co-tier-admission { color: var(--muted); font-size: 14px; }
.co-tier-benefits { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; color: var(--n9); font-size: 14px; }
.co-tier-benefits > span { display: inline-flex; align-items: center; gap: 8px; }
.co-tier-benefits svg { flex: none; color: var(--edge); }
.co-tier-price { font: 400 36px/1 var(--display); text-align: right; white-space: nowrap; }
.co-tier-total { display: block; margin-top: 6px; }
.co-tier-price .co-tier-total small { display: inline; }
.co-tier-price small { display: block; max-width: 13ch; margin-left: auto; white-space: normal; margin-top: 6px; color: var(--muted); font: 400 12px/1 var(--body); }

.co-quantity { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding-block: 20px; border-block: 1px solid var(--n4); }
.co-quantity h2 { margin: 0; font-size: 17px; line-height: 1.4; }
.co-quantity p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.co-quantity .ticket-stepper { border-color: var(--n6); border-radius: var(--r-button); }
.co-quantity .ticket-stepper button { width: 48px; height: 48px; }
.co-quantity .ticket-stepper output { min-width: 48px; font: 400 28px/1 var(--display); }
.ticket-checkout .co-coupon-toggle { margin-top: 8px; color: #ff9fce; font-size: 14px; font-weight: 700; }
.co-main .ticket-coupon { margin-top: 16px; }

.co-main .ticket-details { gap: 20px; }
.co-main .ticket-details label, .co-outcome { font-size: 14px; }
.co-main .ticket-details label > small, .co-outcome > small { color: var(--muted); font-size: 13px; }
.co-main .ticket-details .ticket-consent { font-size: 14px; line-height: 1.6; }
.co-main .ticket-password-choice { font-size: 14px; }
.co-main .ticket-password-choice > span { font-size: 13px; }
.co-main .ticket-existing p { font-size: 14px; }
.co-main .ticket-existing .ticket-text-button { font-size: 14px; }
.co-main :is(input:not([type=checkbox]):not([type=radio]), select) { height: 52px; font-size: 16px; }

.co-pay { display: grid; gap: 20px; }
.co-review { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; padding: 20px 24px; border: 1px solid var(--n4); border-radius: var(--r-choice); background: var(--n1); }
.co-review h2 { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.co-review p { margin: 0; color: var(--n9); font-size: 15px; overflow-wrap: anywhere; }
.co-review p strong { color: #fff; font-size: 17px; }
.ticket-checkout .co-review > button { grid-column: 1 / -1; justify-self: start; margin: 0; color: #ff9fce; font-size: 14px; font-weight: 700; }
.co-outcome { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.co-outcome > small { font-weight: 400; }
.co-secure-note, .co-confirming { display: flex; gap: 16px; padding: 20px 24px; border: 1px solid var(--n4); border-radius: var(--r-choice); background: var(--n1); }
.co-secure-note svg { flex: none; margin-top: 3px; color: #ff9fce; }
.co-secure-note strong { font-size: 17px; }
.co-secure-note p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.co-confirming { align-items: center; margin: 0; font-size: 15px; }
.co-confirming > span { flex: none; width: 18px; height: 18px; border: 2px solid var(--n5); border-top-color: #ff8ac5; border-radius: 50%; animation: co-spin .9s linear infinite; }
@keyframes co-spin { to { transform: rotate(1turn); } }
/* Stripe draws its own form; give it a calm frame and readable status lines. */
.co-stripe p { margin: 0 0 12px; color: var(--n9); font-size: 15px; }
.co-stripe section > div:has(iframe) { overflow: hidden; border-radius: var(--r-choice); background: #fff; }

.co-summary { position: sticky; top: 24px; min-width: 0; }
.co-summary-toggle { display: none; }
.co-summary-card { padding: 28px; border: 1px solid var(--n4); border-radius: var(--r-panel); background: linear-gradient(90deg, var(--pink) 0 50%, var(--violet) 68%, var(--blue)) top / 100% 4px no-repeat, var(--n1); }
.co-summary h2 { margin: 0; font: 400 28px/1.1 var(--display); text-transform: uppercase; }
.co-summary-event { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.co-summary-event strong { display: block; color: #fff; font-size: 15px; }
.co-lines { display: grid; gap: 10px; margin: 20px 0 0; padding: 16px 0; border-block: 1px solid var(--n4); }
.co-lines > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.co-lines dt { color: var(--muted); font-size: 14px; }
.co-lines dt strong { display: block; color: #fff; font-size: 15px; }
.co-lines dt b { color: #fff; }
.co-lines dd { margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.co-line-discount dd { color: #ff9fce; }
.co-summary-benefits { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--n9); font-size: 14px; }
.co-summary-benefits li { display: flex; align-items: flex-start; gap: 8px; }
.co-summary-benefits svg { flex: none; margin-top: 3px; color: #e6c87c; }
.co-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 16px 0 0; }
.co-total span { font-size: 15px; font-weight: 700; }
.co-total small { color: var(--muted); font-size: 12px; font-weight: 400; }
.co-total strong { font: 400 40px/1 var(--display); }
.co-total-note { margin: 6px 0 0; color: #ff9fce; font-size: 13px; text-align: right; }
.co-actions { margin-top: 24px; }
.co-actions-total { display: none; }
.co-actions .ticket-primary { width: 100%; min-height: 56px; border-radius: var(--r-button); font-size: 16px; }
.co-actions-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.co-narrow { display: none; }
.co-trust { display: grid; gap: 10px; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--n4); list-style: none; color: var(--n9); font-size: 14px; }
.co-trust li { display: flex; align-items: center; gap: 12px; }
.co-trust svg { flex: none; color: #ff9fce; }
.ticket-checkout .co-help { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; color: #ff9fce; font-size: 14px; }

.co-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 12px 0 28px; border-top: 1px solid var(--n3); color: var(--muted); font-size: 13px; }
.co-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--n9); }
.co-footer span { margin-left: auto; }

@media (max-width: 900px) {
  .co-header-inner { width: calc(100% - 40px); min-height: 60px; gap: 0 16px; }
  .co-logo img { height: 36px; }
  .co-account { gap: 16px; }
  /* The numbered steps become three progress bars under the logo row. */
  .co-steps { flex-basis: 100%; order: 3; align-items: stretch; gap: 6px; padding: 4px 0 12px; font-size: 12px; }
  .co-steps li { flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; }
  .co-steps li + li::before { content: none; }
  .co-steps li > span { width: 100%; height: 4px; border: 0; border-radius: 2px; background: var(--n4); font-size: 0; }
  .co-steps li > span svg { display: none; }
  .co-steps li[aria-current] > span { background: var(--pink); }
  .co-steps li[data-done] > span { background: #ff8ac5; }

  .co-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; width: calc(100% - 40px); margin: 0 auto 40px; }
  .co-layout:has(.co-actions) { padding-bottom: 96px; }
  .co-single { margin-top: 24px; }
  .co-summary { position: static; order: -1; margin-inline: -20px; }
  .ticket-checkout .co-summary-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--n4); background: var(--n1); color: #fff; font-size: 15px; }
  .co-summary-toggle span { display: inline-flex; align-items: center; gap: 8px; color: #ff9fce; font-weight: 700; }
  .co-summary[data-open] .co-summary-toggle svg { transform: rotate(180deg); }
  .co-summary-card { padding: 0; border: 0; border-radius: 0; background: var(--n1); }
  .co-summary:not([data-open]) .co-summary-card > :not(.co-actions), .ticket-checkout .co-help { display: none; }
  .co-summary[data-open] .co-summary-card { padding: 20px; border-bottom: 1px solid var(--n4); }
  .co-total strong { font-size: 32px; }
  /* One bar, always in reach, and the page keeps room for it so nothing sits underneath. */
  .co-actions { position: fixed; inset: auto 0 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--n5); background: #080812f5; backdrop-filter: blur(12px); }
  .co-actions-total { display: grid; min-width: 0; margin: 0; line-height: 1.25; }
  .co-actions-total span { color: var(--muted); font-size: 12px; }
  .co-actions-total strong { font: 400 26px/1.1 var(--display); }
  .co-actions-total small { color: var(--n9); font-size: 12px; }
  .co-actions .ticket-primary { flex: 1; width: auto; max-width: 240px; min-height: 52px; gap: 10px; padding: 0 16px; font-size: 15px; }
  .co-actions-note, .co-wide { display: none; }
  .co-narrow { display: inline; }
  .co-main { padding-top: 4px; }
  .co-footer { width: calc(100% - 40px); }
  .co-footer span { flex-basis: 100%; margin: 4px 0 0; }
}
@media (max-width: 560px) {
  .co-secure { display: none; }
  .co-event { padding: 12px 14px; gap: 14px; }
  .co-event-date { width: 52px; }
  .co-event-date b { font-size: 24px; }
  .co-tier { gap: 12px; padding: 16px; }
  .co-tier-copy strong { font-size: 17px; }
  .co-tier-benefits { flex-direction: column; gap: 4px; }
  .co-tier-price { font-size: 30px; }
  .co-quantity { gap: 16px; padding-block: 16px; }
  .co-quantity h2 { font-size: 16px; }
  .co-quantity p { font-size: 13px; }
  .co-review { grid-template-columns: 1fr; padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .co-tier { transition: none; }
  .co-confirming > span { animation: none; }
}
@media print { .co-header, .co-footer { display: none !important; } }
