/* KremCRM PUBLIC PAY PAGES (redesign 2026-11-10, Design A).
   One template for every business. Brand values arrive from CRM branding:
     --pay-accent   the business colour (PrimaryColor), set inline by PayPageController.Html()
     logo           an <img> (LogoUrl), never a CSS url
     name           text (Name)
   Everything else is a calm neutral default that suits any clinic or shop.
   Rules: 44px+ targets, labels above fields, errors under fields, AA contrast, no card fields on our pages. */

/* ---------- fonts: self-hosted in wwwroot/pay/fonts (CSP font-src falls back to 'self') ---------- */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/figtree-var.woff2") format("woff2"); }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/marcellus.woff2") format("woff2"); }

:root {
  /* FROM BRANDING (the only required one). Must give 4.5:1 with white text. */
  --pay-accent: #1F385F;
  /* derived from the accent, never set by hand */
  --pay-accent-ink: #ffffff;
  --pay-accent-deep: color-mix(in srgb, var(--pay-accent) 78%, #000);
  --pay-accent-soft: color-mix(in srgb, var(--pay-accent) 7%, #fff);
  --pay-accent-line: color-mix(in srgb, var(--pay-accent) 24%, #fff);
  /* template neutrals (warm paper, ink) */
  --pay-bg: #F6F2E9;
  --pay-panel: #ffffff;
  --pay-ink: #121B24;
  --pay-body: #3F4650;
  --pay-muted: #625D5F;
  --pay-line: #E3DCCF;
  --pay-field: #8E877C;
  --pay-error: #A3261B;
  --pay-error-soft: #FBEEEC;
  --pay-ok: #2E6B4F;
  --pay-test: #7A4E00;
  --pay-badge-bg: #121B24;
  --pay-badge-ink: #F6F2E9;
  /* type */
  --pay-font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pay-display: "Marcellus", Georgia, "Times New Roman", serif;
  /* shape */
  --pay-r: 6px;
  --pay-r-lg: 14px;
  --pay-shadow: 0 1px 2px rgba(18, 27, 36, .04), 0 12px 32px -12px rgba(18, 27, 36, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pay-bg); color: var(--pay-ink); font: 16px/1.55 var(--pay-font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--pay-accent); text-underline-offset: 3px; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--pay-accent); outline-offset: 3px; }
[hidden] { display: none !important; } /* a hidden field or terms box stays hidden whatever its display rule */
.pay-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---------- TEST MODE banner ---------- */
/* In the page flow at the very top, never stuck over content (Design parity 2026-11-10: sticky sat over the form after the scroll to the first error). */
.pay-test { position: relative; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 16px;
  background: repeating-linear-gradient(135deg, var(--pay-test) 0 14px, #6B4400 14px 28px); color: #fff; font-size: 14px; font-weight: 500; text-align: center; }
.pay-test strong { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; background: #fff; color: var(--pay-test); padding: 3px 8px; border-radius: 3px; }

/* ---------- brand bar ---------- */
.pay-top { background: var(--pay-bg); border-bottom: 1px solid var(--pay-line); }
.pay-top__in { max-width: 1040px; margin: 0 auto; padding: 12px 20px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pay-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pay-logo { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.pay-brand__name { font-family: var(--pay-display); font-size: 17px; line-height: 1.2; color: var(--pay-ink); }
.pay-logo + .pay-brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* the logo already says it */
.pay-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pay-muted); white-space: nowrap; }
.pay-secure svg { width: 16px; height: 16px; color: var(--pay-ok); }
@media (min-width: 900px) { .pay-top__in { padding: 16px 32px; min-height: 76px; } .pay-logo { height: 42px; } }

/* ---------- page frame ---------- */
.pay-main { max-width: 1040px; margin: 0 auto; padding: 20px 20px 48px; }
@media (min-width: 900px) { .pay-main { padding: 48px 32px 72px; } }
.pay-foot { border-top: 1px solid var(--pay-line); color: var(--pay-muted); font-size: 14px; }
.pay-foot__in { max-width: 1040px; margin: 0 auto; padding: 20px 20px 96px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.pay-foot a { color: var(--pay-ink); font-weight: 600; }
@media (min-width: 900px) { .pay-foot__in { padding: 24px 32px 32px; } }

/* ---------- product page layout ---------- */
.pp { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .pp { grid-template-columns: minmax(0, 1fr) 470px; gap: 64px; align-items: start; }
  .pp-hero { position: sticky; top: 48px; padding-top: 8px; }
}

/* ---------- the gift card visual (CSS, branded) ---------- */
.gcard { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1.586; border-radius: 16px; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(0, 0, 0, .28), transparent 60%),
    linear-gradient(135deg, var(--pay-accent), var(--pay-accent-deep));
  box-shadow: 0 2px 4px rgba(18, 27, 36, .10), 0 24px 48px -18px rgba(18, 27, 36, .45); }
.gcard::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; pointer-events: none; }
.gcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .10) 50%, transparent 60%); }
.gcard__logo { position: absolute; left: 26px; top: 24px; height: 30%; max-height: 64px; max-width: 58%; width: auto; object-fit: contain; object-position: left center;
  filter: brightness(0) invert(1); opacity: .95; } /* turns a dark logo white; a business with a colour logo gets CardImageUrl or LogoOnDarkUrl later */
.gcard__badge { position: absolute; right: 22px; top: 22px; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--pay-ink);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.gcard__foot { position: absolute; left: 26px; right: 26px; bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.gcard__label { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .9; padding-bottom: 8px; }
.gcard__value { font-family: var(--pay-display); font-size: clamp(48px, 15vw, 68px); line-height: .9; letter-spacing: -.01em; }
.gcard__value sup { font-size: .45em; vertical-align: top; position: relative; top: .18em; margin-right: 2px; }
.gcard--image { background-size: cover; background-position: center; } /* CardImageUrl set as inline background-image */
.gcard--sm { max-width: 220px; border-radius: 12px; box-shadow: 0 16px 32px -16px rgba(18, 27, 36, .45); }
.gcard--sm::before { inset: 7px; border-radius: 7px; }
.gcard--sm .gcard__logo { left: 16px; top: 14px; height: 32%; }
.gcard--sm .gcard__foot { left: 16px; right: 16px; bottom: 12px; }
.gcard--sm .gcard__label { font-size: 9px; padding-bottom: 0; }

.pp-hero .gcard { margin: 4px auto 24px; }
@media (min-width: 900px) { .pp-hero .gcard { margin: 0 0 36px; transform: rotate(-1.5deg); } }

/* ---------- title + offer ---------- */
.pp-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--pay-muted); }
.pp-title { margin: 0; font-family: var(--pay-display); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--pay-ink); }
@media (min-width: 900px) { .pp-title { font-size: 46px; } }
.pp-offer { margin: 16px 0 0; padding: 16px 18px; border-radius: var(--pay-r-lg); background: var(--pay-accent-soft); border: 1px solid var(--pay-accent-line); }
.pp-offer__badge { display: inline-block; margin-bottom: 8px; padding: 5px 10px; border-radius: 999px; background: var(--pay-badge-bg); color: var(--pay-badge-ink);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pp-offer__line { margin: 0; font-family: var(--pay-display); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--pay-accent); }
.pp-offer__note { margin: 4px 0 0; color: var(--pay-body); font-size: 15px; }
.pp-offer__ends { margin: 6px 0 0; color: var(--pay-muted); font-size: 14px; font-weight: 600; }
.pp-desc { margin: 18px 0 0; color: var(--pay-body); white-space: pre-line; }

