/* Checkout Flow Template — post-confirmation progress + 3-D Secure dialog */
:root { color-scheme: light; }

.rl-verification-dialog {
  position: fixed; inset: 0; margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  height: fit-content; overflow: auto;
  border: 0; border-top: 4px solid #0e1016; border-radius: 12px;
  padding: 30px; background: #fff; color: #0e1016;
  box-shadow: 0 24px 80px #110f1540;
  font-family: BMDupletTXT, HelveticaTXT, Arial, sans-serif;
}
.rl-verification-dialog::backdrop { background: #110f1580; }
.rl-verification-dialog.rl-preparation-dialog { border-top: 0; }
.rl-verification-dialog h1 { font-family: BMDupletDSP, HelveticaDSP, Arial, sans-serif; font-size: 27px; line-height: 34px; font-weight: 600; margin: 20px 0 16px; }
.rl-verification-dialog .rl-checkout-muted { margin: 0 0 16px; color: #515358; font-size: 14px; line-height: 22px; }
.rl-verification-dialog .rl-checkout-note { margin-top: 20px; color: #515358; font-size: 12px; line-height: 18px; }
.rl-verification-dialog .rl-checkout-error { color: #c21a30; margin: 0; font-size: 14px; line-height: 20px; }
.rl-verification-dialog .rl-checkout-error:empty { display: none; }
.rl-checkout-kicker { font-size: 12px; font-weight: 600; margin: 0; color: #515358; }
.rl-verification-kicker { display: flex; align-items: center; gap: 6px; }
.rl-verification-kicker svg { width: 14px; height: 14px; flex: 0 0 14px; color: currentColor; }
.rl-preparation-identity { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e2e3e9; padding-bottom: 20px; font-size: 15px; font-weight: 600; }
.rl-preparation-identity svg { width: 20px; height: 20px; }
.rl-preparation-tech { margin: 10px 0 8px; padding: 0; text-align: left; font-size: 13px; line-height: 18px; color: #515358; font-weight: 400; }
.rl-payment-preparation-track { height: 8px; overflow: hidden; border-radius: 8px; background: #e2e3e9; }
.rl-payment-preparation-track > span { display: block; height: 100%; background: #0e1016; border-radius: inherit; transition: width .25s linear; }
.rl-payment-preparation-label { margin: 14px 0 0; font-size: 14px; line-height: 20px; color: #515358; font-weight: 400; min-height: 20px; }
.rl-payment-preparation-label.is-countdown { font-size: 15px; line-height: 22px; color: #0e1016; font-weight: 700; }
.rl-preparation-warning { margin: 10px 0 0; padding: 0; border: 0; background: none; color: #b42318; font-size: 13px; line-height: 19px; font-weight: 700; }
.rl-payment-preparation-reminder { margin: 20px 0 0; font-size: 14px; line-height: 22px; color: #33353b; }
.rl-payment-preparation[data-phase="REJECTED"] .rl-payment-preparation-track > span { background: #b42318; }
.rl-preparation-error { margin: 14px 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #c21a30; }

.rl-verification-dialog .rl-checkout-button,
.rl-checkout-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; border-radius: 6px; background: #0e1016; color: #fff; padding: 12px 18px; font: 600 14px/20px BMDupletTXT, HelveticaTXT, Arial, sans-serif; cursor: pointer; text-decoration: none; }
.rl-verification-dialog .rl-checkout-button + .rl-checkout-text-button { margin-top: 14px; }
.rl-checkout-text-button { display: inline-flex; justify-content: center; border: 0; background: none; padding: 0; color: #0e1016; font: 500 13px/20px BMDupletTXT, HelveticaTXT, Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.rl-verification-dialog .rl-checkout-text-button { width: 100%; }

/* Disabled six-digit code in terminal state */
.rl-otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; border: 0; margin: 18px 0 8px; padding: 0; min-width: 0; }
.rl-otp-boxes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rl-verification-dialog .rl-otp-boxes .rl-otp-digit { width: 100%; height: 54px; padding: 0; text-align: center; font: inherit; font-size: 24px; font-weight: 600; color: #0e1016; background: #fff; border: 1px solid #c9ccd3; border-radius: 8px; caret-color: #0e1016; }
.rl-verification-dialog .rl-otp-boxes .rl-otp-digit:focus { outline: 2px solid #0e1016; outline-offset: 1px; border-color: #0e1016; }
.rl-verification-dialog .rl-otp-boxes .rl-otp-digit:disabled { background: #f4f4f7; border-color: #e0e1e5; color: #6b6d75; -webkit-text-fill-color: #6b6d75; opacity: 1; }
.rl-otp-boxes input[type="hidden"] { display: none; }
.rl-stay-notice { margin: 12px 0 0 !important; }
.rl-verification-progress { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0; font-size: 14px; line-height: 20px; color: #33353b; }
.rl-checkout-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d2d4da; border-top-color: #0e1016; animation: cft-spin .8s linear infinite; display: inline-block; }
@keyframes cft-spin { to { transform: rotate(360deg); } }

/* Legacy terminal program header */
.rl-program-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e3e9; padding: 18px 0; font-size: 18px; font-weight: 600; }
.rl-program-identity { display: flex; align-items: center; gap: 10px; }
.rl-network-mark { width: 36px; height: 20px; object-fit: contain; }
.rl-network-mark-dark { width: 44px; padding: 2px; }
.rl-network-fallback { font-size: 12px; font-weight: 600; }

/* ACS verification panel */
.rl-verification-dialog.rl-acs-dialog { background: #eef0f3; padding: 18px; }
.rl-acs-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 2px 12px; color: #515358; font-size: 12px; line-height: 18px; font-weight: 600; }
.rl-acs-shell-brand { color: #0e1016; font-size: 13px; font-weight: 700; }
.rl-acs-shell-secure { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.rl-acs-shell-secure svg { width: 14px; height: 14px; flex: 0 0 14px; }
.rl-acs-panel { background: #fff; border: 1px solid #e0e2e8; border-radius: 8px; padding: 24px; color: #0e1016; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.rl-acs-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e6e7eb; }
.rl-acs-issuer { display: flex; align-items: center; gap: 8px; color: #515358; font-size: 13px; line-height: 18px; font-weight: 600; }
.rl-acs-issuer svg { display: block; flex: 0 0 22px; width: 22px; height: 22px; color: #515358; }
.rl-acs-network { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; text-align: right; }
.rl-acs-network .rl-network-mark { height: 20px; width: auto; max-width: 76px; }
.rl-acs-network small { font-size: 10px; line-height: 14px; color: #6b6d75; font-weight: 400; }
.rl-acs-title { margin: 18px 0 8px !important; font-family: inherit !important; font-size: 24px !important; line-height: 30px !important; font-weight: 650 !important; color: #0e1016 !important; }
.rl-acs-lead { margin: 0 0 18px; color: #515358; font-size: 14px; line-height: 22px; }
.rl-acs-details { margin: 0 0 20px; padding: 12px 0; border-top: 1px solid #ececf0; border-bottom: 1px solid #ececf0; }
.rl-acs-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 4px 0; font-size: 13px; line-height: 20px; }
.rl-acs-details dt { color: #6b6d75; font-weight: 400; white-space: nowrap; }
.rl-acs-details dd { margin: 0; color: #0e1016; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.rl-acs-form { margin-top: 0; }
.rl-acs-code-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 8px; font-size: 13px; line-height: 20px; font-weight: 600; }
.rl-acs-expiry { margin: 0; color: #6b6d75; font-size: 12px; line-height: 18px; font-weight: 400; white-space: nowrap; }
.rl-acs-expiry.is-expired { color: #b42318; }
.rl-acs-panel .rl-otp-boxes { margin: 0 0 8px; gap: 8px; }
.rl-acs-panel .rl-otp-boxes .rl-otp-digit { border-radius: 6px; }
.rl-acs-form .rl-checkout-button { height: 48px; margin-top: 14px; }
.rl-acs-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.rl-acs-link { border: 0; background: none; padding: 0; color: #0e1016; font: 500 13px/20px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.rl-acs-link:disabled { color: #8a8d95; cursor: default; text-decoration: none; }
.rl-acs-resend-note { margin: 7px 0 0; min-height: 16px; color: #1f6b3c; font-size: 11px; line-height: 16px; opacity: 0; transition: opacity .3s ease; }
.rl-acs-resend-note.is-visible { opacity: 1; }
.rl-acs-safety { margin: 14px 0 0; color: #6b6d75; font-size: 11px; line-height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .rl-verification-dialog { padding: 24px 18px; }
  .rl-verification-dialog h1 { font-size: 24px; line-height: 30px; }
  .rl-verification-dialog.rl-acs-dialog { padding: 12px; }
  .rl-acs-panel { padding: 18px; }
  .rl-acs-title { font-size: 22px !important; line-height: 28px !important; margin-top: 16px !important; }
  .rl-acs-lead { font-size: 13px; line-height: 20px; margin-bottom: 14px; }
  .rl-acs-details { margin-bottom: 16px; }
  .rl-acs-details > div { font-size: 12px; line-height: 18px; gap: 16px; }
  .rl-acs-shell { padding-bottom: 10px; }
  .rl-acs-panel .rl-otp-boxes { gap: 6px; }
  .rl-acs-actions { margin-top: 12px; }
  .rl-acs-safety { font-size: 10px; }
}
