/*
 * The SwiftMedics online shop (12 November 2026). Phone first, in the clinic's
 * navy and cyan, as on the clinic website. The phone's own font, so a page
 * needs nothing but the logo; nothing is loaded from another site.
 */
:root {
  --navy: #001060;
  --navy-deep: #000b45;
  --cyan: #00b0d0;
  --ink: #0f1b2d;
  --muted: #55657a;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --line: #d9e0ea;
  --on-navy: #ffffff;
  --on-navy-muted: #c9d4f2;
  --focus: #1745c2;
  --accent: #001060;
  --on-accent: #ffffff;
  --notice-bg: #fff5e3;
  --notice-ink: #7a4a00;
  --good: #1c6b3a;
  --few: #8a4b00;
  --danger: #a3182b;
  --font:
    "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef8;
    --muted: #a9b8cd;
    --paper: #131e31;
    --canvas: #0c1525;
    --line: #2b3b55;
    --focus: #a3bfff;
    --accent: #7fd8ea;
    --on-accent: #001060;
    --notice-bg: #352a17;
    --notice-ink: #f2c575;
    --good: #7fd6a0;
    --few: #f2c575;
    --danger: #ff9aa6;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus {
  left: 8px;
}

/* The header, on the clinic's navy. */
.site-header {
  background: var(--navy);
  color: var(--on-navy);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}
.brand img {
  display: block;
  width: 132px;
}
.shop-nav {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  font-weight: 600;
  font-size: 16px;
}
.shop-nav a {
  color: var(--on-navy-muted);
  text-decoration: none;
  padding: 10px 0;
}
.shop-nav a:hover {
  color: var(--on-navy);
}
.basket-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--on-navy) !important;
}
.basket-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.print-logo {
  display: none;
}

h1 {
  margin: 24px 0 12px;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}
h2 {
  margin: 28px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}
p {
  margin: 0 0 12px;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}
.hint {
  color: var(--muted);
  font-size: 15px;
}
.notice,
.notes,
.draft {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--notice-bg);
  color: var(--notice-ink);
}
.notes {
  list-style: none;
}
.notes li + li {
  margin-top: 6px;
}
.back {
  margin: 16px 0 0;
}
.back a::before {
  content: "← ";
}
.loading {
  color: var(--muted);
}

/* Buttons: easy to press on a phone. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button.danger {
  border-color: var(--danger);
  color: var(--danger);
}
.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.link-button {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Icons drawn in the page, in the colour of the words beside them. */
.icon {
  flex: none;
  width: 22px;
  height: 22px;
}

/* The front page: who sells, then why to trust it, then the shelf. */
.hero {
  margin: 12px 0 0;
  padding: 20px 18px 22px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--on-navy);
}
.hero h1 {
  margin: 4px 0 10px;
}
.hero .lede {
  color: var(--on-navy-muted);
}
.hero .pickup-line {
  margin: 0;
  color: var(--on-navy);
}
.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.hero .button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--navy);
}
.hero .button.on-navy {
  border-color: var(--on-navy);
  color: var(--on-navy);
}
.trust-title {
  margin-top: 28px;
}
/* One card of three lines on a phone, three cards side by side when wider. */
.trust {
  display: grid;
  margin: 12px 0 8px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
}
.trust li + li {
  border-top: 1px solid var(--line);
}
.trust .icon {
  margin-top: 2px;
  color: var(--cyan);
}
.trust h2 {
  margin: 0 0 2px;
  font-size: 17px;
}
.trust p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.trust .trust-hours {
  margin-top: 2px;
  color: var(--ink);
  font-weight: 600;
}
.shelf h2,
.how h2 {
  margin-top: 28px;
}
.steps {
  margin: 0 0 12px;
  padding-left: 24px;
}
.steps li + li {
  margin-top: 6px;
}
.how p {
  color: var(--muted);
}
.find-us-card {
  display: grid;
  gap: 4px 24px;
  padding: 16px 18px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.find-us-name {
  font-weight: 700;
}
.contact-actions .button {
  padding-inline: 16px;
}

/* The products. */
.pickup-line {
  font-weight: 600;
}
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.product-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.product-picture,
.line-picture,
.product-page-picture {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  aspect-ratio: 1;
}
.product-picture img,
.line-picture img,
.product-page-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.no-picture {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef2f8, #dfe6f1);
}
.product-name {
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.product-link:hover .product-name {
  text-decoration: underline;
}
.product-price {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.product-price.large {
  font-size: 26px;
}
.stock {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}
.stock-in {
  color: var(--good);
}
.stock-few {
  color: var(--few);
}
.stock-out {
  color: var(--muted);
}
.product-card .button {
  margin-top: auto;
  width: 100%;
  padding-inline: 8px;
}
.button.is-added {
  border-color: var(--good);
  color: var(--good);
}

/* The basket bar: fixed at the bottom once the basket holds anything. */
.basket-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 5;
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 -6px 18px rgb(0 16 96 / 0.12);
}
.basket-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px));
}
.basket-bar-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
[data-added] {
  display: block;
  color: var(--good);
  font-weight: 700;
}
[data-added]:empty {
  display: none;
}
.basket-bar .button {
  flex: none;
  min-height: 44px;
}
.has-basket-bar .site-footer {
  padding-bottom: 96px;
}