/* ---------- the form panel ---------- */
.pay-panel { background: var(--pay-panel); border: 1px solid var(--pay-line); border-radius: var(--pay-r-lg); box-shadow: var(--pay-shadow); padding: 24px 20px; }
@media (min-width: 900px) { .pay-panel { padding: 32px; } }
.pp-form { display: grid; gap: 0; margin: 0 -4px; }
@media (min-width: 900px) { .pp-form { margin: 0; } }
.pp-sec + .pp-sec { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--pay-line); }
.pp-h { margin: 0 0 4px; font-family: var(--pay-display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.pp-help { margin: 0 0 16px; color: var(--pay-muted); font-size: 14px; }

/* fields */
.pay-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.pay-field label, .pay-label { font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--pay-ink); }
.pay-opt { font-weight: 400; color: var(--pay-muted); }
.pay-field input, .pay-field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--pay-field); border-radius: var(--pay-r); background: #fff; color: var(--pay-ink); font: inherit; font-size: 16px; }
.pay-field select { appearance: none; padding-right: 40px;
  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 d='M1 1.5l5 5 5-5' fill='none' stroke='%23625D5F' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.pay-field input:focus, .pay-field select:focus { outline: none; border-color: var(--pay-accent); box-shadow: 0 0 0 3px var(--pay-accent-line); }
.pay-field small { margin-top: 6px; color: var(--pay-muted); font-size: 14px; }
.pay-field .pay-field__err { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; color: var(--pay-error); font-size: 14px; font-weight: 600; }
.pay-field__err svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }
.pay-field.is-bad input, .pay-field.is-bad select { border-color: var(--pay-error); background: var(--pay-error-soft); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-row > .pay-field { min-width: 0; }

/* quantity stepper */
.pay-step { display: inline-grid; grid-template-columns: 56px 80px 56px; height: 56px; border: 1px solid var(--pay-field); border-radius: var(--pay-r); overflow: hidden; background: #fff; }
.pay-step button { border: 0; background: #fff; color: var(--pay-accent); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pay-step button:hover { background: var(--pay-accent-soft); }
.pay-step button:disabled { color: #9A9395; background: #F3F0EA; cursor: default; }
.pay-step button svg { width: 22px; height: 22px; }
.pay-step input { width: 100%; border: 0; border-left: 1px solid var(--pay-field); border-right: 1px solid var(--pay-field); text-align: center; font: inherit; font-size: 20px; font-weight: 700; color: var(--pay-ink); -moz-appearance: textfield; appearance: textfield; }
.pay-step input::-webkit-outer-spin-button, .pay-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-step input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pay-accent); }
.pp-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pp-qty__each { color: var(--pay-muted); font-size: 15px; }

/* live summary: what they pay, nothing else */
.pay-sum { margin-top: 18px; border-radius: var(--pay-r-lg); background: var(--pay-accent-soft); border: 1px solid var(--pay-accent-line); padding: 16px 18px; }
.pay-sum__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--pay-body); padding: 2px 0; }
.pay-sum__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--pay-accent-line); }
.pay-sum__total span { font-weight: 600; font-size: 16px; }
.pay-sum__total strong { font-family: var(--pay-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--pay-ink); }
.pay-sum__total small { font-family: var(--pay-font); font-size: 14px; color: var(--pay-muted); margin-left: 4px; }
.pay-sum__first .pay-sum__total { margin-top: 0; padding-top: 0; border-top: 0; } /* no lines above it (tax 0) */

