/* Pay by hand (ZainCash / Qi Card / cash to the owner) · /shop/pay/. Needs tokens.css + ui.css + ../shop.css first.
   Tokens only (no new colours), mobile first, dark mode through the tokens. Leaf = money that arrived, ember = money taken back. */
.pay { display: flex; flex-direction: column; gap: var(--s4); padding-bottom: calc(var(--s8) + env(safe-area-inset-bottom)); }
.pay__now { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: var(--t-small); color: var(--ink-2); }
.pay__now b { color: var(--ink); font-size: 18px; font-weight: 700; }
.pay__now .sk { display: inline-block; width: 90px; height: 18px; vertical-align: middle; }
.pay__lead { margin-top: -6px; }

/* one payment method */
.pm { display: flex; flex-direction: column; gap: 12px; }
.pm__top { display: flex; align-items: center; gap: 12px; }
.pm__ico { width: 44px; height: 44px; flex: none; border-radius: 14px 14px 14px 4px; background: var(--card-2); color: var(--ink); display: grid; place-items: center; }
.pm__name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.pm__name b { font-size: 16px; font-weight: 600; }
.pm__name span { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.pm__num { display: flex; align-items: center; gap: 10px; background: var(--card-2); border-radius: var(--r-m); padding-block: 6px; padding-inline: 14px 6px; }
.pm__num bdi { flex: 1; min-width: 0; text-align: end; font: 700 19px/1.35 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pm__copy { flex: none; min-height: var(--tap); min-width: 76px; padding: 0 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--card);
  font: 600 14px/1 var(--font); transition: transform var(--t-press) var(--ease-out); }
.pm__copy:active { transform: scale(.96); }
.pm__copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pm__copy .ico { width: 16px; height: 16px; }
.pm__how { margin: 0; font: var(--t-small); color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }

/* the "I paid" form */
.pay__note { min-height: 88px; padding: 12px 16px; line-height: 1.6; resize: vertical; }
.pay__amt { font-size: 20px; font-weight: 600; }

/* requests */
.preq-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.preq { background: var(--card); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.preq.is-pending { box-shadow: inset 0 0 0 2px var(--line-input); }
.preq__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.preq__what { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.preq__what b { font-size: 15px; font-weight: 600; }
.preq__what span { font-size: 12px; color: var(--ink-3); }
.preq__amt { display: flex; align-items: baseline; gap: 6px; }
.preq__amt .amt { font-size: 22px; }
.preq__amt span { font-size: 13px; color: var(--ink-2); }
.preq__line { margin: 0; font: var(--t-small); color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.preq__line b { font-weight: 600; color: var(--ink); }
.preq__line--out { color: var(--ember-ink); font-weight: 500; }
.preq__line--bad { color: var(--alarm); font-weight: 500; }
.preq__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.preq__acts .btn { flex: 1; }
.preq__confirm { display: flex; flex-direction: column; gap: 10px; background: var(--alarm-tint); border-radius: 16px; padding: 12px 14px; font: var(--t-small); }
.preq__confirm .row .btn { flex: 1; }
.preq__link { align-self: flex-start; min-height: var(--tap); display: inline-flex; align-items: center; font: 600 14px/1 var(--font); color: var(--saffron-ink); }

.pay__off { margin-top: 8px; }
.pay__off .row { justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
