/* AdaptoFlow secure checkout. The storefront's ground (mist + white), ink and flow orange, with
   the same type roles; no third-party fonts, so the page loads nothing but itself and the two
   provider scripts. No inline styles anywhere: the Content-Security-Policy forbids them. */
:root {
  --ink: #0b1026;
  --ink-70: rgba(11, 16, 38, .7);
  --ink-45: rgba(11, 16, 38, .45);
  --mist: #eef1f4;
  --mist-2: #e3e8ee;
  --white: #ffffff;
  --line: rgba(11, 16, 38, .12);
  --line-strong: rgba(11, 16, 38, .3);
  --orange: #f26b0f;
  --orange-dark: #d95c08;
  --green: #1a9e4b;
  --red: #b5173f;
  --focus: #1fb6ff;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
small { font-weight: 400; color: var(--ink-45); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hidden { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .95rem/1 var(--sans); text-decoration: none; padding: 1em 1.6em; border-radius: var(--pill); border: 1px solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: #1a2347; border-color: #1a2347; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-flow { background: var(--orange); border-color: var(--orange); }
.btn-flow:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-pay { width: 100%; font-size: 1.05rem; padding: 1.1em 1.6em; margin-top: 10px; }
.btn-small { padding: .7em 1.1em; font-size: .85rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-70); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--ink); }

/* ---------- Header / footer ---------- */
.ck-header { background: rgba(238, 241, 244, .9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.ck-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: 16px; }
.brand img { width: 150px; }
.ck-secure-line { margin: 0; font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-70); }
.ck-back { justify-self: end; font-size: .9rem; text-decoration: none; color: var(--ink-70); }
.ck-back:hover { color: var(--ink); }
.lock { display: inline-block; width: 11px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; top: 1px; }
.lock::before { content: ""; position: absolute; left: 1.5px; top: -7px; width: 5px; height: 7px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.ck-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .8rem; color: var(--ink-70); margin-top: 48px; }
.ck-footer .fda { font-size: .75rem; }
@media (max-width: 640px) {
  .ck-header-inner { grid-template-columns: 1fr auto; min-height: 60px; }
  .ck-secure-line { display: none; }
  .brand img { width: 120px; }
}

/* ---------- Layout ---------- */
.ck-main { padding: clamp(24px, 4vw, 48px) 0 0; }
.ck-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ck-lede { color: var(--ink-70); margin-bottom: 20px; max-width: 48ch; }
@media (max-width: 900px) {
  .ck-layout { grid-template-columns: 1fr; }
  .ck-summary { order: -1; }
}

/* ---------- Form ---------- */
.ck-block { border: 0; border-top: 1px solid var(--ink); padding: 18px 0 8px; margin: 0 0 20px; min-width: 0; }
.ck-block legend { font-family: var(--display); font-size: 1.5rem; padding: 0 0 12px; letter-spacing: -.02em; }
.cf-field { display: grid; gap: 5px; margin-bottom: 14px; min-width: 0; }
.cf-label { font-size: .85rem; font-weight: 600; color: var(--ink-70); }
.cf-field input, .cf-field select { font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; min-height: 48px; }
.cf-field input:focus, .cf-field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 182, 255, .25); }
.cf-field input[aria-invalid="true"] { border-color: var(--red); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.cf-grow { min-width: 0; }
.ck-hint { font-size: .8rem; color: var(--ink-45); }
.ck-hint-top { margin: -6px 0 12px; }
.ck-error { font-size: .85rem; color: var(--red); margin: -8px 0 12px; }
@media (max-width: 560px) { .cf-row, .cf-row-3 { grid-template-columns: 1fr; } }

/* Honeypot: off-screen, never display:none (a script that skips hidden fields would skip it) */
.hp-wrap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; margin: 8px 0 12px; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--orange); }
.check-text { padding-top: 1px; }
.check-age { font-weight: 600; margin-top: 18px; }
.check-optional { color: var(--ink-70); }
#turnstile-box { margin: 12px 0 0; min-height: 0; }
#turnstile-box:not(:empty) { min-height: 65px; }
#checkout-msg { min-height: 1.4em; margin: 12px 0 0; font-size: .95rem; }
#checkout-msg.err { color: var(--red); font-weight: 600; }
#checkout-msg.info { color: var(--ink-70); }
#checkout-msg.ok { color: var(--green); font-weight: 600; }
.ck-secure { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-45); margin-top: 12px; }

/* ---------- Summary ---------- */
.ck-summary { background: var(--white); border-radius: 12px; padding: 22px 22px 18px; position: sticky; top: 88px; }
.ck-summary h2 { font-size: 1.5rem; margin-bottom: 12px; }
.ck-lines { list-style: none; padding: 0; margin: 0; }
.ck-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ck-line img { width: 56px; height: 56px; object-fit: contain; background: var(--mist); border-radius: 6px; }
.ck-line .name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.ck-line .meta { font-size: .8rem; color: var(--ink-45); }
.ck-line .price { font-weight: 600; text-align: right; }
.ck-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); overflow: hidden; margin-top: 6px; }
.ck-qty button { width: 32px; height: 30px; border: 0; background: var(--white); font-size: 1.1rem; cursor: pointer; color: var(--ink); line-height: 1; }
.ck-qty button:hover { background: var(--mist); }
.ck-qty output { min-width: 28px; text-align: center; font-weight: 700; font-size: .9rem; }
.ck-remove { font-size: .75rem; color: var(--ink-45); margin-left: 8px; }
.ck-add-more { margin: 10px 0 0; font-size: .85rem; }
.ck-totals { margin: 14px 0 0; font-size: .95rem; }
.ck-totals div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ck-totals dt { color: var(--ink-70); }
.ck-totals dd { margin: 0; font-weight: 600; }
.ck-totals .total { font-weight: 700; font-size: 1.1rem; border: 0; padding-top: 10px; }
.ck-totals .free { color: var(--green); }
.ck-nudge { font-size: .82rem; color: var(--ink-70); margin: 10px 0 0; }

/* ---------- Picker (empty cart, add another) ---------- */
.ck-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 12px; }
.ck-pick { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.ck-pick:hover { border-color: var(--ink); }
.ck-pick img { width: 64px; height: 64px; object-fit: contain; background: var(--mist); border-radius: 6px; }
.ck-pick b { display: block; font-size: .92rem; line-height: 1.3; }
.ck-pick small { display: block; color: var(--ink-70); margin-top: 2px; }
.ck-pick .add { color: var(--orange); font-weight: 700; font-size: .85rem; }
.ck-summary .ck-picker { grid-template-columns: 1fr; }

/* ---------- Notices / done ---------- */
.ck-notice { max-width: 640px; }
.ck-notice .big { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.ck-receipt { background: var(--white); border-radius: 12px; padding: 20px 22px; margin: 18px 0 22px; }
.ck-receipt .ref { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 6px; }
.ck-receipt .ref small { font-family: var(--sans); font-size: .8rem; display: block; color: var(--ink-45); margin-bottom: 4px; letter-spacing: 0; }
.ck-receipt ul { list-style: none; padding: 0; margin: 10px 0; }
.ck-receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ck-receipt .sum { display: flex; justify-content: space-between; font-weight: 700; padding-top: 10px; }
.ck-receipt address { font-style: normal; font-size: .95rem; color: var(--ink-70); margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none; transform: none; }
}