/* ticks */
.pay-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15px; color: var(--pay-body); }
.pay-check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pay-accent); cursor: pointer; }
.pay-check a, .pay-linkbtn { color: var(--pay-accent); font-weight: 600; text-decoration: underline; }
.pay-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pay-terms-text { white-space: pre-line; max-height: 260px; overflow: auto; margin: 4px 0 8px 34px; padding: 12px 14px; border: 1px solid var(--pay-line); border-radius: var(--pay-r); background: #FBF9F5; font-size: 14px; color: var(--pay-body); }
.pay-check--bad input { outline: 2px solid var(--pay-error); outline-offset: 2px; }
.pay-check__err { display: flex; gap: 6px; align-items: flex-start; margin: -4px 0 8px 34px; color: var(--pay-error); font-size: 14px; font-weight: 600; }
.pay-check__err svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }

/* the button + its lock line */
.pay-cta { margin-top: 20px; }
.pay-button { width: 100%; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 10px 20px; border: 0; border-radius: var(--pay-r);
  background: var(--pay-accent); color: var(--pay-accent-ink); font: inherit; font-size: 17px; font-weight: 700; line-height: 1.25; cursor: pointer;
  box-shadow: 0 10px 22px -12px var(--pay-accent); transition: background .15s; }
.pay-button:hover { background: var(--pay-accent-deep); }
a.pay-button { text-decoration: none; }
.pay-button__amt { font-size: 14px; font-weight: 500; opacity: .92; }
.pay-button--row { flex-direction: row; justify-content: space-between; }
.pay-button--row .pay-button__amt { font-size: 17px; font-weight: 700; opacity: 1; }
@media (min-width: 900px) { .pay-button--split { flex-direction: row; justify-content: space-between; padding: 12px 24px; } .pay-button--split .pay-button__amt { font-size: 17px; font-weight: 700; opacity: 1; } }
.pay-button--center { justify-content: center; }
.pay-button[disabled] { opacity: .75; cursor: progress; }
.pay-button--ghost { background: transparent; color: var(--pay-accent); box-shadow: inset 0 0 0 1.5px var(--pay-accent); justify-content: center; }
.pay-button--ghost:hover { background: var(--pay-accent-soft); }
.pay-lock { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; color: var(--pay-body); }
.pay-lock svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--pay-ok); margin-top: 1px; }
.pay-error { margin: 12px 0 0; color: var(--pay-error); font-weight: 600; font-size: 15px; }
.pay-error:empty { display: none; }

