/* Customer seat selection */
.seat-selection-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 1rem 3rem;
}

.seat-selection-seat-flow { display: contents; }

.seat-selection-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.seat-selection-header__back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.seat-selection-header__title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.seat-selection-header__title h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.seat-selection-header__title p:last-child {
  max-width: 44rem;
  margin-top: 0.75rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.seat-selection-header__ticket-price {
  display: flex;
  flex-direction: column;
  align-items: end;
  flex: 0 0 auto;
  gap: 0.35rem;
  text-align: right;
}

.seat-selection-header__ticket-price > strong {
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seat-selection-tickets {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.seat-selection-ticket-picker { display: none; }
.seat-selection-ticket-picker > summary,
.seat-selection-ticket-current { display: none; }

.seat-selection-tickets__ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.15rem 1rem;
  min-width: 11rem;
  padding: 0.85rem 1rem;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid transparent;
  border-radius: 0.9rem;
  text-decoration: none;
}

.seat-selection-tickets__ticket:hover,
.seat-selection-tickets__ticket:focus-visible {
  opacity: 1;
  border-color: var(--color-accent);
}

.seat-selection-tickets__ticket.is-active {
  background: oklch(from var(--color-accent) l c h / 0.12);
  border-color: var(--color-accent);
}

.seat-selection-tickets__ticket span {
  overflow: hidden;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-selection-tickets__ticket small {
  color: var(--color-muted);
  line-height: 1.2;
}

.seat-selection-tickets__ticket > strong {
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: 0.35rem;
  color: white;
  background: var(--color-accent);
  border-radius: 999px;
  font-size: 0.75rem;
}

.seat-selection-categories,
.seat-selection-tariffs > div:last-child {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.seat-selection-categories__filter,
.seat-selection-tariffs__option {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  color: var(--color-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-subtle);
  border-radius: 0.8rem;
  font: inherit;
  cursor: pointer;
}

.has-seat-category {
  /* WCAG 1.4.11: keep fills in a mid range so category color stays
     distinguishable from the map on both shop themes. */
  --seat-fill: oklch(from var(--seat-category-color) clamp(0.52, l, 0.62) c h);
  --seat-ink: #141414;
}

[data-theme="dark"] .has-seat-category {
  --seat-fill: oklch(from var(--seat-category-color) clamp(0.64, l, 0.76) c h);
}

.seat-selection-categories__filter i {
  width: 0.9rem;
  height: 0.9rem;
  background: var(--seat-fill, var(--color-muted));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--seat-fill) 40%, transparent);
  border-radius: 999px;
}

.seat-selection-categories__filter span,
.seat-selection-tariffs__option span { font-weight: 750; }

.seat-selection-categories__filter small,
.seat-selection-tariffs__option small { color: var(--color-muted); }

.seat-selection-categories__filter.is-active,
.seat-selection-tariffs__option.is-active {
  color: var(--color-text);
  background: oklch(from var(--color-accent) l c h / 0.12);
  border-color: var(--color-accent);
}

.seat-selection-categories__filter.has-seat-category.is-active {
  background: color-mix(in srgb, var(--seat-fill) 32%, var(--color-surface-2));
  border-color: var(--seat-fill);
}

.seat-selection-tariffs {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--color-surface-1);
  border-radius: 1rem;
}

.seat-selection-tariffs > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.seat-selection-tariffs > div:first-child small {
  color: var(--color-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.seat-selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  align-items: start;
  gap: 1rem;
}

.seatmap-customer-map {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--color-surface-2);
  border: 1px solid var(--color-surface-1);
  border-radius: 1.25rem;
}

.seatmap-customer-map__best { display: none; }

.seatmap-customer-map__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.7rem;
  border-bottom: 1px solid var(--color-surface-1);
}

.seatmap-customer-map__floor-select {
  max-width: min(15rem, 50vw);
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  color: var(--color-text);
  background: var(--color-surface-1);
  border: 1px solid var(--color-subtle);
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
}

