/* The checkout page. Colours and fonts are the client's brand (--wl-*, set by
   checkout.js from their app configuration); Bookeasy's gadgets read --bff-*. */
:root {
  --wl-primary: #166534; --wl-on-primary: #fff; --wl-button: var(--wl-primary); --wl-on-button: var(--wl-on-primary);
  --wl-ink: #1c1917; --wl-text: #1c1917; --wl-muted: #6b6b6b; --wl-line: #e4e4e4;
  --wl-paper: #fff; --wl-surface: #fff; --wl-tint: #f2f5f3; --wl-heading-weight: 700;
  --wl-font-heading: ui-sans-serif, system-ui, sans-serif; --wl-font-body: ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--wl-paper); color: var(--wl-text); font-family: var(--wl-font-body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.shell { max-width: 640px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--wl-paper); }
.bar {
  display: flex; align-items: center; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--wl-line);
}
.brand { display: flex; align-items: center; min-height: 32px; }
.brand img { height: 30px; width: auto; max-width: 160px; object-fit: contain; }
.brand span { font-family: var(--wl-font-heading); font-weight: var(--wl-heading-weight); font-size: 17px; color: var(--wl-ink); }
.close { margin-left: auto; width: 36px; height: 36px; border-radius: 999px; border: 0; display: grid; place-items: center; background: var(--wl-tint); color: var(--wl-ink); cursor: pointer; }
.close:focus-visible, .btn:focus-visible { outline: 2px solid var(--wl-primary); outline-offset: 2px; }

.content { display: flex; flex-direction: column; gap: 16px; padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); }
.footer { margin-top: auto; padding: 8px 16px max(16px, env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: var(--wl-muted); }

h1, h2, .h { font-family: var(--wl-font-heading); font-weight: var(--wl-heading-weight); color: var(--wl-ink); margin: 0; text-wrap: balance; }
p { margin: 0; }

.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--wl-muted); }
.steps li[aria-current="step"] { color: var(--wl-ink); font-weight: 600; }
.steps .dot { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--wl-tint); color: var(--wl-muted); }
.steps .dot.on { background: var(--wl-primary); color: var(--wl-on-primary); }
.steps .rule { width: 16px; height: 1px; background: var(--wl-line); }

.card { background: var(--wl-surface); border: 1px solid var(--wl-line); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.card .h { font-size: 16px; }
.card.done { padding: 16px; gap: 8px; }
.card.done .h { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.tick { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--wl-primary); color: var(--wl-on-primary); flex-shrink: 0; }
.muted { color: var(--wl-muted); font-size: 13px; }

.with { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wl-muted); }
.with.prominent { align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--wl-tint); color: var(--wl-text); font-size: 13.5px; }
.with.prominent .h { font-size: 14px; }
.with svg { flex-shrink: 0; color: var(--wl-primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--wl-button); color: var(--wl-on-button); font-family: var(--wl-font-heading); font-weight: 600; font-size: 15px; }

.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 0; color: var(--wl-muted); font-size: 14px; }
.spinner { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--wl-line); border-top-color: var(--wl-primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Bookeasy's gadgets sit in the page's column. */
.gadget { min-width: 0; }
