/* The install's checkout and confirmation pages. Fonts come from the academy's choice too:
   assets/brand.js sets --cbk-font-body and --cbk-font-head (and loads the files from assets/fonts/);
   without them the device's own font is used, as before. Colours come from the
   academy's brand accent (set on :root by checkout.js / confirmed.js).
   The page background is --cbk-page-bg when the academy chose one (assets/brand.js sets it, with
   --cbk-on-bg, --cbk-on-bg-muted, --cbk-on-bg-line and --cbk-on-bg-accent: the colours for text and lines
   that sit straight on that background, which can be dark; and --cbk-test-bg / --cbk-test-ink for the Test
   mode badge on a dark one). Cards and boxes keep --cbk-surface and --cbk-text. Without a chosen background
   every one of those falls back to today's colour. */
/* Moving between the install's pages (checkout, the student portal) fades across instead of swapping
   (browsers that can; others swap as before). The portal's menu stays still while the page changes. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-group(root) { animation-duration: .18s; }
:root { --cbk-accent: #2f4a5a; --cbk-accent-text: #fff; --cbk-accent-ink: #2f4a5a; --cbk-accent-outline: #2f4a5a; --cbk-text: #1c1c1c; --cbk-muted: #6b6f76;
  --cbk-surface: #fff; --cbk-border: #e3e4e0; --cbk-urgent: #b5543f; --cbk-bg: #f6f6f4; --cbk-radius: 6px;
  /* The larger corners: cards, boxes inside cards, and pills. The Sharp style (below) squares them all. */
  --cbk-radius-card: 14px; --cbk-radius-box: 10px; --cbk-radius-pill: 99px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cbk-page-bg, var(--cbk-bg)); color: var(--cbk-text);
  font: 16px/1.6 var(--cbk-font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); -webkit-font-smoothing: antialiased; }
a { color: var(--cbk-accent-ink); }
/* Headings are bold and a touch tight; the page title is the one large thing on a page. */
h1, h2, h3, .bk-brand { font-family: var(--cbk-font-head, var(--cbk-font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif)); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto; padding: 22px 20px; }
.bk-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--cbk-on-bg, var(--cbk-text)); text-decoration: none; }
.bk-brand:focus-visible { outline-color: var(--cbk-on-bg-accent, var(--cbk-accent-outline)); }
.bk-brand img { display: block; max-height: 44px; width: auto; }
.bk-test { font-size: .78rem; font-weight: 600; color: var(--cbk-test-ink, #8a5a20); background: var(--cbk-test-bg, rgba(212,168,83,.2)); padding: 4px 10px; border-radius: var(--cbk-radius-pill); }
.bk-main { max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }
.bk-panel { background: var(--cbk-surface); border: 1px solid var(--cbk-border); border-radius: var(--cbk-radius-card); padding: 30px;
  box-shadow: 0 1px 2px rgba(31,41,46,.04), 0 12px 32px -12px rgba(31,41,46,.10); }
/* The dates list runs edge to edge of its card: its month bands and row lines reach the card's sides, and
   --cbk-inset (INTEGRATION.md section 5) lines its text up with the card's own padding. */
#bk-pick [data-cbk="dates"] { margin: 0 -30px; --cbk-inset: 30px; }
.bk-panel h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 20px; }
.bk-muted, .bk-opt { color: var(--cbk-muted); }
.bk-opt { font-size: .82rem; font-weight: 400; }
.bk-crumbs { display: flex; gap: 22px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .85rem; font-weight: 600; color: var(--cbk-muted); }
.bk-crumbs .is-current { color: var(--cbk-accent-ink); font-weight: 700; }
.bk-crumbs .is-done { color: var(--cbk-text); }
.bk-summary { margin: 0 0 24px; padding: 14px 18px; background: var(--cbk-bg); border: 1px solid var(--cbk-border); border-radius: var(--cbk-radius-box); }
.bk-summary div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: .9rem; }
.bk-summary dt { color: var(--cbk-muted); }
.bk-summary dd { margin: 0; font-weight: 600; text-align: right; }
.bk-field { margin-bottom: 16px; }
.bk-field label { display: block; font-size: .9rem; font-weight: 600; color: var(--cbk-text); margin-bottom: 6px; }
.bk-field input, .bk-field textarea, .bk-mc { width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--cbk-border); border-radius: var(--cbk-radius); }
.bk-field textarea { min-height: 88px; resize: vertical; }
/* The card fields are cross-origin iframes only one line tall (Mollie sets their height), and a
   click on the iframe below that line focuses nothing. A click on Mollie's wrapper div does focus
   the field, so the wrapper fills the whole box, padding included, with the iframe centred in it:
   a click anywhere in the box focuses the field. (Checked against Mollie's DOM, Oct 2026.) */
.bk-mc { display: flex; align-items: stretch; height: 46px; padding: 0; }
.bk-mc > div { display: flex !important; align-items: center; flex: 1; width: 100%; height: 100%; padding: 0 14px; cursor: text; }
.bk-mc iframe { width: 100%; }
.bk-field input:focus, .bk-field textarea:focus, .bk-mc.is-focused { outline: none; border-color: var(--cbk-accent);
  box-shadow: 0 0 0 3px rgba(47,74,90,.14); }
