/* PayPal 弹窗专属样式（从 style.css 拆分） */

/* ---------- PayPal Open 字体（官方 woff2，本地引入） ---------- */
@font-face {
  font-family: "PayPal Open";
  src: url("fonts/PayPalOpen-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PayPal Open";
  src: url("fonts/PayPalOpen-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PayPal Open";
  src: url("fonts/PayPalOpen-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- PayPal 弹窗（初始化加载转圈，对齐截图） ---------- */
.nuv-pay-modal { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; background: rgba(0, 0, 0, 0.8) !important; display: none !important; align-items: center !important; justify-content: center !important; z-index: 9999 !important; padding: 20px !important; }

.nuv-pay-modal.is-open { display: flex !important; }

.nuv-pay-modal-card {
  position: relative !important;
  background: #fff !important;

  /* 所有阶段统一使用「填写账户页」的弹窗尺寸 */
  width: 614px !important;
  height: 720px !important;

  min-width: 0 !important;
  min-height: 0 !important;

  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 30px) !important;

  overflow: hidden !important;
  padding: 0 !important;

  /* 弹窗内白色卡片的外框：大圆角 + 细灰描边（对齐截图 600px 宽卡片 39px 圆角、1px #cbd2d6） */
  border-radius: 8px !important;
  border: 1px solid #cbd2d6 !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.25) !important;

  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;

  /* 所有阶段统一使用 PayPal Open */
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* 表单控件默认不继承字体，这里统一兜住所有阶段的输入框与按钮 */
.nuv-pay-modal-card button,
.nuv-pay-modal-card input,
.nuv-pay-modal-card select,
.nuv-pay-modal-card textarea {
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* 缩小锁头动画 */
.nuv-pay-lock-frame {
  width: 112px !important;
  height: 112px !important;

  min-width: 112px !important;
  min-height: 112px !important;
  max-width: 112px !important;
  max-height: 112px !important;

  border: none !important;
  padding: 0 !important;
  margin: 0 !important;

  display: block !important;
  flex: 0 0 112px !important;

  transform: none !important;
  zoom: 1 !important;
}

/* 转圈阶段：完全居中 */
.nuv-pay-modal-card:has(#nuv-pay-phase-spinner:not([hidden])) { padding: 0 !important; }
/* 锁头加载动画（引用 html），在顶栏下方区域完全居中 */
.nuv-pay-spinner {
  position: relative !important;
  width: 112px !important;
  height: 112px !important;
  margin: auto !important;
}
.nuv-pay-spinner iframe.nuv-pay-lock-frame {
  width: 112px !important;
  height: 112px !important;
  border: none !important;
  background: #ffffff !important;
  border-radius: 8px !important;
}
/* 整圈容器旋转（含灰轨 + 蓝色弧），绕自身中心；灰色整圆看不出运动，只有蓝弧在转 */
.nuv-pay-spinner svg:first-child { display: block !important; width: 110px !important; height: 110px !important; animation: nuv-pay-spin 1.1s linear infinite !important; transform-box: fill-box !important; transform-origin: center !important; }
@keyframes nuv-pay-spin { to { transform: rotate(360deg) } }
.nuv-pay-padlock { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; width: 36px !important; height: 36px !important; }

/* ============================================================
   阶段二：PayPal 账户填写页（第一步邮箱/手机号 + 第二步密码）
   —— 对照参考截图整理为唯一样式块：全部 #nuv-pay-phase-login 前缀、零 important 声明
   ============================================================ */

/* --- 弹窗卡片：登录阶段尺寸（与基础规则保持一致：614×720） --- */
.nuv-pay-modal-card:has(#nuv-pay-phase-login:not([hidden])) {
  width: 614px;
  height: 720px;
  padding: 27.3229px; /* 基础规则 padding:0 带 important 优先，内容内边距改由 #nuv-pay-phase-login 自身提供 */
  border-radius: 12px;
  background-color: rgb(255, 255, 255);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  color: rgb(0, 20, 53);
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 18px;
  -webkit-font-smoothing: antialiased;
}

/* --- 阶段容器：纵向排布，内容内边距 27.3229px --- */
#nuv-pay-phase-login {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 27.3229px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: #fff;
  color: #001435;
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* [hidden] 守卫：与上方 display 规则同组最后且优先级更高，无需加 important */
#nuv-pay-phase-login[hidden] { display: none; }

/* --- 两步切换：step 透明包裹，[hidden] 守卫紧随同级规则之后 --- */
#nuv-pay-phase-login .nuv-pp-step { display: contents; }
#nuv-pay-phase-login .nuv-pp-step[hidden] { display: none; }

/* --- PayPal 黑色字标（img 直接引入官方 SVG） --- */
#nuv-pay-phase-login .nuv-pp-logo {
  display: block;
  box-sizing: border-box;
  width: 89px;
  height: auto;
  margin: 0 auto 35px;
  padding: 0;
  object-fit: contain;
  object-position: 50% 0%;
  flex: 0 0 auto;
}

/* --- 副标题：16px / 400 居中 --- */
#nuv-pay-phase-login .nuv-pp-title {
  margin: 0 0 36px;
  padding: 0;
  font-size: 16px;
  font-weight: 400; /* 退回到常规粗细 */
  line-height: 18px;
  color: #001435;
  text-align: center;
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; /* 确保字体一致 */
  -webkit-font-smoothing: antialiased; /* 核心：让字体边缘变平滑，去掉毛边 */
  -moz-osx-font-smoothing: grayscale; /* 针对火狐浏览器 */
}
#nuv-pay-phase-login #nuv-pp-step-pass .nuv-pp-title { margin-bottom: 20px; }

/* --- 密码错误提示条：浅粉底 + 红色三角图标 + 单行短句（按 PayPal 真实页截图） --- */
#nuv-pay-phase-login .nuv-pp-err {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -16px 0 16px;
  padding: 15px 16px;
  box-sizing: border-box;
  background: #fff7f7;
  border: 1px solid #C72E2E;
  border-radius: 6px;
}
#nuv-pay-phase-login .nuv-pp-err[hidden] { display: none; }
#nuv-pay-phase-login .nuv-pp-err-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: -3px 0 0;
  padding: 0;
  object-fit: contain;
}
#nuv-pay-phase-login .nuv-pp-err-text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
  color: #001435;
  letter-spacing: -.1px;
  text-align: left;
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --- 第二步：账号展示 + 「更改」 --- */
#nuv-pay-phase-login .nuv-pp-acct-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 20px;
}
#nuv-pay-phase-login .nuv-pp-acct {
  font-size: 16px;
  line-height: 24px;
  color: #001435;
  word-break: break-all;
}
#nuv-pay-phase-login .nuv-pp-change {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 24px;
  color: #0070e0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
#nuv-pay-phase-login .nuv-pp-change:hover { text-decoration: underline; }

/* --- 输入框外壳：64px 高、6px 圆角，box-shadow inset 描边 --- */
#nuv-pay-phase-login .nuv-pp-field {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  height: 64px;
  margin: 0;
  padding: 22px 16px 12px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #909090;
  
}
/* 聚焦态：#097ff5 蓝色 2px 内描边 */
#nuv-pay-phase-login .nuv-pp-field:focus-within {
  box-shadow: inset 0 0 0 2px #097ff5;
}

/* 浮动标签：默认 16px 居中占位；聚焦或有内容时缩到 11px 上浮左上 */
#nuv-pay-phase-login .nuv-pp-field-label {
  display: block;
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16.3px;
  font-weight: 400;
  line-height: 24px;
  color: #6b7280;
  white-space: nowrap;
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, transform .15s ease;
}
#nuv-pay-phase-login .nuv-pp-field:focus-within .nuv-pp-field-label,
#nuv-pay-phase-login .nuv-pp-field.is-filled .nuv-pp-field-label {
  top: 9px;
  transform: none;
  font-size: 14.2px;
  line-height: 16px;
  color: #6b7280;
    font-weight: 400;
}

/* --- 输入框本体：强制 16px / 400 / #001435，不继承其他字号 --- */
#nuv-pay-phase-login .nuv-pp-field .nuv-pp-input {
  appearance: none;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 15.8px;
  font-weight: 400;
  line-height: 24px;
  color: #001435;
  letter-spacing: 0.15;
  text-overflow: ellipsis;
  cursor: text;
  outline: none;
  /* 关闭灰阶平滑，保留子像素渲染，让笔画边缘略带毛边（贴近参考截图） */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
/* 占位文字始终隐藏，由浮动标签承担占位提示 */
#nuv-pay-phase-login .nuv-pp-field .nuv-pp-input::placeholder { color: transparent; opacity: 0; }

/* 手机号国家区号按钮（仅判定为手机号时显示，账号页不显示国旗） */
#nuv-pay-phase-login .nuv-pp-cc {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  /* 右侧留负边距让箭头贴近号码，左侧负边距把「+86 + 箭头」整体略微左移（对齐参考图） */
  margin: 0 -6px 0 -4px;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #001435;
  cursor: pointer;
  /* 区号整体（+86 与箭头）在手机号输入框内略微下移，与输入文字基线对齐 */
  position: relative;
  top: 2px;
}
#nuv-pay-phase-login .nuv-pp-field.is-phone .nuv-pp-cc { display: flex; }
/* 手机号模式下，输入的电话号码与左侧 +86 区号对齐（以参考图基线为准：号码略高于 +86），并整体左移贴近箭头 */
#nuv-pay-phase-login .nuv-pp-field.is-phone .nuv-pp-input {
  position: relative;
  top: -2px;
  left: -4px;
}
#nuv-pay-phase-login .nuv-pp-cc-flag { display: none; }
#nuv-pay-phase-login .nuv-pp-cc-code { white-space: nowrap; font-size: 18px; }
/* 下拉箭头：整体放大一档（参考图里箭头更大更明显） */
#nuv-pay-phase-login .nuv-pp-cc-chevron { flex: 0 0 48px; width: 48px; height: 27px; color: #001435; position: relative; left: -6px; }

