/* ProTitser website — the account's "Buy a license" page (2026-10-08). Loaded after desk.css on account/index.html.
   Rom: teachers "will no longer request but buy license trough gcash", "make it more illustrative that would be easy for the
   users", the GCash picture "in square with rounded corner". Of three layouts he picked B: everything on one page, pay at
   the left, send the proof at the right, no Next buttons, and no laptop code (the app activates with a Gmail or a key).
   The page is drawn by js/account.js (renderBuy); its price, dates and GCash details come from js/config.js.
   Rules, as in styles.css: every colour of the page is a token (the dark theme swaps them); only the small drawings of a
   GCash receipt and of the app's License screen keep their own light colours, like .mock-win. No inline styles (CSP). */

/* The numbers of the four steps: 1 Pay, 2 Send your proof, 3 Wait for approval, 4 Activate. */
.buy-n { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: var(--fs-xs); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.buy-n .ico { width: 13px; height: 13px; stroke-width: 3; }
.buy-card > .panel-head, .buy-status > .panel-head, .buy-guide > .panel-head { gap: 10px; }
.buy-card > .panel-head .status, .buy-status > .panel-head .status, .buy-guide > .panel-head .chip { margin-left: auto; }
.buy-lead { margin: 0 0 16px; color: var(--ink-2); font-size: var(--fs-md); }
.buy-hint { margin: 5px 0 0; color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.5; }
.buy-hint b { color: var(--ink-2); }
.buy-quiet { margin: 4px 0 0; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.5; }

/* An account that already has a license: the Home page's "next step" box, with its two buttons. */
.buy-have { margin: 0 0 16px; }
.buy-have-rows { margin: 10px 0 0; }
.buy-have:has(.buy-have-rows:not([hidden])) { align-items: start; } /* a panel with rows is tall: its icon and buttons stay at the top */
.buy-have-rows .kv-table > dt { color: var(--ink-2); font-weight: 500; }
.buy-have-rows .kv-table > dd { color: var(--ink-2); font-size: var(--fs-md); }

/* ---- the yearly fee (2026-10-09): where the teacher stands, at the top of the page from the day the fee can be paid.
        The same box; its edge and icon turn amber when the fee is due, red when it is past due. ---- */
.fee-stand.is-warn { border-left-color: var(--gold); }
.fee-stand.is-warn .next-art { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); color: var(--warn); }
.fee-stand.is-bad { border-left-color: var(--bad); }
.fee-stand.is-bad .next-art { border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: var(--bad-soft); color: var(--bad); }
/* The small line under "Paid until" on a license card. */
/* My licenses, the row "Your phone": its model and until when on one line, Remove this phone at the right (under it on a narrow card) */
.lic-phone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-width: 0; }
.lic-phone-text { min-width: 0; overflow-wrap: anywhere; }
.lic-phone-text b { color: var(--ink); font-weight: 600; }
.lic-phone .btn { flex: none; }
.lic-sub.fee-warn { color: var(--warn); font-weight: 500; }
.lic-sub.fee-bad { color: var(--bad); font-weight: 500; }

