/* claim drawer */
.return-checkout {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 29;
  box-shadow: 0 4px 24px #0002;
}
body:has(.drawer:not([hidden])) {
  padding-right: 460px;
}
body:has(.drawer:not([hidden])) nav.top .cta {
  display: none;
}
@media (max-width: 900px) {
  body:has(.drawer:not([hidden])) {
    padding-right: var(--page-gutter);
  }
  .drawer {
    left: 0;
    width: 100vw !important;
    height: 100dvh;
  }
}
.drawer .body {
  overscroll-behavior: contain;
}
.faq details {
  scroll-margin-top: 20px;
}
.faq details:target {
  background: var(--red-soft);
  border-radius: 8px;
}
.payment-help {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.payment-help summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
}
.payment-help summary::-webkit-details-marker {
  display: none;
}
.payment-help summary span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  margin-right: 4px;
}
.payment-help p {
  margin-top: 10px;
}
.terms-check a {
  color: var(--accent-ink);
}
.artwork-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  display: inline-flex;
}
.artwork-button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 4px;
}
#views .zone-logo {
  pointer-events: none;
}
#views .zone-logo {
  opacity: 1;
}
.artwork-dialog {
  width: min(800px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.artwork-dialog::backdrop {
  background: #11182799;
}
.artwork-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.artwork-dialog .x {
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  width: 44px;
  height: 44px;
}
.artwork-dialog img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: min(60dvh, 600px);
  object-fit: contain;
  background: #f6f7f8;
}
.artwork-dialog p {
  margin-top: 16px;
}
.artwork-state{display:grid;place-content:center;justify-items:center;gap:16px;min-height:220px;padding:24px;background:var(--bg);text-align:center;color:var(--muted)}
.artwork-state p{max-width:40ch;margin:0}
.artwork-initial{display:inline-grid!important;place-items:center;background:var(--band);color:var(--ink);font:16px var(--mono)}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: #fff;
  z-index: 31;
  border-left: 1px solid var(--rule);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: -20px 0 40px #0000001a;
}
.drawer header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--rule);
}
.drawer header h3 {
  font-size: 22px;
  font-weight: 600;
}
.drawer .x {
  background: none;
  border: 0;
  font: 400 24px var(--mono);
  color: var(--muted);
  cursor: pointer;
}
@media (max-width: 760px) {
  nav.top .cta {
    display: none;
  }
  nav.top .in {
    justify-content: space-between;
    gap: 12px;
  }
  #connectWallet {
    padding: 12px;
    font-size: 11px;
  }
}
.drawer .body {
  overflow: auto;
  padding: 22px 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.drawer .foot {
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font: 500 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  font: 15px var(--sans);
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input[aria-invalid="true"] {
  border-color: var(--red);
  background: var(--red-soft);
}
#fApp {
  width: auto;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent-ink);
  outline-offset: 0;
  border-color: transparent;
}
.field-error {
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}
.field [aria-invalid="true"] {
  border-color: #b42318;
}
.wallet-handoff {
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: grid;
  gap: 8px;
}
.wallet-handoff p {
  font-size: 13px;
  color: var(--muted);
}
.checkout-support {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.checkout-support .text-action {
  font-size: 12px;
}
.checkout-status > .btn {
  justify-self: center;
}
@media (max-width: 900px) {
  body:has(.drawer:not([hidden])) {
    overflow: hidden;
  }
}
.steps3 {
  display: flex;
  gap: 8px;
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.steps3 span {
  flex: 1;
  border-top: 3px solid var(--rule);
  padding-top: 6px;
  color: var(--faint);
}
.steps3 span.on {
  border-color: var(--red);
  color: var(--ink);
}
.paybox {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.paybox .amt {
  font: 700 30px var(--mono);
}
.qr {
  width: 112px;
  height: 112px;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0/16px
    16px;
  border: 6px solid #fff;
  outline: 1px solid var(--rule);
}
.note {
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 0 6px 6px 0;
}
.logo-prev {
  height: 72px;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 13px;
  overflow: hidden;
}
.logo-prev img {
  max-height: 60px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Wallet checkout */
.drawer .body {
  min-height: 0;
}
.checkout-panel {
  display: grid;
  gap: 16px;
}
.checkout-intro {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}
.checkout-error {
  font-size: 14px;
  color: #a52a21;
  line-height: 1.5;
  margin: 0;
}
.checkout-error:empty {
  display: none;
}
.subtle,
.field small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.checkout-details {
  font-size: 13px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.checkout-details summary {
  cursor: pointer;
  color: var(--muted);
  line-height: 1.5;
}
.checkout-details summary span {
  font-size: 11px;
  margin-left: 6px;
  color: var(--faint);
}
.optional-fields {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}
.optional-fields a {
  color: var(--ink);
}
.terms-check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.terms-check input {
  margin-top: 4px;
  accent-color: var(--accent-ink);
}
.footer-total {
  display: grid;
  gap: 3px;
}
.footer-total span {
  font-size: 11px;
  color: var(--muted);
}
.footer-total strong {
  font: 600 18px var(--sans);
}
.drawer .foot > .btn {
  min-width: 180px;
  min-height: 48px;
}
.hold-time {
  margin: 0;
  font: 11px var(--mono);
}
.payment-activity {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--red-soft);
  border-radius: 8px;
}
.payment-activity > div {
  display: grid;
  gap: 4px;
}
.payment-activity strong {
  font-size: 14px;
}
.payment-activity div span {
  font-size: 13px;
  color: var(--muted);
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  border: 2px solid #aab3a8;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: checkout-spin 0.8s linear infinite;
}
@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}
.checkout-status {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 30px 0;
}
.checkout-status h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}
.checkout-status > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 31ch;
  margin: 0;
}
.status-icon {
  width: 72px;
  height: 72px;
  background: #f4f5f2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.status-icon .spinner {
  width: 30px;
  height: 30px;
}
.status-icon.success {
  background: var(--red-soft);
  color: #297414;
}
.status-icon svg {
  width: 34px;
  height: 34px;
}
.status-icon.attention {
  font-size: 30px;
  color: #a52a21;
  background: #fff2ec;
}
.payment-progress {
  display: flex;
  list-style: none;
  padding: 12px 0;
  margin: 0;
  width: 100%;
  gap: 10px;
}
.payment-progress li {
  flex: 1;
  position: relative;
  font-size: 11px;
  color: var(--faint);
  padding-top: 16px;
  border-top: 3px solid var(--rule);
}
.payment-progress li.complete {
  color: var(--ink);
  border-top-color: var(--red);
}
.payment-progress li.current {
  color: var(--ink);
  border-top-color: #c1eea6;
}
.checkout-status .checkout-details {
  width: 100%;
  text-align: left;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .drawer header {
    padding: 18px 20px;
  }
  .drawer .body {
    padding: 20px;
  }
  .drawer .foot {
    padding: 14px 20px;
  }
  .checkout-status {
    padding-top: 20px;
  }
  .drawer .foot > .btn {
    min-width: 165px;
  }
  .checkout-total strong {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

/* Checkout components share a restrained type scale and interaction language. */
.drawer,
.wallet-dialog,
.asset-dialog {
  --ui-surface: #f5f6f3;
  --ui-muted: #62675e;
  --ui-line: #e6e8e2;
  --ui-radius: 14px;
  color: var(--ink);
  font-family: var(--sans);
}
.drawer header {
  padding: 22px 24px 18px;
}
.drawer header h3 {
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.drawer header .cap {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ui-muted);
}
.drawer .x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: 24px var(--sans);
  flex: none;
  line-height: 1;
}
.drawer .x:hover {
  background: var(--ui-surface);
  color: var(--ink);
}
.drawer .body {
  gap: 22px;
}
.steps3 {
  gap: 12px;
  font: 500 12px var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.steps3 span {
  padding-top: 8px;
  border-top-width: 2px;
  color: var(--ui-muted);
}
.steps3 span.on {
  border-color: #55ca2b;
}
.drawer[data-step="2"] #takeoverSummary {
  display: none;
}
.drawer[data-step="2"] .foot {
  display: block;
}
.drawer[data-step="2"] .footer-total {
  display: none;
}
.drawer[data-step="2"] #payBtn {
  width: 100%;
  min-height: 50px;
  font: 600 15px var(--sans);
  letter-spacing: 0;
  text-transform: none;
  border-radius: 10px;
}
.drawer[data-step="2"] #payBtn:disabled {
  background: #ecede8;
  border-color: #ecede8;
  color: #777c72;
  opacity: 1;
}
.checkout-panel {
  gap: 18px;
}
.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ui-line);
}
.order-summary > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.order-label {
  font-size: 12px;
  color: var(--ui-muted);
}
.order-description {
  font-size: 15px;
  font-weight: 500;
}
.order-price {
  display: grid;
  justify-items: end;
  gap: 2px;
  flex: none;
}
.order-price strong {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.order-price > span {
  font: 10px var(--mono);
  color: var(--ui-muted);
}
.payment-wallet {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ui-muted);
  min-width: 0;
}
.payment-wallet .wallet-logo {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 5px;
}
.payment-wallet > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.payment-wallet button {
  border: 0;
  background: none;
  padding: 8px 0 8px 8px;
  font: 500 12px var(--sans);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.payment-wallet button:hover {
  text-decoration: underline;
}
.payment-wallet button:disabled {
  opacity: 0.45;
  cursor: default;
}
.payment-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 18px;
  display: grid;
  gap: 16px;
}
.payment-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--ui-muted);
}
.payment-card-heading label {
  font-weight: 500;
  color: var(--ink);
}
#assetBalance {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
#fAsset {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dce0d6;
  border-radius: 10px;
  width: 100%;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px #1c281009;
}
#fAsset:hover {
  border-color: #9ca893;
}
#fAsset:disabled {
  cursor: default;
  opacity: 0.65;
}
.asset-name {
  display: grid;
  gap: 2px;
}
#assetLabel {
  font: 600 16px var(--sans);
}
#assetNetwork {
  font: 12px var(--sans);
  color: var(--ui-muted);
}
#assetIcon {
  display: flex;
}
.asset-chevron {
  margin-left: auto;
  font: 18px var(--sans);
  color: var(--ui-muted);
}
.token-icon {
  width: 36px;
  height: 36px;
  position: relative;
  display: block;
  flex: none;
}
.token-icon > img {
  width: 100%;
  height: 100%;
  display: block;
}
.token-icon > .network-badge {
  position: absolute;
  width: 16px;
  height: 16px;
  bottom: -1px;
  right: -3px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: white;
}
.payment-estimate {
  display: grid;
  gap: 5px;
}
.payment-estimate > span {
  font-size: 11px;
  color: var(--ui-muted);
}
.payment-estimate strong {
  font: 600 clamp(23px, 6vw, 30px) var(--sans);
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.estimate-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.estimate-caption p {
  font-size: 11px;
  color: var(--ui-muted);
  line-height: 1.5;
  flex: 1;
}
.estimate-caption .icon-action {
  width: 30px;
  height: 30px;
  min-height: 30px;
}
.icon-action {
  background: transparent;
  border: 0;
  color: var(--ui-muted);
  font: 22px var(--sans);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center;
}
.icon-action:hover {
  background: #e8ebe3;
  color: var(--ink);
}
.text-action {
  border: 0;
  background: none;
  color: var(--accent-ink);
  font: 13px var(--sans);
  padding: 8px 0;
  cursor: pointer;
  text-decoration: underline;
}
.checkout-panel > .text-action {
  justify-self: start;
}
.return-disclosure {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: #fff;
}
.return-disclosure summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}
.return-disclosure summary::-webkit-details-marker {
  display: none;
}
.return-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  background: #eff8e9;
  color: #387825;
  border-radius: 50%;
  font-size: 18px;
}
.return-disclosure summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
  flex: 1;
}
.return-label {
  font-size: 11px;
  color: var(--ui-muted);
}
.return-disclosure strong {
  font-size: 13px;
  font-weight: 600;
}
.disclosure-chevron {
  color: var(--ui-muted);
  font-size: 18px;
}
.return-disclosure[open] .disclosure-chevron {
  transform: rotate(180deg);
}
.return-disclosure p {
  padding: 0 14px 14px;
  font-size: 12px;
  color: var(--ui-muted);
  line-height: 1.6;
}
.payment-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.availability,
.hold-time {
  font: 11px var(--sans);
  text-align: center;
  color: var(--ui-muted);
}
.balance-warning {
  border: 1px solid #ebd5a5;
  background: #fffaed;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #755016;
}
.balance-warning .text-action {
  display: block;
  font-size: 12px;
  color: inherit;
  padding: 4px 0 0;
}
.connect-prompt {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 10px 24px;
}
.connect-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d7dfd0;
  border-radius: 12px;
  background: #fff;
  font-size: 24px;
}
.connect-prompt strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.connect-prompt p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ui-muted);
  max-width: 24ch;
}
.wallet-dialog,
.asset-dialog {
  padding: 0;
  border: 1px solid #e2e5dd;
  border-radius: 20px;
  width: min(410px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 24px 100px #17220b29;
  overflow: auto;
}
.wallet-dialog::backdrop,
.asset-dialog::backdrop {
  background: #11180f66;
  backdrop-filter: blur(3px);
}
body:has(.wallet-dialog[open]),
body:has(.asset-dialog[open]) {
  overflow: hidden;
}
.wallet-dialog header,
.asset-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
}
.wallet-dialog h3,
.asset-dialog h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.wallet-dialog .x,
.asset-dialog .x {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--ui-surface);
  font: 24px var(--sans);
  color: var(--ui-muted);
  cursor: pointer;
  flex: none;
  line-height: 1;
}
.wallet-dialog .x:hover,
.asset-dialog .x:hover {
  background: #e8ebe3;
  color: var(--ink);
}
#walletIdentity {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ui-muted);
  padding: 0 22px 18px;
  overflow-wrap: anywhere;
}
#walletOptions {
  display: grid;
  gap: 6px;
  padding: 0 12px 14px;
}
.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font: 500 15px var(--sans);
}
.wallet-option:hover {
  background: var(--ui-surface);
  border-color: var(--ui-line);
}
.wallet-option:disabled {
  cursor: wait;
  opacity: 0.5;
}
.wallet-option[data-pending="true"] {
  background: var(--ui-surface);
  opacity: 1;
}
.wallet-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: none;
  border-radius: 9px;
}
.wallet-generic {
  display: grid;
  place-items: center;
  background: #e8ebe3;
  font-size: 22px;
}
.wallet-option .wallet-name {
  flex: 1;
}
.wallet-option .wallet-chevron {
  color: #90978a;
}
.wallet-chevron::before {
  content: "›";
}
.wallet-option[data-pending="true"] .wallet-chevron::before {
  content: "";
}
.wallet-option[data-pending="true"] .wallet-chevron {
  width: 16px;
  height: 16px;
  border: 2px solid #c4cbbc;
  border-top-color: var(--ink);
  border-radius: 50%;
  font-size: 0;
  animation: checkout-spin 0.8s linear infinite;
}
#walletLoginError {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 22px 16px;
}
#walletLoginError[data-pending="true"] {
  color: var(--ui-muted);
}
#walletLoginError:empty {
  display: none;
}
.wallet-dialog footer {
  padding: 14px 22px;
  background: #f7f8f5;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.6;
}
#disconnectWallet {
  margin: 0 22px 16px;
}
.wallet-browser-handoff{display:grid;gap:12px;padding:4px 22px 20px}
.wallet-handoff-actions{display:flex;flex-wrap:wrap;gap:8px}
.wallet-handoff-actions .btn{flex:1;white-space:nowrap;padding:12px;font-size:12px}
.wallet-browser-handoff .text-action{justify-self:start;font-size:12px}
#walletLinkFeedback{font-size:12px;color:var(--muted)}
#walletSiteLink{width:100%;font-size:12px}
.asset-filters {
  padding: 0 16px 12px;
  display: grid;
  gap: 12px;
}
.asset-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  border-radius: 10px;
  padding: 0 12px;
  gap: 8px;
}
.asset-search > svg {
  flex: none;
  color: var(--ui-muted);
}
.asset-search:focus-within {
  border-color: #8fa683;
  box-shadow: 0 0 0 2px #a3c38f25;
}
.asset-search input {
  font: 14px var(--sans);
  color: var(--ink);
  padding: 12px 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
}
.network-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 1px 6px;
}
.network-filters button {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 7px 9px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: #fff;
  font: 12px var(--sans);
  color: var(--ui-muted);
  cursor: pointer;
  min-height: 34px;
  flex: none;
}
.network-filters img {
  width: 18px;
  height: 18px;
}
.network-filters button:hover {
  background: var(--ui-surface);
}
.network-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.asset-options {
  max-height: min(368px, 44dvh);
  min-height: 180px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 10px 8px;
  scrollbar-width: thin;
}
.asset-group {
  padding: 10px 12px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ui-muted);
}
.asset-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: 14px var(--sans);
  cursor: pointer;
  text-align: left;
  min-height: 62px;
}
.asset-option:hover {
  background: var(--ui-surface);
}
.asset-option[aria-pressed="true"] {
  background: #f0f8e9;
  border-color: #d5e9c9;
}
.asset-option:disabled {
  opacity: 0.6;
  cursor: wait;
}
.asset-option strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.asset-option small {
  display: block;
  font-size: 11px;
  color: var(--ui-muted);
  margin-top: 3px;
}
.asset-amount {
  margin-left: auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.asset-check {
  width: 13px;
  font-size: 13px;
  color: #387825;
  flex: none;
}
.asset-dialog footer {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--ui-line);
  background: #fafbf8;
}
.asset-dialog footer > span {
  font-size: 11px;
  color: var(--ui-muted);
  flex: 1;
}
#assetEmpty {
  height: min(368px, 44dvh);
  display: grid;
  place-items: center;
  padding: 24px;
  font-size: 13px;
  text-align: center;
  color: var(--ui-muted);
}
#assetPickerStatus {
  padding: 0 22px 12px;
  font-size: 12px;
}
.drawer :is(button, summary):focus-visible,
.wallet-dialog :is(button, a):focus-visible,
.asset-dialog button:focus-visible {
  outline: 2px solid #447a2c;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .drawer header {
    padding: 18px 20px 16px;
  }
  .drawer .body {
    gap: 20px;
  }
  .checkout-panel {
    gap: 16px;
  }
  .payment-card {
    padding: 16px;
  }
  .wallet-dialog,
  .asset-dialog {
    width: calc(100vw - 24px);
    border-radius: 18px;
  }
  .network-filters button {
    min-height: 36px;
  }
  .asset-search input {
    font-size: 16px;
  }
  .drawer[data-step="2"] .foot {
    padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  }
  .drawer .foot {
    background: #fff;
  }
  .payment-wallet {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-option[data-pending="true"] .wallet-chevron {
    animation: none;
  }
}