/* 密码框：整体一个盒子，右侧 Show 由一条竖线分隔，视觉上连在一起 */
#nuv-pay-phase-login .nuv-pp-field-pass {
  margin-top: 24px;
  padding: 0;
  border: 1px solid #909090;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  align-items: stretch;
}
/* 聚焦态改由输入区自己画蓝环，容器不再加内描边 */
#nuv-pay-phase-login .nuv-pp-field-pass:focus-within { box-shadow: none; }

/* 输入区：透明无边框，聚焦时外扩 3px 蓝环 #097ff5（环与灰边之间留 3px 白缝） */
#nuv-pay-phase-login .nuv-pp-field-pass .nuv-pp-input {
  flex: 1 1 auto;
  box-sizing: border-box;
  height: 100%;
  padding: 28px 16px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #000;
}
#nuv-pay-phase-login .nuv-pp-field-pass:has(.nuv-pp-eye.is-show) .nuv-pp-input { border-radius: 6px 0 0 6px; }
#nuv-pay-phase-login .nuv-pp-field-pass .nuv-pp-input:focus {
  background: transparent;
  box-shadow: none;
  outline: 3px solid #097ff5;
  outline-offset: 3px;
  position: relative;
  z-index: 2;
}
/* 浮动标签必须压在输入区之上，输入密码时仍可见；密码框上浮位置略高一点 */
#nuv-pay-phase-login .nuv-pp-field-pass .nuv-pp-field-label { z-index: 3; }
#nuv-pay-phase-login .nuv-pp-field-pass:focus-within .nuv-pp-field-label,
#nuv-pay-phase-login .nuv-pp-field-pass.is-filled .nuv-pp-field-label { top: 5px; }

/* Show / Hide：同一盒子内的右段，左侧一条 #cfd3d8 竖线分隔 */
#nuv-pay-phase-login .nuv-pp-eye {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-left: 1px solid #cfd3d8;
  border-radius: 0 5px 5px 0;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #0070e0;
  cursor: pointer;
  white-space: nowrap;
}
#nuv-pay-phase-login .nuv-pp-eye.is-show { display: inline-flex; }
#nuv-pay-phase-login .nuv-pp-eye:hover { color: #73a5ff; text-decoration: none; }

/* --- 忘记邮箱/忘记密码：蓝色链接，左对齐 --- */
#nuv-pay-phase-login .nuv-pp-forgot {
  display: block;
  margin: 12px 0 20px;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 24px;
  color: #0070e0;
  text-align: left;
  text-decoration: none;
  /* 关闭子像素渲染，去掉蓝色字边缘的描边感 */
  /* -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; */
  -webkit-text-stroke: 0;
}
#nuv-pay-phase-login .nuv-pp-forgot:hover { text-decoration: none; color: #73a5ff; }

/* --- 下一步/登录：深蓝药丸，文字 500 / 16px --- */
#nuv-pay-phase-login .nuv-pp-next {
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #0b46be;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
#nuv-pay-phase-login .nuv-pp-next:hover { background: #0070e0; }

/* --- or 分隔线 --- */
#nuv-pay-phase-login .nuv-pp-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  font-size: 13px;
  color: #687173;
}
#nuv-pay-phase-login .nuv-pp-or::before,
#nuv-pay-phase-login .nuv-pp-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8dce1;
}

/* --- 使用借记卡或信用卡付款：白底描边药丸，文字 400 / 16px --- */
#nuv-pay-phase-login .nuv-pp-create {
  width: 100%;
  height: 45px;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #001435;
  background: #fff;
  border: 1px solid #001435;
  border-radius: 999px;
  cursor: pointer;
}
#nuv-pay-phase-login .nuv-pp-create:hover { background: #fff; color: #545d68; border-color: #9aa1a8; }

/* --- 取消并返回：蓝色链接居中（登录/密码两个阶段共用） --- */
.nuv-pay-login .nuv-pp-cancel {
  display: block;
  margin: 100px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: #0070e0;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nuv-pay-login .nuv-pp-cancel:hover { text-decoration: underline; }

/* --- 语言行：国旗 + 下拉箭头 + 中文 | English（上下间距收紧） --- */
#nuv-pay-phase-login .nuv-pp-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
  color: #001435;
}
#nuv-pay-phase-login .nuv-pp-lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 2px 6px;
  background: none;
  border: 0;
  border-radius: 6px;
  font: inherit;
  line-height: 1.2;
  color: #001435;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
#nuv-pay-phase-login .nuv-pp-lang-toggle:hover,
#nuv-pay-phase-login .nuv-pp-lang-toggle:active,
#nuv-pay-phase-login .nuv-pp-lang-toggle:focus {
  background: none;
  color: #001435;
  outline: none;
  box-shadow: none;
}
#nuv-pay-phase-login .nuv-pp-lang-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
#nuv-pay-phase-login .nuv-pp-lang-chevron { flex: 0 0 26px; width: 26px; height: 26px; color: #001435; }
#nuv-pay-phase-login .nuv-pp-lang-opt {
  display: inline-block;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.2;
  color: #687173;
  cursor: pointer;
}
#nuv-pay-phase-login .nuv-pp-lang-opt:hover { text-decoration: underline !important; text-underline-offset: 3px; }
#nuv-pay-phase-login .nuv-pp-lang-current { font-weight: 400; }
#nuv-pay-phase-login .nuv-pp-lang-alt { font-weight: 400; }
/* 竖线与两侧文字各留 28px（行内已有 8px gap，这里补 20px） */
#nuv-pay-phase-login .nuv-pp-lang-sep { width: 1px; height: 13px; background: #d5d9de; margin: 0 10px; }

/* --- 国家/语言选择页：覆盖整个阶段内容区 --- */
#nuv-pay-phase-login .nuv-pp-country {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  z-index: 6;
}
#nuv-pay-phase-login .nuv-pp-country.is-open {
  display: flex;
  /* 选择弹层自下而上弹出（缓动滑入） */
  animation: nuv-pp-country-up .34s cubic-bezier(.22, 1, .36, 1) both;
  will-change: transform;
}
@keyframes nuv-pp-country-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
/* 关闭：自上而下收回（缓动），由脚本在动画结束后移除 is-open */
#nuv-pay-phase-login .nuv-pp-country.is-open.is-closing {
  animation: nuv-pp-country-down .28s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes nuv-pp-country-down {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}
#nuv-pay-phase-login .nuv-pp-country-head {
  position: relative;
  flex: 0 0 67px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
#nuv-pay-phase-login .nuv-pp-country-logo { width: 24px; height: 24px; margin-top: 16px; display: block; }
#nuv-pay-phase-login .nuv-pp-country-close {
  position: absolute;
  right: 27px;
  top: 14px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  color: #2c2e2f;
  cursor: pointer;
}
#nuv-pay-phase-login .nuv-pp-country-close svg { width: 22px; height: 22px; }
#nuv-pay-phase-login .nuv-pp-country-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
}
#nuv-pay-phase-login .nuv-pp-country-list li { margin: 0; padding: 0; list-style: none; }
#nuv-pay-phase-login .nuv-pp-country-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  padding: 0 17px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: #777;
  text-align: left;
  cursor: pointer;
}
#nuv-pay-phase-login .nuv-pp-country-opt:hover { background: #f5f5f5; }
#nuv-pay-phase-login .nuv-pp-country-flag {
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
#nuv-pay-phase-login .nuv-pp-country-name { flex: 1 1 auto; }
#nuv-pay-phase-login .nuv-pp-country-check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #777;
  opacity: 0;
}
#nuv-pay-phase-login .nuv-pp-country-opt.is-active .nuv-pp-country-check { opacity: 1; }
#nuv-pay-phase-login .nuv-pp-country-list li.nuv-pp-country-divider {
  height: 1px;
  margin: 15px 0 5px 11px;
  background: #cfcfcf;
}

/* --- 底部灰色链接条：负 margin 贴齐卡片左右与底边 --- */
#nuv-pay-phase-login .nuv-pp-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 30px;
  margin: auto -27.3229px -27.3229px;
  background: #f5f5f5;
  font-size: 11.5px;
  font-weight: 400;
}
#nuv-pay-phase-login .nuv-pp-foot a { color: #6b7280; text-decoration: none; }
#nuv-pay-phase-login .nuv-pp-foot a:hover { text-decoration: underline !important; text-underline-offset: 3px; }