.seatmap-customer-map__zoom {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-inline-start: auto;
}

.seatmap-customer-map__zoom button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.seatmap-customer-map__zoom button:hover,
.seatmap-customer-map__zoom button:focus-visible {
  color: var(--color-text);
  background: var(--color-surface-1);
  outline: none;
}

.seatmap-customer-map__zoom button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.seatmap-customer-map__zoom-level {
  min-width: 3.5rem;
  font-family: "Geist Mono", monospace !important;
  font-variant-numeric: tabular-nums;
}

.seatmap-customer-map__zoom-step {
  width: 2.25rem;
  padding: 0 !important;
  flex: 0 0 2.25rem;
}

.seatmap-customer-map__zoom-step .icon {
  --icon-size: 1rem;
  line-height: 1;
}

.seatmap-customer-map__overview {
  padding-inline: 0.8rem !important;
}

.seatmap-customer-map__viewport {
  max-height: min(70vh, 48rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  background:
    radial-gradient(circle at center, oklch(from var(--color-accent) l c h / 0.08), transparent 65%),
    var(--color-surface-1);
  cursor: grab;
  user-select: none;
}

.seatmap-customer-map__viewport.is-panning {
  cursor: grabbing;
  scroll-behavior: auto;
}

.seatmap-customer-map__viewport.is-pinching {
  scroll-behavior: auto;
}

.seatmap-customer-map__viewport.is-pinching .seatmap-customer-map__stage {
  will-change: transform;
}

.seatmap-customer-map__floor {
  min-width: 100%;
  min-height: 100%;
}

.seatmap-customer-map__viewport.is-overview .seatmap-customer-map__floor:not([hidden]) {
  display: grid;
  place-items: center;
}

.seatmap-customer-map__stage {
  position: relative;
  width: var(--seatmap-scaled-width);
  height: var(--seatmap-scaled-height);
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem oklch(0 0 0 / 0.12);
}

.seatmap-customer-map__plane {
  position: absolute;
  top: var(--seatmap-plane-top, 0);
  left: var(--seatmap-plane-left, 0);
  width: var(--seatmap-natural-width);
  aspect-ratio: var(--seatmap-aspect-ratio);
  overflow: hidden;
  transform: scale(var(--seatmap-scale));
  transform-origin: top left;
  color: var(--color-text);
}

.seatmap-customer-map__room {
  position: absolute;
  inset: 0;
  background: var(--color-surface-0);
}

.seatmap-customer-map__walls {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.seatmap-customer-map__wall {
  fill: none;
  stroke: #111;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 6;
}

[data-theme="dark"] .seatmap-customer-map__wall {
  stroke: oklch(0.86 0 0);
}

.seatmap-customer-map__door-opening {
  fill: none;
  stroke: var(--color-surface-2);
  stroke-linecap: butt;
  stroke-width: 12;
}

.seatmap-customer-map__door-jamb,
.seatmap-customer-map__door-leaf {
  fill: none;
  stroke: #111;
  stroke-linecap: square;
  stroke-width: 3;
}

.seatmap-customer-map__door-arc {
  fill: none;
  opacity: 0.55;
  stroke: #111;
  stroke-dasharray: 5 3;
  stroke-width: 1.5;
}

[data-theme="dark"] .seatmap-customer-map__door-jamb,
[data-theme="dark"] .seatmap-customer-map__door-leaf {
  stroke: oklch(0.86 0 0);
}

[data-theme="dark"] .seatmap-customer-map__door-arc {
  stroke: oklch(0.78 0 0);
}

.seatmap-customer-map__section,
.seatmap-customer-map__table,
.seatmap-customer-map__standing,
.seatmap-customer-map__element {
  position: absolute;
  left: var(--seatmap-x);
  top: var(--seatmap-y);
  width: var(--seatmap-width);
  height: var(--seatmap-height);
  transform: rotate(var(--seatmap-rotation));
  transform-origin: center;
}

.seatmap-customer-map__section {
  z-index: 1;
  padding: 0.65rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-subtle);
  border-radius: 0.8rem;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .seatmap-customer-map__section {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.seatmap-customer-map__row-label {
  position: absolute;
  z-index: 8;
  left: var(--seatmap-x);
  top: var(--seatmap-y);
  min-width: 1.25rem;
  transform: translate(-125%, -50%);
  color: var(--color-muted);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
  text-align: right;
  text-shadow: 0 0 0.25rem var(--color-surface-0);
}

.seatmap-customer-map__seat {
  position: absolute;
  z-index: 6;
  left: var(--seatmap-x);
  top: var(--seatmap-y);
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  /* Circles with upright labels — match editor/preview. Rotating chair-shaped
     chips around tables makes seats look like diamonds with sideways numbers. */
  transform: translate(-50%, -50%);
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  font-weight: 800;
}

.seatmap-customer-map__seat--choice {
  color: var(--color-text);
  background: var(--color-surface-0);
  border: 1px solid color-mix(in srgb, var(--color-text) 38%, var(--color-subtle));
  box-shadow: 0 0.2rem 0.5rem oklch(0 0 0 / 0.12);
  cursor: pointer;
}

.seatmap-customer-map__seat--choice:hover {
  border-color: var(--color-accent);
}

.seatmap-customer-map__seat--choice.has-seat-category {
  color: var(--seat-ink);
  background: var(--seat-fill);
  border-color: oklch(from var(--seat-fill) calc(l * 0.72) c h);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-text) 28%, transparent),
    0 0.2rem 0.5rem oklch(0 0 0 / 0.18);
}

.seatmap-customer-map__seat--choice.has-seat-category:hover {
  border-color: oklch(from var(--seat-fill) calc(l * 0.55) c h);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--seat-fill) 45%, transparent),
    0 0.2rem 0.5rem oklch(0 0 0 / 0.18);
}