/* One product. */
.product-page {
  display: grid;
  gap: 20px;
  margin-top: 12px;
}
.product-page h1 {
  margin-top: 0;
}
.add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin: 12px 0;
}
.add-form label {
  flex-basis: 100%;
  font-weight: 600;
}
select,
input {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--muted);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
select {
  min-width: 84px;
}
/* The NAFDAC facts: one card, a line each. */
.facts {
  display: grid;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.facts div {
  padding: 10px 14px;
}
.facts div + div {
  border-top: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.description {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.advice {
  color: var(--muted);
  font-size: 15px;
}
.collect {
  font-weight: 600;
}

/* The basket and checkout. */
.basket-lines {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.basket-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.line-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.line-each,
.line-quantity {
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 15px;
}
.line-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.line-controls label {
  font-size: 15px;
  color: var(--muted);
}
.line-total {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.basket-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.summary {
  margin: 0 0 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.summary summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 12px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 700;
}
.summary-title {
  font-size: 19px;
}
.summary summary::-webkit-details-marker {
  display: none;
}
.summary-line {
  grid-row: 2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Says the summary opens: "Show", or "Hide" once open. */
.summary summary::after {
  content: "Show";
  color: var(--accent);
  text-decoration: underline;
}
.summary[open] summary::after {
  content: "Hide";
}
.summary[open] summary {
  border-bottom: 1px solid var(--line);
}
.checkout-form {
  max-width: 36em;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 700;
}
.field .hint {
  margin: 0;
}
.field input {
  width: 100%;
}
.agree {
  margin-top: 20px;
}
.form-message {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  font-weight: 600;
}
.pay {
  width: 100%;
  margin: 8px 0 12px;
}

/* An order. */
.order-view h1 {
  margin-bottom: 16px;
}
.pickup-card {
  padding: 18px 20px;
  border: 2px solid var(--navy);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
}
.card-label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.order-number {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pickup-code {
  margin: 0 0 12px;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.order-ref strong {
  font-variant-numeric: tabular-nums;
}
.time-left {
  font-size: 20px;
  font-weight: 700;
}
.pay-row .button {
  width: 100%;
}
.order-lines {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.order-lines th,
.order-lines td {
  padding: 8px 6px 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.order-lines td:first-child {
  overflow-wrap: anywhere;
}
.order-lines .number {
  text-align: right;
  white-space: nowrap;
}
.order-lines tfoot th,
.order-lines tfoot td {
  font-weight: 700;
  border-bottom: 0;
}
.cancel-box {
  margin-top: 24px;
}
.cancel-box .button {
  margin: 4px 8px 4px 0;
}
.order-list {
  padding: 0;
  list-style: none;
}
.order-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.order-list a {
  font-weight: 700;
}

/* The terms, the notice and other pages of words. */
.document {
  max-width: 42em;
}
.version {
  color: var(--muted);
  font-size: 15px;
}
.in-short {
  padding: 4px 16px 4px;
  border-left: 4px solid var(--cyan);
  background: var(--paper);
}
.document ul {
  padding-left: 22px;
}
.document li + li {
  margin-top: 6px;
}
.status-page {
  max-width: 36em;
  padding-block: 24px 40px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  margin-top: 40px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 15px;
}
.footer-note {
  color: var(--ink);
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 12px;
}
.footer-nav a {
  display: inline-block;
  padding: 8px 0;
}

@media (min-width: 640px) {
  .brand img {
    width: 160px;
  }
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .product-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .hero {
    padding: 36px 40px 38px;
  }
  .trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border: 0;
    background: none;
  }
  .trust li,
  .trust li + li {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
  }
  .find-us-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .find-us-card .hint {
    grid-column: 1 / -1;
  }
  .pay,
  .pay-row .button {
    width: auto;
  }
}
@media (min-width: 960px) {
  .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* A printed order page is the receipt: the logo, the order, nothing else. */
@media print {
  :root {
    --ink: #000000;
    --muted: #333333;
    --paper: #ffffff;
    --canvas: #ffffff;
    --line: #999999;
  }
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }
  .site-header,
  .basket-bar,
  .site-footer .footer-nav,
  .skip-link,
  .no-print,
  .cancel-box,
  button,
  .button {
    display: none !important;
  }
  .print-logo {
    display: block;
    width: 52mm;
    margin: 0 auto 6mm;
  }
  .site-footer {
    margin-top: 8mm;
    border-top: 1px solid #999999;
  }
  .pickup-card {
    border-color: #000000;
  }
}