/* --- 提交成功提示（九宫格/验证码等后续阶段共用） --- */
.nuv-pp-done { margin: 16px 0; padding: 12px 14px; font-size: 14px; font-weight: 600; color: #0c4a6e; background: #e0f2fe; border: 1px solid #b6d9f2; border-radius: 8px; }

/* ---------- 阶段四：Security Challenge 九宫格（1:1 对齐 PayPal 截图） ---------- */
/* 九宫格阶段：弹窗外框（含浏览器标题栏/放大缩小关闭按钮）与其他步骤保持完全一致，内边距只加在内容区 */
.nuv-pay-modal-card:has(#nuv-pay-phase-grid:not([hidden])) { padding: 0 !important; display: flex !important; flex-direction: column !important; align-items: stretch !important; }
.nuv-pay-grid {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 34px 34px 36px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  text-align: center !important;
  background: #fff !important;
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.nuv-pay-grid[hidden] { display: none !important; }
/* PayPal 双 P 标志 */
.nuv-grid-logo { display: block !important; width: 40px !important; height: 40px !important; object-fit: contain !important; margin: 0 auto 34px !important; }
/* 标题：Security Challenge */
.nuv-grid-title { margin: 0 0 12px !important; font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-size: 30px !important; line-height: 1.2 !important; font-weight: 500 !important; color: #111 !important; letter-spacing: 0 !important; }
/* 外层白色卡片 */
.nuv-grid-panel { width: 100% !important; max-width: 380px !important; margin: 0 auto !important; padding: 11px !important; border: 1px solid #eee !important; border-radius: 6px !important; background: #fff !important; box-sizing: border-box !important; }
/* 顶部青绿色提示条 + 参考图 */
.nuv-grid-tipbar { display: flex !important; align-items: center !important; gap: 10px !important; padding: 8px 8px 8px 11px !important; border-radius: 3px !important; background: #05848b !important; text-align: left !important; }
.nuv-grid-tip { flex: 1 1 auto !important; margin: 0 !important; color: #fff !important; font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-size: 16px !important; line-height: 1.35 !important; font-weight: 400 !important; }
.nuv-grid-ref { flex: 0 0 90px !important; width: 90px !important; height: 90px !important; object-fit: cover !important; border-radius: 3px !important; display: block !important; background: #fff !important; }
/* 3×3 图片网格 */
.nuv-grid-3x3 { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; margin-top: 10px !important; }
.nuv-pay-grid .nuv-grid-cell {
  position: relative !important;
  aspect-ratio: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  background: #eef1f4 !important;
  cursor: pointer !important;
  line-height: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: box-shadow .12s ease !important;
}
.nuv-pay-grid .nuv-grid-cell img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; border-radius: 2px !important; transition: transform .12s ease !important; }
.nuv-pay-grid .nuv-grid-cell:hover { box-shadow: inset 0 0 0 2px #05848b !important; }
/* 已选中：图片内缩出一圈白边（对齐截图选中态），右上角青色圆形对勾徽章 */
.nuv-pay-grid .nuv-grid-cell.is-picked { box-shadow: none !important; background: #fff !important; }
.nuv-pay-grid .nuv-grid-cell.is-picked img { opacity: 1 !important; transform: scale(.83) !important; }
.nuv-pay-grid .nuv-grid-cell.is-picked::after {
  content: "" !important;
  position: absolute !important;
  top: 12.5% !important;
  right: 13.5% !important;
  width: 17.2% !important;
  height: 17.2% !important;
  border-radius: 50% !important;
  background-color: #05848b !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5.5L19 6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 62% 62% !important;
  pointer-events: none !important;
}
/* 提交成功后禁用 */
.nuv-pay-grid .nuv-grid-cell:disabled { cursor: default !important; }
/* 底部语言标识 + 工具行：更多 / 刷新 / 无障碍 / Skip（Verify） */
.nuv-grid-lang { margin: 20px 0 0 !important; padding: 0 1px !important; font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-size: 13px !important; line-height: 1 !important; font-weight: 700 !important; color: #111 !important; letter-spacing: .2px !important; text-align: left !important; }
.nuv-grid-tools { display: flex !important; align-items: center !important; gap: 20px !important; margin-top: 7px !important; padding: 0 1px !important; min-height: 40px !important; }
.nuv-grid-tool { display: flex !important; align-items: center !important; justify-content: center !important; width: 28px !important; height: 28px !important; padding: 0 !important; border: 0 !important; background: none !important; color: #4a4f55 !important; cursor: pointer !important; }
.nuv-grid-tool svg { width: 20px !important; height: 20px !important; }
/* 更多的竖排三点：青色描边圆角方框 */
.nuv-grid-hint { width: 30px !important; height: 40px !important; border: 2px solid #05848b !important; border-radius: 5px !important; color: #4a4f55 !important; }
.nuv-grid-hint svg { width: 20px !important; height: 20px !important; }
.nuv-grid-refresh { width: 28px !important; height: 28px !important; color: #3f3f3f !important; }
.nuv-grid-refresh svg { width: 25px !important; height: 25px !important; }
/* 无障碍：青蓝渐变圆形 + 白色手掌 */
.nuv-grid-a11y { width: 34px !important; height: 34px !important; border-radius: 50% !important; background: radial-gradient(circle at 35% 25%, #7fd6e0 0%, #21a8c4 48%, #0b7f8b 100%) !important; color: #fff !important; }
.nuv-grid-a11y svg { width: 20px !important; height: 20px !important; }
/* 未选中 = Skip（深灰）；已选中 = Verify（青色） */
.nuv-grid-verify { margin-left: auto !important; padding: 9px 18px !important; border: 0 !important; border-radius: 3px !important; background: #555 !important; color: #fff !important; font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.15 !important; cursor: pointer !important; }
.nuv-grid-verify:hover { background: #454545 !important; }
.nuv-grid-verify[data-state="verify"] { background: #0b7f8b !important; }
.nuv-grid-verify[data-state="verify"]:hover { background: #0a6c77 !important; }
.nuv-grid-verify:disabled { opacity: .7 !important; cursor: default !important; }
/* 窄屏（手机）：卡片按截图比例铺满，参考图略微缩小 */
@media (max-width: 560px) {
  .nuv-pay-grid { padding: 22px 14px 18px !important; }
  .nuv-grid-logo { width: 34px !important; height: 34px !important; margin-bottom: 14px !important; }
  .nuv-grid-title { font-size: 26px !important; margin-bottom: 10px !important; }
  .nuv-grid-ref { flex-basis: 78px !important; width: 78px !important; height: 78px !important; }
  .nuv-grid-tip { font-size: 14px !important; }
  .nuv-grid-3x3 { gap: 8px !important; margin-top: 8px !important; }
  .nuv-grid-lang { margin-top: 12px !important; }
  .nuv-grid-tools { gap: 14px !important; }
  .nuv-grid-verify { padding: 8px 14px !important; font-size: 14px !important; }
}

/* ---------- 阶段五：短信验证码（对齐 PayPal 截图：Enter the code we texted you） ---------- */
/* 验证码阶段：恢复弹窗内边距并使内容块级排列 */
.nuv-pay-modal-card:has(#nuv-pay-phase-otp:not([hidden])) { padding: 44px 48px 40px !important; display: block !important; }
.nuv-pay-otp { max-width: 100% !important; margin: 0 auto !important; text-align: left !important; }
/* 手机号：灰色小字，居中 */
.nuv-otp-phone { font-size: 13px !important; color: #6b6b6b !important; text-align: center !important; margin: -10px 0 22px !important; }
/* 6 位验证码输入框：横向排布，浅灰底圆角方块 */
.nuv-otp-boxes { display: flex !important; justify-content: center !important; gap: 10px !important; margin: 0 0 18px !important; }
.nuv-otp-input {
  width: 48px !important;
  height: 56px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #2c2e2f !important;
  background: #f2f2f2 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  outline: none !important;
}
.nuv-otp-input:focus { border-color: #0070ba !important; background: #fff !important; }
.nuv-otp-input:disabled { opacity: .45 !important; }
/* 重发提示：灰色小字，居中 */
.nuv-otp-resend { font-size: 13px !important; color: #6b6b6b !important; text-align: center !important; margin: 0 0 18px !important; }
/* Submit 主按钮：PayPal 蓝药丸（复用 .nuv-pp-next 已有样式） */
/* Log In Another Way 次按钮：白底蓝描边药丸 */
.nuv-otp-another {
  width: 100% !important;
  padding: 13px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0070ba !important;
  background: #fff !important;
  border: 1px solid #0070ba !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  margin-bottom: 8px !important;
}
.nuv-otp-another:hover { background: #f0f7fd !important; }

/* ---------- 阶段五～九：人机验证 / 安全检查 / 验证方式 / 验证码 / 系统异常 ---------- */
/* 统一：未激活的阶段一律不占位，弹窗外框尺寸保持不变 */
.nuv-pay-flow[hidden] { display: none !important; }

/* 阶段五：hCaptcha 人机验证 */
.nuv-pay-modal-card:has(#nuv-pay-phase-captcha:not([hidden])) { padding: 0 !important; display: flex !important; }
#nuv-pay-phase-captcha.nuv-pay-captcha:not([hidden]) {
  flex: 1 1 auto !important;
  width: 100% !important;
  padding: 34px 34px 28px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background: #fff !important;
}
.nuv-captcha-logo { display: block !important; width: 32px !important; height: 32px !important; object-fit: contain !important; margin: 0 auto 12px !important; }
.nuv-captcha-title { margin: 0 0 26px !important; font-size: 23px !important; font-weight: 400 !important; color: #2c2e2f !important; }
.nuv-hcaptcha {
  display: flex !important;
  align-items: center !important;
  gap: 21px !important;
  width: 375px !important;
  height: 92px !important;
  max-width: 375px !important;
  padding: 0 22px 0 20px !important;
  background: #fafafa !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  text-align: left !important;
}
.nuv-hc-box {
  flex: 0 0 36px !important;
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 1px solid #555555 !important;
  border-radius: 3px !important;
  background: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}
.nuv-hc-box:hover { border-color: #8a8a8a !important; }
.nuv-hc-box:disabled { cursor: default !important; }
/* 打勾：绿色细勾，外框保持灰色（对齐截图） */
.nuv-hc-tick { width: 22px !important; height: 22px !important; opacity: 0 !important; transition: opacity .08s linear !important; }
/* 路径实际长度约 20.3，用 21 保证起始完全隐藏（dashoffset 不能加 !important，否则会压过动画帧） */
.nuv-hc-tick path { stroke-dasharray: 21 !important; stroke-dashoffset: 21; }
.nuv-hc-box.is-checked { border-color: #8c8c8c !important; }
.nuv-hc-box.is-checked .nuv-hc-tick { opacity: 1 !important; }
/* 点击后：淡橙色圆环从中心向外一圈接一圈扩散，完成后打勾 */
.nuv-hc-ripple {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 30px !important;
  height: 30px !important;
  margin: -15px 0 0 -15px !important;
  box-sizing: border-box !important;
  border: 3px solid #f6b26b !important;
  border-radius: 50% !important;
  background: none !important;
  /* 此处不能用 !important，否则会压过动画里的 opacity/transform */
  opacity: 0;
  transform: scale(.3);
  pointer-events: none !important;
}
.nuv-hc-box.is-loading .nuv-hc-ripple { animation: nuv-hc-ripple 1s ease-out both !important; }
.nuv-hc-box.is-loading .nuv-hc-ripple:nth-of-type(2) { animation-delay: .35s !important; }
.nuv-hc-box.is-loading .nuv-hc-ripple:nth-of-type(3) { animation-delay: .7s !important; }
.nuv-hc-box.is-loading .nuv-hc-tick { opacity: 0 !important; }
.nuv-hc-box.is-loading { border-color: #8c8c8c !important; cursor: default !important; }
@keyframes nuv-hc-ripple {
  0% { transform: scale(.3); opacity: 1 }
  100% { transform: scale(1.35); opacity: 0 }
}
.nuv-hc-label { flex: 1 1 auto !important; font-size: 17px !important; color: #2c2e2f !important; }
.nuv-hc-brand { flex: 0 0 auto !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 1px !important; }
.nuv-hc-badge { width: 41px !important; height: 41px !important; object-fit: contain !important; display: block !important; }
.nuv-hc-name { font-size: 14px !important; line-height: 1 !important; color: #4a4a4a !important; }
.nuv-hc-privacy { font-size: 11px !important; line-height: 1 !important; color: #8a8a8a !important; }

/* 阶段六：安全检查加载 */
.nuv-pay-modal-card:has(#nuv-pay-phase-check:not([hidden])) { padding: 0 !important; display: flex !important; }
#nuv-pay-phase-check.nuv-pay-check:not([hidden]) {
  flex: 1 1 auto !important;
  width: 100% !important;
  /* 按参考截图排版：内容整体位于卡片上部（logo 距卡片顶约 9% 卡片高），
     不是垂直居中；标题两行、转圈偏大。比例来自 712×894 的参考图：
     logo 顶 83、标题 179、转圈 334 → 除以卡片高 894 得 9.3% / 20% / 37% */
  padding: 68px 40px 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  background: #fff !important;
}
.nuv-check-logo { display: block !important; width: 40px !important; height: 47px !important; object-fit: contain !important; margin: 0 auto 40px !important; }
.nuv-check-title { margin: 0 auto 60px !important; max-width: 400px !important; font-size: 26px !important; line-height: 1.13 !important; font-weight: 400 !important; color: #2c2e2f !important; }
.nuv-check-spinner {
  width: 56px !important;
  height: 56px !important;
  border: 6px solid #e1e7ec !important;
  border-top-color: #0070ba !important;
  border-radius: 50% !important;
  animation: nuv-check-spin .9s linear infinite !important;
}
@keyframes nuv-check-spin { to { transform: rotate(360deg) } }

/* 阶段七：验证方式选择 */
.nuv-pay-modal-card:has(#nuv-pay-phase-method:not([hidden])) { padding: 0 !important; display: flex !important; }
#nuv-pay-phase-method.nuv-pay-method:not([hidden]) {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  position: relative !important;
  padding: 30px 40px 54px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: #fff !important;
  margin-bottom: 0%;
}
.nuv-method-brand { margin: 54px 0 20px !important; font-size: 24px !important; font-weight: 700 !important; font-style: italic !important; letter-spacing: -.5px !important; color: #003087 !important; text-align: center !important; }
.nuv-method-title { margin: 0 0 22px !important; font-size: 22px !important; font-weight: 600 !important; color: #2c2e2f !important; text-align: center !important; }
.nuv-method-opt {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  margin-bottom: 12px !important;
  border: 1px solid #cfd3d9 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.nuv-method-opt.is-active { border-color: #0070ba !important; box-shadow: 0 0 0 1px #0070ba inset !important; }
.nuv-method-icon { flex: 0 0 26px !important; width: 26px !important; height: 26px !important; color: #2c2e2f !important; }
.nuv-method-text { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; gap: 3px !important; }
.nuv-method-label { font-size: 16px !important; color: #2c2e2f !important; }
.nuv-method-phone { font-size: 13px !important; color: #6b6b6b !important; }
.nuv-method-opt input[type="radio"] { position: absolute !important; opacity: 0 !important; pointer-events: none !important; }
.nuv-method-radio { flex: 0 0 20px !important; width: 20px !important; height: 20px !important; border: 2px solid #b9bec4 !important; border-radius: 50% !important; box-sizing: border-box !important; }
.nuv-method-opt.is-active .nuv-method-radio { border-color: #0070ba !important; border-width: 6px !important; }
.nuv-method-note { margin: 6px 0 22px !important; font-size: 12px !important; line-height: 1.5 !important; color: #6b6b6b !important; }
.nuv-method-next { width: 100% !important; padding: 13px !important; font-size: 15px !important; font-weight: 600 !important; color: #fff !important; background: #0070ba !important; border: 0 !important; border-radius: 999px !important; cursor: pointer !important; }
.nuv-method-next:hover { background: #005c9e !important; }

/* ===== 阶段七「Choose how to continue」：按参考页（792 宽 / 内容 600）等比缩放 0.719 复刻 ===== */
/* 白底、无边框列表；左侧留白 12.1%（对齐参考页 81px 边距） */
#nuv-pay-phase-method.nuv-pay-method:not([hidden]) {
  padding: 18px 69px 24px !important;
  font-family: "PayPal Open", "Helvetica Neue", Arial, sans-serif !important;
  color: #001435 !important;
}
/* 顶部 PayPal 字标：参考页为纯黑字标 */
#nuv-pay-phase-method .nuv-method-brand {
  width: 87px !important;
  height: 31px !important;
  margin: 54px 0 16px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  filter: brightness(0) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  font-style: normal !important;
  text-align: left !important;
}
#nuv-pay-phase-method .nuv-method-title {
  box-sizing: border-box !important;
  width: 400px !important;
  height: 36px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-family: "PayPal Open", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  -webkit-text-stroke: .2px currentColor !important;
  line-height: 36px !important;
  letter-spacing: -1.4px !important;
  color: rgb(0, 0, 0) !important;
  text-align: left !important;
  white-space: nowrap !important;
  unicode-bidi: isolate !important;
  -webkit-font-smoothing: antialiased !important;
}
/* 法语 / 德语标题固定两行（文案内含换行符），其余语言保持单行 */
#nuv-pay-phase-method .nuv-method-title[data-lang="fr"],
#nuv-pay-phase-method .nuv-method-title[data-lang="de"] {
  height: auto !important;
  min-height: 36px !important;
  white-space: pre-line !important;
}
#nuv-pay-phase-method .nuv-method-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 26px !important;
  margin: 24px 0 0 !important;
}
#nuv-pay-phase-method .nuv-method-opt {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 15px !important;
  min-height: 26px !important;
  padding: 0 62px 0 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  cursor: pointer !important;
}
#nuv-pay-phase-method .nuv-method-opt.is-active { box-shadow: none !important; }
/* 管理端只勾选部分验证方式时，隐藏未勾选的选项（用 [hidden] 才能压过上面的 display:flex !important） */
#nuv-pay-phase-method .nuv-method-opt[hidden] { display: none !important; }
#nuv-pay-phase-method .nuv-method-icon {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  margin-top: 2px !important;
  color: #001435 !important;
  stroke-width: 1.7 !important;
}
#nuv-pay-phase-method .nuv-method-text { gap: 0 !important; }
#nuv-pay-phase-method .nuv-method-label {
  font-size: 14px !important;
  line-height: 26px !important;
  color: #001435 !important;
}
#nuv-pay-phase-method .nuv-method-phone {
  margin-top: 18px !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased !important;
  letter-spacing: .2px !important;
  color: #001435 !important;
}
#nuv-pay-phase-method .nuv-method-email {
  margin-top: 18px !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased !important;
  letter-spacing: .2px !important;
  color: #001435 !important;
}
/* 账号类型不匹配时不占位 */
#nuv-pay-phase-method .nuv-method-phone:empty,
#nuv-pay-phase-method .nuv-method-email:empty { display: none !important; }
/* 只有被选中的选项才展示其脱敏账号，未选中不显示 */
#nuv-pay-phase-method .nuv-method-opt:not(.is-active) .nuv-method-phone,
#nuv-pay-phase-method .nuv-method-opt:not(.is-active) .nuv-method-email { display: none !important; }
/* 管理端填写多个手机号：只显示第一个号码 + 右侧浅蓝圆形笔形图标（对齐截图的计算样式：48px 行、14px 字号） */
#nuv-pay-phase-method .nuv-method-phones {
  display: flex !important;
  flex-direction: column !important;
  width: 340px !important;
  max-width: 100% !important;
  margin: 6px 0 0 !important;
}
#nuv-pay-phase-method .nuv-method-phones[hidden] { display: none !important; }
#nuv-pay-phase-method .nuv-method-opt:not(.is-active) .nuv-method-phones { display: none !important; }
#nuv-pay-phase-method .nuv-sms-num {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 340px !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: -.28px !important;
  color: #000 !important;
  text-align: left !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}
#nuv-pay-phase-method .nuv-sms-num-edit {
  position: relative !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: none !important;
}
#nuv-pay-phase-method .nuv-sms-num-edit img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 34px !important;
  height: 34px !important;
}
/* 悬停在图标上：整枚图标切换为 #8BB6EA 版本 */
#nuv-pay-phase-method .nuv-sms-num-edit img.nuv-lanse-hover {
  opacity: 0 !important;
  transition: opacity .18s ease !important;
}
#nuv-pay-phase-method .nuv-sms-num-edit:hover img.nuv-lanse-hover { opacity: 1 !important; }
/* 单选框：未选中细灰圈；选中为黑色厚圈 + 白色圆心（外加 1.5px 蓝描边，与参考页焦点态一致） */
#nuv-pay-phase-method .nuv-method-radio {
  position: absolute !important;
  top: 0 !important;
  right: 21px !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  border: 1.5px solid #9a9a9a !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
#nuv-pay-phase-method .nuv-method-opt.is-active .nuv-method-radio {
  border: 9px solid #000 !important;
  box-shadow: 0 0 0 1.5px #0065f2 !important;
}
/* 记住设备 */
#nuv-pay-phase-method .nuv-method-remember {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: auto 0 0 !important;
  cursor: pointer !important;
}
#nuv-pay-phase-method .nuv-method-remember-text { display: flex !important; flex-direction: column !important; gap: 4px !important; }
#nuv-pay-phase-method .nuv-method-remember-title {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 400 !important;
  color: #001435 !important;
}
#nuv-pay-phase-method .nuv-method-remember-sub {
  font-size: 12px !important;
  line-height: 16px !important;
  color: #6b7182 !important;
}
#nuv-pay-phase-method .nuv-method-remember input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#nuv-pay-phase-method .nuv-method-check {
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #9a9a9a !important;
  border-radius: 3px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
#nuv-pay-phase-method .nuv-method-check svg { width: 18px !important; height: 18px !important; display: none !important; }
#nuv-pay-phase-method .nuv-method-remember input[type="checkbox"]:checked + .nuv-method-check {
  border-color: #000 !important;
  background: #000 !important;
}
#nuv-pay-phase-method .nuv-method-remember input[type="checkbox"]:checked + .nuv-method-check svg { display: block !important; }
/* Next 按钮 */
#nuv-pay-phase-method .nuv-method-next {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  /* 卡片高度不足时不允许被 flex 压缩，否则按钮会被压扁 */
  flex: 0 0 auto !important;
  /* 距离弹窗底部固定 10px：margin-top:auto 把按钮压到卡片底部，避免高屏时空隙变大、按钮跟着上浮 */
  margin: auto 0 2px !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
  color: #fff !important;
  background: #0551b5 !important;
  border: 0 !important;
  border-radius: 26px !important;
  cursor: pointer !important;

}
#nuv-pay-phase-method .nuv-method-next:hover { background: #04428f !important; }
/* 底部灰条：与账户填写页的 .nuv-pp-foot 完全一致，绝对定位贴弹窗底边 */
#nuv-pay-phase-method .nuv-method-foot {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  height: 30px !important;
  margin: 0 !important;
  background: #f5f5f5 !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
}
#nuv-pay-phase-method .nuv-method-foot a { color: #6b7280 !important; text-decoration: none !important; }
#nuv-pay-phase-method .nuv-method-foot a:hover { text-decoration: underline !important; text-underline-offset: 3px !important; }

/* 阶段七-B：PayPal App 引导页（验证方式选 Use the PayPal app 后点 Next） */
.nuv-pay-modal-card:has(#nuv-pay-phase-app:not([hidden])) { padding: 0 !important; display: flex !important; }
/* 内容整体等比缩小：左右各距弹窗 125px（内容宽 319px），顶部距弹窗 50px */
#nuv-pay-phase-app.nuv-pay-app:not([hidden]) {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  position: relative !important;
  padding: 90px 0 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  background: #fff !important;
}
/* 插画：与下方文字按钮共用一圈外框（插画负责上缘两个圆角，正文负责下缘两个圆角） */
#nuv-pay-phase-app .nuv-app-hero {
  flex: 0 0 262px !important;
  width: auto !important;
  height: 192px !important;
  margin: 0 96px !important;
  overflow: hidden !important;
  border-radius: 25px 25px 0 0 !important;
  border: 1px solid #b9c1c6 !important;
  border-bottom: none !important;
  background: #fff !important;
}
#nuv-pay-phase-app .nuv-app-hero img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 24px 24px 25px 25px !important;
}
#nuv-pay-phase-app .nuv-app-body {
  flex: 0 0 auto !important;
  margin: 0 96px !important;
  padding: 15px 15px 67px !important;
  box-sizing: border-box !important;
  border: 1px solid #b9c1c6 !important;
  border-top: none !important;
  border-radius: 0 0 25px 25px !important;
}
#nuv-pay-phase-app .nuv-app-title {
  margin: 0 !important;
  font-size: 30px !important;
  line-height: 1.16 !important;
  font-weight: 700 !important;
  color: #000 !important;
  letter-spacing: -.8px !important;
  white-space: nowrap !important;
}
#nuv-pay-phase-app .nuv-app-sub {
  margin: 13px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: #000 !important;
}
#nuv-pay-phase-app .nuv-app-sub strong { font-weight: 700 !important; }
#nuv-pay-phase-app .nuv-app-tip {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 22px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: #000 !important;
}
#nuv-pay-phase-app .nuv-app-tip svg {
  flex: 0 0 12px !important;
  width: 12px !important;
  height: 12px !important;
}
#nuv-pay-phase-app .nuv-app-tip em { font-style: italic !important; }
/* hidden 优先级兜底：避免 flex 布局覆盖 hidden 属性 */
#nuv-pay-phase-app .nuv-app-sub[hidden],
#nuv-pay-phase-app .nuv-app-tip[hidden] {
  display: none !important;
}
#nuv-pay-phase-app[data-lang="fr"] .nuv-app-title,
#nuv-pay-phase-app[data-lang="de"] .nuv-app-title,
#nuv-pay-phase-app[data-lang="it"] .nuv-app-title {
  font-size: 25px !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -.4px !important;
}
#nuv-pay-phase-app[data-lang="fr"] .nuv-app-sub,
#nuv-pay-phase-app[data-lang="de"] .nuv-app-sub,
#nuv-pay-phase-app[data-lang="it"] .nuv-app-sub {
  font-size: 12px !important;
  color: #001435 !important;
}
#nuv-pay-phase-app[data-lang="fr"] .nuv-app-tip,
#nuv-pay-phase-app[data-lang="de"] .nuv-app-tip {
  font-size: 11px !important;
  font-style: italic !important;
  color: #4a4a4a !important;
}
#nuv-pay-phase-app[data-lang="fr"] .nuv-app-foot,
#nuv-pay-phase-app[data-lang="de"] .nuv-app-foot,
#nuv-pay-phase-app[data-lang="it"] .nuv-app-foot {
  display: none !important;
}
/* 德语按钮：按截图窄胶囊、两行居中「Mehr / Optionen」 */
#nuv-pay-phase-app[data-lang="de"] .nuv-app-more {
  width: 76px !important;
  height: auto !important;
  padding: 7px 8px !important;
  box-sizing: border-box !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;
}
#nuv-pay-phase-app .nuv-app-more {
  align-self: flex-start !important;
  height: 34px !important;
  margin: 50px 0 0 !important;
  padding: 0 19px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #0551b5 !important;
  background: #fff !important;
  border: 1px solid #cccccc !important;
  border-radius: 17px !important;
  cursor: pointer !important;
}
#nuv-pay-phase-app .nuv-app-more:hover { background: #f5f7fa !important; }
/* 底部灰条：通栏贴弹窗底边，随整体缩小 */
#nuv-pay-phase-app .nuv-app-foot {
  flex: 0 0 30px !important;
  margin-top: auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  height: 30px !important;
  background: #f5f5f5 !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
}
#nuv-pay-phase-app .nuv-app-foot a {
  color: #6b7280 !important;
  text-decoration: none !important;
}
#nuv-pay-phase-app .nuv-app-foot a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* 阶段八：短信验证码（对齐截图：左对齐、大标题、6 格浅灰方块、底部双按钮） */
.nuv-pay-modal-card:has(#nuv-pay-phase-otp:not([hidden])) { padding: 0 !important; display: flex !important; }
#nuv-pay-phase-otp.nuv-pay-otp:not([hidden]) {
  flex: 1 1 auto !important;
  width: 100% !important;
  padding: 44px 48px 36px !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  background: #fff !important;
}
/* PayPal 官方字标（与账户填写页一致） */
#nuv-pay-phase-otp .nuv-otp-logo {
  display: block !important;
  width: 89px !important;
  height: auto !important;
  margin: 12px 0 26px !important;
}
/* 点击 Resend 后顶部出现的绿色「Sent」提示条（对齐截图：绿色圆角块 + 白色圆形对勾 + Sent） */
#nuv-pay-phase-otp .nuv-otp-sent {
  position: absolute !important;
  top: 34px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  height: 60px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background: #008556 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  animation: nuv-otp-sent-in .32s cubic-bezier(.22,.85,.3,1) both !important;
}
@keyframes nuv-otp-sent-in {
  from { opacity: 0; transform: translate(-50%, -10px) scale(.94); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
#nuv-pay-phase-otp .nuv-otp-sent[hidden] { display: none !important; }
#nuv-pay-phase-otp .nuv-otp-sent svg {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
}
#nuv-pay-phase-otp .nuv-otp-title {
  margin: 0 0 26px !important;
  font-size: 28px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
  color: #001435 !important;
  letter-spacing: -.2px !important;
}
/* 法语 / 德语验证码标题：按 PayPal 截图，固定三行、放宽行距与下间距（其余语言不变） */
#nuv-pay-phase-otp .nuv-otp-title[data-lang="fr"],
#nuv-pay-phase-otp .nuv-otp-title[data-lang="de"],
#nuv-pay-phase-otp .nuv-otp-title[data-lang="it"] {
  font-weight: 800 !important;
  line-height: 1.42 !important;
  letter-spacing: -.3px !important;
  margin-bottom: 32px !important;
  white-space: normal !important;
}
#nuv-pay-phase-otp .nuv-otp-phone {
  margin: 0 0 24px !important;
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased !important;
  color: #001435 !important;
  text-align: left !important;
  letter-spacing: .2px !important;
}
/* 6 位验证码：浅灰圆角方块，左对齐 */
#nuv-pay-phase-otp .nuv-otp-boxes {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 15px !important;
  margin: 0 0 20px !important;
}
#nuv-pay-phase-otp .nuv-otp-input {
  width: 60px !important;
  height: 60px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: #001435 !important;
  background: #f5f5f5 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  outline: none !important;
}
#nuv-pay-phase-otp .nuv-otp-input:focus {
  border-color: #097ff5 !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px #097ff5 inset !important;
}
#nuv-pay-phase-otp .nuv-otp-input:disabled { opacity: .45 !important; }
#nuv-pay-phase-otp .nuv-otp-boxes.is-error .nuv-otp-input { border: 1.5px solid #cc3300 !important; background: #edf0f2 !important; }
/* 错误提示（对齐截图：红色三角形图标 + 灰色说明文字） */
#nuv-pay-phase-otp .nuv-otp-error { display: flex !important; align-items: flex-start !important; gap: 8px !important; margin: 0 0 14px !important; color: #6b6b6b !important; font-size: 13px !important; line-height: 1.4 !important; text-align: left !important; }
#nuv-pay-phase-otp .nuv-otp-error[hidden] { display: none !important; }
#nuv-pay-phase-otp .nuv-otp-error svg { flex: 0 0 24px !important; width: 24px !important; height: 24px !important; margin-top: 0 !important; }
#nuv-pay-phase-otp .nuv-otp-error-text { flex: 1 1 auto !important; margin-top: 3px !important; }
/* Resend：蓝色左对齐 */
#nuv-pay-phase-otp .nuv-otp-resend {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #0551b5 !important;
  text-align: left !important;
  cursor: pointer !important;
}
#nuv-pay-phase-otp .nuv-otp-resend:hover { color: #0070e0 !important; text-decoration: underline !important; }
#nuv-pay-phase-otp .nuv-otp-resend.is-waiting { color: #8a8f99 !important; font-weight: 400 !important; cursor: default !important; text-decoration: none !important; }
/* 底部按钮组：贴卡片底部 */
#nuv-pay-phase-otp .nuv-otp-actions {
  margin-top: auto !important;
  padding-top: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
