/* Orchestra Experience — Pay Sheet (glass bottom-sheet, Candlelight Glass style)
   Classes are NOT scoped under a widget root — the sheet appends to document.body.
   Reuses design tokens from widget.css (--orch-gold, --orch-bg, etc.).
*/

/* ── Reset ─────────────────────────────────────────────────────────────────── */
.orch-pay-scrim,
.orch-pay-sheet,
.orch-pay-sheet * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ── Scrim ──────────────────────────────────────────────────────────────────── */
.orch-pay-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s var(--orch-ease, cubic-bezier(0.16,1,0.3,1));
  pointer-events: none;
}
.orch-pay-scrim.open {
  opacity: 1;
  pointer-events: auto;
}
/* Seat-widget desktop flow: the sheet is already scoped to the purchase-panel
   column (JS anchorEl), so dimming the WHOLE screen would needlessly obscure
   the visible hall map behind it. Click-outside-to-close still works (the
   scrim element is unchanged otherwise) — only the dark backdrop is removed. */
.orch-pay-scrim.orch-no-dim {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── Sheet ──────────────────────────────────────────────────────────────────── */
/* Candlelight scrollbar (WebKit/Blink) — thin gold thumb, transparent track */
.orch-pay-sheet::-webkit-scrollbar { width: 8px; }
.orch-pay-sheet::-webkit-scrollbar-track { background: rgba(255,255,255,.045); }
.orch-pay-sheet::-webkit-scrollbar-thumb { background: linear-gradient(#ffd27b,#e69a27); border: 2px solid #0c0907; border-radius: 999px; }
.orch-pay-sheet::-webkit-scrollbar-thumb:hover { background: #ffcf75; }
.orch-pay-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  /* JS overrides left/width inline for both mobile (full-bleed) and desktop (anchor-match).
     max-width:100% prevents any inner element from pushing the sheet wider than its box.
     overflow-x:hidden guards against inner content overflow reaching the document. */
  max-width: 100%;
  box-sizing: border-box;
  max-height: 92vh;
  max-height: 90dvh; /* modern mobile: excludes browser chrome */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  /* Candlelight scrollbar — thin gold thumb (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: #e69a27 rgba(255,255,255,.045);
  background: linear-gradient(
    180deg,
    rgba(16, 13, 10, 0.98) 0%,
    rgba(6, 5, 4, 0.99) 100%
  );
  border-top: 1px solid rgba(255,187,87, 0.18);
  border-top: 1px solid rgba(var(--orch-accent-rgb, 255,187,87), 0.18);
  border-radius: 22px 22px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  font-family: 'Inter', system-ui, sans-serif;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.42s var(--orch-ease, cubic-bezier(0.16,1,0.3,1));
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.7), 0 -2px 0 rgba(255,187,87,0.10);
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.7), 0 -2px 0 rgba(var(--orch-accent-rgb, 255,187,87),0.10);
}
.orch-pay-sheet.open {
  transform: translateY(0);
}

/* Desktop positioning is driven entirely by JS (OrchPaySheet width-pinning).
   No translateX centering here — JS sets inline left/width to match anchor widget. */

/* ── Drag handle ────────────────────────────────────────────────────────────── */
.orch-pay-handle {
  display: flex;
  justify-content: center;
  padding: 14px 0 6px;
  touch-action: none; /* pointer events track 1:1; no browser scroll interference */
}
/* Extend touch-action:none through the header so the full ~72px zone works */
.orch-pay-header {
  touch-action: none;
}
.orch-pay-handle-bar {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

/* ── Sheet header ───────────────────────────────────────────────────────────── */
.orch-pay-header {
  padding: 8px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.orch-pay-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.orch-pay-subtitle {
  font-size: 12px;
  color: var(--orch-muted, rgba(255,255,255,0.55));
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.orch-pay-total {
  font-size: 22px;
  font-weight: 700;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

/* ── Accordion list ─────────────────────────────────────────────────────────── */
.orch-pay-methods {
  padding: 10px 0 8px;
}

/* ── Accordion row ──────────────────────────────────────────────────────────── */
.orch-pay-method {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.orch-pay-method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  min-height: 60px;
}
.orch-pay-method-header:active {
  background: rgba(255, 255, 255, 0.03);
}

/* Highlight QRIS as recommended */
.orch-pay-method[data-method="qris"] .orch-pay-method-header {
  background: rgba(255,187,87, 0.04);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.04);
}
.orch-pay-method[data-method="qris"].open .orch-pay-method-header {
  background: rgba(255,187,87, 0.07);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.07);
}

.orch-pay-method-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
/* Lucide method icons (qr-code / landmark / credit-card / wallet / store / paylater) */
.orch-pay-method-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  color: rgba(255, 255, 255, 0.82);
}
.orch-pay-method-label {
  flex: 1;
  min-width: 0;
}
.orch-pay-method-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.orch-pay-method-desc {
  font-size: 11px;
  color: var(--orch-muted, rgba(255,255,255,0.55));
  margin-top: 2px;
}
.orch-pay-method-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255,187,87,0.4);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87),0.4);
  border-radius: 4px;
  padding: 2px 5px;
  flex-shrink: 0;
}
.orch-pay-method-chevron {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  transition: transform 0.3s var(--orch-ease, cubic-bezier(0.16,1,0.3,1));
  flex-shrink: 0;
}
.orch-pay-method.open .orch-pay-method-chevron {
  transform: rotate(180deg);
}

/* Locked: an OVO payment request is live. Every other method's header is dimmed
   and inert (pointer-events blocks the click before it ever reaches the header's
   handler; buildMethodRow() also guards there defensively). Cleared once the OVO
   request reaches a terminal state, times out, or is voided by the buyer — see
   showTerminalState() / showOvoTimeoutEscape() in pay-sheet.js.
   M3: this rule alone left a collapsed sibling's BODY controls (VA's bank picker,
   card's form fields, ...) reachable by Tab even though the header can't be
   clicked — pointer-events only affects the header. setMethodLocked() in
   pay-sheet.js pairs this class with the HTML `inert` attribute on the whole
   row, which removes header AND body from the tab order together; no CSS
   change needed for that half of the fix. */
.orch-pay-method--locked .orch-pay-method-header {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Accordion body ─────────────────────────────────────────────────────────── */
.orch-pay-method-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s var(--orch-ease, cubic-bezier(0.16,1,0.3,1));
}
.orch-pay-method.open .orch-pay-method-body {
  /* Raised from 800px: on mobile (390px) the QRIS view (QR card + callout +
     Save button + hint + 5 steps + poll) and the VA view can exceed 800px and
     get clipped by overflow:hidden. Cap is now well above the tallest method
     content; the sheet's own overflow-y:auto + 90dvh provides the single,
     intended scroll. overflow stays hidden here — NO nested body scroll. */
  max-height: 2200px;
}
.orch-pay-method-content {
  padding: 4px 20px 20px;
}

/* ── QRIS loading state ─────────────────────────────────────────────────────── */
.orch-pay-qr-loading {
  text-align: center;
  padding: 32px 0;
  color: var(--orch-muted, rgba(255,255,255,0.55));
  font-size: 13px;
}

/* ── Spinner ────────────────────────────────────────────────────────────────── */
.orch-pay-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,187,87,0.25);
  border: 2px solid rgba(var(--orch-accent-rgb, 255,187,87),0.25);
  border-top-color: var(--orch-gold, var(--orch-accent, #FFBB57));
  border-radius: 50%;
  animation: orchPaySpin 0.75s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes orchPaySpin {
  to { transform: rotate(360deg); }
}

/* ── QR card ────────────────────────────────────────────────────────────────── */
.orch-pay-qr-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,187,87, 0.18);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87), 0.18);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  max-width: 100%;
  box-sizing: border-box;
}
.orch-pay-qr-canvas-wrap {
  /* Center the QR block; keep inline-block so it shrinks to fit the image */
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 10px;
  border: 3px solid var(--orch-gold, var(--orch-accent, #FFBB57));
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(255,187,87,0.15), 0 8px 24px rgba(0,0,0,0.4);
  box-shadow: 0 0 0 1px rgba(var(--orch-accent-rgb, 255,187,87),0.15), 0 8px 24px rgba(0,0,0,0.4);
}
.orch-pay-qr-img {
  display: block;
  border-radius: 4px;
  image-rendering: pixelated;
  /* Fluid: shrinks on narrow screens while keeping aspect ratio */
  width: 200px;
  height: auto;
  max-width: 100%;
}
.orch-pay-qr-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}
.orch-pay-qr-amount {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.orch-pay-qr-expiry {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  margin: 8px 0 0;
}

/* ── Step instructions ──────────────────────────────────────────────────────── */
.orch-pay-steps {
  text-align: left;
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.orch-pay-steps-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  margin: 0 0 8px;
}
.orch-pay-step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
  line-height: 1.45;
}
.orch-pay-step:last-child { margin-bottom: 0; }
.orch-pay-step-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,187,87,0.15);
  background: rgba(var(--orch-accent-rgb, 255,187,87),0.15);
  border: 1px solid rgba(255,187,87,0.3);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87),0.3);
  font-size: 10px;
  font-weight: 700;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Save QR button ─────────────────────────────────────────────────────────── */
