/* Wallet commerce override: redemption codes are the only funding path. */
body[data-un-route="topup"] [data-un-wallet-hidden],
body[data-un-route="topup"] [data-un-referral-plan] {
  display: none !important;
}

body[data-un-route="topup"] #wallet-add-funds [data-slot="card-content"] {
  display: block;
}

body[data-un-route="topup"] .un-wallet-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(237, 237, 242, 0.1);
}

body[data-un-route="topup"] .un-wallet-purchase-copy {
  min-width: 0;
}

body[data-un-route="topup"] .un-wallet-purchase-title {
  margin: 0;
  color: #ededf2;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

body[data-un-route="topup"] .un-wallet-purchase-description {
  margin: 0.25rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.5;
}

body[data-un-route="topup"] .un-wallet-purchase-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(237, 237, 242, 0.18);
  border-radius: calc(var(--radius) - 4px);
  background: #ededf2;
  color: #0a0a0b !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

body[data-un-route="topup"] .un-wallet-purchase-link:hover {
  background: #d7d7dc;
}

body[data-un-route="topup"] .un-wallet-purchase-link:active {
  transform: translateY(1px);
}

body[data-un-route="topup"] .un-wallet-purchase-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

body[data-un-route="topup"] .un-wallet-purchase-link span[aria-hidden="true"] {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 640px) {
  body[data-un-route="topup"] .un-wallet-purchase {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-un-route="topup"] .un-wallet-purchase-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-un-route="topup"] .un-wallet-purchase-link {
    transition: none;
  }
}