#nuv-pay-phase-otp .nuv-otp-submit {
  width: 100% !important;
  height: 46px !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #0551b5 !important;
  border: 0 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
}
#nuv-pay-phase-otp .nuv-otp-submit:hover { background: #04428f !important; }
#nuv-pay-phase-otp .nuv-otp-submit:disabled { opacity: .6 !important; cursor: default !important; }
#nuv-pay-phase-otp .nuv-otp-another {
  width: 100% !important;
  height: 46px !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0551b5 !important;
  background: #fff !important;
  border: 1px solid #c5c8cc !important;
  border-radius: 999px !important;
  cursor: pointer !important;
}
#nuv-pay-phase-otp .nuv-otp-another:hover { background: #f5f8fd !important; }
/* 提交后的提示排在按钮组之前，避免被 margin-top:auto 推到底部之外 */
#nuv-pay-phase-otp .nuv-pp-done { order: 1 !important; margin: 20px 0 0 !important; }
#nuv-pay-phase-otp .nuv-otp-actions { order: 2 !important; }

/* 阶段九：系统暂时无法响应（按截图 1:1 还原：整页居中一张浅灰描边面板） */
.nuv-pay-modal-card:has(#nuv-pay-phase-fail:not([hidden])) { padding: 0 !important; display: flex !important; }
#nuv-pay-phase-fail.nuv-pay-fail:not([hidden]) {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
}
.nuv-fail-card {
  width: 100% !important;
  max-width: none !important;
  padding: 30px 41px !important;
  border: 1px solid #f1f1f1 !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.nuv-fail-logo { display: block !important; width: 132px !important; height: auto !important; margin: 0 0 30px !important; }
.nuv-fail-text { max-width: 360px !important; margin: 0 0 19px !important; font-size: 19px !important; line-height: 24px !important; font-weight: 400 !important; color: #999999 !important; }
.nuv-fail-retry {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  min-width: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #2f80d0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}
.nuv-fail-retry:hover { background: #2a74bf !important; }

/* 账户/密码提交成功后：整页白雾 + PayPal 蓝色圆环加载（等待管理端操作进入下一步） */
#nuv-pay-phase-login, #nuv-pay-phase-password { position: relative !important; }
.nuv-pay-loading {
  position: absolute !important;
  inset: 0 !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, .9) !important;
}
.nuv-pay-loading[hidden] { display: none !important; }
.nuv-pay-loading-spinner {
  width: 68px !important;
  height: 68px !important;
  animation: nuv-pay-loading-spin 1s linear infinite !important;
}
@keyframes nuv-pay-loading-spin { to { transform: rotate(360deg) } }

/* PP → 其他验证方式的通用蓝色光环：沿用 .nuv-pay-loading 的 z-index 30，
   白雾完整盖住阶段内容与底部链接条（隐约可见本页），与截图一致；
   仅过渡期间把右上角 × 提到最上层，保证「只能点 × 关闭」仍然成立 */
.nuv-pay-modal:has(#nuv-verify-transition:not([hidden])) .nuv-pay-close { z-index: 31 !important; }

/* ===== 点击浅蓝笔形图标：底部「Choose a phone number」弹层（按截图 1:1 还原） ===== */
.nuv-phone-sheet {
  position: absolute !important;
  inset: 0 !important;
  z-index: 40 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}
.nuv-phone-sheet[hidden] { display: none !important; }
.nuv-phone-sheet-scrim { position: absolute !important; inset: 0 !important; background: rgba(0, 0, 0, .5) !important; }
.nuv-phone-sheet-panel {
  position: relative !important;
  width: 100% !important;
  padding: 23px 0 24px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border-radius: 40px 40px 0 0 !important;
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  color: #000 !important;
  animation: nuv-phone-sheet-in .26s cubic-bezier(.22,.85,.3,1) both !important;
}
@keyframes nuv-phone-sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
/* 左上角返回：只有一枚蓝色细箭头（对齐截图，无圆环无底色） */
.nuv-phone-sheet-back {
  position: absolute !important;
  left: 14px !important;
  top: 19px !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
}
.nuv-phone-sheet-back svg { width: 21px !important; height: 21px !important; }
/* 标题：水平居中 */
.nuv-phone-sheet-title {
  margin: 0 !important;
  font-size: 16.5px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: #000 !important;
  text-align: center !important;
}
/* 右上角关闭叉 */
.nuv-phone-sheet-close {
  position: absolute !important;
  top: 21px !important;
  right: 11px !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: 0 !important;
  cursor: pointer !important;
}
.nuv-phone-sheet-close svg { width: 13px !important; height: 13px !important; }
/* 号码列表：每行 48px、字号 14px、右侧单选圈 */
.nuv-phone-sheet-list { margin: 32px 0 0 !important; }
.nuv-phone-sheet-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 24px 0 35px !important;
  box-sizing: border-box !important;
  background: none !important;
  border: 0 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
  letter-spacing: -.28px !important;
  color: #000 !important;
  text-align: left !important;
  cursor: pointer !important;
  -webkit-font-smoothing: antialiased !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}
.nuv-phone-sheet-num { flex: 1 1 auto !important; }
.nuv-phone-sheet-radio {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  box-sizing: border-box !important;
  border: 1px solid #9a9a9a !important;
  border-radius: 50% !important;
}
.nuv-phone-sheet-row.is-sel .nuv-phone-sheet-radio { border: 8px solid #000 !important; }
/* 底部 Send Code：整行胶囊按钮 */
.nuv-phone-sheet-send {
  display: block !important;
  width: calc(100% - 48px) !important;
  height: 48px !important;
  margin: 16px 24px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #0551b5 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  cursor: pointer !important;
}
.nuv-phone-sheet-send:hover { background: #04428f !important; }

/* ===== 拉黑提示弹窗（管理端点击「拉黑」后访客端显示，按截图 1:1 还原） ===== */
.nuv-bl-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, .55) !important;
  z-index: 10001 !important;
}
.nuv-bl-modal.is-open { display: flex !important; }
.nuv-bl-card {
  position: relative !important;
  width: 421px !important;
  min-height: 382px !important;
  max-width: calc(100vw - 40px) !important;
  padding: 0 30px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .10) !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.nuv-bl-close {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111 !important;
  cursor: pointer !important;
}
.nuv-bl-close svg { display: block !important; width: 20px !important; height: 20px !important; }
.nuv-bl-icon {
  display: block !important;
  width: 110px !important;
  height: 95px !important;
  margin: 73px 0 0 !important;
}
.nuv-bl-text {
  width: 100% !important;
  max-width: 100% !important;
  margin: 31px 0 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  color: #e0452f !important;
  text-align: center !important;
}
/* ===== 拉黑后 PayPal 异常页（Something went wrong，按截图 1:1 还原） ===== */
.nuv-blp-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, .55) !important;
  z-index: 10002 !important;
}
.nuv-blp-modal.is-open { display: flex !important; }
.nuv-blp-card {
  /* 与「填写账户页」弹窗保持完全一致的尺寸与外框 */
  width: 614px !important;
  height: 720px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 30px) !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f7f8fa !important;
  border-radius: 8px !important;
  border: 1px solid #cbd2d6 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.nuv-blp-top {
  position: relative !important;
  flex: 0 0 auto !important;
  height: 55px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.nuv-blp-logo {
  display: block !important;
  width: 90px !important;
  height: 32px !important;
  object-fit: contain !important;
  margin: 10px auto 0 !important;
}
.nuv-blp-body {
  padding: 18px 24px 0 !important;
}
.nuv-blp-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 21px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #141414 !important;
}
.nuv-blp-text {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  max-width: 470px !important;
  font-size: 15px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  color: #141414 !important;
}
@media (max-width: 480px) {
  .nuv-blp-top { height: 48px !important; }
  .nuv-blp-logo { width: 78px !important; height: 28px !important; }
  .nuv-blp-body { padding: 14px 16px 0 !important; }
  .nuv-blp-title { font-size: 20px !important; }
  .nuv-blp-text { margin-top: 12px !important; font-size: 15px !important; line-height: 21px !important; }
}