.orch-pay-save-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orch-accent-bright, #FFD089), var(--orch-accent, #FFBB57) 55%, var(--orch-accent-deep, #E0922E));
  color: #1a1206;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(255,187,87,0.32);
  box-shadow: 0 8px 24px rgba(var(--orch-accent-rgb, 255,187,87),0.32);
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.orch-pay-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255,187,87,0.38);
  box-shadow: 0 12px 28px rgba(var(--orch-accent-rgb, 255,187,87),0.38);
}
.orch-pay-save-btn:active { transform: scale(0.98); }
.orch-pay-save-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* The sheet is mounted on document.body and is shared by zone and seat flows.
   Do not let page-level button resets turn its primary QR/card CTAs into grey
   controls. Disabled is intentionally muted, but remains recognisably primary. */
.orch-pay-sheet .orch-pay-save-btn,
.orch-pay-sheet .orch-card-pay-btn {
  background-image: linear-gradient(135deg, var(--orch-accent-bright, #FFD089), var(--orch-accent, #FFBB57) 55%, var(--orch-accent-deep, #E0922E)) !important;
  background-color: var(--orch-accent, #FFBB57) !important;
  color: #1a1206 !important;
}
.orch-pay-sheet .orch-pay-save-btn:disabled,
.orch-pay-sheet .orch-card-pay-btn:disabled {
  background-image: linear-gradient(135deg, #e6b86d, #d99c45 55%, #b97728) !important;
  background-color: #d99c45 !important;
  color: #1a1206 !important;
  opacity: .68;
}

/* ── Fallback hint (long-press / download) ──────────────────────────────────── */
.orch-pay-save-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  text-align: center;
  margin: 0 0 8px;
}

/* ── Polling status bar ─────────────────────────────────────────────────────── */
.orch-pay-poll-status {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.orch-pay-poll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orch-gold, var(--orch-accent, #FFBB57));
  flex-shrink: 0;
  animation: orchPayPulse 1.4s ease-in-out infinite;
}
@keyframes orchPayPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Invoice fallback method body ───────────────────────────────────────────── */
.orch-pay-invoice-hint {
  font-size: 13px;
  color: var(--orch-muted, rgba(255,255,255,0.55));
  margin: 0 0 14px;
  line-height: 1.5;
}
.orch-pay-invoice-btn {
  width: 100%;
  padding: 13px 20px;
  border: 1px solid rgba(255,187,87,0.3);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87),0.3);
  border-radius: 13px;
  background: rgba(255,187,87,0.06);
  background: rgba(var(--orch-accent-rgb, 255,187,87),0.06);
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.orch-pay-invoice-btn:hover {
  background: rgba(255,187,87,0.12);
  background: rgba(var(--orch-accent-rgb, 255,187,87),0.12);
  border-color: rgba(255,187,87,0.5);
  border-color: rgba(var(--orch-accent-rgb, 255,187,87),0.5);
}
.orch-pay-invoice-btn:active { transform: scale(0.98); }
.orch-pay-invoice-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

/* OVO phone field — same dark-glass input language as .orch-card-input, under the
   class names renderOvo() actually uses (there was no existing rule for these). */
.orch-pay-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 6px;
}
.orch-pay-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.orch-pay-input::placeholder {
  color: rgba(255, 255, 255, 0.18);
}
.orch-pay-input:focus {
  border-color: rgba(255,187,87, 0.5);
  border-color: rgba(var(--orch-accent-rgb, 255,187,87), 0.5);
  background: rgba(255,187,87, 0.04);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.04);
}
.orch-pay-input:disabled {
  opacity: 0.5;
}
.orch-pay-input:-webkit-autofill,
.orch-pay-input:-webkit-autofill:hover,
.orch-pay-input:-webkit-autofill:focus,
.orch-pay-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.06) inset, 0 0 0 1000px var(--orch-bg, #060504) inset;
          box-shadow: 0 0 0 1000px rgba(255,255,255,0.06) inset, 0 0 0 1000px var(--orch-bg, #060504) inset;
  caret-color: #fff;
}

/* ── Success state ──────────────────────────────────────────────────────────── */
.orch-pay-success {
  text-align: center;
  padding: 40px 24px 32px;
}
.orch-pay-success-icon {
  font-size: 52px;
  margin-bottom: 14px;
  display: block;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
}
/* Lucide circle-check (inherits the gold colour above via currentColor) */
.orch-pay-success-icon svg {
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto;
}
.orch-pay-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  margin: 0 0 8px;
}
.orch-pay-success-body {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin: 0;
}

