/* =====================================================================
   PAY-FOR-ME-1 (2026-09-26): css/pay.css — layout for pay.html, the page a
   relative opens to pay a learner's Ngấm order. Loaded AFTER css/styles.css
   and reuses its .account-* rules (buttons, help text, notices, the QR box,
   the payment data list) so the relative sees the same warm shop palette as
   the learner. Only what index.html never needs lives here.
   ===================================================================== */
.pay-page { max-width: 440px; margin: 0 auto; padding: calc(var(--safe-top) + 24px) 18px calc(var(--safe-bottom) + 32px); text-align: left; }
.pay-page [hidden] { display: none !important; }   /* styles.css scopes its [hidden] rule to the account screen */
.pay-eyebrow { margin: 0 0 12px; font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #947347; text-align: center; }
.pay-card { padding: 20px 18px; background: linear-gradient(130deg, #fff5d4, #ffedbd); }
.pay-card h1 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; color: #784119; overflow-wrap: anywhere; }
.pay-card h2 { margin: 18px 0 8px; font-size: 17px; color: #533819; }
.pay-card p { overflow-wrap: anywhere; }
.pay-card .account-button { margin-top: 12px; }
.pay-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 14px 0; font-size: 15px; }
.pay-facts dt { color: #786044; }
.pay-facts dd { margin: 0; font-weight: 700; color: #533819; overflow-wrap: anywhere; }
/* The payment code is read out loud and typed into a bank form, so it never
   breaks across lines however narrow the phone is. */
.pay-vs { font-size: 22px; letter-spacing: 1px; white-space: nowrap; }
/* The bank details read left-aligned here: the relative copies them into a
   bank app, so a value is never right-aligned away from its label. */
.pay-card .account-payment-data { margin: 12px 0; }
.pay-card .account-payment-data dd { text-align: left; }
/* The name came from the link. It is its own element so it can never read as
   part of Ngấm's own sentence; it inherits the surrounding type on purpose. */
.pay-name { overflow-wrap: anywhere; }
/* Under ~360px two columns leave an IBAN barely 150px to sit in and it breaks
   mid-string. Stack each value under its own label instead. */
@media (max-width: 360px) {
  .pay-facts, .pay-card .account-payment-data { grid-template-columns: 1fr; gap: 0; }
  .pay-facts dd, .pay-card .account-payment-data dd { margin: 2px 0 10px; }
}
.pay-card .account-qr img { display: block; width: 100%; height: auto; }
.pay-footer { margin: 22px 0 0; text-align: center; font-size: 13px; }
