/* ==========================================================================
   FLOWW Media — checkout, order confirmation, download preparation, account
   Loaded on /checkout/*, the return page, /g/{slug}/download and /account/*.
   Extends app.css and gallery.css; does not replace either.
   ========================================================================== */

/* -- page head ------------------------------------------------------------- */
.checkout-head {
  max-width: 56ch;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.checkout-head h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: .35em;
}

/* -- two-column shell ------------------------------------------------------ */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.checkout-form {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* -- numbered steps -------------------------------------------------------- */
.checkout-step {
  padding: clamp(20px, 3vw, 28px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.checkout-step-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.checkout-step-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1;
}

.checkout-step-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: -.02em;
}

.checkout-step-body > *:last-child { margin-bottom: 0; }

.checkout-step-hint { margin: 12px 0 0; }

/* Signed-in identity row --------------------------------------------------- */
.checkout-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 16px;
  background: var(--bg-sunken);
  border-radius: var(--radius);
}

.checkout-identity-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkout-identity-email {
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* A submit button that reads as a link — used for "Not you? Sign out". */
.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.linkish:hover { color: var(--accent-hover); }

.checkout-names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

/* -- tip ------------------------------------------------------------------- */
.tip-note {
  margin: 0 0 16px;
  font-size: .9rem;
  color: var(--muted);
}

.tip-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.tip-option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 12px 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: border-color .16s var(--ease), background .16s var(--ease),
              color .16s var(--ease), box-shadow .16s var(--ease);
}

/* The native radio stays in the accessibility tree, just out of sight. */
.tip-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tip-option-amount {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}

/* The custom option opens a field rather than setting an amount, so it reads
   as an invitation rather than a value. */
.tip-option-custom { border-style: dashed; }
.tip-option-custom .tip-option-amount { color: var(--muted); }
.tip-option-custom.is-selected,
.tip-option-custom:has(input:checked) { border-style: solid; }
.tip-option-custom.is-selected .tip-option-amount,
.tip-option-custom:has(input:checked) .tip-option-amount { color: var(--accent); }

.tip-option:hover { border-color: var(--ink); }

.tip-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Selection is driven by checkout.js (.is-selected); :has keeps it correct
   even before the script has run. */
.tip-option.is-selected,
.tip-option:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.tip-custom { margin-top: 14px; }

.tip-custom-field { position: relative; }

.tip-custom-symbol {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.tip-custom-field .input { padding-left: 30px; }

/* -- errors and the payments-off notice ------------------------------------ */
.checkout-error {
  margin-bottom: 16px;
  padding: 13px 16px;
  background: var(--danger-soft);
  border: 1px solid rgba(180, 35, 24, .22);
  border-left-width: 3px;
  border-radius: var(--radius);
  color: var(--danger);
  font-size: .9rem;
}

.checkout-error a { color: var(--danger); text-decoration: underline; }

.checkout-notice {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--bg-sunken);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.checkout-notice h3 {
  margin-bottom: .45em;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.checkout-notice .btn { margin-top: 14px; }

/* Stripe's embedded form mounts here; empty until then. */
#stripe-checkout:not(:empty) { margin-top: 22px; }

/* -- order summary --------------------------------------------------------- */
.checkout-summary {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  min-width: 0;
}

.checkout-summary-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.summary-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-sunken);
}

.summary-media-empty {
  display: grid;
  place-items: center;
  color: var(--muted-light);
}

.summary-body { padding: 20px; }

.summary-event {
  margin: 12px 0 4px;
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.summary-meta { margin: 0; }

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: .92rem;
  color: var(--ink-soft);
}

.summary-line-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary-rule {
  height: 1px;
  margin: 4px 0;
  background: var(--border);
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.summary-total-value {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary-assure {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: .84rem;
  color: var(--muted);
}

.summary-assure li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.summary-assure li::before {
  content: '';
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* -- confirmation ---------------------------------------------------------- */
.success-hero {
  text-align: center;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.success-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.8rem);
  font-weight: 200;
  margin-bottom: .3em;
}

.success-hero .lede { max-width: 48ch; margin-inline: auto; }

.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  animation: success-pop .42s var(--ease);
}

@keyframes success-pop {
  from { opacity: 0; transform: scale(.82); }
  to   { opacity: 1; transform: none; }
}

.success-order {
  margin: 18px 0 0;
  font-size: .88rem;
  color: var(--muted);
}
.success-order strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .04em;
}