.seatmap-customer-map__seat--choice.is-category-muted {
  opacity: 0.18;
}

.seatmap-customer-map__seat--choice > span:first-child { visibility: hidden; }

.seatmap-customer-map__input {
  position: absolute;
  top: var(--seatmap-y);
  left: var(--seatmap-x);
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.seatmap-customer-map__input:checked + .seatmap-customer-map__seat--choice > span:first-child {
  visibility: visible;
}

.seatmap-customer-map__seat--neutral {
  z-index: 4;
  width: 1rem;
  height: 1rem;
  background: var(--color-subtle);
  border-radius: 999px;
  opacity: 0.55;
}

.seatmap-customer-map__input:focus-visible + .seatmap-customer-map__seat,
.seatmap-customer-map__input:focus-visible + .seatmap-customer-map__table {
  outline: 3px solid oklch(from var(--color-accent) l c h / 0.35);
  outline-offset: 3px;
}

.seatmap-customer-map__input:checked + .seatmap-customer-map__seat {
  color: white;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.seatmap-customer-map__seat.is-unavailable {
  color: var(--color-muted);
  background: color-mix(in srgb, var(--color-surface-1) 70%, var(--color-subtle));
  border-color: var(--color-subtle);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}

.seatmap-customer-map__seat.is-unavailable::after {
  position: absolute;
  width: 55%;
  height: 1.5px;
  content: "";
  background: var(--color-muted);
  border-radius: 999px;
  transform: rotate(-45deg);
}

.seatmap-customer-map__seat.is-accessible {
  border-radius: 999px;
}

.seatmap-customer-map__seat.is-companion {
  border-style: dashed;
}

.seatmap-customer-map__seat.is-paired {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 20%, transparent),
    0 0.2rem 0.5rem oklch(0 0 0 / 0.12);
}

.seatmap-customer-map__pair-links {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.seatmap-customer-map__pair-links line {
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
}

.seatmap-customer-map__seat.is-restricted-view {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 4px,
    oklch(from var(--color-accent) l c h / 0.14) 4px 6px
  );
}

.seatmap-customer-map__seat-traits {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  pointer-events: none;
}

.seatmap-customer-map__input:checked + .seatmap-customer-map__seat .seatmap-customer-map__seat-traits {
  color: white;
}

.seatmap-customer-map__input:checked + .seatmap-customer-map__seat.has-traits > span:first-child {
  position: absolute;
  z-index: 1;
  right: -0.25rem;
  bottom: -0.35rem;
  display: grid;
  place-items: center;
  min-width: 1rem;
  height: 1rem;
  padding-inline: 0.15rem;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-subtle);
  border-radius: 999px;
  font-size: 0.5rem;
  line-height: 1;
}