/* ── Error banner ───────────────────────────────────────────────────────────── */
.orch-pay-error-banner {
  background: #3a1010;
  color: #ffaaaa;
  border: 1px solid #a03030;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13px;
}

/* ── QR expired notice ──────────────────────────────────────────────────────── */
.orch-pay-expired-notice {
  text-align: center;
  padding: 20px 0 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.orch-pay-refresh-btn {
  display: block;
  margin: 10px auto 0;
  padding: 10px 20px;
  border: 1px solid rgba(255,187,87,0.35);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87),0.35);
  border-radius: 10px;
  background: transparent;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.orch-pay-refresh-btn:active { transform: scale(0.97); }

/* ── Trust line (Xendit attribution) ────────────────────────────────────────── */
.orch-pay-sheet .orch-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px 4px;
  font-size: 11px;
  color: var(--orch-faint, rgba(255,255,255,0.4));
}
.orch-pay-sheet .orch-trust svg:not(.orch-xendit-mark) {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}
/* Xendit lockup — mark + wordmark as one tight inline-flex unit so the
   trust-line gap applies only between the "Secure payment via" text and the
   whole lockup, not between the mark and the word. */
.orch-xendit-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
/* Xendit monochrome mark — width auto so the logo isn't squashed */
.orch-xendit-mark {
  width: auto;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
/* Xendit wordmark — no margin-left (gap on .orch-xendit-logo handles spacing) */
.orch-pay-sheet .orch-trust .orch-xendit-word {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: lowercase;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Bottom safe zone padding ───────────────────────────────────────────────── */
.orch-pay-footer {
  height: calc(env(safe-area-inset-bottom, 0px) + 8px);
  min-height: 8px;
}

/* ── VA Bank Picker ─────────────────────────────────────────────────────────── */
.orch-va-picker-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  margin: 0 0 10px;
}
.orch-va-bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.orch-va-bank-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border: 1px solid rgba(255,187,87, 0.22);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87), 0.22);
  border-radius: 11px;
  background: rgba(255,187,87, 0.04);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  transition: background 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.orch-va-bank-btn:hover {
  background: rgba(255,187,87, 0.10);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.10);
  border-color: rgba(255,187,87, 0.45);
  border-color: rgba(var(--orch-accent-rgb, 255,187,87), 0.45);
}
.orch-va-bank-btn:active {
  transform: scale(0.97);
}
.orch-va-bank-name {
  line-height: 1.25;
}