.bk-field input[aria-invalid="true"], .bk-mc.is-invalid { border-color: var(--cbk-urgent); }
.bk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-hint { color: var(--cbk-muted); font-size: .8rem; line-height: 1.4; margin: 5px 0 0; }
.bk-ferr { color: var(--cbk-urgent); font-size: .82rem; margin: 5px 0 0; min-height: 0; }
.bk-ferr:empty { display: none; }
.bk-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-size: .95rem; }
.bk-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cbk-accent); flex-shrink: 0; }
.bk-modes { border: 0; margin: 8px 0 16px; padding: 0; min-width: 0; }
.bk-modes-body { display: grid; gap: 10px; }
.bk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bk-panel h1:focus { outline: none; }
.bk-mode { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--cbk-border);
  border-radius: var(--cbk-radius-box); cursor: pointer; background: var(--cbk-bg); }
.bk-mode:has(input:checked) { border-color: var(--cbk-accent); background: #fff; }
.bk-mode input { accent-color: var(--cbk-accent); width: 18px; height: 18px; }
.bk-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 6px;
  border: 0; border-radius: var(--cbk-radius); background: var(--cbk-accent); color: var(--cbk-accent-text);
  font: inherit; font-weight: 600; font-size: 1.02rem; cursor: pointer; }
.bk-btn:disabled { opacity: .55; cursor: progress; }
.bk-btn:focus-visible, .bk-method:focus-visible { outline: 2px solid var(--cbk-accent-outline); outline-offset: 2px; }
.bk-back { background: none; border: 0; color: var(--cbk-muted); font: inherit; font-size: .85rem; cursor: pointer; padding: 0; margin-bottom: 14px; }
.bk-back:hover { color: var(--cbk-accent-ink); }
.bk-paynote { color: var(--cbk-muted); font-size: .92rem; margin: -8px 0 20px; }
.bk-or { text-align: center; color: var(--cbk-muted); font-size: .85rem; margin: 22px 0 10px; }
.bk-methods { display: grid; gap: 10px; }
.bk-method { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 1px solid var(--cbk-border);
  border-radius: var(--cbk-radius); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.bk-method img { height: 22px; width: auto; }
.bk-method:hover { border-color: var(--cbk-accent); }
.bk-error { color: var(--cbk-urgent); font-size: .9rem; margin: 12px 0; }
.bk-trust { color: var(--cbk-muted); font-size: .78rem; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--cbk-border); }
.bk-link { font-weight: 600; }
.bk-big { font-size: 1.05rem; }
.bk-actions { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.bk-actions [hidden] { display: none; }
.bk-progress { font-size: .85rem; margin-top: -6px; }
/* The discount code: a quiet link under the price that opens a field and an Apply button. */
.bk-discount { margin: -12px 0 22px; }
.bk-textbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--cbk-accent-ink);
  text-decoration: underline; cursor: pointer; }
.bk-textbtn:focus-visible { outline: 2px solid var(--cbk-accent-outline); outline-offset: 2px; }
.bk-discount .bk-field { margin: 10px 0 0; }
.bk-disc-row { display: flex; gap: 10px; }
.bk-disc-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.bk-btn.bk-btn-inline { width: auto; min-height: 46px; margin-top: 0; padding: 0 20px; font-size: .95rem; }
.bk-disc-err { color: var(--cbk-urgent); font-size: .82rem; margin: 5px 0 0; }
.bk-disc-err:empty { display: none; }
.bk-disc-applied { margin: 0; font-size: .9rem; }
.bk-pay-fix { margin: -6px 0 14px; font-size: .9rem; }
.bk-summary s { color: var(--cbk-muted); font-weight: 400; margin-right: 4px; }
@media (max-width: 600px) {
  .bk-panel { padding: 22px 18px; }
  #bk-pick [data-cbk="dates"] { margin: 0 -18px; --cbk-inset: 18px; }
  .bk-row2 { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Sharp (Settings -> Look and Feel). assets/brand.js puts data-cbk-style="sharp" on <html>: square
   corners, a thin dark border on cards and fields instead of a soft shadow, and capitals with spaced
   letters on headings, buttons and badges. Field labels, body text and what people type stay as they are.
   --cbk-case and --cbk-tracking are the same variables the widgets read (INTEGRATION.md section 5), so a
   widget on the checkout page matches. Rounded sets neither, so it is unchanged. ---- */
html[data-cbk-style="sharp"] { --cbk-radius: 0; --cbk-radius-card: 0; --cbk-radius-box: 0; --cbk-radius-pill: 0;
  --cbk-case: uppercase; --cbk-tracking: .08em; }
html[data-cbk-style="sharp"] .bk-panel { border-color: var(--cbk-text); box-shadow: none; }
html[data-cbk-style="sharp"] .bk-field input, html[data-cbk-style="sharp"] .bk-field textarea,
html[data-cbk-style="sharp"] .bk-mc, html[data-cbk-style="sharp"] .bk-method { border-color: var(--cbk-text); }
html[data-cbk-style="sharp"] .bk-field input[aria-invalid="true"], html[data-cbk-style="sharp"] .bk-mc.is-invalid { border-color: var(--cbk-urgent); }
html[data-cbk-style="sharp"] h1, html[data-cbk-style="sharp"] h2, html[data-cbk-style="sharp"] h3,
html[data-cbk-style="sharp"] .bk-panel h1,
html[data-cbk-style="sharp"] .bk-btn, html[data-cbk-style="sharp"] .bk-method, html[data-cbk-style="sharp"] .bk-test {
  text-transform: var(--cbk-case); letter-spacing: var(--cbk-tracking); }
html[data-cbk-style="sharp"] .bk-panel h1 { font-size: 1.5rem; }
html[data-cbk-style="sharp"] .bk-btn { font-size: .92rem; }
html[data-cbk-style="sharp"] .bk-method { font-size: .88rem; }
html[data-cbk-style="sharp"] .bk-test { font-size: .72rem; }