/* ---- what is bought: the price, then one line and two facts ---- */
.buy-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 16px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r-lg); background: var(--surface); }
.buy-price { display: flex; flex-direction: column; margin: 0; line-height: 1.15; }
.buy-price b { color: var(--ink); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.buy-price > span { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 500; }
.buy-offer-text { flex: 1 1 280px; min-width: 0; }
.buy-offer-title { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.buy-offer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0; }
.buy-offer-chips .chip { white-space: normal; }

/* ---- the two cards: pay at the left, send the proof at the right; phones and narrow windows stack them, pay first.
        While a payment waits or was not approved, a narrow screen shows the status first: js/account.js (orderBuyCards)
        moves the cards themselves, so nothing here changes their order. The 1040px below is that script's number too. ---- */
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
.buy-grid > .panel { margin-top: 0; }
@media (min-width: 1040px) {
  .buy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buy-status { grid-column: 1 / -1; }
  /* A payment waits: what was sent and the status stand at the right, beside the GCash card. */
  .buy-grid.is-waiting { grid-template-rows: auto 1fr; align-items: start; }
  .buy-grid.is-waiting .buy-pay { grid-row: span 2; }
  .buy-grid.is-waiting .buy-status { grid-column: 2; }
}
.buy-send > .send-btn { margin-top: 4px; }
.buy-send > .alert { margin: 14px 0 0; }
.buy-send > .alert:not([hidden]) + .send-btn { margin-top: 12px; }
/* "By paying you agree to the Terms and Conditions", right above the button that sends the payment. */
.buy-send > .buy-terms { margin: 12px 0 8px; }
.buy-send > details.more { margin: 0 0 12px; }
.buy-send > details.more:last-of-type { margin-bottom: 16px; }

/* ---- 1. Pay: the GCash picture as a square with rounded corners. On a laptop it is never under 300px wide, so the
        code can be scanned from the screen; a click opens it larger. ---- */
.buy-pay { container-type: inline-size; }
.buy-pay-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* A wide card (a tablet, or a window too narrow for two cards): the picture at the left, the steps beside it. */
@container (min-width: 620px) {
  .buy-pay-body { grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
}
.gcash { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gcash-card { position: relative; display: block; width: 100%; max-width: 340px; padding: 0; border: 0; border-radius: 22px; background: none; overflow: hidden; cursor: zoom-in; box-shadow: 0 16px 30px -20px rgba(0, 70, 190, .6); }
.gcash-card img { width: 100%; height: auto; border-radius: inherit; }
.gcash-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
/* A small mark that the picture opens larger: always there, in the picture's plain corner (never over the code). */
.gcash-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #0B4FC4; }
.gcash-zoom .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.gcash-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; width: 100%; max-width: 340px; }
.buy-amount { display: flex; flex-direction: column; margin: 0; line-height: 1.2; }
.buy-amount span { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 500; }
.buy-amount b { color: var(--ink); font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* The four small steps: one plain icon each, with its number. */
.buy-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: bs; }
.buy-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: bs; }
.buy-steps strong { display: block; color: var(--ink); font-size: var(--fs-md); font-weight: 600; line-height: 1.35; }
.buy-steps li > div > span { display: block; margin-top: 1px; color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.5; }
.buy-steps li > div > span b { color: var(--ink-1); }
.buy-ico { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-xl); background: var(--brand-soft); color: var(--brand-ink); }
.buy-ico .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.buy-steps .buy-ico::after { content: counter(bs); position: absolute; top: -6px; left: -6px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: .6875rem; font-weight: 600; line-height: 1; }

