/* Same tokens as the theme's test-takers card (assets/test-takers.css). */
:root {
  --tt-ink: #203129; --tt-muted: rgba(32, 49, 41, .72); --tt-line: #dad3c4; --tt-field: rgba(32, 49, 41, .55);
  --tt-tint: #f8f5eb; --tt-bold: 500; --tt-err: #b42318; --page: #fbf9f3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--tt-ink); font: 15px/1.5 Poppins, system-ui, sans-serif; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.topbar { background: var(--tt-ink); color: #fff; }
.top { display: flex; align-items: center; justify-content: space-between; max-width: 640px; margin: 0 auto 16px; padding: 12px 16px; }
.top__logo img { display: block; height: 36px; width: auto; }
.top__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.8); }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }

.product { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--tt-line); border-radius: 12px; background: #fff; }
.product__img { flex: none; width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--tt-tint); }
.product__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.product__plan { margin: 4px 0 0; font-size: 14px; color: var(--tt-muted); }
.product__plan strong { color: var(--tt-ink); font-weight: 600; }

.steps { list-style: none; margin: 12px 0 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 12px; background: var(--tt-tint); font-size: 13px; line-height: 1.45; counter-reset: s; }
.steps li { position: relative; padding-left: 30px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--tt-ink); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.steps b { display: block; font-weight: var(--tt-bold); }

