/* One centre line, one continuous amount from selection to bank handoff. */
:root { --amount-flight-duration: 820ms; --payment-reveal-duration: 460ms; --amount-accessory-delay:40ms; }
.amount-value { display:inline-flex; align-items:center; justify-content:center; gap:.22em; flex:none; white-space:nowrap; line-height:inherit; letter-spacing:inherit; }
body[data-step="3"] .app-shell { height:100svh; min-height:0; }
body[data-step="3"] main { display:block; min-height:0; overflow-y:auto; overflow-x:clip; scrollbar-gutter:stable both-edges; }
body[data-step="3"] .step-viewport { min-height:100%; }
.screen-payment { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; width:100%; max-width:1020px; min-height:100%; height:auto; gap:0; margin:0 auto; padding:20px 0 16px; text-align:center; }
.payment-heading { width:100%; }
.payment-heading h1 { font-family:var(--font-display); font-weight:500; font-size:32px; line-height:1.3; letter-spacing:-.045em; margin:0; }
.payment-context { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:4px; color:var(--muted); font-size:12px; line-height:20px; }
.payment-context button { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:0 3px; background:transparent; color:inherit; border-radius:6px; }
.payment-context button:hover { color:var(--text); }
.payment-context svg { width:12px; height:12px; color:var(--subtle); }
.payment-total { width:100%; min-width:0; margin-top:clamp(68px,calc(8svh + 20px),100px); }
.summary-total { display:inline-flex; flex-direction:column; align-items:center; max-width:100%; padding:0; margin:0; border:0; border-radius:16px; background:transparent; color:var(--text); }
.payment-value { font-family:var(--font-display); font-weight:500; font-size:clamp(64px,8.6vw,116px); line-height:1.15; letter-spacing:-.065em; font-variant-numeric:tabular-nums; }
.summary-edit { display:inline-flex; align-items:center; gap:6px; min-height:28px; margin-top:4px; color:var(--subtle); font-size:11px; line-height:18px; transition:color var(--control-duration); }
.summary-edit svg { width:12px; height:12px; }
.summary-total:hover .summary-edit { color:var(--lavender); }
.payment-deck { width:min(100%,440px); min-width:0; margin:18px auto 0; }
.payment-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0; border:0; border-radius:0; background:transparent; isolation:auto; }
.payment-methods>.method-choice { position:relative; display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:56px; padding:12px 20px; border:1px solid var(--line); border-radius:18px; background:transparent; color:var(--muted); font-size:14px; line-height:20px; transition:background var(--control-duration),border-color var(--control-duration),color var(--control-duration),transform var(--control-duration) var(--ease-out); }
.method-choice>svg { width:20px; height:20px; flex-shrink:0; }
.payment-methods>.method-choice[aria-selected="true"] { color:var(--text); border-color:var(--lavender); background:rgba(var(--goal-rgb),.075); }
.method-choice:hover { border-color:var(--muted); }
.method-choice:active { transform:scale(.98); }
.method-check { position:absolute; right:8px; top:5px; font-size:10px; line-height:14px; color:var(--lavender); opacity:0; transform:scale(.5); transition:opacity 180ms,transform 250ms var(--ease-pop); }
.method-choice[aria-selected="true"] .method-check { opacity:1; transform:scale(1); }
.payment-guidance { min-height:62px; padding-top:12px; }
.checkout-panel { color:var(--muted); font-size:13px; line-height:1.65; text-align:center; }
.checkout-panel strong { font-weight:600; color:var(--text); white-space:nowrap; }
.checkout-monthly,.checkout-preference { margin-top:10px; font-size:11px; line-height:1.6; color:var(--muted); }
.checkout-preference a { color:var(--lavender); text-decoration:underline; text-underline-offset:3px; }
.checkout-links { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:center; column-gap:20px; margin-top:2px; font-size:11px; line-height:18px; color:var(--subtle); }
.checkout-links>a,.checkout-links summary { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; cursor:pointer; list-style:none; }
.checkout-links summary::-webkit-details-marker { display:none; }
.checkout-links summary svg { width:14px; height:14px; }
.checkout-links>a:hover,.checkout-links summary:hover { color:var(--text); }
.checkout-qr[open],.checkout-purpose[open] { flex-basis:100%; order:1; }
.checkout-qr-code { padding:12px 0; }
.checkout-qr-code img { display:block; width:144px; height:144px; padding:8px; margin:0 auto 10px; border-radius:12px; background:var(--white); }
.checkout-purpose p { max-width:42ch; margin:0 auto 16px; padding:12px 16px; border:1px solid var(--line); border-radius:14px; color:var(--muted); line-height:1.7; }
.amount-flight { position:fixed; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; pointer-events:none; z-index:40; margin:0; padding:0; transform-origin:0 0; will-change:transform; }
@media(max-width:760px) {
  body[data-step="3"] .app-shell { height:var(--mobile-height,100dvh); }
  body[data-step="3"] main { margin-inline:calc(-1 * var(--mobile-inset)); width:calc(100% + 2 * var(--mobile-inset)); padding-inline:var(--mobile-inset); }
  .screen-payment { min-height:100%; padding:16px 0 12px; }
  .payment-heading h1 { font-size:clamp(20px,5.6vw,25px); }
  .payment-context { font-size:11px; }
  .payment-context button { min-height:44px; }
  .payment-total { margin-top:clamp(64px,calc(8svh + 24px),96px); }
  .payment-value { font-size:clamp(46px,14.6vw,92px); }
  .payment-deck { margin-top:16px; }
  .payment-methods>.method-choice { gap:8px; padding:12px 10px; font-size:13px; }
  .payment-guidance { min-height:76px; }
  .checkout-links>a,.checkout-links summary { min-height:44px; }
  .checkout-qr { display:none; }
}
@media(max-width:370px) { .payment-heading h1 { font-size:20px; } .payment-methods>.method-choice { font-size:12px; gap:7px; } }
@media(max-width:760px) and (max-height:620px) {
  .summary-edit { min-height:16px; line-height:16px; margin-top:0; font-size:10px; }
  .payment-deck { margin-top:8px; }
  .payment-methods>.method-choice { min-height:48px; padding-top:8px; padding-bottom:8px; }
  .payment-guidance { min-height:54px; padding-top:10px; }
  .checkout-panel { font-size:12px; line-height:1.6; }
}
@media(prefers-reduced-motion:reduce) { .amount-flight { will-change:auto; } .method-check { transition:none; } }
@media(forced-colors:active) { .method-choice[aria-selected="true"] { outline:2px solid Highlight; } }
