/* Mygeria shared component styles. Each site's styles.css sets the tokens and its own page layout. */
:root {
  --green: #0B4F3F;
  --green-2: #0f6b55;
  --green-ink: #06332a;
  --gold: #D97706;
  --gold-soft: #fdf3e3;
  --card: #F8FAFC;
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --danger: #b42318;
  --ok: #15803d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  --impact-bg: #0B4F3F;
  --impact-ink: #ffffff;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--gold); margin: 0 0 .4em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.25em; border-radius: 999px; border: 1.5px solid var(--green);
  background: transparent; color: var(--green); font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(11, 79, 63, .25); }
.btn-primary:hover { background: var(--green-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(217, 119, 6, .28); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { background: var(--card); }
.link { border: 0; background: none; color: var(--green); text-decoration: underline; cursor: pointer; padding: 0; font-weight: 600; }

/* logo + currency */
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--green); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.currency { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.currency button { border: 0; background: transparent; padding: .38em .7em; border-radius: 999px; font-size: .82rem; font-weight: 650; cursor: pointer; color: var(--muted); white-space: nowrap; }
.currency button[aria-pressed="true"] { background: var(--green); color: #fff; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--gold); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

/* tags */
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .2em .55em; border-radius: 6px; letter-spacing: .02em; white-space: nowrap; }
.tag-nafdac { background: #e7f5ef; color: var(--green); }
.tag-rx { background: #fff1e0; color: #9a4b00; }
.tag-otc { background: #eef2f7; color: var(--muted); }
.tag-cold { background: #e0f2fe; color: #075985; }
.badge { display: inline-block; font-size: .72rem; font-weight: 750; padding: .2em .6em; border-radius: 999px; font-style: normal; }
.badge-save { background: var(--gold); color: #fff; }
.badge-rec { background: #e7f5ef; color: var(--green); margin-top: .35em; }

/* option controls on cards */
.opt { display: grid; gap: .25em; font-size: .8rem; color: var(--muted); margin-top: .5em; }
.opt select { padding: .5em .6em; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: .9rem; width: 100%; }
.addon { display: flex; gap: .4em; align-items: center; font-size: .82rem; margin-top: .45em; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .7em 1.1em; border-radius: 999px; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 1000; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* dialogs */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(6, 20, 16, .55); backdrop-filter: blur(2px); }
.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%); background: #fff; }
.drawer-panel { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.cart-lines { list-style: none; margin: 0; padding: 8px 20px; overflow: auto; flex: 1; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-lines small { display: block; color: var(--muted); font-size: .8rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { border: 0; background: none; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; }
.qty span { min-width: 20px; text-align: center; font-weight: 650; }
.amt { font-weight: 700; }
.drawer-foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.empty { padding: 40px 20px; text-align: center; }

/* checkout */
.ck { width: min(1080px, 100%); max-width: 100%; max-height: 100%; height: min(860px, 100%); margin: auto; background: #fff; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) { .ck { height: 100%; border-radius: 0; } }
.ck-form { display: flex; flex-direction: column; height: 100%; }
.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ck-head h2 { margin: 0; font-size: 1.25rem; }
.ck-head .eyebrow { margin: 0; }
.stepper { display: none; list-style: none; margin: 0; padding: 0; gap: 6px; flex-wrap: wrap; }
.ck[data-layout="steps"] .stepper { display: flex; }
.stepper button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3em .8em; font-size: .8rem; cursor: pointer; color: var(--muted); }
.stepper li.on button { background: var(--green); color: #fff; border-color: var(--green); }
.stepper li.done button { color: var(--green); border-color: var(--green); }
.stepper button[disabled] { cursor: default; }
.ck-body { flex: 1; display: grid; grid-template-columns: 1fr 340px; min-height: 0; }
.ck-main { overflow: auto; padding: 8px 24px 24px; }
.ck-summary { background: var(--card); border-left: 1px solid var(--line); padding: 22px; overflow: auto; }
@media (max-width: 860px) {
  .ck-body { grid-template-columns: 1fr; overflow: auto; }
  .ck-main { overflow: visible; }
  .ck-summary { border-left: 0; border-top: 1px solid var(--line); }
}
.ck-sec { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.ck-sec:last-of-type { border-bottom: 0; }
.ck-sec h3 { display: flex; align-items: center; gap: .55em; font-size: 1.1rem; margin-bottom: .8em; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; font-family: var(--font); }
.plan-cards { display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 640px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card { position: relative; display: grid; gap: .45em; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.plan-card > input { position: absolute; opacity: 0; }
.plan-card:has(> input:checked) { border-color: var(--green); background: #f3faf7; box-shadow: 0 0 0 4px rgba(11, 79, 63, .08); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-desc { font-size: .88rem; color: var(--muted); }
.cadence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: .3em; }
.cadence label { cursor: pointer; }
.cadence input { position: absolute; opacity: 0; }
.cadence span { display: block; text-align: center; padding: .5em .3em; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; font-weight: 650; background: #fff; }
.cadence small { display: block; font-weight: 500; color: var(--muted); font-size: .7rem; }
.cadence input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.cadence input:checked + span small { color: #d1fae5; }
.cadence input:focus-visible + span { outline: 3px solid var(--gold); }
.ck label.urgent { display: flex; font-weight: 500; }
.urgent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius); border: 2px dashed var(--gold); background: var(--gold-soft); cursor: pointer; }
.urgent input { width: 22px; height: 22px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.urgent strong { display: block; color: #8a3f00; }
.urgent em { font-style: normal; color: var(--gold); }
.urgent small { color: #7c4a14; }
.urgent.on { border-style: solid; background: #fde7c4; }

fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 750; padding: 0; margin-bottom: 8px; font-size: .95rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.span-2 { grid-column: 1 / -1; }
.ck label, .form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.ck label small, .form label small { font-weight: 500; color: var(--muted); }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: .7em .8em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 16px; font-weight: 500; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(11, 79, 63, .12); }
label.invalid input, label.invalid select, label.invalid textarea { border-color: var(--danger); background: #fff6f5; }
.form-error { color: var(--danger); font-weight: 600; background: #fff6f5; border: 1px solid #f5c2bd; border-radius: 10px; padding: .7em .9em; }
.route-hint { background: #f3faf7; border: 1px solid #cfe9df; border-radius: var(--radius-sm); padding: .7em .9em; font-size: .88rem; }
.route-hint .warn { color: #8a3f00; font-weight: 600; }
.instructions { border: 2px solid var(--green); border-radius: var(--radius); padding: 14px 16px; background: #fbfdfc; }
.instructions legend { background: #fff; padding: 0 6px; margin-left: -6px; color: var(--green); }
.instructions textarea { min-height: 130px; font-size: 15px; }
.help { font-size: .86rem; color: var(--muted); margin-bottom: .6em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3em .75em; font-size: .8rem; cursor: pointer; font-weight: 600; }
.chip:hover { border-color: var(--green); color: var(--green); }
.ck label.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 550; margin-top: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--green); margin-top: 2px; flex: none; }
.rx-items { margin: 0 0 12px; padding-left: 1.2em; font-size: .9rem; }
.rx-choices { display: grid; gap: 8px; margin-bottom: 12px; }
.ck label.rx-choice { display: flex; gap: .7em; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.rx-choice:has(input:checked) { border-color: var(--green); background: #f3faf7; }
.rx-choice input { accent-color: var(--green); margin-top: 4px; }
.rx-choice small { display: block; }
.rx-upload { margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ck-currency { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
.providers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .providers { grid-template-columns: 1fr; } }
.ck label.provider { display: flex; gap: .7em; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.provider input { accent-color: var(--green); margin-top: 4px; }
.provider small { display: block; color: var(--muted); font-weight: 500; }
.provider.on { border-color: var(--green); background: #f3faf7; }
.provider.dim { opacity: .55; }
.provider-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.ck-summary h3 { font-size: 1rem; }
.sum-lines { list-style: none; margin: 0 0 12px; padding: 0; font-size: .88rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sum-lines small { display: block; color: var(--muted); }
.sum-totals { margin: 0; font-size: .9rem; }
.sum-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.sum-totals dd { margin: 0; font-weight: 650; }
.sum-totals .save { color: var(--ok); }
.sum-totals .urg { color: #8a3f00; }
.sum-totals .total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 1.15rem; font-weight: 800; }
.sum-recur { background: #e7f5ef; border-radius: 10px; padding: .6em .8em; font-size: .88rem; color: var(--green); margin: 10px 0; }
.sum-trust { list-style: none; padding: 0; margin: 14px 0 0; font-size: .8rem; color: var(--muted); display: grid; gap: 4px; }
.sum-trust li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.ck-foot { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--line); background: #fff; }
.ck-foot-total { margin-left: auto; font-weight: 800; font-size: 1.1rem; }
.ck-foot .btn-pay { min-width: 220px; }
@media (max-width: 560px) { .ck-foot .btn-pay { min-width: 0; flex: 1; } .ck-foot-total { display: none; } }

/* EndSARSList impact strip */
.impact { background: var(--impact-bg); color: var(--impact-ink); }
.impact-inner { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 36px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.impact h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin-bottom: .35em; color: inherit; }
.impact p { margin: 0; opacity: .92; max-width: 70ch; }
.impact a { color: inherit; }
.impact-mark { color: var(--gold); }
.impact-cta { background: var(--gold); border-color: var(--gold); color: #fff; white-space: nowrap; }
@media (max-width: 760px) { .impact-inner { grid-template-columns: 1fr; text-align: left; } }

/* footer */
.site-footer { background: var(--green-ink); color: #cfe3dc; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 44px 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer .logo { color: #fff; --logo-bg: #fff; --logo-fg: var(--green); }
.disclosure { margin-top: 14px; line-height: 1.6; max-width: 52ch; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-pay ul { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.footer-pay li { border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: .2em .55em; font-size: .78rem; }
.footer-legal { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 16px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; opacity: .8; }

/* shared utility pages (confirm, manage, dispatch, sandbox) */
.page-head { border-bottom: 1px solid var(--line); background: #fff; }
.page-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.page { padding: 36px 0 60px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form { display: grid; gap: 12px; max-width: 460px; }
.timeline { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--muted); }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.now { font-weight: 700; color: var(--green); }
.timeline li.now::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.sandbox-banner { background: #fff7e6; border: 1px solid #f5d29a; color: #7c4a14; border-radius: 10px; padding: .6em .9em; font-size: .85rem; font-weight: 600; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.slip { white-space: pre-wrap; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .85rem; background: #f6fbf9; border: 1px dashed var(--green); border-radius: 10px; padding: 16px; }
.pill { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.pill.urgent-pill { background: var(--gold); color: #fff; border-color: var(--gold); }
.pill.paid { background: #e7f5ef; color: var(--green); border-color: #cfe9df; }
@media print {
  .no-print, .page-head, .site-footer, .impact { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 0; padding: 0; }
}
.confirm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.manage-grid { max-width: 560px; margin: auto; }
@media (max-width: 820px) { .confirm-grid { grid-template-columns: 1fr; } }
.impact-confirm { margin-top: 0; }
.plans, .queue { display: grid; gap: 16px; }
.plan .sum-lines li { align-items: center; }
.plan .sum-lines select { max-width: 220px; padding: .4em .5em; font-size: .85rem; }
.plan-actions, .q-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.plan-actions .danger { color: var(--danger); border-color: #f5c2bd; }
label.inline { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; }
label.inline select { width: auto; padding: .45em .6em; }
.q-card header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.q-card header .pill { margin-left: 4px; }
.q-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.q-controls label { display: grid; gap: 4px; font-size: .78rem; font-weight: 650; color: var(--muted); }
.q-controls select { padding: .5em; font-size: .88rem; }
@media (max-width: 720px) { .q-controls { grid-template-columns: 1fr; } }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
.sheet-head h1 { margin: 0; font-size: 2rem; font-family: ui-monospace, Consolas, monospace; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 14px 0; }
@media (max-width: 720px) { .sheet-grid { grid-template-columns: 1fr; } }
.sheet h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; font-family: var(--font); }
.instr { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 6px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
