.er-wallet-shortcut { display:flex; align-items:center; gap:14px; margin-right:24px; font-size:14px; white-space:nowrap; }
.er-wallet-shortcut strong { color:#172137; font-weight:700; font-variant-numeric:tabular-nums; }
.er-wallet-shortcut .n-button, .er-wallet-page .n-button { min-height:36px; padding:0 16px; font-size:14px; border-radius:12px; }
.er-wallet-shortcut .n-button--primary-type, .er-wallet-page .n-button--primary-type { background:linear-gradient(110deg,#00a9bd,#7955f6); border:0; color:#fff; }
/* Use one border on each option; Naive UI's inset layers otherwise draw a second rounded outline. */
.er-wallet-amount>:is(.n-button__border,.n-button__state-border),
.er-wallet-method>:is(.n-button__border,.n-button__state-border),
.er-wallet-shortcut .n-button>:is(.n-button__border,.n-button__state-border),
.er-profile-wallet-actions .n-button--primary-type>:is(.n-button__border,.n-button__state-border),
.er-wallet-pay>:is(.n-button__border,.n-button__state-border) { display:none !important; }
.er-wallet-shortcut .n-button--primary-type,
.er-profile-wallet-actions .n-button--primary-type,
.er-wallet-page .n-button--primary-type { --n-border:0 !important; --n-border-hover:0 !important; --n-border-pressed:0 !important; --n-border-focus:0 !important; border:0 !important; }
.er-wallet-shortcut .n-button:focus-visible { outline:3px solid rgba(76,102,231,.22); outline-offset:3px; }
.er-wallet-page { width:min(840px,100%); margin:0 auto; padding:0 0 max(40px,calc(env(safe-area-inset-bottom,0px) + 24px)); box-sizing:border-box; color:#172137; font-size:14px; }
.er-wallet-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.er-wallet-heading h1 { margin:0 0 4px; font-size:22px; font-weight:750; }
.er-wallet-heading p, .er-wallet-hint { margin:4px 0; color:#6b7283; line-height:1.5; font-size:14px; }
.er-wallet-current { display:flex; flex-direction:column; gap:4px; color:#6b7283; white-space:nowrap; }
.er-wallet-current strong { font-size:20px; color:#172137; font-variant-numeric:tabular-nums; }
.er-wallet-card.n-card { background:linear-gradient(130deg,rgba(255,255,255,.94),rgba(241,248,255,.88)); border:1px solid rgba(255,255,255,.8); border-radius:24px; box-shadow:0 18px 50px rgba(51,69,107,.1); }
.er-wallet-card>.n-card__content { padding:20px; }
.er-wallet-step { margin-bottom:18px; }
.er-wallet-step h2 { display:flex; align-items:center; gap:8px; font-size:15px; margin:0 0 12px; font-weight:700; }
.er-wallet-step-number { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:8px; background:#e7eaff; color:#5364e7; font-size:14px; }
.er-wallet-amounts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.er-wallet-page .er-wallet-amount { height:48px; background:rgba(255,255,255,.65); font-size:16px; font-weight:700; border:2px solid rgba(72,90,132,.13); }
.er-wallet-methods { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.er-wallet-page .er-wallet-method,
body[data-er-page="recharge"] section.cus-scroll-y .er-wallet-method { height:auto !important; min-height:54px !important; padding:8px 12px !important; border:2px solid rgba(72,90,132,.13); text-align:left; }
body[data-er-page="recharge"] section.cus-scroll-y :is(.er-wallet-amount,.er-wallet-method):hover { border-color:rgba(101,112,237,.55); }
body[data-er-page="recharge"] section.cus-scroll-y :is(.er-wallet-amount,.er-wallet-method).is-selected { border-color:#6570ed; background:#f0f2ff !important; color:#4354d6 !important; }
.er-wallet-method>.n-button__content { width:100%; white-space:normal; }
.er-wallet-method-content { display:flex; align-items:center; gap:10px; width:100%; min-width:0; }
.er-wallet-method-name { flex:1; min-width:0; white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
.er-wallet-method-content img { width:32px; height:32px; object-fit:contain; flex-shrink:0; }
.er-wallet-method-check { width:16px; flex-shrink:0; font-weight:700; }
.er-wallet-summary { padding-top:16px; border-top:1px solid #e1e6ef; }
.er-wallet-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:end; }
.er-wallet-summary-row { display:flex; flex-direction:column; gap:4px; margin:0; color:#697285; }
.er-wallet-summary-row strong { color:#172137; font-size:16px; line-height:1.5; font-weight:700; font-variant-numeric:tabular-nums; }
.er-wallet-total { color:#172137; align-items:flex-end; }
.er-wallet-total strong { font-size:22px; font-weight:750; }
.er-wallet-summary .er-wallet-hint { margin:10px 0 0; }
.er-wallet-page .er-wallet-pay { width:100%; height:40px; margin-top:12px; }
.er-wallet-error { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:#c63746; background:#fff0f1; border-radius:12px; padding:14px; margin-bottom:20px; }
.er-profile-wallet-content .er-profile-wallet-actions { display:flex; gap:24px; align-items:center; }
.er-profile-wallet-actions>.n-button { min-height:36px; padding:0 16px; font-size:14px; }
body[data-er-page="recharge"] section.cus-scroll-y { padding:16px 20px 0 !important; scroll-padding-bottom:40px; }
body[data-er-page="recharge"] section.cus-scroll-y .er-wallet-card>.n-card__content { padding:20px !important; }
/* The legacy percentage padding is relative to the modal content width. */
body[data-er-user-shell="true"] .n-card.n-modal:has(.pay-qrcode) { width:min(380px,calc(100vw - 32px)) !important; }
body[data-er-user-shell="true"] .n-modal .n-card__content>div:has(>.pay-qrcode) { width:min(300px,100%); aspect-ratio:1; height:auto; padding-bottom:0 !important; margin-inline:auto; }
@media(max-width:767px) {
  .flex.items-center.bg-white.px-4:has(.er-wallet-shortcut)>:first-child { flex:1; min-width:0; overflow:hidden; }
  .flex.items-center.bg-white.px-4:has(.er-wallet-shortcut)>:last-child { flex-shrink:0; }
  .flex.items-center.bg-white.px-4:has(.er-wallet-shortcut) .er-v2-topbar-title { min-width:0; max-width:calc(100vw - 322px); }
  .er-wallet-shortcut { gap:8px; margin-right:8px; }
  .er-wallet-shortcut-balance { font-size:14px; white-space:normal; max-width:150px; }
  .er-wallet-shortcut-balance strong { white-space:nowrap; }
  .er-wallet-shortcut .n-button { padding:0 14px; }
  body[data-er-page="recharge"] section.cus-scroll-y { padding:12px 12px 0 !important; }
  body[data-er-page="recharge"] section.cus-scroll-y .er-wallet-card>.n-card__content { padding:16px !important; }
  .er-wallet-page { padding-bottom:max(72px,calc(env(safe-area-inset-bottom,0px) + 56px)); }
  .er-wallet-heading { align-items:center; gap:12px; }
  .er-wallet-heading h1 { font-size:20px; }
  .er-wallet-heading p { max-width:28em; }
  .er-wallet-current { align-self:flex-start; }
  .er-wallet-amounts { gap:8px; }
  .er-wallet-page .er-wallet-amount { height:44px; font-size:16px; padding:0 14px; }
  .er-wallet-methods { grid-template-columns:1fr; }
  .er-wallet-summary-grid { gap:8px; }
  .er-wallet-total strong { font-size:18px; }
  .er-profile-wallet-content .er-profile-wallet-actions { gap:16px; flex-wrap:wrap; }
}
@media(max-width:420px) {
  .er-wallet-heading { flex-wrap:wrap; gap:8px; }
  .er-wallet-current { flex-direction:row; align-items:center; gap:10px; }
}
@media(max-width:374px) {
  .er-wallet-shortcut { flex-wrap:wrap; justify-content:flex-end; gap:4px 8px; }
}
