/* Piro wallet picker — matches site tokens (Figtree, accent green, line borders) */
#piro-wallet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
}
#piro-wallet-root.open {
  display: block;
}
#piro-wallet-root .pw-scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, #0c1410 38%, transparent);
  backdrop-filter: blur(8px);
}
#piro-wallet-root .pw-panel {
  position: relative;
  z-index: 1;
  width: min(26.5rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100vh - 2rem));
  overflow: auto;
  margin: 12vh auto 0;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--color-line, #e2e8e3);
  border-radius: 1rem;
  background: var(--color-bg, #fff);
  color: var(--color-ink, #0c1410);
  box-shadow: 0 24px 60px color-mix(in oklab, #0c1410 16%, transparent);
}
#piro-wallet-root .pw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
#piro-wallet-root .pw-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-dim, #6b7970);
}
#piro-wallet-root .pw-title {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
#piro-wallet-root .pw-sub {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted, #5d6b62);
}
#piro-wallet-root .pw-close {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-line, #e2e8e3);
  border-radius: 999px;
  color: var(--color-muted, #5d6b62);
  cursor: pointer;
}
#piro-wallet-root .pw-close:hover {
  border-color: var(--color-dim, #6b7970);
  background: var(--color-raised, #f2f5f2);
  color: var(--color-ink, #0c1410);
}
#piro-wallet-root .pw-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#piro-wallet-root .pw-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-line, #e2e8e3);
  border-radius: 0.75rem;
  background: var(--color-surface, #fbfcfb);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
#piro-wallet-root .pw-item:hover:not(:disabled) {
  border-color: color-mix(in oklab, var(--color-accent, #12a150) 45%, var(--color-line, #e2e8e3));
  background: #fff;
  transform: translateY(-1px);
}
#piro-wallet-root .pw-item:disabled {
  opacity: 0.55;
  cursor: wait;
}
#piro-wallet-root .pw-item img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex: none;
  border-radius: 0.4rem;
}
#piro-wallet-root .pw-name {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
}
#piro-wallet-root .pw-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-ink, #0a6b35);
  background: color-mix(in oklab, var(--color-accent, #12a150) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-accent, #12a150) 28%, transparent);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
#piro-wallet-root .pw-meta.pending {
  color: var(--color-accent-soft, #0c7f3e);
}
#piro-wallet-root .pw-error {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-down, #c02617);
}
#piro-wallet-root .pw-foot {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-dim, #6b7970);
}
@media (max-width: 640px) {
  #piro-wallet-root .pw-panel {
    margin: 0;
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    max-height: min(86vh, 40rem);
    padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
    border-radius: 1.25rem;
  }
  #piro-wallet-root .pw-item {
    padding: 0.58rem 0.75rem;
  }
  #piro-wallet-root .pw-item img {
    width: 2rem;
    height: 2rem;
  }
}