.seatmap-customer-map__table {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  color: var(--color-muted);
  background: var(--color-surface-1);
  border: 1px solid var(--color-subtle);
  border-radius: var(--seatmap-radius, 0.75rem);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.seatmap-customer-map__table--around {
  border-radius: var(--seatmap-radius, 50%);
}

.seatmap-customer-map__table small {
  margin-top: 0.1rem;
  font-size: 0.58rem;
  font-weight: 600;
}

.seatmap-customer-map__table--choice {
  z-index: 5;
  color: var(--color-text);
  background: var(--color-surface-0);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0.25rem 0.65rem oklch(0 0 0 / 0.12);
  cursor: pointer;
}

.seatmap-customer-map__table--choice.has-seat-category {
  color: var(--seat-ink);
  background: var(--seat-fill);
  border-color: oklch(from var(--seat-fill) calc(l * 0.72) c h);
}

.seatmap-customer-map__input:checked + .seatmap-customer-map__table {
  color: white;
  background: var(--color-accent);
}

.seatmap-customer-map__table.is-unavailable {
  border-color: var(--color-subtle);
  cursor: not-allowed;
  opacity: 0.5;
}

.seatmap-customer-map__standing {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem;
  color: var(--color-muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 8px, oklch(from var(--color-accent) l c h / 0.06) 8px 16px),
    var(--color-surface-1);
  border: 1px dashed var(--color-subtle);
  border-radius: 0.75rem;
  font-size: 0.72rem;
  text-align: center;
}

.seatmap-customer-map__standing--choice {
  color: var(--color-text);
  border-color: var(--color-accent);
  text-decoration: none;
}

.seatmap-customer-map__standing--choice:hover,
.seatmap-customer-map__standing--choice:focus-visible {
  opacity: 1;
  background-color: oklch(from var(--color-accent) l c h / 0.12);
}

.seatmap-customer-map__standing.is-unavailable { opacity: 0.5; }

.seatmap-customer-map__standing .icon { --icon-size: 1.25rem; }
.seatmap-customer-map__standing span { font-size: 0.6rem; }

.seatmap-customer-map__element {
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  border: 1px solid var(--color-subtle);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.seatmap-customer-map__element--stage {
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface-1));
  border-radius: 0.6rem 0.6rem 50% 50% / 0.6rem 0.6rem 25% 25%;
  box-shadow: 0 0.4rem 1rem oklch(0 0 0 / 0.08);
}

.seatmap-customer-map__element--aisle {
  background: oklch(from var(--color-accent) l c h / 0.045);
  border-style: dashed;
}

.seatmap-customer-map__element--background { z-index: 0; }

.seatmap-customer-map__legend-disclosure > summary { display: none; }
.seatmap-customer-map__legend-disclosure:not([open]) > .seatmap-customer-map__legend-panel {
  display: block;
}

.seatmap-customer-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--color-surface-1);
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.seatmap-customer-map__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.seatmap-customer-map__legend i {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  background: var(--color-surface-0);
  border: 1.5px solid var(--color-accent);
  border-radius: 0.3rem;
  font-style: normal;
}

.seatmap-customer-map__legend i.has-seat-category {
  background: var(--seat-fill);
  border-color: oklch(from var(--seat-fill) calc(l * 0.72) c h);
  border-radius: 999px;
}