/* phone: sticky pay bar once the summary scrolls away (pay.js toggles .is-on) */
.pay-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--pay-line); box-shadow: 0 -10px 24px -14px rgba(18, 27, 36, .3); transform: translateY(110%); visibility: hidden; transition: transform .2s, visibility .2s; }
.pay-bar.is-on { transform: none; visibility: visible; }
.pay-bar .pay-button { min-height: 52px; box-shadow: none; }
@media (min-width: 900px) { .pay-bar { display: none; } }

/* ---------- status pages (hand-off, confirming, receipt, errors, unavailable) ---------- */
.pay-state { max-width: 560px; margin: 0 auto; text-align: center; }
.pay-state .pay-panel { text-align: left; }
.pay-state__icon { width: 64px; height: 64px; margin: 8px auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--pay-accent-soft); color: var(--pay-accent); border: 1px solid var(--pay-accent-line); }
.pay-state__icon svg { width: 28px; height: 28px; }
.pay-state__icon--ok { background: var(--pay-accent); color: var(--pay-accent-ink); border-color: var(--pay-accent); }
.pay-state__icon--bad { background: var(--pay-error-soft); color: var(--pay-error); border-color: #EBC9C4; }
.pay-state__icon--wait { background: #F1ECE2; color: var(--pay-muted); border-color: var(--pay-line); }
.pay-state__kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pay-accent); }
.pay-state h1 { margin: 0; font-family: var(--pay-display); font-weight: 400; font-size: 30px; line-height: 1.15; }
@media (min-width: 900px) { .pay-state h1 { font-size: 38px; } }
.pay-state__lede { margin: 12px auto 0; max-width: 440px; color: var(--pay-body); font-size: 17px; }
.pay-state__lede strong { color: var(--pay-ink); }
.pay-state .pay-panel { margin-top: 28px; }
.pay-actions { display: grid; gap: 12px; margin-top: 24px; }

/* spinner (confirming, hand-off) */
.pay-spin { width: 64px; height: 64px; margin: 8px auto 18px; border-radius: 50%; border: 3px solid var(--pay-accent-line); border-top-color: var(--pay-accent); animation: pay-spin 1s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-progress { height: 4px; border-radius: 4px; background: var(--pay-accent-line); overflow: hidden; margin: 28px auto 0; max-width: 260px; }
.pay-progress::before { content: ""; display: block; height: 100%; width: 40%; background: var(--pay-accent); border-radius: 4px; animation: pay-slide 1.2s ease-in-out infinite; }
@keyframes pay-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* hand-off: brand -> lock */
.pay-hand { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 22px; }
.pay-hand__logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.pay-hand__arrow { width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--pay-field) 0 6px, transparent 6px 10px); }
.pay-hand__lock { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--pay-ok); color: #fff; }
.pay-hand__lock svg { width: 24px; height: 24px; }
.pay-amount { margin: 22px 0 0; font-size: 15px; color: var(--pay-muted); }
.pay-amount strong { display: block; font-family: var(--pay-display); font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--pay-ink); }
.pay-steps { list-style: none; display: inline-grid; gap: 10px; margin: 20px auto 0; padding: 0; text-align: left; font-size: 15px; color: var(--pay-body); }
.pay-steps li { display: flex; gap: 12px; align-items: center; }
.pay-steps b { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pay-accent-soft); color: var(--pay-accent); border: 1px solid var(--pay-accent-line); font-size: 14px; }
.pay-hand-note { margin: 22px 0 0; font-size: 14px; color: var(--pay-muted); }

