/* ===== 变体切换：<768px 用移动版 DOM，>=768px 用桌面版 DOM ===== */
.v-d { display: none; }
@media only screen and (min-width: 768px) {
  .v-m { display: none !important; }
  .v-d { display: block !important; }
}
/* 手机端与原页一致：不显示快捷支付区（Apple Pay / Link） */
@media only screen and (max-width: 767.98px) {
  .ButtonAndDividerContainer { display: none !important; }
}

/* 页面底色与 iOS 回弹 */
html, body { background: #ffffff; -webkit-text-size-adjust: 100%; }
body { min-height: 100%; }

/* ===== 国家旗帜（本地 SVG，随选择切换） ===== */
.PhoneNumberCountryCodeSelect-flagIcon {
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

/* ===== 字段错误 ===== */
.sx-invalid-box { box-shadow: inset 0 0 0 1px #df1b41 !important; }
.sx-field-error {
  color: #df1b41;
  font-size: 13px;
  line-height: 18px;
  margin: 6px 2px 0;
}

/* ===== 顶部横幅 ===== */
.sx-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fef2f4;
  color: #df1b41;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
  margin: 4px 0 12px;
}
.sx-banner-icon {
  flex: 0 0 16px;
  width: 16px; height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: #df1b41;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* ===== 提交中 ===== */
.sx-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sxspin .7s linear infinite;
  vertical-align: -3px;
}
@keyframes sxspin { to { transform: rotate(360deg); } }
.SubmitButton.sx-busy { opacity: .95; }

/* ===== 订单详情（Details）面板 ===== */
.Modal-Portal { position: relative; z-index: 2147483000; display: none; }
.Modal-Portal.sx-open { display: block; }
.Modal-Portal .ModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: block;
  overflow: auto;
}
.Modal-Portal .ModalContent {
  margin: 0 auto;
  max-width: 480px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

/* ===== 桌面端快捷支付按钮（Apple Pay / Link） ===== */
.sx-wallets { display: flex; gap: 4px; width: 100%; }
.sx-wallet {
  flex: 1 1 0;
  height: 55px;
  border: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
  font-size: 19px;
  line-height: 1;
  padding: 0 12px;
  transition: filter .12s ease;
}
.sx-wallet:active { filter: brightness(.93); }
.sx-apple { background: #5a5a5a; color: #fff; font-weight: 500; letter-spacing: .2px; }
.sx-link { background: #5ae4a1; color: #0b2e1d; font-weight: 700; letter-spacing: -.3px; }
.sx-link svg { opacity: .95; }

/* ===== OTP 二次验证 ===== */
.sx-otp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: rgba(16, 24, 40, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sx-otp-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
  overflow: hidden;
  animation: sxin .18s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
}
@keyframes sxin { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.sx-otp-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 22px 0;
}
.sx-otp-lock {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #eef4ff;
  color: #0570de;
  display: flex; align-items: center; justify-content: center;
}
.sx-otp-title { font-size: 16px; font-weight: 600; color: #30313d; }
.sx-otp-sub { font-size: 13px; color: #6d6e78; margin-top: 2px; }
.sx-otp-body { padding: 12px 22px 22px; }
.sx-otp-text { font-size: 14px; line-height: 20px; color: #414552; margin: 8px 0 16px; }
.sx-otp-inputs { display: flex; gap: 8px; justify-content: space-between; }
.sx-otp-inputs input {
  width: 100%;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #30313d;
  border: 1px solid #e0e0e5;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
  outline: none;
  background: #fff;
}
.sx-otp-inputs input:focus {
  border-color: #0570de;
  box-shadow: 0 0 0 3px rgba(5, 112, 222, .15);
}
.sx-otp-err { color: #df1b41; font-size: 13px; min-height: 18px; margin-top: 8px; }
.sx-otp-btn {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: #0570de;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.sx-otp-btn:disabled { opacity: .7; }
.sx-otp-foot { text-align: center; font-size: 13px; color: #6d6e78; margin-top: 14px; }
.sx-otp-foot a { color: #0570de; text-decoration: none; }

/* ===== 成功页 ===== */
.sx-done {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
  padding: 24px;
  background: #f6f8fa;
}
.sx-done-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  padding: 32px 24px 26px;
  text-align: center;
}
.sx-done-check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfdf3;
  color: #12b76a;
  display: flex; align-items: center; justify-content: center;
}
.sx-done-title { font-size: 20px; font-weight: 600; color: #30313d; margin: 0 0 6px; }
.sx-done-sub { font-size: 14px; color: #6d6e78; margin: 0 0 22px; line-height: 20px; }
.sx-done-row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: #30313d;
  padding: 10px 0;
  border-top: 1px solid #f0f0f3;
}
.sx-done-row span:last-child { font-weight: 500; }
.sx-done-foot { margin-top: 18px; font-size: 13px; color: #6d6e78; }

.sx-otp-amt{font-size:13px;color:#333;background:#f7f8fa;border:1px solid #eee;border-radius:6px;padding:8px 10px;margin-bottom:10px;text-align:center}
.sx-otp-amt b{font-size:15px;color:#635bff}