/* ── VA Card ────────────────────────────────────────────────────────────────── */
.orch-va-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,187,87, 0.18);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87), 0.18);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  max-width: 100%;
  box-sizing: border-box;
}
.orch-va-bank-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 8px;
}

/* VA number — large monospace for easy reading */
.orch-va-number-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  margin: 12px 0 6px;
}
.orch-va-number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;   /* allow number + copy-btn to wrap onto two lines if needed */
  gap: 10px;
  margin-bottom: 4px;
  max-width: 100%;
}
.orch-va-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  /* Long VA numbers must wrap rather than force width */
  word-break: break-all;
  overflow-wrap: anywhere;
  /* Allow number to shrink below its content size */
  min-width: 0;
}
.orch-va-copy-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid rgba(255,187,87, 0.45);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87), 0.45);
  border-radius: 8px;
  background: rgba(255,187,87, 0.08);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.08);
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.orch-va-copy-btn:hover {
  background: rgba(255,187,87, 0.18);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.18);
}
.orch-va-copy-btn:active {
  transform: scale(0.96);
}

/* Change bank link row */
.orch-va-change-row {
  text-align: center;
  margin: 4px 0 10px;
}
.orch-va-change-btn {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.38);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
  -webkit-tap-highlight-color: transparent;
}
.orch-va-change-btn:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Card form ─────────────────────────────────────────────────────────────── */
.orch-card-form {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orch-card-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.orch-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.orch-card-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.orch-card-input::placeholder {
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.02em;
}

.orch-card-input:focus {
  border-color: rgba(255,187,87, 0.5);
  border-color: rgba(var(--orch-accent-rgb, 255,187,87), 0.5);
  background: rgba(255,187,87, 0.04);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.04);
}