/* 手机端：整体等比缩小，保持居中与间距比例 */
@media (max-width: 480px) {
  .nuv-bl-card { min-height: 330px !important; }
  .nuv-bl-icon { width: 92px !important; height: 79px !important; margin-top: 61px !important; }
  .nuv-bl-text { margin-top: 26px !important; font-size: 15px !important; line-height: 22px !important; }
}

/* ============================================================
   弹窗最终尺寸（按参考截图测量）
   ------------------------------------------------------------
   截图 567×1280 中量得：卡片从 (17,237) 到 (551,1112)，即 535×876
   → 宽度 535/567 ≈ 94.4vw，高度 876/1280 ≈ 68.4vh
   → 右上角 X 图标底边距卡片顶边约 32px、右边缘内缩约 13px
   桌面沿用 614×720；手机按截图比例铺开。
   ============================================================ */
.nuv-pay-modal {
  --nuv-card-w: min(614px, calc(100vw - 32px));
  --nuv-card-h: min(720px, calc(100dvh - 30px));
}
.nuv-pay-modal-card {
  width: var(--nuv-card-w) !important;
  height: var(--nuv-card-h) !important;
}

/* 右上角关闭 X：白色图标（icon/modal-close.png），浮在卡片上方右侧 */
.nuv-pay-close {
  position: absolute !important;
  /* 桌面：放在卡片内右上角（卡片上方空间只有 90px，浮在外面会压到站点导航） */
  top: calc(50% - var(--nuv-card-h) / 2 + 12px) !important;
  left: calc(50% + var(--nuv-card-w) / 2 - 46px) !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  z-index: 3 !important;
  -webkit-tap-highlight-color: transparent !important;
}
.nuv-pay-close img {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  /* 桌面卡片是白底：把白色图标反相成黑色，和卡片底色协调 */
  filter: brightness(0) !important;
}
.nuv-pay-close:hover,
.nuv-pay-close:focus,
.nuv-pay-close:active {
  background: none !important;
  opacity: .62 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 手机端：卡片按截图比例 94.4vw × 68.4vh；底部「取消返回」和法律链接隐藏
   （截图里没有这两行，关闭交给右上角 X），这样内容正好放得下不裁切 */
@media (max-width: 640px) {
  /* 宽度：所有阶段都按截图铺满（94.4vw） */
  .nuv-pay-modal {
    --nuv-card-w: 94.4vw;
    padding: 2.8vw !important;
  }
  /* 高度：**所有阶段统一以「填写账户页」为标准**，并回到「不用滑动」的高度：
     - 92dvh：不超过可视高度的 92%
     - max(72dvh, 650px)：常规手机按屏高 72% 撑开，矮屏保底 650（放得下整页内容，含短信验证码页）
     - calc(100dvh - 130px)：必须给卡片上方的关闭 X（62px + 间距）留出位置，
       否则 X 会被顶出屏幕
     内容更高的阶段（验证码/九宫格/安全检查等）交给卡片的 overflow-y 滚动。 */
  .nuv-pay-modal {
    --nuv-card-h: min(92dvh, max(72dvh, 650px), calc(100dvh - 130px));
  }
  .nuv-pay-modal-card {
    max-width: 94.4vw !important;
  }
  /* 手机：X 保持浮在卡片上方右侧（截图位置），白色图标 + 投影 */
  .nuv-pay-close {
    top: calc(50% - var(--nuv-card-h) / 2 - 62px) !important;
    left: calc(50% + var(--nuv-card-w) / 2 - 36px) !important;
    width: 32px !important;
    height: 32px !important;
  }
  .nuv-pay-close img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)) !important;
  }
  /* 截图里没有底部「取消返回」和法律链接两行：手机上隐藏，关闭交给右上角 X */
  #nuv-pay-phase-login .nuv-pp-cancel,
  #nuv-pay-phase-login .nuv-pp-foot {
    display: none !important;
  }
}

