/* Ticket shopping uses the same cream surfaces, Fraunces headings and pill
   controls as the artist page. Keep this scoped: the dialog lives in scanner. */
.tk-shell {
  --tk-rule: #202c2929;
  position: fixed; inset: 0; width: min(880px, 94vw); height: min(860px, 94dvh);
  max-width: none; max-height: none; margin: auto; padding: 0;
  border: 2px solid var(--ink); border-radius: 20px;
  background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font-sans);
  overflow: auto; overscroll-behavior: contain; box-shadow: 0 20px 80px #202c2940;
}
.tk-shell:has(.tk-body.has-map) { width: min(1220px, 96vw); }
.tk-shell::backdrop { background: #202c2980; backdrop-filter: blur(3px); }
.tk-shell [hidden], .tk-primary[hidden] { display: none !important; }
.tk-shell *, .tk-shell *::before, .tk-shell *::after { box-sizing: border-box; }
.tk-shell :is(button, input, select) { font: inherit; color: inherit; }
.tk-shell :is(button, select) { cursor: pointer; }
.tk-shell button:disabled { cursor: wait; opacity: .6; }
.tk-shell :is(button, a, input, select):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tk-primary, .tk-select-ticket {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 46px; padding: 10px 22px; border: 2px solid var(--ink);
  border-radius: var(--radius-pill, 999px); background: var(--peach); color: var(--ink);
  font: 700 14px/1.4 var(--font-sans); cursor: pointer; box-shadow: 0 3px 0 var(--ink);
  text-decoration: none; transition: background .14s, transform .14s;
}
.tk-shell .tk-primary, .tk-shell .tk-select-ticket { font-weight: 700; }
.tk-primary:hover, .tk-select-ticket:hover { background: #f3ba9d; transform: translateY(-1px); }
.tk-primary:active, .tk-select-ticket:active { transform: translateY(2px); box-shadow: none; }
.tk-show-cta { width: 100%; min-width: 170px; }
.tk-from-price { font: 500 12px var(--font-sans); margin: 8px 0 !important; }
.selected-show-banner .show-ticket-actions .tk-existing-option { display: inline-flex; justify-content: center; min-height: 44px; padding: 6px 0; border: 0; box-shadow: none; background: transparent; color: var(--ink); font: 500 12px var(--font-sans); text-decoration: underline; }
.tk-chrome { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px 0; color: var(--ink); }
.tk-brand { color: inherit; text-decoration: none; font: 700 24px/1 var(--font-display); letter-spacing: -1px; }
.tk-brand-dot { color: var(--accent); }
.tk-brand-label { margin-left: 12px; font: 600 12px var(--font-sans); letter-spacing: 0; }
.tk-icon { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 0 2px 0 var(--ink); font-size: 26px !important; line-height: 1 !important; }
.tk-event { padding: 12px 28px 16px; }
.tk-event h2 { font: 700 clamp(28px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -.045em; margin: 0 0 8px; overflow-wrap: anywhere; }
.tk-event p { display: inline-block; margin: 3px 16px 0 0; }
.tk-event-date { color: var(--text-muted); font-size: 13px; }
.tk-test-banner { padding: 8px 28px; margin: 0; font-size: 12px; background: #eeaa892b; color: var(--ink); border-block: 1px solid var(--tk-rule); }
.tk-toolbar { padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--tk-rule); }
.tk-control-label { display: block; font-weight: 700; margin-bottom: 10px; }
.tk-quantity-options { display: flex; align-items: center; gap: 8px; }
.tk-quantity-options button, .tk-quantity-options select { min-width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); padding: 0 12px; font-weight: 700; }
.tk-quantity-options [aria-pressed=true], .tk-quantity-options select.is-selected { background: var(--ink); color: var(--paper); }
.tk-quantity-control>p { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }
.tk-controls { display: flex; align-items: center; gap: 8px; }
.tk-controls select { min-height: 44px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 9px 16px; font-weight: 600 !important; }
.tk-delivery-fields input { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); padding: 10px 12px; }
.tk-text-button { border: 0; background: none; padding: 8px 0; color: var(--ink); font: 600 12px var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tk-disclosure, .tk-notice { background: #eeaa8938; padding: 14px; border: 1px solid #b06d46; border-radius: 10px; line-height: 1.6; }
.tk-disclosure { margin: 16px 28px 0; }
.tk-notice { margin-bottom: 16px; }
.tk-body { padding: 24px 28px; }
.tk-body:not(.has-map) .tk-list-pane { max-width: 740px; margin: 0 auto; }
.tk-body.has-map { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 1fr); gap: 24px; align-items: start; }
.tk-list-pane { min-width: 0; }
.tk-list-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tk-list-caption h3 { font: 700 17px var(--font-sans); margin: 0; }
#tkCount { display: inline-grid; place-items: center; min-width: 24px; padding: 2px 6px; margin-left: 5px; background: #202c2910; border-radius: 99px; font-size: 12px; }
#tkCount:empty { display: none; }
.tk-list-caption p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.tk-listings { display: grid; gap: 12px; }
.tk-card { padding: 18px; border: 1px solid #202c2940; border-radius: 16px; background: var(--paper); transition: border-color .14s; }
.tk-card:hover, .tk-card:focus-within { border-color: var(--ink); }
.tk-card-main, .tk-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tk-section { font: 700 19px/1.2 var(--font-sans); margin: 0; }
.tk-row { margin: 5px 0 0; font-size: 13px; color: var(--text-muted); }
.tk-price { margin: 0; font: 700 24px/1.2 var(--font-sans); text-align: right; white-space: nowrap; letter-spacing: -.04em; }
.tk-price small { display: block; font: 400 11px/1.6 var(--font-sans); letter-spacing: 0; color: var(--text-muted); }
.tk-card-bottom { margin-top: 12px; align-items: end; }
.tk-card-bottom>p { margin: 0; font-size: 12px; }
.tk-delivery { display: block; font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }
.tk-notes { font-size: 12px; margin: 12px 0 0; white-space: pre-line; color: var(--ink); }
.tk-select-ticket { flex-shrink: 0; min-height: 42px; padding: 8px 18px; font-size: 13px !important; }
.tk-total-preview { display: block; font-weight: 700; }
.tk-map-pane { position: sticky; top: 18px; border: 1px solid var(--tk-rule); border-radius: 16px; overflow: hidden; background: var(--paper); }
.tk-map-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; font-weight: 700; }
.tk-map-tools { display: flex; align-items: center; gap: 10px; }
.tk-map-zoom { width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 20px !important; }
.tk-map { height: 430px; min-width: 0; }
.tk-map-section { display: block; padding: 0 16px 14px; font-size: 12px; font-weight: 600; }
.tk-map-section select { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid var(--ink); border-radius: 12px; background: var(--paper); padding: 8px 12px; }
.tk-map-key { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 14px 16px; margin: 0; font-size: 11px; border-top: 1px solid var(--tk-rule); }
.tk-map-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--peach); }
.tk-map-key i:nth-of-type(2) { background: var(--ink); margin-left: 8px; }
.tk-map-key span { flex-basis: 100%; color: var(--text-muted); }
.tk-view-switch { display: none; }
.tk-empty, .tk-changed { padding: 34px 20px; text-align: center; background: var(--paper); border: 1px solid var(--tk-rule); border-radius: 16px; }
.tk-empty h4, .tk-changed h4 { font: 700 25px/1.2 var(--font-display); margin: 0 0 12px; }
.tk-empty p, .tk-changed p { max-width: 420px; margin: 10px auto 20px; color: var(--text-muted); }
.tk-changed button { margin: 8px; }
.tk-skeleton { height: 160px; background: var(--paper); border: 1px solid var(--tk-rule); border-radius: 16px; padding: 20px; }
.tk-skeleton span { display: block; width: 45%; height: 15px; margin-bottom: 14px; border-radius: 8px; background: var(--bg); }
.tk-skeleton span:last-child { width: 25%; }
.tk-review { max-width: 600px; padding: 24px 28px; margin: 0 auto; }
.tk-review>h3 { font: 700 28px/1.2 var(--font-display); letter-spacing: -.03em; margin: 18px 0; }
.tk-receipt { padding: 24px; border: 1px solid var(--tk-rule); border-radius: 16px; background: var(--paper); }
.tk-receipt-artist { font: 700 23px var(--font-display); margin: 0 0 8px; }
.tk-receipt-location { font-size: 12px; color: var(--text-muted); margin: 4px 0; }
.tk-receipt-seats { display: flex; flex-direction: column; gap: 5px; border-block: 1px solid var(--tk-rule); padding: 16px 0; margin: 18px 0; }
.tk-receipt-seats strong { font-size: 17px; }
.tk-fee-line { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0; font-size: 13px; }
.tk-total { border-top: 1px solid var(--tk-rule); padding-top: 16px; margin-top: 16px; font-size: 18px; font-weight: 700; }
.tk-delivery-fields { display: grid; gap: 14px; margin: 22px 0; }
.tk-delivery-fields label { font-size: 12px; font-weight: 600; }
.tk-delivery-fields input { font-size: 16px; }
.tk-receipt .tk-primary { width: 100%; margin-top: 12px; }
.tk-checkout-note { color: var(--text-muted); font-size: 11px; line-height: 1.6; margin: 14px 0 0; }
.tk-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 28px 24px; color: var(--text-muted); font-size: 11px; }
.tk-footer a { color: var(--ink); }
.tk-eyebrow { font: 700 11px var(--font-sans); letter-spacing: .06em; }
.tk-motto { font: 400 12px var(--font-sans); }
@media (max-width: 767px) {
  .tk-shell, .tk-shell:has(.tk-body.has-map) { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .tk-chrome { padding: max(14px, env(safe-area-inset-top)) 20px 0; }
  .tk-event { padding: 18px 20px; }
  .tk-event h2 { font-size: 30px; }
  .tk-event p { display: block; font-size: 13px; margin: 3px 0; }
  .tk-test-banner { padding: 8px 20px; }
  .tk-toolbar { padding: 18px 20px; flex-wrap: wrap; gap: 14px; }
  .tk-quantity-control { width: 100%; }
  .tk-controls { width: 100%; }
  .tk-sort { flex: 1; }
  .tk-sort select { width: 100%; }
  .tk-body, .tk-body.has-map { display: block; padding: 18px 20px; }
  .tk-card { padding: 16px; }
  .tk-section { font-size: 17px; }
  .tk-price { font-size: 22px; }
  .tk-card-bottom { gap: 10px; }
  .tk-select-ticket { padding: 8px 14px; }
  .tk-view-switch { display: flex; gap: 6px; margin: 18px 20px 0; padding: 4px; border: 1px solid var(--ink); border-radius: 999px; }
  .tk-view-switch button { flex: 1; padding: 10px; border: 0; border-radius: 99px; background: transparent; font-weight: 700; }
  .tk-view-switch button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
  .tk-body[data-mobile-view=tickets] .tk-map-pane, .tk-body[data-mobile-view=map] .tk-list-pane { display: none; }
  .tk-map-pane { position: static; }
  .tk-map { height: 48dvh; min-height: 300px; }
  .tk-review { padding: 20px; }
  .tk-receipt { padding: 20px; }
  .tk-footer { padding: 16px 20px max(24px, env(safe-area-inset-bottom)); }
  .tk-disclosure { margin-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { .tk-shell *, .tk-primary { transition: none; } }

.tk-map.tk-static-map { height: auto; min-height: 0; padding: 12px; background: white; }
.tk-static-map a { display: block; }
.tk-static-map img { display: block; width: 100%; height: auto; }

@media (min-width: 768px) { .tk-static-map img { max-height: 460px; object-fit: contain; } }
