/* The payment instructions page (templates/citizen/payment.html) and the payment lines of the request page. Linked
 * after app.css and before brand.css. It uses only the custom properties of app.css, no color of its own, so the
 * contrast pairs of TestContrast and the brand and dark settings cover it (TestPaymentCSSUsesTokens). */

.pay-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: 0 0 0.75rem; padding: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }
.pay-crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.pay-crumbs li + li::before { content: "/"; color: var(--neutral-dark); }
.pay-crumbs a { display: inline-flex; align-items: center; min-block-size: 2.75rem; color: var(--link); text-decoration: none; font-weight: 500; }
.pay-crumbs a:hover { text-decoration: underline; }
.pay-crumbs [aria-current="page"] { color: var(--fg); }

.pay-layout { display: grid; gap: 0 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.bill { border-block-start: 4px solid var(--primary); }
.bill-expired, .bill-cancelled { border-block-start-color: var(--neutral-dark); }
.bill-paid, .bill-refund_pending, .bill-refunded { border-block-start-color: var(--green); }
.bill-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-block-end: 1.25rem; }
.bill-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; inline-size: 3rem; block-size: 3rem; color: var(--on-dark); background: var(--primary); border-radius: 0.85rem; }
.bill-logo .icon { inline-size: 1.5rem; block-size: 1.5rem; }
.bill-biller { flex: 1; min-inline-size: 12rem; }
.bill-biller .eyebrow { margin: 0; }
.bill-biller h2 { margin: 0.1rem 0 0; color: var(--fg); font-size: 1.15rem; }

/* The billing number: large monospace, three groups of four. The groups are spans without spaces between them, so
 * the copy button copies the 12 digits only, the gap is drawn here. */
.bill-number { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-block-end: 1.25rem; padding: 1rem 1.25rem; background: var(--tint-blue); border: 1px dashed var(--input-border); border-radius: var(--radius-card); }
.bill-number-label { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.bill-number-value { margin: 0; color: var(--primary); font-size: clamp(1.6rem, 2.4vw + 1rem, 2.25rem); font-weight: 600; line-height: 1.2; letter-spacing: 0.04em; }
.bill-number-value .mono { font-size: 1em; overflow-wrap: normal; white-space: nowrap; }
.bill-number-value .mono span + span { margin-inline-start: 0.55ch; }
.bill-number .copy { margin-inline-start: auto; }

.bill-facts .bill-amount dd { color: var(--primary); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bill .notice { margin-block: 1.25rem 0; }
.bill .notice-ok { color: var(--green); background: var(--green-bg); border-color: var(--green); }
.bill .notice-warn { color: var(--amber); background: var(--amber-bg); border-color: var(--amber); }
.bill .actions { margin-block-start: 1.25rem; }

.pay-side .card { margin-block-end: 1.5rem; }
.howto-steps { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.howto-steps li { position: relative; min-block-size: 2rem; padding-inline-start: 2.75rem; padding-block-start: 0.2rem; counter-increment: step; }
.howto-steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0; display: inline-flex; align-items: center; justify-content: center; inline-size: 2rem; block-size: 2rem; color: var(--primary); background: var(--tint-blue); border-radius: 50%; font-weight: 600; }
.howto-steps strong { color: var(--fg); }
.sample-bank { background: var(--surface); border-style: dashed; box-shadow: none; }
.sample-bank p { color: var(--muted); }

/* The two states only the payment page shows, and the payment lines of the request page. */
.pay-expired, .pay-cancelled { color: var(--grey); background: var(--grey-bg); }
.pay-line { color: var(--fg); font-size: 0.9rem; }
.pay-line .mono { color: var(--primary); font-weight: 600; }

@media (max-width: 39.99rem) {
  .bill-number { padding: 0.85rem 1rem; }
  .bill-number .copy { margin-inline-start: 0; }
}

@media (min-width: 64rem) {
  .pay-layout { grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr); }
}

@media print {
  .pay-crumbs, .sample-bank { display: none !important; }
  .bill { box-shadow: none; }
}
