/* ═══════════════════════════════════════════════════════════════════
   SR Checkout — Premium two-column layout
   ═══════════════════════════════════════════════════════════════════
   Left:  Shipping / billing / payment form in its own contained card.
   Right: Sticky order summary with line items, qty badges, totals.
   Mobile: Stacks vertically (summary on top, form below).

   Brand color + font accents via CSS custom properties:
     --checkout-accent          (defaults to #2563EB)
     --checkout-accent-hover    (defaults to #1D4ED8)
     --checkout-accent-glow     (defaults to rgba(37,99,235,0.15))
     --checkout-bg              (defaults to #f5f5f0)
     --checkout-text            (defaults to #1a1a1a)
     --checkout-muted           (defaults to #6b7280)
     --checkout-border          (defaults to #e5e7eb)
     --checkout-summary-bg      (defaults to #f9fafb)
     --checkout-input-bg        (defaults to #fff)
     --checkout-font-display    (inherits from brand — headings)
     --checkout-font-body       (inherits from brand — body)
     --checkout-card-bg         (defaults to #fff)
     --checkout-card-shadow     (defaults to a soft elevation)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Full-bleed checkout wrapper ── */
.sr-checkout {
  background: var(--checkout-bg, #f5f5f0);
  color: var(--checkout-text, #1a1a1a);
  min-height: 100vh;
  padding: 48px 24px 96px;
  font-family: var(--checkout-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-checkout *,
.sr-checkout *::before,
.sr-checkout *::after {
  box-sizing: border-box;
}

/* ── Inner container ── */
.sr-checkout__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ── Page header ── */
.sr-checkout__header {
  margin-bottom: 36px;
  padding-bottom: 0;
  border-bottom: none;
}

.sr-checkout__heading {
  font-family: var(--checkout-font-display, var(--checkout-font-body, inherit));
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.sr-checkout__lede {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--checkout-muted, #6b7280);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   Two-column grid — form card left, summary card right
   ══════════════════════════════════════════════════════════════════ */
.sr-checkout__columns {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 960px) {
  .sr-checkout__columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sr-checkout__summary {
    order: -1;
  }
}

/* ══════════════════════════════════════════════════════════════════
   Form column — the card
   ══════════════════════════════════════════════════════════════════ */
.sr-checkout__form-col {
  min-width: 0;
  overflow: hidden;
  background: var(--checkout-card-bg, #fff);
  border-radius: 16px;
  border: 1px solid var(--checkout-border, #e5e7eb);
  padding: 36px 32px 40px;
  box-shadow: var(--checkout-card-shadow,
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 24px rgba(0, 0, 0, 0.045));
}

@media (max-width: 560px) {
  .sr-checkout__form-col {
    padding: 24px 20px 28px;
    border-radius: 12px;
  }
}

/* ── Subscription banner ── */
.sr-checkout__subscribe-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 10px;
  font-size: 14px;
}

/* ── Error block ── */
.sr-checkout__errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 24px;
  list-style: none;
  font-size: 14px;
  color: #dc2626;
  line-height: 1.5;
}

.sr-checkout__errors li + li {
  margin-top: 6px;
}

/* ── Form ── */
.sr-checkout__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ══════════════════════════════════════════════════════════════════
   Section headings — brand-accented dividers
   ══════════════════════════════════════════════════════════════════ */
.sr-checkout__section-heading {
  font-family: var(--checkout-font-display, var(--checkout-font-body, inherit));
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--checkout-text, #1a1a1a);
  margin: 28px 0 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--checkout-accent, #2563EB);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   Form fields — refined, tactile inputs
   ══════════════════════════════════════════════════════════════════ */
.sr-checkout__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sr-checkout__field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--checkout-muted, #374151);
  opacity: 1;
}

.sr-checkout__field input,
.sr-checkout__field select {
  width: 100%;
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--checkout-border, #d1d5db);
  border-radius: 10px;
  background: var(--checkout-input-bg, #fff);
  color: var(--checkout-text, #1a1a1a);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  font-family: inherit;
  -webkit-appearance: none;
  min-width: 0;
}

/* The dropdown popup is drawn by the OS and does NOT reliably inherit
   the select's own background. With `color: #FFFFFF` from
   --checkout-text and a platform-default white popup, every option is
   white on white — the PepRally black-on-black card field in mirror
   image, and just as invisible. Set both explicitly. */
.sr-checkout__field select option {
  background: var(--checkout-input-bg, #fff);
  color: var(--checkout-text, #1a1a1a);
}

/* `-webkit-appearance: none` strips the native arrow, so the country
   select has been rendering as something indistinguishable from a text
   box. A control that does not look like a dropdown does not get used
   like one. Inline SVG as a data URI — a strict CSP blocks external
   images, and this must never depend on one. */
.sr-checkout__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.sr-checkout__field input:hover,
.sr-checkout__field select:hover {
  border-color: color-mix(in srgb, var(--checkout-accent, #2563EB), transparent 60%);
}

.sr-checkout__field input:focus,
.sr-checkout__field select:focus {
  outline: none;
  border-color: var(--checkout-accent, #2563EB);
  box-shadow: 0 0 0 3.5px var(--checkout-accent-glow, rgba(37, 99, 235, 0.13));
}

.sr-checkout__field input::placeholder {
  color: var(--checkout-muted, #b0b0b0);
}

/* ── The states the BROWSER controls ──────────────────────────────
   Everything above styles the field. None of it reaches the three
   states Chrome owns, which is why a correctly-themed dark form was
   still unreadable while being used.

   1. AUTOFILL. Chrome paints its own near-white background over any
      field it fills and ignores `background` entirely. A large inset
      box-shadow is the only property that repaints it, and
      -webkit-text-fill-color the only one that repaints the value.
      Without both, PepRally's #22222e field turned white mid-checkout
      — intermittently, because it only happens on autofill, which is
      what made it look random.

   2. SELECTION. ::selection was not defined anywhere in this codebase.
      Highlighting your own text fell back to the UA default, close to
      invisible on a dark field.

   3. CARET. Never set, so the cursor was whatever the browser guessed.

   All token-driven: brands run from #22222e (PepRally) to #ffffff
   (BacWater, Glam, MyPeptides), so a literal here would just move the
   bug to the other half of the catalogue.                          */

.sr-checkout__field input:-webkit-autofill,
.sr-checkout__field input:-webkit-autofill:hover,
.sr-checkout__field input:-webkit-autofill:focus,
.sr-checkout__field select:-webkit-autofill {
  -webkit-box-shadow: inset 0 0 0 1000px var(--checkout-input-bg, #fff);
  box-shadow: inset 0 0 0 1000px var(--checkout-input-bg, #fff);
  -webkit-text-fill-color: var(--checkout-text, #1a1a1a);
  caret-color: var(--checkout-text, #1a1a1a);
  transition: background-color 5000s ease-in-out 0s;
}

.sr-checkout__field input,
.sr-checkout__field select,
.sr-checkout__field textarea {
  caret-color: var(--checkout-accent, #2563EB);
}

.sr-checkout__field input::selection,
.sr-checkout__field textarea::selection {
  background: var(--checkout-accent, #2563EB);
  color: #fff;
}

.sr-checkout__field input::-moz-selection,
.sr-checkout__field textarea::-moz-selection {
  background: var(--checkout-accent, #2563EB);
  color: #fff;
}

/* ── Checkbox label ── */
.sr-checkout__checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--checkout-text, #1a1a1a);
  user-select: none;
}

.sr-checkout__checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--checkout-accent, #2563EB);
  cursor: pointer;
  flex-shrink: 0;
}

/* Row — inline fields */
.sr-checkout__row {
  display: flex;
  gap: 14px;
}

/* Proportional field sizing — state & zip don't need full width */
/* Was 80px — enough for the two characters a text input held, and far
   too narrow for a <select> showing "District of Columbia". A select
   clips its selected label rather than scrolling it, so at 80px the
   customer cannot read what they picked. */
.sr-checkout__row .sr-checkout__field--state {
  flex: 0 0 170px;
  max-width: 170px;
}

.sr-checkout__row .sr-checkout__field--zip {
  flex: 0 0 110px;
  max-width: 110px;
}

.sr-checkout__row .sr-checkout__field--cvv {
  flex: 0 0 90px;
  max-width: 90px;
}

.sr-checkout__row .sr-checkout__field--exp {
  flex: 0 0 90px;
  max-width: 90px;
}

@media (max-width: 560px) {
  .sr-checkout__row {
    flex-direction: column;
  }
  .sr-checkout__row .sr-checkout__field--state,
  .sr-checkout__row .sr-checkout__field--zip,
  .sr-checkout__row .sr-checkout__field--cvv,
  .sr-checkout__row .sr-checkout__field--exp {
    flex: 1 1 auto;
    max-width: none;
  }
}

/* ── NMI card frames ── */
.sr-checkout__card-frame {
  min-height: 48px;
  border: 1.5px solid var(--checkout-border, #d1d5db);
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--checkout-input-bg, #fff);
  transition: border-color 180ms ease;
}

.sr-checkout__card-frame:focus-within {
  border-color: var(--checkout-accent, #2563EB);
  box-shadow: 0 0 0 3.5px var(--checkout-accent-glow, rgba(37, 99, 235, 0.13));
}

/* ── Payment method tabs (Card / Zelle / Venmo / CashApp) ── */
.sr-checkout__payment-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sr-checkout__pay-tab {
  flex: 1;
  min-width: 80px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--checkout-border, #d1d5db);
  background: transparent;
  color: var(--checkout-muted, #6b7280);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
}

.sr-checkout__pay-tab--active {
  border: 2px solid var(--checkout-accent, #2563EB);
  background: var(--checkout-accent-glow, rgba(37, 99, 235, 0.1));
  color: var(--checkout-text, #111111);
}

/* ── Manual payment info box ── */
.sr-checkout__manual-info {
  display: none;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.sr-checkout__manual-info-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: #22c55e;
  font-weight: 600;
}

.sr-checkout__manual-info-desc {
  margin: 0;
  font-size: 13px;
  color: var(--checkout-muted, #6b7280);
  line-height: 1.6;
}

.sr-checkout__manual-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--checkout-muted, #6b7280);
  text-align: center;
}

/* ── Secure note ── */
.sr-checkout__secure-note {
  font-size: 13px;
  color: var(--checkout-muted, #6b7280);
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ── Submit area ── */
.sr-checkout__actions {
  margin-top: 20px;
}

/* ══════════════════════════════════════════════════════════════════
   Submit button — bold, confident, brand-tinted
   ══════════════════════════════════════════════════════════════════ */
.sr-checkout__submit {
  display: block;
  width: 100%;
  padding: 18px 28px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.015em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 80ms ease,
    box-shadow 180ms ease;
  background: var(--checkout-accent, #2563EB);
  color: #fff;
  font-family: inherit;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.10),
    0 6px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  text-align: center;
}

.sr-checkout__submit:hover {
  background: var(--checkout-accent-hover, #1D4ED8);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.14),
    0 8px 30px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.sr-checkout__submit:active {
  transform: translateY(0) scale(0.995);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.sr-checkout__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════════
   Order summary column — sticky card, clear visual hierarchy
   ══════════════════════════════════════════════════════════════════ */
.sr-checkout__summary {
  background: var(--checkout-summary-bg, #f9fafb);
  border: 1px solid var(--checkout-border, #e5e7eb);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 24px;
  box-shadow: var(--checkout-card-shadow,
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 24px rgba(0, 0, 0, 0.045));
}

@media (max-width: 560px) {
  .sr-checkout__summary {
    border-radius: 12px;
    padding: 20px;
  }
}

.sr-checkout__summary-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--checkout-border, #e5e7eb);
}

.sr-checkout__summary-heading {
  font-family: var(--checkout-font-display, var(--checkout-font-body, inherit));
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.sr-checkout__edit-cart {
  font-size: 13px;
  font-weight: 500;
  color: var(--checkout-accent, #2563EB);
  text-decoration: none;
  white-space: nowrap;
}

.sr-checkout__edit-cart:hover {
  text-decoration: underline;
}

.sr-checkout__summary-items {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.sr-checkout__summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--checkout-border, rgba(0, 0, 0, 0.06));
}

.sr-checkout__summary-item:last-child {
  border-bottom: none;
}

/* ── Product image with quantity badge ── */
.sr-checkout__summary-item-img {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  /* NO overflow:hidden — qty badge floats above the corner */
  border: 1px solid var(--checkout-border, #e5e7eb);
  background: #fff;
}

.sr-checkout__summary-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

/* Quantity badge — floats above top-right corner (Shopify style) */
.sr-checkout__summary-item-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--checkout-accent, #2563EB);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.sr-checkout__summary-item-info {
  flex: 1;
  min-width: 0;
}

.sr-checkout__summary-item-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--checkout-text, #1a1a1a);
}

.sr-checkout__summary-item-dose {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--checkout-muted, #6b7280);
}

.sr-checkout__summary-item-unit {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--checkout-muted, #6b7280);
}

.sr-checkout__summary-item-total {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--checkout-text, #1a1a1a);
}

/* ── Totals — clear hierarchy, prominent total ── */
.sr-checkout__summary-totals {
  border-top: 1px solid var(--checkout-border, #e5e7eb);
  padding-top: 16px;
}

.sr-checkout__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  color: var(--checkout-muted, #4b5563);
}

.sr-checkout__summary-row strong {
  color: var(--checkout-text, #1a1a1a);
}

.sr-checkout__summary-row--discount {
  color: #059669;
}

.sr-checkout__summary-row--discount strong {
  color: #059669;
}

.sr-checkout__summary-row--total {
  border-top: 2px solid var(--checkout-border, #d1d5db);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--checkout-text, #1a1a1a);
}

.sr-checkout__summary-row--total strong {
  font-size: 20px;
}

.sr-checkout__shipping-value {
  color: #059669;
  font-weight: 600;
}

/* ── Security / trust strip at bottom of summary ── */
.sr-checkout__summary-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(5, 150, 105, 0.06);
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #059669;
}

/* ══════════════════════════════════════════════════════════════════
   Trust strip — payment badges below form actions
   ══════════════════════════════════════════════════════════════════ */
.checkout-payment-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 4px;
  padding: 12px 0;
  opacity: 0.55;
}

.checkout-payment-trust-strip img,
.checkout-payment-trust-strip svg {
  height: 20px;
  width: auto;
}

/* ══════════════════════════════════════════════════════════════════
   Confirmation page — reuses checkout wrapper + card treatment
   ══════════════════════════════════════════════════════════════════ */
.sr-checkout__confirm-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--checkout-border, #e5e7eb);
}

.sr-checkout__confirm-detail {
  margin: 0;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sr-checkout__confirm-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--checkout-muted, #6b7280);
}

.sr-checkout__confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.sr-checkout__confirm-td {
  padding: 10px 0;
  border-top: 1px solid var(--checkout-border, rgba(0, 0, 0, 0.08));
  font-size: 14px;
}

.sr-checkout__confirm-td--right {
  text-align: right;
  font-weight: 600;
}

.sr-checkout__confirm-total-row .sr-checkout__confirm-td {
  border-top: 2px solid var(--checkout-border, #d1d5db);
  font-weight: 700;
  font-size: 18px;
  padding-top: 14px;
}

.sr-checkout__confirm-email-note {
  font-size: 13px;
  color: var(--checkout-muted, #6b7280);
  margin: 20px 0 0;
  line-height: 1.6;
}

.sr-checkout__confirm-address {
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}

/* Subscription upsell card */
.sr-checkout__confirm-upsell {
  margin-top: 24px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--checkout-border, rgba(0, 0, 0, 0.08));
  background: var(--checkout-card-bg, #fff);
  text-align: center;
}

.sr-checkout__confirm-upsell-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--checkout-font-display, inherit);
}

.sr-checkout__confirm-upsell-body {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--checkout-muted, #6b7280);
  line-height: 1.5;
}

.sr-checkout__confirm-upsell-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--checkout-accent, #2563EB);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 180ms ease;
}

.sr-checkout__confirm-upsell-cta:hover {
  background: var(--checkout-accent-hover, #1D4ED8);
}

/* Active subscription badge */
.sr-checkout__confirm-sub-active {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 8px;
  text-align: center;
}

.sr-checkout__confirm-sub-active p {
  margin: 0;
  font-size: 14px;
  color: #166534;
}

/* Continue shopping CTA — centered below columns */
.sr-checkout__confirm-actions {
  text-align: center;
  margin: 32px 0 0;
}

.sr-checkout__confirm-actions .sr-checkout__submit {
  display: inline-block;
  width: auto;
  min-width: 240px;
  text-align: center;
  text-decoration: none;
}

/* ── These two CTAs are ANCHORS, and an anchor loses its own colour ──
   Operator, 2026-09-01, after his first completed PepRally order:
   "order confirmation page buttons are orange on orange."

   Both rules declare `color: #fff` at specificity (0,1,0). Every brand
   sheet carries a generic `.brand a { color: var(--color-accent) }` at
   (0,1,1), so the anchor colour WINS and `#fff` is silently discarded.
   When the brand accent is also the button background — PepRally's
   ember on `--checkout-accent` — that is identical text and background.

   `.sr-checkout__confirm-actions .sr-checkout__submit` above is (0,2,0)
   and would have won, but it sets no colour, so it rescued nothing.

   Ancestor + `a` qualifier gives (0,2,1), which beats the brand link
   rule regardless of stylesheet load order — the shared sheet must not
   depend on being imported after five brand sheets it does not control.

   Third occurrence of this exact defect: the cart CTA, the cart drawer,
   and now here. Grepping proves a rule EXISTS, not that it APPLIES —
   only resolving the cascade does, which means a browser. */
.sr-checkout__confirm-actions a.sr-checkout__submit,
.sr-checkout__confirm-upsell a.sr-checkout__confirm-upsell-cta {
  color: #fff;
}

.sr-checkout__confirm-actions a.sr-checkout__submit:hover,
.sr-checkout__confirm-upsell a.sr-checkout__confirm-upsell-cta:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Coupon input on checkout summary ── */
.sr-checkout__coupon {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--checkout-border, #e5e7eb);
}
.sr-checkout__coupon-form {
  display: flex;
  gap: 8px;
}
.sr-checkout__coupon-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--checkout-border, #d1d5db);
  border-radius: 6px;
  background: var(--checkout-input-bg, #fff);
  color: var(--checkout-text, #1a1a1a);
}
.sr-checkout__coupon-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: var(--checkout-accent, #2563EB);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sr-checkout__coupon-btn:hover {
  opacity: 0.9;
}
