/* Shared checkout layout. Event colours are set on both the shop and dock. */
.shop-page { --event-background-wash: #f7f5ee66; --event-content-surface: #fff; }
.shop-page.theme-poster,.shop-page.theme-festival { --event-background-wash: #10121880; --event-content-surface: #211d27; }
.has-event-background .shop-blobs { display: none; }
.has-event-background .shop-ticket-section,.has-event-background .shop-intro,.has-event-background .shop-layout > .col { background: var(--event-content-surface); padding: 20px; border-radius: 20px; }
.has-event-background > .container > .row:first-child { background: var(--event-content-surface); border-radius: 14px; padding: 10px 14px; }
.shop-page .shop-ticket-section,.theme-poster .shop-ticket-section.reveal { animation: none; transition: none; opacity: 1; transform: none; }
.shop-page .btn-primary,.shop-page .mobile-checkout-fab { background: var(--accent); color: var(--accent-contrast); }
.shop-page .btn-primary:hover,.shop-page .mobile-checkout-fab:hover:not(:disabled) { background: var(--accent-pressed); color: var(--accent-pressed-contrast); }
.shop-page .btn-tinted { background: var(--accent-tint); color: var(--accent-ink); }
.shop-page .btn-outline-style { color: var(--accent-ink); border-color: var(--accent-ink); }
.shop-page.theme-poster .btn-outline-style,.shop-page.theme-festival .btn-outline-style { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }
.shop-page .stepper button { min-width: 40px; min-height: 44px; scroll-margin-block: 100px; }
.shop-page.theme-classic .stepper button,.shop-page.theme-ios .stepper button { color: var(--accent-ink); }
.shop-page .stepper button:disabled { opacity: .4; cursor: default; }
.shop-page .mobile-checkout-fab:disabled { box-shadow: none; background: #e6e9df; color: #526052; cursor: default; }
.checkout-dock {
  --label: #24282d; --label-2: #626973; --label-3: #626973; --surface: #fff;
  --fill: #f4f5f7; --surface-border: #e2e4e8; --hairline: #e2e4e8;
  position: fixed; z-index: 4001; left: 50%; bottom: 0; top: auto;
  transform: translateX(-50%); width: min(1000px,100%); max-height: 94vh; max-height: 94dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: var(--label); border: 1px solid var(--hairline); border-bottom: 0;
  border-radius: 26px 26px 0 0; box-shadow: 0 -12px 80px #18202d26;
  animation: checkoutSheetIn .3s ease-out; font-family: Inter,sans-serif;
}
.checkout-dock.closing { transform: translate(-50%,100%); transition: transform .22s ease-in; }
.checkout-dock-header { flex: none; position: relative; padding: 12px 32px 22px; border-bottom: 1px solid var(--hairline); }
.checkout-dock-header .grabber { width: 36px; height: 4px; background: #d8dfd9; border-radius: 4px; margin: 0 auto 18px; }
.checkout-dock-header h2 { font-size: 26px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -.7px; }
.checkout-heading { margin-right: 48px; display: grid; gap: 5px; }
.checkout-dock-header .eyebrow { color: #526459; font-size: 10px; }
.checkout-dock .checkout-modal-close { top: 32px; right: 28px; width: 44px; height: 44px; }
.checkout-dock .checkout-modal-inner { min-height: 0; width: 100%; overflow: auto; overscroll-behavior: contain; padding: 24px 32px; margin: 0; }
.checkout-dock .checkout-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 28px; align-items: start; }
.checkout-dock .checkout-summary-col { position: static; background: #f7f8fa; padding: 20px; border: 1px solid var(--hairline); border-radius: 16px; order: 0; width: auto; }
.checkout-dock .checkout-section { border: 0; background: none; padding: 0; margin: 0 0 24px; gap: 14px; border-radius: 0; }
.checkout-dock .checkout-input-grid { grid-template-columns: 1fr; gap: 16px; }
.checkout-dock .field label { display: block; font-size: 13px; color: var(--label); margin-bottom: 7px; }
.checkout-dock .input { min-height: 48px; border: 1px solid #cdd1d8; background: #fff; color: var(--label); border-radius: 10px; font-size: 16px; width: 100%; box-shadow: none; }
.checkout-dock .input::placeholder { color: #727781; }
.checkout-dock :focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.checkout-dock .input:focus { border-color: var(--accent-ink); }
.checkout-dock .btn-tinted { background: var(--accent-tint); color: var(--accent-ink); }
.checkout-dock .checkout-section-title ion-icon,.checkout-dock .stepper button,.checkout-dock .checkout-boolean-control { color: var(--accent-ink); }
.checkout-dock input[type=checkbox] { accent-color: var(--accent-ink); }
.checkout-dock .checkout-hint { margin: -7px 0 0; font-size: 13px; color: #59655f; line-height: 1.5; }
.checkout-dock .checkout-steps { display: flex; justify-content: space-between; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.checkout-dock .checkout-step { flex: 1; position: relative; display: flex; align-items: center; padding: 0; background: none; min-height: 30px; gap: 9px; color: var(--label-2); }
.checkout-dock .checkout-step:last-child { flex: none; }
.checkout-dock .checkout-step:not(:last-child)::after { content: ''; height: 1px; background: var(--hairline); flex: 1; margin: 0 18px; }
.checkout-dock .checkout-step.done::after { background: var(--accent); }
.checkout-dock .checkout-step strong { display: block; font-size: 12px; font-weight: 500; color: inherit; }
.checkout-dock .checkout-step.current strong { color: var(--label); font-weight: 700; }
.checkout-dock .checkout-step-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--hairline); border-radius: 50%; background: #fff; color: var(--label-2); font-size: 12px; font-weight: 600; }
.checkout-dock .checkout-step.current .checkout-step-icon { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); box-shadow: 0 0 0 4px var(--accent-tint); }
.checkout-dock .checkout-step.done .checkout-step-icon { background: var(--accent-tint); border-color: transparent; color: var(--accent-ink); }
.checkout-dock .checkout-section-title { font-size: 15px; }
.checkout-event-name { font-size: 13px; color: var(--label-2); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-dock .checkout-summary-line { font-size: 13px; gap: 14px; align-items: start; }
.checkout-dock .tabular { white-space: nowrap; }
.checkout-dock .checkout-total-lines { font-size: 13px; }
.checkout-dock .checkout-grand-total { padding-top: 8px; font-size: 19px; }
.checkout-dock .checkout-code-section { padding-top: 16px; border-top: 1px solid #e3e8e3; }
.checkout-dock .checkout-code-section summary { font-size: 13px; cursor: pointer; min-height: 32px; }
.checkout-dock .checkout-code-field { margin-top: 12px; }
.checkout-dock .checkout-code-row { grid-template-columns: minmax(0,1fr) auto; }
.checkout-dock .checkout-code-row .badge { grid-column: 1/-1; justify-self: start; }
.checkout-dock .checkout-upsell-card { display: flex; box-shadow: none; background: #f7f8fa; padding: 14px; border-radius: 12px; flex-wrap: wrap; gap: 10px; }
.checkout-dock .checkout-upsell-card .grow { flex-basis: 160px; }
.checkout-dock .checkout-upsell-card .stepper,.checkout-dock .checkout-boolean-control { margin: 0 0 0 auto; }
.checkout-dock .upsell-mode-badge { display: none; }
.checkout-dock .upsell-icon { display: none; }
.checkout-dock .checkout-upsell-top { flex-wrap: wrap; }
.checkout-dock .stepper button { min-width: 40px; min-height: 40px; }
.checkout-dock-footer { flex: none; display: grid; grid-template-columns: 1fr minmax(260px,380px); align-items: center; gap: 8px 24px; padding: 18px 32px max(18px,env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: #fff; box-shadow: 0 -8px 24px #18202d06; }
.checkout-footer-total { display: grid; gap: 3px; }
.checkout-footer-total span { font-size: 12px; color: #59655f; }
.checkout-footer-total strong { font-size: 24px; font-weight: 600; }
.checkout-dock .checkout-pay-button { width: 100%; min-height: 52px; border: 0; border-radius: 12px; padding: 12px 18px; background: var(--accent); color: var(--accent-contrast); }
.checkout-dock .checkout-pay-button:hover { background: var(--accent-pressed); color: var(--accent-pressed-contrast); }
.checkout-dock .checkout-pay-button span { display: flex; align-items: center; gap: 8px; }
.checkout-dock .checkout-pay-button:disabled { opacity: .6; cursor: wait; }
@media (min-width: 681px) { .checkout-dock .checkout-pay-button { justify-content: center; } .checkout-pay-button > strong { display: none; } }
.checkout-secure-note { grid-column: 1/-1; display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 12px; color: #59655f; }
.checkout-error { background: #fff0ee; color: #942f29; padding: 14px; border-radius: 10px; font-size: 14px; }
.checkout-error[hidden] { display: none; }
body:has(.checkout-dock) #toasts { z-index: 5000; top: 12px; bottom: auto; }
@media (max-width: 680px) {
  .checkout-dock-header { padding: 10px 20px 18px; }
  .checkout-dock .checkout-modal-close { right: 16px; top: 30px; }
  .checkout-dock .checkout-modal-inner { padding: 20px; }
  .checkout-dock .checkout-grid { grid-template-columns: 1fr; gap: 4px; }
  .checkout-dock .checkout-summary-col { padding: 18px; }
  .checkout-dock .checkout-step { flex: 1; flex-direction: column; gap: 8px; }
  .checkout-dock .checkout-step:not(:last-child)::after { position: absolute; margin: 0; top: 15px; left: calc(50% + 22px); width: calc(100% - 44px); }
  .checkout-dock .checkout-step strong { font-size: 11px; overflow: visible; text-overflow: clip; white-space: nowrap; max-width: none; }
  .checkout-dock-footer { grid-template-columns: 1fr; padding: 14px 20px max(16px,env(safe-area-inset-bottom)); gap: 8px; }
  .checkout-footer-total { display: none; }
  .checkout-secure-note { justify-content: center; font-size: 11px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .checkout-dock,.checkout-modal-overlay { animation: none; } .checkout-dock.closing { transition: none; } }
.ticket-group-hint { display:flex; align-items:center; gap:6px; font-size:12px; line-height:1.5; margin:7px 0; color:inherit; }
.checkout-group-hint { display:block; font-size:11px; line-height:1.6; color:var(--label-2); margin-top:5px; }
.shop-my-tickets { white-space:nowrap; }
.ticket-group-size-field[hidden] { display:none; }