/* order summary rows (receipt, confirming, errors) */
.pay-order { display: flex; gap: 16px; align-items: center; }
.pay-order .gcard { flex: 0 0 120px; max-width: 120px; }
.pay-order .gcard--sm .gcard__value { font-size: 26px; }
.pay-order .gcard--sm .gcard__label { display: none; }
.pay-order__what { font-weight: 700; font-size: 17px; }
.pay-order__sub { color: var(--pay-muted); font-size: 14px; }
.pay-dl { margin: 18px 0 0; display: grid; }
.pay-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--pay-line); font-size: 15px; }
.pay-dl dt { color: var(--pay-muted); }
.pay-dl dd { margin: 0; font-weight: 600; text-align: right; color: var(--pay-ink); }
.pay-dl .pay-dl__total dd { font-family: var(--pay-display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.pay-testtag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--pay-test); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; vertical-align: 2px; }
.pay-note { margin: 16px 0 0; font-size: 14px; color: var(--pay-body); }

/* receipt hero card */
.pay-receipt-card { display: flex; justify-content: center; margin: 26px 0 4px; }
.pay-receipt-card .gcard { max-width: 200px; transform: rotate(-2deg); }
.pay-receipt-card .gcard .gcard__logo { height: 26%; }
.pay-receipt-card .pay-times { align-self: center; margin-left: 14px; font-size: 18px; font-weight: 700; color: var(--pay-ink); }

/* what happens next */
.pay-next { margin-top: 16px; padding: 18px 20px; border-radius: var(--pay-r-lg); background: var(--pay-accent-soft); border: 1px solid var(--pay-accent-line); text-align: left; }
.pay-next h2 { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pay-accent); }
.pay-next p { margin: 0; color: var(--pay-ink); }

/* contact card (declined, unavailable, receipt footer) */
.pay-contact { display: grid; gap: 10px; margin-top: 16px; }
.pay-panel > .pay-contact:first-child { margin-top: 0; }
.pay-contact a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border: 1px solid var(--pay-line); border-radius: var(--pay-r); background: #fff; color: var(--pay-ink); text-decoration: none; font-weight: 600; text-align: left; }
.pay-contact a:hover { border-color: var(--pay-accent); }
.pay-contact svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--pay-accent); }
.pay-contact small { display: block; font-weight: 400; color: var(--pay-muted); font-size: 13px; }
.pay-back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 18px; font-weight: 600; }
.pay-reason { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--pay-r); background: var(--pay-error-soft); color: var(--pay-error); font-weight: 600; font-size: 15px; text-align: left; }

/* turnstile host (Live mode only) */
.pay-botcheck { margin: 0 0 16px; display: flex; justify-content: center; }

@media print { .pay-test, .pay-top .pay-secure, .pay-actions, .pay-bar, .pay-foot { display: none; } body { background: #fff; } .pay-panel { box-shadow: none; } }

/* a non-gift product's own image (pay.js; a gift card uses the drawn card instead) */
.pp-image { width: 100%; max-width: 420px; border-radius: var(--pay-r-lg); margin: 4px auto 24px; }

/* a quote in flight (pay.js): the total dims until the newest answer lands */
.pay-sum.is-updating .pay-sum__total strong, .pay-sum.is-updating .pay-sum__row { opacity: .45; transition: opacity .15s; }
/* a payment already in progress from this browser (pay.js, QA F2) */
.pay-resume { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--pay-r-lg); background: #FFF6E5; border: 1px solid #E8CF9C; color: var(--pay-ink); font-size: 15px; }
.pay-resume p { margin: 0 0 6px; font-weight: 600; }
.pay-resume .pay-linkbtn { min-height: 44px; display: inline-flex; align-items: center; }
