.booking {
  max-width: 1024px;
  width: 92%;
  margin: 0 auto;
  padding: 40px 0 40px 0;
}

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--text);
}

.booking-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 32px;
  align-items: start;
}

.booking-poster-wrap {
  position: relative;
  margin-bottom: 20px;
}

.booking-poster {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.booking-poster-wrap .tag-rated,
.booking-poster-wrap .tag-time {
  padding: 4px 12px;
  font-size: 14px;
}

.booking-poster-wrap .tag-rated {
  top: 14px;
  right: 14px;
}

.booking-poster-wrap .tag-time {
  bottom: 14px;
  right: 14px;
}

.booking-block {
  margin-bottom: 20px;
}

.film-title {
  font-size: 20px;
}

.film-details {
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 4px;
}

.field-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dropdown {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.dropdown:hover {
  border-color: var(--red);
}

.dropdown:focus {
  outline: none;
  border-color: var(--red);
}

.dropdown:disabled,
.dropdown:disabled:hover {
  background-color: var(--line-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.pick-first {
  padding: 48px 20px;
  background-color: var(--white);
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.pick-first strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.seat-area h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.screen-curve {
  height: 12px;
  margin: 0 24px 0 24px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(to bottom, rgba(79, 57, 246, 0.35), rgba(79, 57, 246, 0));
}

.screen-word {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  text-align: center;
  margin: 4px 0 24px 0;
}

.seat-area {
  position: relative;
  min-width: 0;
}

.seats-waiting {
  visibility: hidden;
}

.seat-area .pick-first {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.seat-map {
  overflow-x: auto;
  padding-bottom: 8px;
}

.seat-map-loading .seat-box {
  background-color: var(--line);
  background-image: linear-gradient(90deg, var(--line) 0%, var(--line-soft) 50%, var(--line) 100%);
  background-size: 200% 100%;
  color: transparent;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .seat-map-loading .seat-box {
    animation: none;
  }
}

.seat-row {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 4px;
  margin: 0 auto 8px auto;
}

.row-letter {
  width: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.seat {
  position: relative;
  cursor: pointer;
}

.seat-after-aisle {
  margin-left: 12px;
}

.seat input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.seat-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px 8px 2px 2px;
  background-color: var(--indigo-light);
  color: var(--indigo);
  font-size: 9px;
  font-weight: 900;
}

.seat input:checked + .seat-box {
  background-color: var(--red);
  color: var(--white);
}

.seat input:focus-visible + .seat-box {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.seat-box-sold {
  background-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.seat-key {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.seat-key div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.key-colour {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.key-free {
  background-color: var(--indigo-light);
}

.key-picked {
  background-color: var(--red);
}

.key-sold {
  background-color: var(--line);
}

.snacks {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.snacks h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.snacks-note {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 16px;
}

.snack-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 16px 0 8px 0;
}

.snack-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* A category's heading, then "- View more" in the same lettering */
.snack-heading-row {
  display: flex;
  align-items: baseline;
  margin: 16px 0 8px 0;
}

.snack-heading-row .snack-heading {
  margin: 0;
}

.snack-view-more {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.snack-view-more:hover {
  color: var(--text);
}

.snack-view-more::before {
  content: "-";
  margin: 0 8px;
}

/* A small arrow: down to open, up to close */
.snack-view-more::after {
  content: "";
  width: 5px;
  height: 5px;
  margin: -3px 0 0 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.snack-view-more[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

/* Snacks past the first row wait for View more */
.snack-list:not(.snack-list-open) .snack-extra {
  display: none;
}

.snack-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.snack-box-picked {
  background-color: var(--red-light);
  border-color: var(--red);
}

.snack-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.snack-detail {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
}

.snack-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.snack-price {
  font-size: 14px;
  font-weight: 900;
}

.snack-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.snack-step {
  width: 26px;
  height: 26px;
  padding: 0;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}

.snack-step:hover {
  border-color: var(--red);
  color: var(--red);
}

.snack-step:disabled {
  border-color: var(--line-soft);
  color: var(--line);
  cursor: default;
}

.snack-quantity {
  min-width: 22px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.order-summary {
  margin-top: 24px;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 4px;
}

.summary-line span:last-child {
  text-align: right;
}

.summary-name {
  flex-shrink: 0;
  color: var(--text-soft);
  font-weight: 600;
}

.summary-total {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.summary-amount {
  font-size: 24px;
  font-weight: 900;
}

.order-summary .button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 900;
}

.order-summary .button:disabled {
  cursor: default;
}

.order-summary .button-red:disabled {
  opacity: 0.7;
}

.summary-note {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1000px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .seats-waiting {
    display: none;
  }

  .seat-area .pick-first {
    position: static;
  }

  .booking-poster-wrap {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 620px) {
  .snack-list {
    grid-template-columns: 1fr;
  }

  .seat-row {
    gap: 3px;
  }

  .row-letter {
    width: 16px;
  }

  .seat-box {
    width: 26px;
    height: 26px;
  }

  .seat-after-aisle {
    margin-left: 8px;
  }
}

.status-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background-color: var(--amber-light);
  color: var(--amber);
  font-size: 30px;
  font-weight: 900;
}

.status-mark-stopped {
  background-color: var(--red-light);
  color: var(--red-dark);
}

.status-note {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

.confirm-box .held-until {
  margin-top: 31px;
}

.confirm-box .held-until strong {
  font-weight: 900;
}

.confirm-box-tight {
  margin-bottom: 6px;
}

.pay-page {
  max-width: 900px;
}

.pay-layout {
  display: flex;
  flex-direction: column;
}

.pay-details {
  display: contents;
}

/* On a phone: the booking details first, then the QR code (or card form) */
.pay-details > .ticket {
  order: 1;
}

.pay-layout > .ticket {
  order: 2;
  margin-top: 20px;
}

.pay-details > .pay-other {
  order: 3;
}

.pay-details > .pay-notice {
  order: 4;
}

.pay-details > .status-note {
  order: 5;
}

@media (min-width: 760px) {
  .pay-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .pay-details {
    display: block;
  }

  /* Side by side again: the code on the left, the details on the right */
  .pay-layout > .ticket {
    order: 0;
    margin-top: 0;
  }
}

.pay-other {
  margin-top: 20px;
  padding: 0 20px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pay-other summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.pay-other summary::-webkit-details-marker {
  display: none;
}

.pay-other summary::after {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.pay-other[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.pay-other-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-top: 2px solid var(--line);
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.pay-other-name {
  flex: 1;
}

.pay-other-mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 24px;
}

.pay-other-symbol {
  width: 24px;
  height: 24px;
  color: var(--text-soft);
}

.pay-other-dot {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.pay-other-logo {
  width: auto;
  height: 18px;
}

.pay-other-option:hover .pay-other-name,
.pay-other-option:focus .pay-other-name {
  color: var(--red);
}

.pay-other-option:hover .pay-other-dot,
.pay-other-option:focus .pay-other-dot {
  border-color: var(--red);
  background-color: var(--red);
  box-shadow: inset 0 0 0 3px var(--white);
}

.pay-notice {
  margin: 12px 0 0 0;
}

.qr-pay {
  text-align: center;
}

.pay-amount {
  font-size: 28px;
  font-weight: 900;
  margin-top: 2px;
}

.qr-pay-code {
  width: 240px;
  height: 240px;
  margin: 14px auto;
  transition: opacity 0.3s;
}
.qr-pay-save {
  margin-top: 14px;
}

.qr-pay-save p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
}

.pay-ended .qr-pay-save {
  display: none;
}

.pay-timer {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.pay-timer strong {
  display: block;
  color: var(--text);
  font-size: 32px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.pay-hurry .pay-timer strong {
  color: var(--red);
}

.pay-status {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.pay-ended .qr-pay-code {
  opacity: 0.15;
}

.card-pay {
  text-align: center;
}

.card-form {
  margin: 16px 0 20px 0;
  text-align: left;
}

.card-form .form-message-error {
  margin-top: -8px;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-form .button {
  padding: 12px;
}

.card-form .button:disabled {
  opacity: 0.6;
  cursor: default;
}

.pay-ended .card-form {
  opacity: 0.4;
  pointer-events: none;
}

