/* Stripe draws the payment fields; the dialog supplies the frame. */
.stripe-checkout-panel { min-width: 0; }
.stripe-checkout-panel > p { margin: 0 0 16px; }
/* The quantity box: a number to type, with small up and down arrows beside it. The
   browser's own spin buttons are hidden, since phones do not show them anyway. */
.ticket-quantity-field { max-width: 220px; }
.quantity-stepper { display: flex; align-items: stretch; }
.quantity-stepper input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.quantity-stepper input::-webkit-outer-spin-button, .quantity-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-arrows { display: flex; flex-direction: column; border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; overflow: hidden; }
.quantity-arrow { flex: 1; width: 34px; padding: 0; border: 0; background: var(--surface-alt); color: var(--text-muted); font-size: 9px; line-height: 1; cursor: pointer; }
.quantity-arrow + .quantity-arrow { border-top: 1px solid var(--border); }
.quantity-arrow:hover:not(:disabled) { background: var(--border); color: var(--text); }
.quantity-arrow:disabled { color: var(--text-subtle); opacity: 0.45; cursor: default; }
/* What the buyer pays: tickets, fees, sales tax, and the total. */
.order-summary { display: grid; gap: 6px; max-width: 420px; margin: 0 0 16px; font-size: 14px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 16px; }
.order-summary dt { color: var(--text-muted); }
.order-summary dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-summary .order-summary-total { padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); font-size: 24px; font-weight: 600; }
.order-summary .order-summary-total dt { color: var(--text); }
.stripe-checkout-loading { padding: 16px 0; color: var(--text-muted); font-size: 14px; }
.stripe-checkout-mount { min-width: 0; min-height: 420px; border-radius: var(--radius-sm); color-scheme: dark; }
.stripe-checkout-mount iframe { display: block; max-width: 100%; border: 0; }

#stripe-checkout-error { margin: 16px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.stripe-checkout-panel > .field-help { margin-top: 16px; text-align: center; }
.checkout-form { min-width: 0; }

@media (max-width: 640px) {
  .dialog-window:has(.stripe-checkout-panel) { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .dialog-window:has(.stripe-checkout-panel) .dialog-content { padding-inline: 12px; }
  .stripe-checkout-mount { min-height: 380px; }
}