.success-card {
  padding: clamp(22px, 3.4vw, 30px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.success-card-title {
  margin-bottom: 16px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.success-items {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: .94rem;
}

.success-item-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  min-width: 0;
  overflow-wrap: anywhere;
}

.success-item-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.password-card {
  margin-top: 22px;
  padding: clamp(22px, 3.4vw, 30px);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xl);
  background: var(--accent-soft);
}

.password-card h2 {
  margin-bottom: .45em;
  font-size: 1.35rem;
  font-weight: 400;
}

.password-card .btn { margin-top: 18px; }

/* -- ZIP preparation ------------------------------------------------------- */
.zip-shell {
  padding: clamp(26px, 4vw, 40px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
}

.zip-shell h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  margin-bottom: .35em;
}

.zip-shell .lede { max-width: 46ch; margin-inline: auto; }

.zip-progress {
  position: relative;
  height: 8px;
  margin: 30px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
  overflow: hidden;
}

.zip-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #d97706 100%);
  transition: width .4s var(--ease);
}

.zip-count {
  margin: 0;
  font-size: .86rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.zip-state {
  margin-top: 26px;
  padding: 22px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.zip-state h2 {
  margin-bottom: .4em;
  font-size: 1.2rem;
  font-weight: 400;
}

.zip-state p { max-width: 44ch; margin-inline: auto; }

.zip-state .btn { margin: 16px 5px 0; }

/* -- account area ---------------------------------------------------------- */
/* The owned-gallery grid reuses .event-card wholesale; only the recent-orders
   strip below it needs anything of its own. */
.account-block {
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--border);
}

.account-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 18px;
}

.account-section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.account-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.account-order {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 15px 20px;
}

.account-order + .account-order { border-top: 1px solid var(--border); }

.account-order-number {
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
}
.account-order-number:hover { color: var(--accent); text-decoration: none; }

.account-order-date {
  font-size: .86rem;
  color: var(--muted);
}

/* Pushed right on a wide row; falls in line with the rest once it wraps. */
.account-order-total {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* -- checkout progress ----------------------------------------------------- */
/* 1 Your details · 2 Review · 3 Payment. Steps already passed are links back;
   steps ahead are plain text, because the server would only bounce them. */
.checkout-steps { margin-bottom: clamp(18px, 3vw, 28px); }

.checkout-steps-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0;
  padding: 0;
}

.checkout-steps-item { display: flex; align-items: center; }

/* The connector is decoration, so it stays out of the markup. */
.checkout-steps-item + .checkout-steps-item::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 1px;
  margin-right: 4px;
  background: var(--border-strong);
}

.checkout-steps-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 13px 4px 4px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
}

a.checkout-steps-link:hover {
  background: var(--bg-sunken);
  color: var(--ink);
  text-decoration: none;
}

/* Smaller than the .checkout-step-num it borrows its shape from. */
.checkout-steps-num {
  width: 25px;
  height: 25px;
  font-size: .76rem;
}

/* The label never breaks mid-word; the list wraps between steps instead. */
.checkout-steps-label { white-space: nowrap; }

.checkout-steps-item.is-current .checkout-steps-link {
  color: var(--ink);
  font-weight: 500;
}

.checkout-steps-item.is-done .checkout-steps-num {
  background: var(--accent);
  color: #fff;
}

.checkout-steps-item.is-todo .checkout-steps-num {
  background: var(--bg-sunken);
  color: var(--muted-light);
}

/* -- role selector --------------------------------------------------------- */
.role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-option {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease),
              box-shadow .16s var(--ease);
}

/* The native radio stays in the accessibility tree, just out of sight. */
.role-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.role-option::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: border .16s var(--ease);
}

.role-option:hover { border-color: var(--ink); }

.role-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Selection is driven by checkout.js (.is-selected); :has keeps it correct
   even before the script has run. */
.role-option.is-selected,
.role-option:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.role-option.is-selected::before,
.role-option:has(input:checked)::before {
  border: 6px solid var(--accent);
}

/* The two free roles read as a different kind of thing, so they look like one.
   The badge says "Free"; the dashed edge stops it being a surprise. */
.role-option-free { border-style: dashed; }
.role-option-free.is-selected,
.role-option-free:has(input:checked) { border-style: solid; }

.role-option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.role-option-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.role-option-note {
  font-size: .82rem;
  line-height: 1.4;
  color: var(--muted);
}

.free-code { margin-top: 18px; }
.free-code .field { margin-bottom: 0; }

/* -- athletes, which are what set the price -------------------------------- */
.price-per-athlete {
  margin: 0 0 16px;
  font-size: .95rem;
}

.price-per-athlete strong {
  font-weight: 600;
  color: var(--accent);
}

