/* Arknet: styles for the wallet payment block and the trust pages.
   Kept out of the site stylesheet so these pages work whichever build of it is deployed.
   Colours come from the site's own tokens, so light, dark and high-contrast modes follow. */

/* ---- The pay block ------------------------------------------------------------------------ */
.pay-wait, .pay-working { display: flex; align-items: center; gap: 0.625rem; min-height: 3rem; color: var(--muted); font-size: 0.9375rem; }
.pay-working { color: var(--ink); font-weight: 600; }
.pay-spin { flex: none; width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: pay-spin 0.8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spin { animation-duration: 2.4s; } }
.pay-fallback h2 { font-size: 1rem; line-height: 1.3; }
/* Black on white in both colour schemes: that is what phone cameras read most reliably. */
.pay-qr { display: block; width: 11rem; height: 11rem; margin: 1rem auto; padding: 0.5rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #ffffff; }
/* The link is short enough to show whole; let it wrap instead of scrolling out of sight. */
.pay-fallback .copyline code { white-space: normal; overflow-wrap: anywhere; }
.pay-small { margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.pay-trust { margin-top: 1rem; color: var(--muted); font-size: 0.875rem; }

/* ---- Terms, privacy, refunds, contact ------------------------------------------------------ */
.legal { max-width: 42rem; margin-inline: auto; }
.legal h2 { margin-top: 2.25rem; }
.legal h3 { margin-top: 1.5rem; }
.legal p, .legal ul, .legal ol, .legal dl { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal ol { list-style: decimal; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.375rem; }
.legal dt { font-weight: 600; margin-top: 0.75rem; }
.legal address { font-style: normal; white-space: pre-line; }
.legal-draft { margin-bottom: 1.5rem; padding: 0.75rem 1rem; border: 1px solid var(--danger); border-radius: 0.75rem; background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.legal-draft span { display: block; margin-top: 0.25rem; font-weight: 400; }
.legal-blank { padding: 0 0.375rem; border: 1px dashed var(--accent); border-radius: 0.375rem; background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---- The form that makes a problem, its drafts and the pay page's states ------------------- */
.field-error { display: flex; align-items: flex-start; gap: 0.375rem; margin-top: 0.375rem; color: var(--danger); font-size: 0.875rem; font-weight: 560; }
.field-error svg { flex: none; margin-top: 0.2rem; }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
[data-error-summary] a { color: inherit; text-decoration: underline; }
[data-error-summary]:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.draft-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.count-over { color: var(--danger); font-weight: 600; }
.pay-state { display: grid; gap: 0.75rem; }
.pay-state h2 { font-size: 1.0625rem; line-height: 1.3; }
.pay-steps { display: grid; gap: 0.5rem; padding-left: 1.25rem; list-style: decimal; color: var(--ink); font-size: 0.9375rem; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.first-steps ol { display: grid; gap: 0.75rem; padding-left: 1.25rem; list-style: decimal; }
.first-steps li::marker { font-weight: 640; }