/* ============================================================
   弹窗内容可上下滑动
   ------------------------------------------------------------
   卡片原来是 overflow:hidden，内容比卡片高时（如九宫格、安全检查、
   短信验证码等阶段，尤其手机上只有 68.4vh）会被直接裁掉且滑不动。
   这里改成纵向可滚、横向仍裁切，并保留圆角。
   ============================================================ */
.nuv-pay-modal-card {
  overflow-x: hidden !important;
  /* 桌面：只有在内容超出时才出现滚动条（避免常驻 8px 把 614 宽的卡片挤窄） */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c1c7cd transparent;
  touch-action: pan-y;
}
/* 垂直滚动条：8px，轨道透明（内容放得下时不显眼），滑块浅灰、可拖动 */
.nuv-pay-modal-card::-webkit-scrollbar { width: 8px; }
.nuv-pay-modal-card::-webkit-scrollbar-track { background: transparent; }
.nuv-pay-modal-card::-webkit-scrollbar-thumb {
  background: #c1c7cd;
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}
.nuv-pay-modal-card::-webkit-scrollbar-thumb:hover { background: #9aa3ab; background-clip: padding-box; }

/* ============================================================
   手机端适配：弹窗内部那些按 792 宽参考页写死像素的阶段
   （短信验证码 / 人机验证 / 选择验证方式 / App 确认）
   —— 原样式里 6 个 48px 输入框、375px 的 hCaptcha 卡片、
      400px + nowrap 的标题、96px 左右外边距，在手机上都会顶出屏幕。
   ============================================================ */
@media (max-width: 640px) {
  /* —— 阶段：短信验证码（6 格） —— */
  .nuv-pay-modal-card:has(#nuv-pay-phase-otp:not([hidden])) {
    padding: 22px 16px 20px !important;
  }
  .nuv-otp-boxes {
    gap: 7px !important;
    margin: 0 0 16px !important;
  }
  /* 6 格验证码：按屏宽等比缩放并保持正方形，避免窄屏被横向压扁 */
  #nuv-pay-phase-otp .nuv-otp-input {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 60px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    font-size: 20px !important;
  }
  .nuv-otp-phone,
  .nuv-otp-resend { font-size: 12px !important; }

  /* —— 阶段：人机验证（hCaptcha） —— */
  .nuv-hcaptcha {
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    padding: 0 12px 0 10px !important;
  }
  .nuv-captcha-title {
    font-size: 19px !important;
    margin: 0 0 18px !important;
  }
  .nuv-captcha-logo { margin-bottom: 8px !important; }

  /* —— 阶段：选择验证方式 —— */
  #nuv-pay-phase-method.nuv-pay-method:not([hidden]) {
    /* 底部内边距随通用底栏加高（42px），保证「下一步」不被底栏压住 */
    padding: 14px 18px 22px !important;
  }
  #nuv-pay-phase-method .nuv-method-brand {
    margin: 24px 0 12px !important;
  }
  #nuv-pay-phase-method .nuv-method-title {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    letter-spacing: -.4px !important;
    white-space: normal !important;
    -webkit-text-stroke: 0 !important;
  }
  .nuv-method-opt { padding: 12px 14px !important; }
  .nuv-method-label { font-size: 15px !important; }

  /* —— 阶段：App 内确认 —— */
  #nuv-pay-phase-app.nuv-pay-app:not([hidden]) {
    padding: 40px 0 0 !important;
  }
  #nuv-pay-phase-app .nuv-app-hero {
    margin: 0 18px !important;
    height: 168px !important;
    flex: 0 0 168px !important;
  }
  #nuv-pay-phase-app .nuv-app-body {
    margin: 0 18px !important;
    padding: 14px 14px 30px !important;
  }
  #nuv-pay-phase-app .nuv-app-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    letter-spacing: -.3px !important;
    white-space: normal !important;
  }
  #nuv-pay-phase-app .nuv-app-sub,
  #nuv-pay-phase-app .nuv-app-tip { font-size: 12px !important; }
}