/* Keep autofilled card fields dark (same trick as the widget inputs). The card
   input is rgba(255,255,255,0.06) over the dark sheet; stack an opaque dark base
   (var(--orch-bg)) + that 0.06 tint so autofill can't paint it light. */
.orch-card-input:-webkit-autofill,
.orch-card-input:-webkit-autofill:hover,
.orch-card-input:-webkit-autofill:focus,
.orch-card-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.06) inset, 0 0 0 1000px var(--orch-bg, #060504) inset;
          box-shadow: 0 0 0 1000px rgba(255,255,255,0.06) inset, 0 0 0 1000px var(--orch-bg, #060504) inset;
  caret-color: #fff;
  transition: background-color 99999s ease-in-out 0s;
  -webkit-transition: background-color 99999s ease-in-out 0s;
}

.orch-card-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.orch-card-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  background: linear-gradient(135deg, var(--orch-accent, #FFBB57) 0%, #FF9800 100%);
  border: none;
  border-radius: 12px;
  color: #1a0f00;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 20px;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
}

.orch-card-pay-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.orch-card-pay-btn:active:not(:disabled) {
  transform: translateY(0);
}

.orch-card-pay-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.orch-card-err {
  margin-top: 0;
}

/* ── In-sheet 3DS challenge (named iframe; no full-page redirect) ───────────── */
.orch-card-3ds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 6px;
}
.orch-card-3ds-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  margin: 0;
}
.orch-card-3ds-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #fff; /* issuer ACS pages assume a light background */
}

/* ── QRIS same-device callout ───────────────────────────────────────────────── */
.orch-pay-qr-callout {
  font-size: 13px;
  font-weight: 600;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255,187,87, 0.07);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.07);
  border: 1px solid rgba(255,187,87, 0.2);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87), 0.2);
  border-radius: 10px;
}

/* ── QR ready chip (shown on collapsed QRIS accordion row) ──────────────────── */
.orch-pay-qr-ready-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  background: rgba(255,187,87, 0.12);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.12);
  border: 1px solid rgba(255,187,87, 0.3);
  border: 1px solid rgba(var(--orch-accent-rgb, 255,187,87), 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

/* ── VA prominent change-bank button (top of card) ──────────────────────────── */
.orch-va-change-bank-top {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid rgba(255,187,87, 0.55);
  border: 1.5px solid rgba(var(--orch-accent-rgb, 255,187,87), 0.55);
  border-radius: 11px;
  background: rgba(255,187,87, 0.06);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.06);
  color: var(--orch-gold, var(--orch-accent, #FFBB57));
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  margin: 10px 0 14px;
  transition: background 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.orch-va-change-bank-top::before {
  content: '⇄';
  font-size: 15px;
}
.orch-va-change-bank-top:hover {
  background: rgba(255,187,87, 0.14);
  background: rgba(var(--orch-accent-rgb, 255,187,87), 0.14);
  border-color: rgba(255,187,87, 0.75);
  border-color: rgba(var(--orch-accent-rgb, 255,187,87), 0.75);
}
.orch-va-change-bank-top:active {
  transform: scale(0.97);
}