.tt { margin: 16px 0; padding: 16px; border: 1px solid var(--tt-line); border-radius: 12px; background: #fff; color: var(--tt-ink); text-align: left; }
.tt p { margin: 0; }
.tt__h { font-size: 16px; font-weight: var(--tt-bold); line-height: 1.3; }
.tt__sub { margin-top: 4px !important; font-size: 13px; line-height: 1.45; color: var(--tt-muted); }
.tt__alert { margin-top: 12px !important; padding: 10px 12px; border-radius: 8px; background: #fef3f2; color: var(--tt-err); font-size: 13px; line-height: 1.4; scroll-margin-top: 120px; outline: none; }
.tt__kit { margin: 14px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--tt-line); min-width: 0; }
.tt__kit-name { float: left; width: 100%; padding: 0 0 4px; font-size: 14px; font-weight: var(--tt-bold); line-height: 1.4; }
.tt__kit-name + * { clear: both; }
.tt__q { margin-top: 14px !important; font-size: 13px; font-weight: var(--tt-bold); }
.tt__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; padding: 4px; border-radius: 10px; background: var(--tt-tint); }
.tt__seg button { min-height: 44px; margin: 0; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s; }
.tt__seg button[aria-pressed="true"] { background: var(--tt-ink); color: #fff; font-weight: var(--tt-bold); }
.tt__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tt__field { min-width: 0; }
.tt__field--wide { grid-column: 1 / -1; }
.tt__field label { display: block; margin: 0 0 4px; font-size: 13px; font-weight: var(--tt-bold); }
.opt { font-weight: 400; color: var(--tt-muted); }
.tt input, .tt select, .tt__tel { width: 100%; height: 44px; margin: 0; border: 1px solid var(--tt-field); border-radius: 8px; background: #fff; color: inherit; font: inherit; font-size: 16px; }
.tt input, .tt select { padding: 0 12px; }
.tt__tel { display: flex; align-items: center; }
.tt__tel span { padding-left: 12px; color: var(--tt-muted); }
.tt__tel input { height: 42px; border: 0; padding-left: 6px; background: transparent; }
.tt [aria-invalid="true"], .tt__tel:has([aria-invalid="true"]) { border-color: var(--tt-err); }
.tt__seg button:focus-visible, .tt input:focus-visible, .tt select:focus-visible, .count__btn:focus-visible, .pay:focus-visible { outline: 2px solid var(--tt-ink); outline-offset: 2px; }
.tt__tel input:focus-visible { outline: none; }
.tt__tel:focus-within { outline: 2px solid var(--tt-ink); outline-offset: 2px; }
.tt__error { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--tt-err); }
.tt__error:empty { display: none; }
.tt__gate { margin-top: 14px !important; font-size: 13px; line-height: 1.4; font-weight: var(--tt-bold); }

.count { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.count__label { font-size: 14px; font-weight: var(--tt-bold); }
.count__ctrl { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: var(--tt-tint); }
.count__btn { width: 44px; height: 40px; border: 0; border-radius: 7px; background: #fff; color: var(--tt-ink); font: inherit; font-size: 20px; cursor: pointer; }
.count__btn:disabled { opacity: .4; cursor: not-allowed; }
.count output { min-width: 32px; text-align: center; font-weight: 600; font-size: 16px; }

.summary { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--tt-tint); font-size: 14px; }
.tt .summary { margin-top: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary__row--muted { color: var(--tt-muted); font-size: 13px; }
.summary__total { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--tt-line); font-weight: 600; font-size: 16px; }

.pay { display: block; width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 10px; background: var(--tt-ink); color: #fff; font: inherit; font-size: 16px; font-weight: 600; text-align: center; text-decoration: none; line-height: 52px; cursor: pointer; }
.pay:disabled { opacity: .6; cursor: progress; }
.pay--ghost { background: transparent; color: var(--tt-ink); border: 1px solid var(--tt-ink); }
.fine { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--tt-muted); text-align: center; }

.done { margin-top: 16px; padding: 24px 16px; border: 1px solid var(--tt-line); border-radius: 12px; background: #fff; text-align: center; }
.done h2 { margin: 8px 0 4px; font-size: 20px; }
.done p { margin: 0; color: var(--tt-muted); }
.done__icon { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--tt-ink); color: #fff; font-size: 24px; line-height: 48px; }
.done__list { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; }
.done__list li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: var(--tt-tint); margin-top: 6px; font-size: 14px; }

@media (max-width: 420px) { .tt__fields { grid-template-columns: 1fr; } .product__img { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.product__price { margin: 4px 0 0 !important; font-size: 18px; font-weight: 600; }

.locate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border: 1px dashed var(--tt-ink); border-radius: 8px; background: var(--tt-tint); color: var(--tt-ink); font: inherit; font-size: 14px; font-weight: var(--tt-bold); cursor: pointer; }
.locate:disabled { opacity: .6; cursor: progress; }
.locate:focus-visible { outline: 2px solid var(--tt-ink); outline-offset: 2px; }
.locate__msg { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--tt-muted); }
.locate__msg:empty { display: none; }
.locate__msg--err { color: var(--tt-err); }

.autopay__row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.45; }
.autopay__row input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tt-ink); }
.autopay__row b { display: block; font-weight: var(--tt-bold); }
.autopay__sub { display: block; margin-top: 4px; font-size: 13px; color: var(--tt-muted); }
.autopay__off { margin-top: 10px !important; padding: 10px 12px; border-radius: 8px; background: var(--tt-tint); font-size: 13px; line-height: 1.45; }

/* Test mode notice (dashboard switch set to Test) */
.testbar{margin:0 0 16px;padding:10px 14px;border-radius:10px;background:#fff4d6;border:1px solid #e8c766;color:#5c4300;font-size:13px;font-weight:600;line-height:1.4}

/* Plan choice (DESIGN.md: plan cards) */
.plans { margin: 16px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
.plans__h { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.plan { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--tt-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.plan:hover { border-color: rgba(32, 49, 41, .4); }
.plan input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--tt-ink); flex: none; }
.plan--on { border-color: var(--tt-ink); background: var(--tt-tint); box-shadow: inset 0 0 0 1px var(--tt-ink); }
.plan__body { display: grid; gap: 2px; }
.plan__t { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan__tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tt-ink); color: #fff; }
.plan__d { font-size: 13px; color: var(--tt-muted); }
.plan__d b { color: var(--tt-ink); font-weight: 600; }
.plan:has(input:focus-visible) { outline: 2px solid #24527a; outline-offset: 2px; }