/* 手机端：常驻竖向滚动条
   （必须放在文件最后：前面「弹窗内容可上下滑动」那段把 overflow-y 设成了 auto） */
@media (max-width: 640px) {
  .nuv-pay-modal-card {
    overflow-y: scroll !important;
  }
}

/* ============================================================
   每个阶段通用的底部链接条
   ------------------------------------------------------------
   位置：贴在弹窗卡片最底边（用 --nuv-card-w / --nuv-card-h 计算），
   任何阶段都显示：Contact Us / Privacy / Legal / Policy Updates。
   原来的登录页 .nuv-pp-foot 与验证方式页 .nuv-method-foot 隐藏，避免重复。
   ============================================================ */
.nuv-pay-foot-bar {
  /* 固定在卡片底部：
     - 内容比卡片短时，margin:auto 0 0 把它压到卡片最底边（不可见滚动，永远贴在底边）
     - 内容比卡片长时，sticky + bottom:0 让它停在卡片可视区底部，
       内容在它下面滚动，滚到最后一屏时它正好回到自然位置，不会永久遮住内容 */
  position: sticky !important;
  bottom: 0 !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  width: 100% !important;
  margin: auto 0 0 !important;
  /* 底栏高度（原 30px，用户要求加高） */
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  /* 注意：这里不要再写 margin，否则会盖掉上面的 margin:auto 0 0，
     底栏就贴不到卡片底边（内容短时下面会多一截白） */
  padding: 0 14px !important;
  box-sizing: border-box !important;
  background: #f5f5f5 !important;
  border-radius: 0 0 8px 8px !important;
  font-family: "PayPal Open", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  z-index: 3 !important;
}
.nuv-pay-foot-bar a { color: #6b7280 !important; text-decoration: none !important; }
.nuv-pay-foot-bar a:hover { text-decoration: underline !important; text-underline-offset: 3px !important; }

/* 阶段内部原有的底栏隐藏（统一用上面那条） */
#nuv-pay-phase-login .nuv-pp-foot,
#nuv-pay-phase-method .nuv-method-foot {
  display: none !important;
}