/* ---- 2. Send your proof ---- */
/* The reference number, beside a small drawn receipt that shows where "Ref No." is. */
.buy-ref { display: grid; grid-template-columns: 146px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0 0 16px; }
.buy-ref .field { margin: 0; }
.mock-receipt { display: flex; flex-direction: column; gap: 7px; padding: 11px 10px 13px; border: 1px solid #D9E1DC; border-radius: 10px; background: #FFFFFF; color: #232B27; font: 400 10px/1.3 var(--sans); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .5); }
.mr-head { display: flex; align-items: center; gap: 5px; color: #0B4FC4; font-weight: 600; font-size: 10.5px; }
.mr-head::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: #0B4FC4 var(--m-check-white) center / 8px no-repeat; }
.mr-line { display: block; height: 5px; border-radius: 3px; background: #E6ECE8; }
.mr-line.w2 { width: 62%; }
.mr-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; color: #56625B; }
.mr-row b { color: #17201B; font-size: 11.5px; }
.mr-ref { align-self: flex-start; padding: 3px 5px; border-radius: 4px; background: #FDF6E3; color: #17201B; font-weight: 600; font-size: 9.5px; white-space: nowrap; }
.mock-receipt .mock-hot::after { inset: -3px; border-radius: 6px; }
:root { --m-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* The receipt picture: an empty box that asks for it, then a small preview with its size and "Change picture". */
.field > label.buy-pick, .buy-picked { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 0; padding: 14px 12px; border-radius: var(--r-lg); background: var(--surface-2); font-weight: 400; }
.buy-pick { position: relative; border: 1px dashed var(--line-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.buy-pick:hover { border-color: var(--brand); }
.buy-pick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.buy-pick:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
.buy-pick:has(input[aria-invalid="true"]) { border-color: var(--bad); }
.buy-picked { border: 1px solid var(--line); }
.buy-pick-text { display: flex; flex-direction: column; flex: 1 1 130px; min-width: 0; }
.buy-pick-text b { color: var(--ink); font-size: var(--fs-md); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-pick-text small { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.45; }
.buy-thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; cursor: zoom-in; }
.buy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-thumb:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* "My laptop has no internet": where the laptop code is, on a drawing of the app's License screen. */
.buy-send details.more > .buy-hint { margin-top: 0; margin-bottom: 12px; }
.buy-where { display: grid; gap: 14px; }
.buy-where .mock-win { max-width: 420px; }
.mock-fold { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #D9E1DC; border-radius: 5px; background: #FFFFFF; color: #232B27; font-weight: 600; font-size: 10.5px; }
.mock-fold::before { content: ""; width: 9px; height: 9px; flex: none; background: #56625B; -webkit-mask: var(--m-chev) center / contain no-repeat; mask: var(--m-chev) center / contain no-repeat; transform: rotate(90deg); }

/* Buttons under what was sent, and under the status. */
.buy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.buy-sent > .alert { margin: 14px 0 0; }

/* ---- 3. Wait for approval: the status line ---- */
.buy-status-body > p { margin: 0; color: var(--ink-2); font-size: var(--fs-md); }
.buy-status-body > p + p { margin-top: 8px; }
.buy-status-body > .warn-line { color: var(--warn); }
.buy-status-body > .kv-table + .buy-hint { margin-top: 10px; }

/* ---- 4. Activate: ONE guide in two parts (ProTitser PC, then ProTitser Mobile). On the Buy page it is step 4; the same
        markup opens in a wide dialog from My licenses, Home and Help (js/account.js activateGuideDialog). ---- */
.buy-guide { margin-top: 16px; }
.buy-guide:focus { outline: none; }
.act-guide { container-type: inline-size; }
.act-guide > :last-child { margin-bottom: 0; }
/* The head of a part: the app's own logo, what the part is for, and one line under it. */
.act-part { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.act-part img { flex: none; width: 30px; height: 30px; border-radius: 7px; }
.act-part small { display: block; margin-top: 1px; color: var(--ink-3); font-size: var(--fs-sm); font-weight: 400; line-height: 1.45; }
.act-guide > .act-part:not(:first-child) { margin-top: 26px; }
.act-guide > details.more { margin: 14px 0 0; }
.act-guide details.more > .buy-hint { margin-top: 0; margin-bottom: 12px; }
.act-guide details.more > .mini-steps + .buy-hint { margin-top: 12px; }

/* Part 1: the app's License screen, once for each of its two ways. */
.buy-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.buy-way { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.buy-way h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0; font-size: var(--fs-md); font-weight: 600; }
.buy-way h4 > .ico { color: var(--brand-ink); }
.buy-way h4 .chip { margin-left: auto; background: var(--brand-soft); color: var(--brand-ink); }
.buy-way .mini-steps li::before { background: var(--surface); }
.mock-ways { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-way { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 6px 7px; white-space: nowrap; border: 1px solid #C2CCC6; border-radius: 5px; background: #FFFFFF; color: #232B27; font-weight: 600; font-size: 10px; line-height: 1.2; }
.mock-way .ico { width: 11px; height: 11px; color: #66726B; }
.mock-way.on { border-color: #187A48; background: #E2F3E9; color: #12633A; box-shadow: inset 0 0 0 1px #187A48; }
.mock-way.on .ico { color: #187A48; }
.mock-way.on::after { content: ""; width: 10px; height: 10px; flex: none; margin-left: 2px; background: #187A48; -webkit-mask: var(--m-check) center / contain no-repeat; mask: var(--m-check) center / contain no-repeat; }
.buy-way .mock-btn { white-space: nowrap; }
.act-done { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--ink-2); font-size: var(--fs-md); }
.act-done .ico { margin-top: 2px; color: var(--ok); }

/* Part 2: four steps, each with one small drawing: a phone, a laptop window, the two joined, the phone again. The cards
   are the Download page's own (.step-card, .step-pic). */
.act-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
@container (max-width: 600px) { .act-steps { grid-template-columns: minmax(0, 1fr); } }
.act-steps .step-card { background: var(--surface-2); }
.act-steps .step-card h4 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: var(--fs-md); font-weight: 600; }
.act-steps .step-card h4 .n { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: var(--fs-xs); font-weight: 600; }
.act-steps .step-card > p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.act-steps .step-card > p b { color: var(--ink); }
.act-steps .step-pic { min-height: 132px; }
/* A phone, drawn small (the install guide draws it the same way). Always light, like the app window beside it. */
.mock-ph { width: 100%; max-width: 168px; overflow: hidden; border: 3px solid #1B1B1B; border-radius: 16px; background: #FFFFFF; color: #1B1B1B; font: 400 10px/1.35 var(--sans); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.mph-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #F3F3F3; border-bottom: 1px solid #E5E5E5; color: #5E5E5E; font-size: 9.5px; font-weight: 600; }
.mph-bar i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #187A48; }
.mph-body { display: grid; gap: 8px; padding: 11px 10px 13px; }
.mph-app { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mph-app img { width: 22px; height: 22px; flex: none; border-radius: 6px; }
.mph-app b { font-size: 11px; font-weight: 600; }
.mph-btn { position: relative; display: block; padding: 7px 6px; border-radius: 4px; background: #187A48; color: #FFFFFF; font-size: 9.5px; font-weight: 600; text-align: center; }
.mph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 10.5px; }
.mph-row.mph-sub { color: #5E5E5E; font-weight: 400; font-size: 9.5px; }
.mph-row.mph-sub i { width: 46px; height: 5px; border-radius: 3px; background: #DADFDC; }
.mph-row .mock-ok { align-self: center; }
.mock-ph .mock-hot::after { inset: -3px; border-radius: 6px; }
/* A small ProTitser window with no menu at its side. */
.mock-win.mock-mini { width: 100%; max-width: 190px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.mock-mini .mock-main { padding: 10px 12px 12px; }
/* The two joined: the laptop shows the code, the phone reads it. */
.mock-pair { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.mock-pair .mock-mini { flex: 0 1 140px; min-width: 0; }
.mock-pair .mock-mini .mock-bar { padding: 0 8px; font-size: 9.5px; white-space: nowrap; }
.mock-pair .mock-mini .mock-bar span:last-child { margin-left: 0; letter-spacing: 0; opacity: 1; overflow: hidden; text-overflow: ellipsis; }
.mock-pair .mock-mini .mock-main { align-items: center; padding: 8px; }
.mock-pair .mock-ph { flex: 0 1 142px; min-width: 0; }
.mock-qr { width: 54px; height: 54px; color: #17201B; stroke-width: 1.5; }
.mock-link { width: 18px; height: 18px; color: var(--brand-ink); transform: rotate(90deg); }

/* The notes under a part, and the end of the guide: what to do when it does not work. */
.buy-notes { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.buy-notes li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.buy-notes .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--brand-ink); }
.act-trouble { margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.act-trouble-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--ink); font-size: var(--fs-md); font-weight: 600; }
.act-trouble-h .ico { color: var(--brand-ink); }
.act-trouble ul { display: grid; gap: 6px; margin: 0; padding: 0 0 0 18px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.act-trouble .contact-line { margin: 12px 0 0; padding: 10px 12px; background: var(--surface); }
/* In the dialog the guide is a little wider than the page's other wide dialogs. */
dialog.sheet.act-dialog { width: min(920px, calc(100vw - 24px)); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Payment history (My licenses, 2026-10-09): one line for each payment, in the site's own table. On a phone the
        table's rows become small cards (styles.css, table.data.stack). ---- */
.payh-panel { container-type: inline-size; margin-top: 16px; }
.payh-panel:focus { outline: none; }
table.payh-table { font-size: var(--fs-sm); }
.payh-table th, .payh-table td { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.payh-table th:first-child, .payh-table td:first-child { padding-left: 12px; }
.payh-table td .mono { font-size: var(--fs-sm); letter-spacing: .01em; }
.payh-table td.num { font-weight: 600; color: var(--ink); }
.payh-row { cursor: pointer; }
.payh-row:focus-within td { background: var(--surface-2); }
.payh-state { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; white-space: normal; } /* the one thing that may take a second line before the table would scroll sideways */
.payh-gave { white-space: nowrap; }
.payh-state .payh-gave { color: var(--ink-2); }
.payh-more .ico { display: none; }
.payh-empty { margin: 0; color: var(--ink-3); font-size: var(--fs-md); }
/* A table too narrow for the whole line (a laptop with the menu open): "Yearly fee 2027-2028" without the words
   ", school year", and Details as a small arrow (its name is still read out; a click on the line opens it too). */
@container (min-width: 600px) and (max-width: 980px) {
  .payh-sy { display: none; }
  .payh-more { width: 32px; padding: 0; }
  .payh-more .ico { display: block; }
  .payh-more span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 640px) {
  .payh-table th, .payh-table td, .payh-table th:first-child, .payh-table td:first-child { padding-left: 0; padding-right: 0; white-space: normal; }
  .payh-table td.actions .btn { width: 100%; }
}
/* The details of one payment: label and value rows in a dialog. */
.payh-sheet .kv-table > dd .status { vertical-align: middle; }

/* ---- "Move my license": a small secondary part at the foot, only for an account with an older license code ---- */
details.more.buy-move { margin: 16px 0 0; }
.buy-move .req-form { max-width: 560px; padding-top: 2px; }
.buy-move .req-form > .buy-hint { margin: 0 0 14px; }
.buy-move .req-form > .alert { margin: 12px 0 0; }
.buy-move .req-form > .send-btn { width: auto; margin-top: 12px; }

/* ---- a picture, large, in a dialog: the GCash code to scan from the screen, or the receipt just chosen ---- */
dialog.sheet.buy-zoom { width: min(560px, calc(100vw - 24px)); }
.buy-zoom .sheet-body { display: flex; flex-direction: column; align-items: center; }
.buy-zoom-img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 230px); min-height: 0; border-radius: 16px; }
.buy-zoom .buy-hint { margin: 12px 0 0; text-align: center; }

/* ---- phones ---- */
@media (max-width: 640px) {
  .buy-offer { padding: 12px var(--ph-pad); }
  .buy-price b { font-size: 1.75rem; }
  .buy-ref { grid-template-columns: 132px minmax(0, 1fr); gap: 12px; }
  .mock-receipt { padding: 10px 8px 12px; }
  .mr-ref { font-size: 8.5px; }
  .buy-pick > .btn, .buy-picked > .btn { flex: 1 1 100%; }
  .buy-actions > .btn { flex: 1 1 auto; white-space: normal; padding-block: 6px; line-height: 1.25; }
  .buy-way { padding: var(--ph-pad); }
  .buy-way h4 .chip { margin-left: 0; }
  .act-part { align-items: flex-start; }
  .act-trouble { padding: var(--ph-pad); }
  .buy-move .req-form > .send-btn { width: 100%; }
}
@media (max-width: 360px) {
  .buy-ref { grid-template-columns: minmax(0, 1fr); }
  .mock-receipt { max-width: 180px; }
}

/* PRICES AND WAYS TO PAY SET ON THE DESK (2026-10-10): a promo's line beside the price, the choice of a way to pay
   when more than one is on, a way's number when it has no picture, its own steps, and the line that is always there. */
.buy-promo { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-left: 8px; font-size: var(--fs-sm); font-weight: 400; }
.buy-promo[hidden] { display: none; }
.buy-was { color: var(--ink-3); }
.buy-promo-name { padding: 1px 8px; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.buy-ways { margin: 0 0 12px; }
.buy-ways[hidden] { display: none; }
.buy-ways-ask { margin: 0 0 6px; font-weight: 600; }
.buy-ways .chip-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.buy-number { display: grid; gap: 2px; margin: 8px 0 0; }
.buy-number b { font-size: 1.125rem; }
.buy-way-steps { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: var(--fs-sm); }
.buy-never { margin: 10px 0 0; color: var(--ink-3); font-size: var(--fs-sm); }

/* ---- PROCOINS (2026-10-18, js/account.js renderCoins): the packs as buttons, one pressed; the rest is the Buy page's. ---- */
.coin-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 0 0 16px; }
.coin-pack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.coin-pack:hover { background: var(--surface-3); }
.coin-pack b { font-size: 1.25rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.coin-pack span { color: var(--ink-3); font-size: var(--fs-sm); }
.coin-pack small { color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 600; }
.coin-pack[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.coin-pack:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.coins-have .buy-price b { color: var(--brand-ink); }
.coins-grid .buy-thumb { cursor: default; }

/* STEP 4 ON A PHONE (js/account.js setupBuy; Rom, 2026-10-28, from his phone: "more simple ... direct to the point"): the
   activation guide waits behind "Show how to activate"; a laptop shows it as before, and never the button. */
.buy-guide > .fold-more { display: none; }
@media (max-width: 640px) {
  .buy-guide > .fold-more { display: inline-flex; min-height: 36px; margin: 0 0 4px; }
  .buy-guide:not(.open) > [data-activate-guide-body] { display: none; }
}
