.wallets-page .wallet-category-nav,
.wallets-page .local-logo-name {
  display: none;
}

.wallets-page .channel-section {
  scroll-margin-top: 92px;
}

@media (max-width: 720px) {
  .wallets-page .hero {
    padding: 26px 0 24px;
  }

  .wallets-page .hero-panel {
    min-height: 0;
    padding: 26px 20px 30px;
    border-radius: 12px 12px 34px 12px;
  }

  .wallets-page .kicker {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .wallets-page .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(30px, 8vw, 34px);
    line-height: 1.16;
  }

  .wallets-page .lead {
    font-size: 14px;
    line-height: 1.55;
  }

  .wallets-page .wallets {
    padding: 22px 0 56px;
    overflow: clip;
  }

  .wallets-page .wallet-category-nav {
    display: block;
    margin: 0 -16px 24px;
  }

  .wallets-page .wallet-category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 16px 8px;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .wallets-page .wallet-category-scroll::-webkit-scrollbar,
  .wallets-page .qr-system-grid::-webkit-scrollbar,
  .wallets-page .wallet-grid::-webkit-scrollbar,
  .wallets-page .local-logo-wall::-webkit-scrollbar {
    display: none;
  }

  .wallets-page .wallet-category-link {
    min-height: 40px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    max-width: min(78vw, 280px);
    padding: 0 14px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: #fff;
    color: #435066;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.04);
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
  }

  .wallets-page .wallet-category-link.is-active,
  .wallets-page .wallet-category-link[aria-current="location"] {
    border-color: rgba(0, 153, 99, 0.24);
    background: var(--soft-green);
    color: var(--green-800);
  }

  .wallets-page .qr-system-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
  }

  .wallets-page .qr-system-head {
    margin-bottom: 16px;
  }

  .wallets-page .qr-system-head h2,
  .wallets-page .wallet-toolbar h2 {
    font-size: 23px;
    line-height: 1.22;
  }

  .wallets-page .qr-system-head p,
  .wallets-page .wallet-toolbar p {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.55;
  }

  .wallets-page .qr-system-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .wallets-page .qr-system-card {
    min-height: 138px;
    flex: 0 0 min(82vw, 286px);
    padding: 16px;
    scroll-snap-align: start;
  }

  .wallets-page .qr-system-mark {
    width: 36px;
    height: 36px;
    margin-bottom: 13px;
    border-radius: 10px;
    font-size: 11px;
  }

  .wallets-page .qr-system-card h3 {
    margin-bottom: 7px;
    font-size: 17px;
  }

  .wallets-page .qr-system-card p {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .wallets-page .channel-section + .channel-section {
    margin-top: 42px;
    padding-top: 38px;
  }

  .wallets-page .wallet-toolbar {
    gap: 10px;
    margin-bottom: 16px;
  }

  .wallets-page .wallet-count {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
  }

  .wallets-page .wallet-grid,
  .wallets-page .local-logo-wall {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    width: auto;
    margin: 0 -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .wallets-page .wallet-card {
    flex: 0 0 178px;
    min-height: 0;
    height: 228px;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(20, 32, 51, 0.045);
    scroll-snap-align: start;
  }

  .wallets-page .wallet-card > div:first-child {
    min-width: 0;
  }

  .wallets-page .wallet-logo {
    width: 100%;
    height: 48px;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    background: #f8fafc;
  }

  .wallets-page .wallet-logo img,
  .wallets-page .wallet-card.unionpay-wallet .wallet-logo img,
  .wallets-page .wallet-card.unionpay-wallet .wallet-logo img.wide-logo {
    width: 100%;
    height: 100%;
    max-width: 112px;
    max-height: 38px;
    object-fit: contain;
  }

  .wallets-page .wallet-card h3 {
    min-height: 36px;
    margin: 12px 0 5px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.22;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .wallets-page .wallet-card p {
    min-height: 51px;
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.42;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .wallets-page .wallet-type {
    min-height: 29px;
    margin-top: 9px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .wallets-page .local-logo-card {
    flex: 0 0 132px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(20, 32, 51, 0.045);
    scroll-snap-align: start;
  }

  .wallets-page .local-logo-card img {
    width: 100%;
    height: 48px;
    max-width: 118px;
    max-height: 48px;
    object-fit: contain;
  }

  .wallets-page .local-logo-name {
    display: none;
  }

  .wallets-page .wallet-card.is-logo-error .wallet-logo img,
  .wallets-page .local-logo-card.is-logo-error img {
    display: none;
  }

  .wallets-page .wallet-card.is-logo-error .wallet-logo::before,
  .wallets-page .local-logo-card.is-logo-error::before {
    content: "";
    width: 34px;
    height: 25px;
    display: block;
    border: 2px solid #a8b5c5;
    border-radius: 7px;
    background: linear-gradient(135deg, #f7fafc, #e8eef5);
    box-shadow: inset 0 -7px 0 rgba(168, 181, 197, 0.15);
  }

  .wallets-page .note {
    margin-top: 22px;
    padding: 15px 16px;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .wallets-page .site-footer-button {
    min-height: 44px;
  }
}

@media (min-width: 400px) and (max-width: 720px) {
  .wallets-page .wallet-card {
    flex-basis: 184px;
  }
}

@media (max-width: 360px) {
  .wallets-page .container {
    width: min(100% - 24px, var(--max));
  }

  .wallets-page .hero {
    padding: 20px 0;
  }

  .wallets-page .hero-panel {
    padding: 22px 18px 24px;
  }

  .wallets-page .wallets {
    padding-top: 18px;
  }

  .wallets-page .qr-system-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .wallets-page .qr-system-head p,
  .wallets-page .qr-system-card p {
    display: none;
  }

  .wallets-page .qr-system-card {
    min-height: 92px;
    flex-basis: 210px;
  }

  .wallets-page .qr-system-mark {
    width: 32px;
    height: 32px;
    margin-bottom: 9px;
  }

  .wallets-page .qr-system-card h3 {
    margin: 0;
    font-size: 15.5px;
  }

  .wallets-page .wallet-category-nav,
  .wallets-page .qr-system-grid,
  .wallets-page .wallet-grid,
  .wallets-page .local-logo-wall {
    margin-right: -12px;
    margin-left: -12px;
  }

  .wallets-page .wallet-category-scroll,
  .wallets-page .qr-system-grid,
  .wallets-page .wallet-grid,
  .wallets-page .local-logo-wall {
    padding-right: 12px;
    padding-left: 12px;
    scroll-padding-inline: 12px;
  }

  .wallets-page .wallet-grid,
  .wallets-page .local-logo-wall {
    gap: 8px;
  }

  .wallets-page .wallet-card {
    flex-basis: 164px;
    height: 228px;
  }

  .wallets-page .wallet-logo {
    height: 44px;
    padding: 7px;
  }

  .wallets-page .wallet-card h3 {
    min-height: 35px;
    font-size: 14px;
  }

  .wallets-page .local-logo-card {
    flex-basis: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallets-page .wallet-category-link {
    transition: none;
  }
}