.seatmap-customer-map__legend i.is-selected {
  background: var(--color-accent);
}

.seatmap-customer-map__legend i.is-unavailable {
  background: var(--color-surface-1);
  border-color: var(--color-subtle);
  opacity: 0.6;
}

.seatmap-customer-map__legend i.is-accessible {
  border-radius: 999px;
  font-size: 0.7rem;
}

.seatmap-customer-map__legend i.is-companion {
  border-style: dashed;
  font-size: 0.7rem;
}

.seatmap-customer-map__legend i.is-restricted-view {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 3px,
    oklch(from var(--color-accent) l c h / 0.2) 3px 5px
  );
  font-size: 0.7rem;
}

.seatmap-customer-map__companion-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  color: var(--color-muted);
  background: var(--color-surface-1);
  font-size: 0.76rem;
  line-height: 1.45;
}

.seatmap-customer-map__companion-note .icon {
  --icon-size: 1rem;
  margin-top: 0.1rem;
  color: var(--color-accent);
}

.seat-selection-sidebar {
  position: sticky;
  top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seat-selection-sidebar__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-surface-1);
  border-radius: 1.1rem;
}

.seat-selection-sidebar__counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--color-surface-1);
  border-radius: 0.85rem;
}

.seat-selection-sidebar__counts > div { padding: 0.85rem; }
.seat-selection-sidebar__counts > div + div { border-left: 1px solid var(--color-subtle); }

.seat-selection-sidebar__counts dt {
  color: var(--color-muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.seat-selection-sidebar__counts dd {
  margin-top: 0.2rem;
  font-family: "Geist Mono", monospace;
  font-size: 1.4rem;
  font-weight: 850;
}

.seat-selection-assignments {
  overflow: hidden;
  border: 1px solid var(--color-subtle);
  border-radius: 0.8rem;
}

.seat-selection-assignments > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  list-style: none;
}

.seat-selection-assignments > summary::-webkit-details-marker { display: none; }
.seat-selection-assignments > summary::marker { content: ""; }

.seat-selection-assignments > summary > span {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seat-selection-assignments > summary > strong {
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: 0.35rem;
  color: white;
  background: var(--color-accent);
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
}

.seat-selection-assignments > summary > .icon {
  color: var(--color-muted);
  transition: transform 120ms ease;
}

.seat-selection-assignments[open] > summary > .icon { transform: rotate(180deg); }

.seat-selection-assignments__body {
  padding: 0 0.55rem 0.55rem;
  border-top: 1px solid var(--color-subtle);
}

.seat-selection-assignments__empty {
  padding: 0.7rem 0.15rem 0.15rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.seat-selection-assignments ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  max-height: 20rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.55rem 0 0;
  list-style: none;
}

.seat-selection-assignments li {
  display: grid;
  width: 100%;
  gap: 0.55rem;
  padding: 0.65rem;
  background: var(--color-surface-1);
  border-radius: 0.7rem;
}

.seat-selection-assignments li > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.seat-selection-assignments li > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-selection-assignments li > span strong {
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  line-height: 1.3;
}
.seat-selection-assignments li > span small { color: var(--color-muted); font-size: 0.62rem; }

.seat-selection-assignments li > div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.seat-selection-assignments select {
  width: 100%;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.4rem 0.55rem;
  flex: 1;
  color: var(--color-text);
  background: var(--color-surface-0);
  border: 1px solid var(--color-subtle);
  border-radius: 0.55rem;
  font: inherit;
  font-size: 0.68rem;
}

.seat-selection-assignments li > div > button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  flex: 0 0 2.25rem;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.seat-selection-assignments li > div > button:hover,
.seat-selection-assignments li > div > button:focus-visible {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.seat-selection-sidebar__hint {
  min-height: 1.2rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.seat-selection-sidebar__best,
.seat-selection-sidebar__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.seat-selection-sidebar__best {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-subtle);
}

.seat-selection-sidebar__continue {
  color: white;
  background: var(--color-accent);
  border: 0;
}

.seat-selection-sidebar__continue:disabled {
  cursor: not-allowed;
  filter: saturate(0.4);
  opacity: 0.45;
}

.seat-selection-sidebar__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.inventory-hold-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  color: var(--color-text);
  background: oklch(from var(--color-amber) l c h / 0.13);
  border: 1px solid oklch(from var(--color-amber) l c h / 0.3);
  border-radius: 0.75rem;
  font-size: 0.72rem;
}

.inventory-hold-timer strong { margin-left: auto; font-size: 0.86rem; }

.checkout-inventory {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-surface-1);
}

.checkout-inventory__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.72rem;
}

