/* Payment pages (/payment/success, /payment/fail) and the store blocks of the market. Warm Monochrome: ink and
   paper, square state cells (turquoise = done, pink = attention), no glow. */
.pay-result { max-width: 560px; margin-inline: auto; }
.pay-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pay-state h1 { margin: 6px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.pay-state p { margin: 0; }
.pay-order { font: 400 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); word-break: break-all; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay-mark { width: 14px; height: 14px; border-radius: 2px; background: var(--ink); }
.pay-mark.paid { background: var(--teal); }
.pay-mark.failed { background: var(--pink); }
.pay-mark.neutral { background: var(--line-2); }
.pay-cells { display: inline-flex; gap: 4px; }
.pay-cells i { width: 12px; height: 12px; border-radius: 2px; background: var(--line-2); animation: pay-step 1.2s steps(1) infinite; }
.pay-cells i:nth-child(2) { animation-delay: .4s; }
.pay-cells i:nth-child(3) { animation-delay: .8s; }
@keyframes pay-step { 0%, 33% { background: var(--teal); } 34%, 100% { background: var(--line-2); } }
@media (prefers-reduced-motion: reduce) { .pay-cells i { animation: none; } .pay-cells i:first-child { background: var(--teal); } }

/* the development sandbox's pages */
.pay-body { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--ui); }
.pay-card { width: min(480px, 100%); padding: 24px; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pay-sandbox { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--bg-2); font-size: 13px; display: flex; gap: 8px; }
.pay-sandbox::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 1px; background: var(--warn); }

/* the store in the market */
.store { display: grid; gap: 24px; }
.store-lead { margin: -8px 0 0; color: var(--muted); max-width: 60ch; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.store-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.store-card h2 { margin: 0; font-size: 21px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.store-card .price { font: 500 26px/1 var(--ui); letter-spacing: -.01em; }
.store-card .btn { align-self: flex-start; }
.store-status { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.store-status::before { content: ''; width: 8px; height: 8px; border-radius: 1px; background: var(--c, var(--line-2)); }
.store-section h2 { margin: 0 0 10px; font-size: 17px; font-weight: 500; }
.store-orders { display: grid; gap: 0; }
.store-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.store-order small { grid-column: 1; color: var(--muted); }
.store-order .pay-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.store-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 540px) {
  .pay-state h1 { font-size: 26px; }
  .store-order { grid-template-columns: 1fr; }
  .store-order .pay-actions { grid-column: 1; grid-row: auto; }
}
