/* NEUROX Wallet Mobile V15 - only wallet overlay on touch widths. */
@media screen and (max-width:780px) {
  /* The original mobile stylesheet anchors the sheet behind the bottom nav.
     Keep the backdrop full-screen, center the dialog above navigation and scroll its contents. */
  body .wm {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: max(12px, env(safe-area-inset-top)) 12px calc(76px + env(safe-area-inset-bottom)) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    background: rgba(0,0,0,.72) !important;
  }
  body .wm__box {
    position: relative !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 1 auto !important;
    width: min(460px, 100%) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(650px, calc(100dvh - 116px - env(safe-area-inset-bottom))) !important;
    margin: auto 0 !important;
    padding: 0 !important;
    border: 1px solid #151515 !important;
    border-radius: 0 !important;
    background: #fff !important;
    transform: none !important;
    animation: none !important;
    overflow: hidden !important;
  }
  body .wm__box > .pane__bar {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
    background: #fff !important;
  }
  body .wm__list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }
  body .wm__foot {
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    background: #fff !important;
  }
  body .wm__row {
    display: grid !important;
    grid-template-columns: 16px 24px minmax(0,1fr) auto !important;
    gap: 9px !important;
    align-items: center !important;
    padding: 13px 12px !important;
    min-height: 50px !important;
  }
  body .wm__row img, body .wm__icon {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
  }
  body .wm__row .wm__st {white-space:nowrap!important;font-size:11px!important}
  body .wm__row .ink {min-width:0!important;overflow-wrap:normal!important}
  @supports not (height: 100dvh) {
    body .wm__box {max-height: calc(100vh - 116px - env(safe-area-inset-bottom)) !important;}
  }
}
@media screen and (max-width:360px) {
  body .wm {padding-left:8px!important;padding-right:8px!important}
  body .wm__row{grid-template-columns:12px 22px minmax(0,1fr) auto!important;gap:6px!important;padding:11px 8px!important}
  body .wm__row .wm__st{font-size:10px!important}
}