.checkout-inventory__table caption {
  padding: 0 0 0.5rem;
  text-align: left;
}

.checkout-inventory__table caption span {
  display: block;
  color: var(--color-muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-inventory__table caption strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

.checkout-inventory__table th,
.checkout-inventory__table td {
  padding-inline: 0.5rem;
  overflow-wrap: anywhere;
  text-align: left;
}

.checkout-inventory__table thead th {
  padding-block: 0.35rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-subtle);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-inventory__table tbody td {
  padding-block: 0.4rem;
  font-weight: 650;
}

.checkout-inventory__table tbody tr + tr td {
  border-top: 1px solid var(--color-surface-1);
}

.seat-selection-standing-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.seat-selection-standing-list__ticket {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.seat-selection-standing-list__ticket > h3 { margin: 0; font-size: 0.9rem; }

.seat-selection-standing-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-surface-1);
  border-radius: 1rem;
  scroll-margin-top: 5rem;
}

.seat-selection-standing-card__form {
  display: flex;
  align-items: end;
  gap: 0.65rem;
}

.seat-selection-standing-card__form > div { width: 7rem; }

.seat-selection-standing-card__controls {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0.55rem;
}

.seat-selection-standing-card__remove {
  width: 100%;
  padding: 0;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

@media (max-width: 64rem) {
  .seat-selection-layout { grid-template-columns: minmax(0, 1fr); }

  .seat-selection-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .seat-selection-page:not(.has-map-choices) .seat-selection-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  body.has-mobile-seat-selection { overflow-x: hidden; }
  body.has-mobile-seat-selection > main { padding: 0; }
  body.has-mobile-seat-selection > footer { display: none; }

  .seat-selection-page { gap: 1.25rem; }

  .seat-selection-page.has-map-choices {
    gap: 0;
    padding: 0;
  }

  .seat-selection-page.has-map-choices .seat-selection-seat-flow {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 4rem);
    min-height: 0;
  }

  .seat-selection-page.has-map-choices .seat-selection-standing-list {
    padding: 1rem 0.5rem 2rem;
  }

  .seat-selection-page.has-map-choices .seat-selection-header {
    position: relative;
    z-index: 25;
    gap: 0;
  }

  .seat-selection-page.has-map-choices .seat-selection-header__back,
  .seat-selection-page.has-map-choices .seat-selection-header__title {
    display: none;
  }

  .seat-selection-page.has-map-choices .seat-selection-categories {
    padding: 0.5rem;
    background: var(--color-surface-0);
  }

  .seat-selection-page.has-map-choices .seat-selection-categories__filter {
    min-height: 2.4rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.68rem;
  }

  .seat-selection-page.has-map-choices .seat-selection-tariffs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-inline: 0.5rem;
    padding: 0.5rem;
  }

  .seat-selection-page.has-map-choices .seat-selection-tariffs > div:first-child small {
    display: none;
  }

  .seat-selection-page.has-map-choices .seat-selection-tariffs__option {
    min-height: 2.25rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
  }

  .seat-selection-ticket-picker {
    position: relative;
    display: block;
    margin: 0.5rem;
  }

  .seat-selection-ticket-picker > summary,
  .seat-selection-ticket-current {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.55rem 0.75rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-1);
    border-radius: 0.85rem;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 0.72rem;
    list-style: none;
  }

  .seat-selection-ticket-current {
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0.5rem;
    cursor: default;
  }

  .seat-selection-ticket-picker > summary::-webkit-details-marker { display: none; }
  .seat-selection-ticket-picker > summary::marker { content: ""; }

  .seat-selection-ticket-picker > summary > span,
  .seat-selection-ticket-current > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .seat-selection-ticket-picker > summary small,
  .seat-selection-ticket-current small {
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .seat-selection-ticket-picker > summary strong,
  .seat-selection-ticket-current strong {
    overflow: hidden;
    color: var(--color-text);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .seat-selection-ticket-picker > summary > .icon { transition: transform 120ms ease; }
  .seat-selection-ticket-picker[open] > summary > .icon { transform: rotate(180deg); }
  .seat-selection-ticket-picker:not([open]) > .seat-selection-tickets { display: none; }

  .seat-selection-tickets {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    z-index: 40;
    flex-direction: column;
    gap: 0.35rem;
    overflow-x: visible;
    padding: 0.4rem;
    background: var(--color-surface-0);
    border: 1px solid var(--color-subtle);
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem oklch(0 0 0 / 0.4);
  }

  .seat-selection-tickets--desktop { display: none; }

  .seat-selection-tickets__ticket {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
    min-width: 0;
  }

  .seat-selection-tickets__ticket span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .seat-selection-header__title {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .seat-selection-header__ticket-price { align-items: start; text-align: left; }
  .seat-selection-sidebar { grid-template-columns: 1fr; }

  .seat-selection-page.has-map-choices .seat-selection-layout {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    flex: 1 1 auto;
    gap: 0;
  }

  .seat-selection-page.has-map-choices .seatmap-customer-map {
    height: 100%;
    min-height: 0;
  }

  .seat-selection-page.has-map-choices .seatmap-customer-map > form {
    height: 100%;
    min-height: 0;
  }

  .seat-selection-page.has-map-choices .seat-selection-sidebar > :not(.seat-selection-sidebar__picker) {
    display: none;
  }

  .seat-selection-sidebar__picker.has-map-choices {
    position: static;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    margin: 0.5rem;
    margin-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    padding: 0.5rem;
    border-color: var(--color-subtle);
    box-shadow: 0 0.75rem 2.5rem oklch(0 0 0 / 0.35);
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__counts {
    grid-row: 1;
    grid-column: 1;
    grid-template-columns: repeat(2, 1fr);
    align-self: stretch;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__counts > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.3rem 0.45rem;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__counts > div + div {
    border-top: 0;
    border-left: 1px solid var(--color-subtle);
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__counts dt {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__counts dd {
    margin-top: 0;
    font-size: 0.9rem;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-assignments {
    grid-row: 2;
  }

  .seat-selection-sidebar__picker.has-place-assignments .seat-selection-assignments {
    grid-row: 1;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-assignments > summary {
    min-height: 2.4rem;
    padding: 0.4rem 0.6rem;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-assignments__body {
    max-height: min(14rem, 35dvh);
    overflow-y: auto;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-assignments ul {
    max-height: none;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-assignments li {
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__hint {
    grid-row: 3;
    grid-column: 1;
    min-height: 0;
    overflow: hidden;
    font-size: 0.62rem;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .seat-selection-sidebar__picker.has-place-assignments .seat-selection-sidebar__hint {
    grid-row: 2;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__continue {
    grid-column: 1;
    grid-row: 4;
    min-height: 2.5rem;
    padding-block: 0.45rem;
    padding-inline: 0.65rem;
    font-size: 0.72rem;
  }

  .seat-selection-sidebar__picker.has-place-assignments .seat-selection-sidebar__continue {
    grid-row: 3;
  }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__best { display: none; }

  .seat-selection-sidebar__picker.has-map-choices .seat-selection-sidebar__remove {
    grid-row: 5;
    grid-column: 1;
  }

  .seat-selection-sidebar__picker.has-place-assignments .seat-selection-sidebar__remove {
    grid-row: 4;
  }

  .seatmap-customer-map__toolbar {
    position: absolute;
    z-index: 15;
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    align-items: center;
    flex-direction: row;
    min-height: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
  }

  .seatmap-customer-map__floor-select {
    max-width: 7.5rem;
    pointer-events: auto;
  }

  .seatmap-customer-map__zoom {
    gap: 0;
    padding: 0.1rem;
    background: oklch(from var(--color-surface-2) l c h / 0.92);
    border: 1px solid var(--color-subtle);
    border-radius: 999px;
    box-shadow: 0 0.35rem 1rem oklch(0 0 0 / 0.22);
    pointer-events: auto;
    backdrop-filter: blur(0.5rem);
  }

  .seatmap-customer-map__zoom button {
    min-height: 2rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
  }

  .seatmap-customer-map__zoom-step {
    width: 2.25rem;
    min-height: 2.25rem !important;
    padding: 0 !important;
    flex-basis: 2.25rem;
  }

  .seatmap-customer-map__zoom-level { min-width: 2.9rem; }

  .seatmap-customer-map__overview {
    padding-inline: 0.6rem !important;
  }

  .seatmap-customer-map {
    overflow: visible;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .seatmap-customer-map__best {
    position: absolute;
    z-index: 15;
    right: 0.5rem;
    bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem;
    color: var(--color-text);
    background: oklch(from var(--color-surface-2) l c h / 0.92);
    border: 1px solid var(--color-subtle);
    border-radius: 999px;
    box-shadow: 0 0.35rem 1rem oklch(0 0 0 / 0.22);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 750;
    pointer-events: auto;
    backdrop-filter: blur(0.5rem);
  }

  .seatmap-customer-map__legend-disclosure {
    position: absolute;
    z-index: 20;
    bottom: 0.5rem;
    left: 0.5rem;
  }

  .seatmap-customer-map__legend-disclosure > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    color: var(--color-text);
    background: oklch(from var(--color-surface-2) l c h / 0.92);
    border: 1px solid var(--color-subtle);
    border-radius: 999px;
    box-shadow: 0 0.35rem 1rem oklch(0 0 0 / 0.22);
    cursor: pointer;
    list-style: none;
    backdrop-filter: blur(0.5rem);
  }

  .seatmap-customer-map__legend-disclosure > summary::-webkit-details-marker { display: none; }
  .seatmap-customer-map__legend-disclosure > summary::marker { content: ""; }
  .seatmap-customer-map__legend-disclosure > summary > span { display: none; }
  .seatmap-customer-map__legend-disclosure:not([open]) > .seatmap-customer-map__legend-panel {
    display: none;
  }

  .seatmap-customer-map__legend-panel {
    position: absolute;
    bottom: calc(100% + 0.45rem);
    left: 0;
    width: min(22rem, calc(100vw - 1rem));
    overflow: hidden;
    background: oklch(from var(--color-surface-2) l c h / 0.97);
    border: 1px solid var(--color-subtle);
    border-radius: 0.9rem;
    box-shadow: 0 1rem 3rem oklch(0 0 0 / 0.4);
    backdrop-filter: blur(0.75rem);
  }

  .seatmap-customer-map__legend {
    gap: 0.65rem 1rem;
    border-top: 0;
  }

  .seatmap-customer-map__viewport {
    width: 100%;
    height: 100%;
    max-height: none;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    padding: 0.5rem;
    touch-action: pan-x pan-y;
  }

  .seatmap-customer-map__seat--choice {
    width: 2.125rem;
    height: 2.125rem;
  }

  .seat-selection-standing-card {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .seat-selection-standing-card__form { align-items: stretch; flex-direction: column; }
  .seat-selection-standing-card__form > div { width: 100%; }
}

.shop-panel--divided > * + * {
  border-block-start: 1px solid var(--color-subtle);
}