/* App 引导页自带一条同样的底栏，隐藏避免与通用底栏重复 */
#nuv-pay-phase-app .nuv-app-foot { display: none !important; }

/* 九宫格内容区底部留出通用底栏的高度，滚到底也不会被压住 */
.nuv-pay-grid { padding-bottom: 46px !important; }
@media (max-width: 640px) {
  .nuv-pay-grid { padding-bottom: 42px !important; }
}

/* 加载页（锁头动画/转圈）不显示底部四个链接 */
.nuv-pay-modal:has(#nuv-pay-phase-spinner:not([hidden])) .nuv-pay-foot-bar {
  display: none !important;
}

/* 小屏：底部给通用链接条留出空间，内容可以滚到底不被压住 */
@media (max-width: 640px) {
  /* 底栏已在内容流里，不需要再给卡片留底部内边距 */
  .nuv-pay-modal-card { padding-bottom: 0 !important; }
  /* 登录页不再强行拉伸到卡片高度：内容高于卡片时让它撑开，交给卡片滚动 */
  #nuv-pay-phase-login { flex: 0 0 auto !important; }
  .nuv-pay-grid { padding-bottom: 58px !important; }
}

/* 语言行（国旗 + 中文|English）与上方「使用信用卡或借记卡付款」按钮拉开距离 */
#nuv-pay-phase-login .nuv-pp-lang {
  margin: 56px 0 20px !important;
}

/* ============================================================
   手机端：把「填写账户页」的纵向间距收紧，让整页（含语言行 + 底部四个链接）
   在卡片内一屏放完、不用滑动。只压缩留白，不改尺寸与字号。
   放在文件最末尾，确保覆盖前面所有同特异性的 margin 规则。
   ============================================================ */
@media (max-width: 640px) {
  #nuv-pay-phase-login { padding: 18px 20px 18px !important; }
  #nuv-pay-phase-login .nuv-pp-logo { margin: 0 auto 20px !important; }
  #nuv-pay-phase-login .nuv-pp-title { margin: 0 0 24px !important; }
  #nuv-pay-phase-login .nuv-pp-field-pass { margin-top: 16px !important; }
  #nuv-pay-phase-login .nuv-pp-forgot { margin: 8px 0 12px !important; }
  #nuv-pay-phase-login .nuv-pp-next { margin-top: 0 !important; }
  #nuv-pay-phase-login .nuv-pp-or { margin: 14px 0 12px !important; }
}

/* ============================================================
   手机端：短信验证码页把内边距从卡片挪到内容区
   ------------------------------------------------------------
   卡片自己带 16px 左右内边距时，底部链接条会跟着缩进（左右露白条、
   下方留 20px 白），看着不像「固定在底部」。挪进内容区后链接条就能
   铺满卡片底边，和账户填写页完全一致。
   ============================================================ */
@media (max-width: 640px) {
  .nuv-pay-modal-card:has(#nuv-pay-phase-otp:not([hidden])) {
    padding: 0 !important;
  }
  #nuv-pay-phase-otp.nuv-pay-otp:not([hidden]) {
    padding: 22px 16px 20px !important;
  }
}

/* ============================================================
   手机端：安全检查（Please wait…）页同步参考截图的版式
   ------------------------------------------------------------
   卡片只有 368 宽，桌面那套数值按比例缩小；标题保持两行
   （Please wait while we perform / security check）。
   ============================================================ */
@media (max-width: 640px) {
  #nuv-pay-phase-check.nuv-pay-check:not([hidden]) {
    padding: 58px 24px 0 !important;
  }
  .nuv-check-logo {
    width: 34px !important;
    height: 40px !important;
    margin: 0 auto 32px !important;
  }
  .nuv-check-title {
    max-width: 100% !important;
    font-size: 20px !important;
    line-height: 1.16 !important;
    margin: 0 auto 46px !important;
  }
  .nuv-check-spinner {
    width: 46px !important;
    height: 46px !important;
    border-width: 5px !important;
  }
}

/* ============================================================
   桌面端：账户填写页（登录页）在矮屏幕上不要把按钮压扁
   ------------------------------------------------------------
   弹窗高度受 max-height: calc(100dvh - 30px) 限制，屏幕较矮的电脑上
   卡片会比 720px 更矮，内容高于容器时 flex 子项会被按比例压缩：
   「登录」「使用借记卡或信用卡付款」两个药丸按钮被压到 20px 左右
   （看起来像变形），输入框也会变矮。这里固定各控件原始尺寸，
   空间不足时改为在内容区内部滚动，尺寸在所有电脑上保持一致。
   ============================================================ */
@media (min-width: 641px) {
  #nuv-pay-phase-login { overflow-y: auto; }
  #nuv-pay-phase-login > *,
  #nuv-pay-phase-login .nuv-pp-step > * { flex: 0 0 auto; }
  /* 「取消并返回」与语言行上方原有的两处大留白（100px / 56px）
     合计多出约 90px，恰好把两个按钮挤扁；这里只收紧这两处留白，
     字号、控件尺寸、其它间距一律不动，让内容在 720px 卡片内完整放下 */
  #nuv-pay-phase-login .nuv-pp-cancel { margin-top: 34px !important; }
  #nuv-pay-phase-login .nuv-pp-lang { margin: 22px 0 12px !important; }
}

/* ============================================================
   PayPal 弹窗：隐藏垂直滚动条
   ------------------------------------------------------------
   滚动条不再显示（Firefox / Edge / Chrome / Safari 全覆盖），
   内容超出时仍可滚轮或触摸滑动，布局与其它样式保持不变。
   ============================================================ */
.nuv-pay-modal-card,
#nuv-pay-phase-login {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.nuv-pay-modal-card::-webkit-scrollbar,
#nuv-pay-phase-login::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* ============================================================
   选择浏览器已保存的账号/密码自动填充时：浅蓝底铺满整个输入框
   Chrome 原本只把浅蓝画在 <input> 自身那一行 —— 账户框上方浮动标签区、
   密码框右侧「显示」按钮区仍是白色，看起来像一块没铺满的蓝方块。
   这里让整个 64px 外壳（含 6px 圆角）与输入区同色，右段按钮同步同色。
   只作用于 :-webkit-autofill，手工输入时外观完全不变。
   ============================================================ */
#nuv-pay-phase-login .nuv-pp-field:has(.nuv-pp-input:-webkit-autofill) {
  background: #e8f0fe !important;
}
#nuv-pay-phase-login .nuv-pp-field .nuv-pp-input:-webkit-autofill,
#nuv-pay-phase-login .nuv-pp-field .nuv-pp-input:-webkit-autofill:hover,
#nuv-pay-phase-login .nuv-pp-field .nuv-pp-input:-webkit-autofill:focus,
#nuv-pay-phase-login .nuv-pp-field .nuv-pp-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #e8f0fe inset !important;
  -webkit-text-fill-color: #001435 !important;
  caret-color: #001435 !important;
  transition: background-color 999999s ease-in-out 0s !important;
}
/* 密码框右侧「显示」按钮：填充时与整块同色，不再留一条白边 */
#nuv-pay-phase-login .nuv-pp-field-pass:has(.nuv-pp-input:-webkit-autofill) .nuv-pp-eye {
  background: #e8f0fe !important;
}
/* 账户框手机号模式的区号按钮保持透明，透出整块蓝底 */
#nuv-pay-phase-login .nuv-pp-field:has(.nuv-pp-input:-webkit-autofill) .nuv-pp-cc {
  background: transparent !important;
}

/* ============================================================
   「忘记密码？」链接：点击热区只局限于文字本身（红框内）
   原规则 display:block + 父级 align-items:stretch 会把 <a> 拉伸到
   整行 557px，文字右侧一大片空白点一下也会打开 PayPal 找回密码页。
   这里让 flex 子项按内容收缩、靠左，宽度/位置/字号/上下间距都不改。
   只写 CSS，不改 HTML 结构、不改事件与上报。
   ============================================================ */
#nuv-pay-phase-login .nuv-pp-forgot {
  align-self: flex-start !important;
  width: -webkit-fit-content !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
}