@media (min-width: 901px) and (max-width: 1450px) {
  body:has(.drawer:not([hidden])) nav.top .in { gap: 12px; flex-wrap: wrap; padding-block: 10px; }
  body:has(.drawer:not([hidden])) .nav-links { order: 3; flex-basis: 100%; justify-content: space-between; gap: 12px; }
}

.payment-progress li {
  color: var(--ui-muted);
}
/* Saved payout terms stay visible while a return is queued or confirmed. */
.refund-summary{margin:24px 0;padding:16px;border:1px solid var(--rule);border-radius:12px;font-size:14px;text-align:left}
.refund-summary>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;padding:6px 0}
.refund-summary dt{color:var(--muted)}
.refund-summary dd{margin:0}
.refund-destination{font-family:var(--mono);font-size:12px;overflow-wrap:anywhere}
.draft-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:16px;border-top:1px solid var(--rule);font-size:12px;color:var(--muted)}
.draft-tools .text-action{flex-shrink:0;font-size:12px}
.edit-details{align-self:flex-start;margin-top:6px;font-size:12px}
.artwork-filename{overflow-wrap:anywhere}
.wallet-account-type{display:block;padding:0 22px 6px;font-size:12px;color:var(--muted)}
.asset-option .asset-requirement{display:table;margin-top:4px;padding:2px 6px;border-radius:4px;background:var(--bg,#f4f5f6);font-size:10px;line-height:1.4;color:var(--muted)}
