/* The customer approval page. Phone first: the QR is scanned on a phone. */
:root {
  --green: #2e7d32; --green-dark: #1b5e20; --green-soft: #e8f5e9;
  --amber: #b26a00; --amber-soft: #fff4e0;
  --red: #b3261e; --red-soft: #fdecea;
  --ink: #1f2933; --muted: #5f6b76; --line: #e1e6ea; --bg: #f4f6f7; --card: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.brand { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.brand img { border-radius: 10px; }
.brand-name { font-weight: 700; font-size: 18px; }
.brand-sub { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card + .card { margin-top: 14px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 22px 0 8px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.meta li { font-size: 14px; }
.meta .k { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.banner { border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid transparent; }
.banner.green { background: var(--green-soft); border-color: #c8e6c9; color: var(--green-dark); }
.banner.amber { background: var(--amber-soft); border-color: #ffe0b2; color: var(--amber); }
.banner.red { background: var(--red-soft); border-color: #f5c6c2; color: var(--red); }
.banner strong { display: block; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.line:last-child { border-bottom: 1px solid var(--line); }
.line .name { font-weight: 600; }
.line .spec, .line .qty { color: var(--muted); font-size: 14px; }
.line .money { text-align: right; font-weight: 600; white-space: nowrap; }
.line .money-sub { text-align: right; color: var(--muted); font-size: 13px; white-space: nowrap; }
.totals { width: 100%; border-collapse: collapse; margin-top: 8px; }
.totals td { padding: 6px 0; font-size: 15px; }
.totals td.num { text-align: right; white-space: nowrap; }
.totals tr.grand td { font-weight: 700; font-size: 17px; border-top: 2px solid var(--ink); padding-top: 10px; }
.terms { white-space: pre-line; color: var(--muted); font-size: 14px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.ask { font-weight: 600; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid #e3e7ea; }
input[type=text], input[type=tel], textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #b9c2ca; border-radius: 8px; background: #fff; }
input[type=text]:focus, input[type=tel]:focus, textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 14px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; width: 100%; text-align: center; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:disabled { background: #9ccc9f; cursor: default; }
.btn.secondary { background: #fff; color: var(--ink); border-color: #b9c2ca; margin-top: 10px; }
.btn.danger { background: #fff; color: var(--red); border-color: #e8b4b0; margin-top: 10px; }
.actions { margin-top: 18px; }
.hidden { display: none !important; }
.error { color: var(--red); font-size: 14px; margin-top: 8px; }
.foot { margin-top: 20px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.5; }
.foot-name { font-weight: 600; }
@media (min-width: 600px) {
  .btn { width: auto; min-width: 200px; }
  .btn.secondary, .btn.danger { margin-top: 0; margin-left: 10px; }
}
/* Paying (item 23, PR 3): the amount first, Pay by Bank the big button. */
.pay { margin: 4px 0 18px; }
.pay-amount { font-size: 22px; font-weight: 700; margin: 6px 0 12px; }
.pay-hint { margin: 6px 0 4px; text-align: center; }
@media (min-width: 600px) { .pay-hint { text-align: left; } .pay .btn.secondary { margin-left: 0; margin-top: 10px; } }
.bacs { margin: 8px 0 12px; padding: 12px 14px; border: 1px solid var(--line, #d9dfd6); border-radius: 10px; }
.bacs-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.bacs dt { color: var(--muted, #5f6b5c); }
.bacs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
/* The privacy notice (portal/privacy.html, 9 Oct). */
.privacy h2 { margin-top: 26px; }
.plist { margin: 8px 0; padding-left: 20px; }
.plist li { margin: 8px 0; }
.foot a, .privacy-link { color: var(--muted); }
.consent { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.consent a { color: var(--muted); }
/* The pro-forma, printed (migration 20261031081709): the document and the
   bank details, without the buttons. */
@media print {
  .btn, #foot { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}