.athlete-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.athlete-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 136px 34px;
  align-items: center;
  gap: 8px;
}

.athlete-field { min-width: 0; }

/* Jerseys are short and often numeric — centred reads better than ragged. */
.athlete-field-jersey .input { text-align: center; }

.athlete-remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--muted-light);
  cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
}

.athlete-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.athlete-add {
  margin-top: 14px;
  padding: 10px 17px;
  background: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.athlete-add:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* The live count and running total. Both are a courtesy — the server prices
   the order again from its own copy of the roster. */
.athlete-tally {
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: .95rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.athlete-tally [data-running-total] {
  font-weight: 600;
  color: var(--ink);
}

/* -- review ---------------------------------------------------------------- */
/* Pushed to the trailing edge of a .checkout-step-head. */
.checkout-step-edit,
.checkout-step-head .badge {
  margin-left: auto;
  white-space: nowrap;
}

.review-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.review-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: .93rem;
}

.review-fact dt { color: var(--muted); }

.review-fact dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.review-fact-email { overflow-wrap: anywhere; }

/* Athlete names are user input and can be one long unbroken string. */
.checkout-step-body .summary-line > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-total {
  padding: 18px clamp(18px, 3vw, 26px);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.review-total .tiny { margin: 6px 0 0; }

.free-panel {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.free-panel-lede {
  font-size: .95rem;
  color: var(--ink-soft);
}

.free-panel .summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* -- payment step ---------------------------------------------------------- */
/* Already reviewed on the step before, so this is a reminder, not a receipt. */
.pay-order-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
  padding: 16px clamp(16px, 3vw, 22px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pay-order-what {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pay-order-event {
  font-size: 1rem;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.pay-order-meta { font-variant-numeric: tabular-nums; }

.pay-order-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: auto;
}

/* Step 3 carries no summary column: Stripe's form takes the full width. */
.checkout-grid:not(:has(.checkout-summary)) {
  grid-template-columns: minmax(0, 1fr);
}


/* -- event & organization -------------------------------------------------- */
/* Names what's being bought inside the flow, not only in the sidebar, so the
   buyer can confirm the school and date without looking away from the form. */
.checkout-org {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.checkout-org-detail { min-width: 0; }

.checkout-org-name {
  margin: 0 0 2px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
}

.checkout-org-event {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* Reads as a meta line, not a bulleted list. */
.checkout-org-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: .88rem;
  color: var(--muted);
}

.checkout-org-meta li { display: flex; align-items: center; gap: 16px; }

.checkout-org-meta li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .checkout-org { gap: 12px; }
  .checkout-org-meta { flex-direction: column; gap: 4px; }
  .checkout-org-meta li + li::before { display: none; }
}

.review-facts-divided {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* -- responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }

  /* On a phone the buyer should see what they're paying for first. */
  .checkout-summary {
    position: static;
    order: -1;
  }

  .summary-media { aspect-ratio: 16 / 7; }
}

@media (max-width: 560px) {
  .checkout-names { grid-template-columns: minmax(0, 1fr); }
  .tip-options { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
  .checkout-identity { flex-direction: column; align-items: flex-start; }
  .zip-state .btn { display: flex; width: 100%; margin-inline: 0; }
  .account-order { padding: 14px 16px; }

  /* Order number on its own line, everything else beneath it. */
  .account-order-number { flex: 0 0 100%; }
  .account-order-total { margin-left: 0; }

  .checkout-steps-link { font-size: .82rem; padding-right: 10px; }
  .checkout-steps-item + .checkout-steps-item::before { width: 10px; }

  /* One role per line — the explanatory note needs the width more than the
     grid needs two columns. */
  .role-options { grid-template-columns: minmax(0, 1fr); }

  /* Name on its own line, then jersey, level and remove beneath it. */
  .athlete-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; }
  .athlete-field-name { grid-column: 1 / -1; }
  .athlete-field-jersey,
  .athlete-field-level { grid-row: 2; }
  .athlete-add { display: block; width: 100%; text-align: center; }

  /* Label above value, both left-aligned, so long emails stop crowding. */
  .review-fact { flex-direction: column; gap: 2px; }
  .review-fact dd { text-align: left; }

  .pay-order-total { margin-left: 0; }
}

/* Payment Element (step 3). .btn-block is defined globally in app.css. */
#payment-element { margin: 8px 0 16px; }

@media (prefers-reduced-motion: reduce) {
  .success-mark { animation: none; }
  .zip-progress-bar { transition: none; }
  .tip-option { transition: none; }
  .role-option,
  .role-option::before,
  .athlete-remove,
  .athlete-add { transition: none; }
}
