html.lhs-pay-open { overflow: hidden !important; }
.lhs-pay-layer, .lhs-pay-layer * { box-sizing: border-box; }
.lhs-pay-layer[hidden] { display: none !important; }

.lhs-pay-layer {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  overflow: auto;
  padding: 20px;
  display: grid;
  place-items: center;
  color: #151729;
  background: rgba(9, 9, 27, .82);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.lhs-pay-layer::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 46px 46px; }
.lhs-pay-layer.is-visible { opacity: 1; pointer-events: auto; }

.lhs-pay-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  outline: none;
  border: 0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 36px 120px rgba(2, 2, 15, .55), 12px 12px 0 rgba(47, 240, 208, .18);
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
  scrollbar-width: thin;
  scrollbar-color: #7054ff #f1f2f8;
}
.lhs-pay-layer.is-visible .lhs-pay-dialog { transform: translateY(0) scale(1); }

.lhs-pay-topbar { height: 48px; padding: 0 12px 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #878b9d; background: #111426; }
.lhs-pay-status { display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.lhs-pay-status > i { width: 7px; height: 7px; border-radius: 50%; background: #2ff0d0; box-shadow: 0 0 10px #2ff0d0; }
.lhs-pay-status > b { padding: 3px 6px; color: #111426; border-radius: 3px; background: #2ff0d0; font-size: 8px; }
.lhs-pay-window-dots { display: flex; gap: 6px; }
.lhs-pay-window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff4f87; }
.lhs-pay-window-dots i:nth-child(2) { background: #ffe66f; }.lhs-pay-window-dots i:nth-child(3) { background: #2ff0d0; }
.lhs-pay-close { justify-self: end; width: 34px; height: 34px; padding: 0; cursor: pointer; color: #767b90; border: 0; border-radius: 5px; background: transparent; font: 300 25px/1 Arial, sans-serif; }
.lhs-pay-close:hover, .lhs-pay-close:focus-visible { color: #fff; background: rgba(255,255,255,.08); outline: none; }
.lhs-pay-close:disabled { opacity: .35; cursor: wait; }

.lhs-pay-body { min-height: 625px; display: grid; grid-template-columns: 42% 58%; }
.lhs-pay-overview { position: relative; overflow: hidden; padding: 43px 38px 35px; color: #fff; background: linear-gradient(145deg, #563ee0 0%, #7655ff 57%, #9a5cff 100%); }
.lhs-pay-overview::after { content: "¥"; position: absolute; right: -21px; top: 42px; color: rgba(255,255,255,.07); font-size: 280px; font-weight: 1000; line-height: 1; }
.lhs-pay-pixel-grid { position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.lhs-pay-eyebrow { position: relative; z-index: 2; margin: 0 0 17px; color: #2ff0d0; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.lhs-pay-overview h2 { position: relative; z-index: 2; margin: 0; font-size: 63px; font-weight: 1000; line-height: .92; letter-spacing: -.07em; }
.lhs-pay-overview h2 span { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.lhs-pay-overview > p:nth-of-type(2) { position: relative; z-index: 2; margin: 21px 0 0; max-width: 260px; color: #ded8ff; font-size: 13px; line-height: 1.8; }

.lhs-pay-summary { position: relative; z-index: 2; margin: 38px 0 0; border-top: 1px solid rgba(255,255,255,.25); }
.lhs-pay-summary > div { min-height: 55px; display: grid; grid-template-columns: 66px 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); }
.lhs-pay-summary dt { color: #c2b8ff; font-size: 11px; font-weight: 700; }
.lhs-pay-summary dd { min-width: 0; margin: 0; overflow: hidden; color: #fff; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.lhs-pay-summary .lhs-pay-price { color: #ffe66f; font-size: 24px; font-weight: 1000; }
.lhs-pay-rate-card { position: relative; z-index: 2; margin-top: 25px; padding: 16px 18px; color: #14162a; background: #2ff0d0; border-radius: 8px; box-shadow: 8px 8px 0 rgba(15,12,53,.28); }
.lhs-pay-rate-card > span { display: block; font-size: 9px; font-weight: 900; letter-spacing: .12em; opacity: .55; }
.lhs-pay-rate-card strong { display: block; margin-top: 3px; font-size: 23px; font-weight: 1000; }
.lhs-pay-rate-card i { font-size: 11px; font-style: normal; }

.lhs-pay-checkout { min-width: 0; padding: 40px 44px 27px; background: #fff; }
.lhs-pay-step { display: flex; align-items: center; gap: 12px; }
.lhs-pay-step > span { padding: 4px 7px; color: #fff; border-radius: 3px; background: #7154ff; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.lhs-pay-step > b { color: #282b3e; font-size: 14px; font-weight: 900; }
.lhs-pay-field { margin-top: 18px; }
.lhs-pay-field label { margin-bottom: 8px; display: flex; justify-content: space-between; color: #4d5166; font-size: 12px; font-weight: 800; }
.lhs-pay-field label span { color: #9ca0b0; font-size: 9px; letter-spacing: .1em; }
.lhs-pay-amount-wrap { height: 78px; display: flex; align-items: center; border: 2px solid #dcdfea; border-radius: 8px; background: #f6f7fb; transition: border-color .2s, box-shadow .2s; }
.lhs-pay-amount-wrap:focus-within { border-color: #7154ff; box-shadow: 0 0 0 4px rgba(113,84,255,.1); }
.lhs-pay-amount-wrap > span { padding-left: 18px; color: #7154ff; font-size: 31px; font-weight: 1000; }
.lhs-pay-amount-wrap input { min-width: 0; flex: 1; height: 100%; padding: 0 18px 0 10px; color: #17192a; border: 0; outline: none; background: transparent; font-size: 39px; font-weight: 1000; -moz-appearance: textfield; }
.lhs-pay-amount-wrap input::-webkit-outer-spin-button, .lhs-pay-amount-wrap input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.lhs-pay-amount-wrap input:disabled { opacity: .55; }
.lhs-pay-amount-wrap:has(input[aria-invalid="true"]) { border-color: #ff4f87; }
.lhs-pay-conversion { min-height: 55px; margin-top: 10px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; color: #7b7f91; border-radius: 7px; background: #f1f3f8; font-size: 11px; }
.lhs-pay-conversion strong { color: #25283b; font-size: 13px; }
.lhs-pay-conversion strong b { color: #7154ff; font-size: 22px; font-weight: 1000; }
.lhs-pay-field-error { min-height: 18px; margin: 5px 0 0; color: #e83971; font-size: 11px; }

.lhs-pay-step-method { margin-top: 14px; }
.lhs-pay-methods { min-width: 0; margin: 15px 0 0; padding: 0; border: 0; }
.lhs-pay-methods legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lhs-pay-method { position: relative; min-height: 72px; padding: 12px 14px; display: grid; grid-template-columns: 44px 1fr 22px; align-items: center; gap: 13px; cursor: pointer; border: 2px solid rgba(20,121,255,.2); border-radius: 8px; background: rgba(22,119,255,.05); }
.lhs-pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.lhs-pay-alipay-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border-radius: 9px; background: #1677ff; font-size: 23px; font-weight: 900; }
.lhs-pay-method > span:nth-of-type(2) { display: flex; flex-direction: column; }
.lhs-pay-method strong { color: #202338; font-size: 14px; }
.lhs-pay-method small { margin-top: 2px; color: #9397a9; font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.lhs-pay-method > i { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #79b8ff; border-radius: 50%; }
.lhs-pay-method > i::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #1677ff; box-shadow: 0 0 8px rgba(22,119,255,.5); }
.lhs-pay-message { min-height: 20px; margin: 8px 0 0; color: #dc3e70; text-align: center; font-size: 11px; }
.lhs-pay-actions { display: grid; grid-template-columns: 100px 1fr; gap: 9px; margin-top: 3px; }
.lhs-pay-actions button { height: 55px; cursor: pointer; border-radius: 7px; font-weight: 900; transition: transform .2s, background .2s; }
.lhs-pay-actions button:hover { transform: translateY(-2px); }
.lhs-pay-cancel { color: #777b8e; border: 1px solid #dfe1e9; background: #fff; }
.lhs-pay-cancel:hover { color: #34374b; background: #f5f6fa; }
.lhs-pay-submit { padding: 0 17px 0 20px; display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 11px; color: #fff; border: 0; background: #7154ff; box-shadow: 0 13px 28px rgba(113,84,255,.23); text-align: left; }
.lhs-pay-submit:hover { background: #563cd9; }
.lhs-pay-submit > b { color: #2ff0d0; font-size: 17px; }
.lhs-pay-submit > em { font-size: 19px; font-style: normal; font-weight: 400; }
.lhs-pay-submit:disabled { opacity: .55; cursor: wait; transform: none; }
.lhs-pay-footnote { margin: 14px 0 0; color: #9b9faf; text-align: center; font-size: 9px; }
.lhs-pay-footnote span { margin-right: 5px; color: #2fc6b0; font-size: 7px; }

@media (max-width: 700px) {
  .lhs-pay-layer { padding: 8px; place-items: center; }
  .lhs-pay-dialog { width: min(100%, 520px); max-height: calc(100vh - 16px); border-radius: 11px; }
  .lhs-pay-topbar { height: 43px; }
  .lhs-pay-status > span { display: none; }
  .lhs-pay-body { min-height: 0; display: block; }
  .lhs-pay-overview { padding: 27px 24px 24px; }
  .lhs-pay-overview h2 { font-size: 43px; line-height: 1; }
  .lhs-pay-overview h2 br { display: none; }
  .lhs-pay-overview h2 span { margin-left: 9px; }
  .lhs-pay-overview > p:nth-of-type(2) { margin-top: 10px; max-width: 100%; }
  .lhs-pay-summary { margin-top: 19px; display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.18); }
  .lhs-pay-summary > div { min-height: 59px; padding: 8px 4px; display: block; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 0; }
  .lhs-pay-summary > div:last-child { border-right: 0; }
  .lhs-pay-summary dt { margin-bottom: 3px; }
  .lhs-pay-summary dd { font-size: 12px; }
  .lhs-pay-summary .lhs-pay-price { font-size: 18px; }
  .lhs-pay-rate-card { position: absolute; top: 27px; right: 24px; width: 122px; margin: 0; padding: 9px 11px; box-shadow: 5px 5px 0 rgba(15,12,53,.23); }
  .lhs-pay-rate-card strong { font-size: 16px; }
  .lhs-pay-checkout { padding: 25px 24px 21px; }
  .lhs-pay-amount-wrap { height: 66px; }
  .lhs-pay-amount-wrap input { font-size: 32px; }
  .lhs-pay-step-method { margin-top: 9px; }
}

@media (max-width: 420px) {
  .lhs-pay-overview { padding: 23px 18px 19px; }
  .lhs-pay-overview h2 { font-size: 38px; }
  .lhs-pay-overview > p:nth-of-type(2) { padding-right: 118px; font-size: 11px; }
  .lhs-pay-rate-card { top: 24px; right: 18px; width: 112px; }
  .lhs-pay-checkout { padding: 22px 18px 18px; }
  .lhs-pay-actions { grid-template-columns: 82px 1fr; }
  .lhs-pay-submit { padding: 0 12px; gap: 7px; font-size: 12px; }
  .lhs-pay-footnote { line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .lhs-pay-layer, .lhs-pay-dialog, .lhs-pay-actions button { transition-duration: .01ms !important; }
}
