/* Online shop storefront (T-0204, side cart 2026-11-10). Namespaced under .shop / .shop-*; does not rely on
   compiled Tailwind classes, so it works inside the standard template AND inside a pharmacy's custom website
   (layouts/shop-custom.ejs). Colours come from the pharmacy's brand tokens (--pharmacy-primary/secondary),
   fonts are inherited from the site. Mobile first, 44px tap targets. */
:root {
  --shop-brand: var(--pharmacy-primary, #064e3b);
  --shop-brand-2: var(--pharmacy-secondary, #059669);
}
.shop, .shop-cart, .shop-cart-bar, .shop-basket-btn, .shop-fab, .shop-subnav, .shop-toast {
  --brand: var(--pharmacy-primary, #064e3b);
  --brand-2: var(--pharmacy-secondary, #059669);
  --brand-tint: color-mix(in srgb, var(--pharmacy-primary, #064e3b) 7%, white);
  --brand-tint-2: color-mix(in srgb, var(--pharmacy-primary, #064e3b) 14%, white);
  --card: #fff;
  --line: #e6e8ec;
  --text: #0f172a;
  --muted: #5a6a80;
  --ctl-border: #8392a6;
  --danger: #b91c1c;
  --warn-bg: #fff7ed;
  --warn-text: #9a3412;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -18px rgba(15, 23, 42, .28);
  --cart-w: 340px;
  --shop-sticky: calc(var(--shop-top, 64px) + 16px);
}
.shop {
  background: color-mix(in srgb, var(--pharmacy-primary, #064e3b) 3%, #f7f7f8);
  color: var(--text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  min-height: calc(100vh - 64px);
  padding-bottom: 40px;
}
.shop-site--custom .shop { background: transparent; min-height: 60vh; }
.shop *, .shop *::before, .shop *::after,
.shop-cart *, .shop-cart *::before, .shop-cart *::after { box-sizing: border-box; }
.shop [hidden], .shop-cart [hidden], .shop-cart-bar[hidden], .shop-cart-backdrop[hidden] { display: none !important; }
:where(.shop, .shop-cart) a { color: inherit; }
:where(.shop, .shop-cart) :where(button, input, select) { font: inherit; color: inherit; }
:where(.shop, .shop-cart, .shop-cart-bar) :where(button) { cursor: pointer; }
.shop-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop a:focus-visible, .shop button:focus-visible, .shop input:focus-visible,
.shop-cart a:focus-visible, .shop-cart button:focus-visible, .shop-cart input:focus-visible, .shop-cart [tabindex]:focus-visible,
.shop-basket-btn:focus-visible, .shop-cart-bar:focus-visible, .shop-fab:focus-visible {
  outline: 3px solid var(--brand-2); outline-offset: 2px;
}
.shop-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .shop-wrap { padding: 0 24px; } }

/* hero */
.shop-hero { padding: 24px 0 4px; }
.shop-eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.shop-hero h1 { margin: 0; font-size: 1.6rem; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
@media (min-width: 720px) { .shop-hero h1 { font-size: 2rem; } }
.shop-hero p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.shop-crumbs { font-size: .85rem; color: var(--muted); padding: 12px 0 0; }
.shop-crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.shop-crumbs a:hover { text-decoration: underline; }

/* search + chips */
.shop-search { display: flex; gap: 8px; margin-top: 16px; max-width: 640px; }
.shop-search input[type="search"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line);
  border-radius: 999px; background: #fff; font-size: 1rem; box-shadow: var(--shadow);
}
.shop-search input[type="search"]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint-2); }
.shop-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--brand); color: #fff !important; font-weight: 600; font-size: 1rem;
  text-decoration: none !important; transition: filter .15s, transform .15s; font-family: inherit; line-height: 1.1;
}
.shop-btn:hover { filter: brightness(1.12); }
.shop-btn:active { transform: scale(.98); }
.shop-btn[disabled], .shop-btn[aria-disabled="true"] { background: #cbd5e1; color: #475569 !important; cursor: not-allowed; filter: none; pointer-events: none; }
.shop-btn--ghost { background: #fff; color: var(--brand) !important; border: 1.5px solid var(--brand); }
.shop-btn--block { width: 100%; }
.shop-btn--sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.shop-btn--added { background: var(--brand-2); }
.shop-chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
@media (min-width: 1024px) { .shop-chips { flex-wrap: wrap; margin: 0; padding: 16px 0 4px; } }
.shop-chips::-webkit-scrollbar { display: none; }
.shop-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap;
}
.shop-chip:hover { border-color: var(--brand); }
.shop-chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.shop-results { margin: 18px 0 12px; color: var(--muted); font-size: .9rem; }

/* page + side cart layout */
.shop-layout { display: block; }
.shop-layout__main { min-width: 0; }
@media (min-width: 1024px) {
  .shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--cart-w); gap: 28px; align-items: start; }
}

/* grid */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 16px 34px -18px rgba(15, 23, 42, .35); }
.shop-card__media { display: block; aspect-ratio: 1 / 1; background: var(--brand-tint); position: relative; }
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--brand) 40%, white); }
.shop-ph svg { width: 36%; height: 36%; }
.shop-card__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 720px) { .shop-card__body { padding: 14px 16px 16px; } }
.shop-card__name { font-weight: 600; font-size: .98rem; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.shop-card__name:hover { text-decoration: underline; }
.shop-card__desc { color: var(--muted); font-size: .85rem; margin: 0; display: none; }
@media (min-width: 720px) { .shop-card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.shop-price { font-weight: 700; font-size: 1.1rem; }
.shop-badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-text); align-self: flex-start; }
.shop-badge--out { background: #f1f5f9; color: #475569; }
.shop-card__actions { margin-top: auto; padding-top: 6px; }

.shop-empty { background: #fff; border: 1px dashed var(--ctl-border); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.shop-empty h2 { margin: 0 0 6px; font-size: 1.1rem; color: var(--text); }
.shop-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 24px 0 0; }
.shop-closed { padding: 64px 16px; text-align: center; max-width: 640px; }
.shop-closed h1 { font-size: 1.6rem; margin: 0 0 12px; }
.shop-closed p { color: var(--muted); }
.shop-closed__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* product */
.shop-product { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 820px) { .shop-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
.shop-gallery__main { background: var(--brand-tint); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1 / 1; overflow: hidden; }
.shop-gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.shop-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.shop-thumb { width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--line); background: #fff; padding: 0; overflow: hidden; }
.shop-thumb[aria-current="true"] { border-color: var(--brand); }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-info h1 { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.2; overflow-wrap: anywhere; }
.shop-info .shop-price { font-size: 1.6rem; }
.shop-vat { color: var(--muted); font-size: .85rem; margin: 2px 0 12px; }
.shop-note { border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin: 12px 0; background: var(--brand-tint); }
.shop-note--limit { background: var(--warn-bg); color: var(--warn-text); }
.shop-note strong { display: block; }
.shop-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.shop-buy .shop-btn { flex: 1 1 180px; }
.shop-desc p { margin: 0 0 12px; line-height: 1.6; overflow-wrap: anywhere; }
.shop-desc h2 { font-size: 1.05rem; margin: 20px 0 8px; }

/* stepper */
.shop-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ctl-border); border-radius: 999px; background: #fff; }
.shop-stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.25rem; border-radius: 999px; line-height: 1; color: var(--text); padding: 0; }
.shop-stepper button:hover:not([disabled]) { background: var(--brand-tint); }
.shop-stepper button[disabled] { color: #94a3b8; cursor: not-allowed; }
.shop-stepper input { width: 40px; height: 44px; border: 0; text-align: center; background: transparent; font-weight: 600; -moz-appearance: textfield; padding: 0; }
.shop-stepper input::-webkit-outer-spin-button, .shop-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-stepper--sm button { width: 40px; height: 40px; min-width: 44px; min-height: 44px; }
.shop-stepper--sm span { min-width: 22px; text-align: center; font-weight: 600; }

/* basket page */
.shop-basket { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 900px) { .shop-basket { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.shop-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.shop-line { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.shop-line--err { border-color: #fca5a5; }
.shop-line__img { width: 72px; height: 72px; border-radius: 10px; background: var(--brand-tint); overflow: hidden; }
.shop-line__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-line__name { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.shop-line__meta { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.shop-line__row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shop-line__total { font-weight: 700; }
.shop-link-btn { background: none; border: 0; color: var(--brand); text-decoration: underline; min-height: 44px; padding: 0 8px; font-size: .92rem; font-family: inherit; }
.shop-errors { grid-column: 1 / -1; margin: 0; padding: 10px 12px; list-style: none; background: #fef2f2; color: var(--danger); border-radius: 10px; font-size: .9rem; display: grid; gap: 4px; }
.shop-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
@media (min-width: 900px) { .shop-summary { position: sticky; top: var(--shop-sticky); } }
.shop-summary h2 { margin: 0 0 12px; font-size: 1.1rem; }
.shop-summary dl { margin: 0 0 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.shop-summary dt { color: var(--muted); }
.shop-summary dd { margin: 0; text-align: right; font-weight: 600; }
.shop-summary .shop-total { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.shop-alert { padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: var(--danger); margin: 0 0 12px; font-size: .92rem; }
.shop-collect { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }

/* ---------- side cart: sticky column >= 1024px, drawer below ---------- */
.shop-cart { color: var(--text); font-family: inherit; }
.shop-cart__panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.shop-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 12px 18px; border-bottom: 1px solid var(--line); }
.shop-cart__title { margin: 0; font-size: 1.1rem; font-weight: 700; outline: none; }
.shop-cart__n { color: var(--muted); font-weight: 500; font-size: .95rem; }
.shop-cart__close { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; display: none; align-items: center; justify-content: center; color: var(--text); padding: 0; }
.shop-cart__close:hover { background: var(--brand-tint); }
.shop-cart__close svg { width: 22px; height: 22px; }
.shop-cart__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.shop-cart__loading { margin: 0; padding: 16px 18px; color: var(--muted); font-size: .92rem; }
.shop-cart__lines { list-style: none; margin: 0; padding: 0; }
.shop-cart__line {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 12px 16px 12px 18px;
  border-bottom: 1px solid var(--line); transition: background-color .6s ease;
}
.shop-cart__line:last-child { border-bottom: 0; }
.shop-cart__line.is-new { background: var(--brand-tint-2); animation: shop-cart-in .45s ease; }
@keyframes shop-cart-in { from { transform: translateX(12px); opacity: .2; } to { transform: none; opacity: 1; } }
.shop-cart__thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--brand-tint); overflow: hidden; display: block; grid-row: span 3; }
.shop-cart__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-cart__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.shop-cart__name { font-weight: 600; font-size: .94rem; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
a.shop-cart__name:hover { text-decoration: underline; }
.shop-cart__price { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.shop-cart__meta { color: var(--muted); font-size: .82rem; }
.shop-cart__controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-cart__controls .shop-stepper { border-width: 1px; }
.shop-cart__controls .shop-stepper button { width: 44px; height: 44px; font-size: 1.1rem; }
.shop-cart__controls .shop-stepper output { min-width: 24px; text-align: center; font-weight: 600; }
.shop-cart__remove { background: none; border: 0; color: var(--muted); text-decoration: underline; min-height: 44px; min-width: 44px; padding: 0 6px; font-size: .85rem; font-family: inherit; }
.shop-cart__remove:hover { color: var(--danger); }
.shop-cart__errors { grid-column: 1 / -1; margin: 6px 0 0; padding: 8px 10px; list-style: none; background: #fef2f2; color: var(--danger); border-radius: 10px; font-size: .84rem; display: grid; gap: 2px; }
.shop-cart__empty { padding: 26px 18px 18px; text-align: center; }
.shop-cart__empty-icon { width: 56px; height: 56px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.shop-cart__empty-icon svg { width: 28px; height: 28px; }
.shop-cart__empty-title { margin: 10px 0 2px; font-weight: 700; font-size: 1rem; }
.shop-cart__empty-text { margin: 0; color: var(--muted); font-size: .9rem; }
.shop-cart__sugg-h { margin: 20px 0 6px; text-align: left; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shop-cart__sugg { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.shop-cart__sugg-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.shop-cart__sugg-item .shop-cart__thumb { width: 48px; height: 48px; grid-row: auto; }
.shop-cart__sugg-info { display: flex; flex-direction: column; min-width: 0; }
.shop-cart__foot { border-top: 1px solid var(--line); padding: 14px 18px 16px; background: color-mix(in srgb, var(--brand) 2%, white); }
.shop-cart__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.shop-cart__row strong { font-size: 1.25rem; }
.shop-cart__vat { margin: 2px 0 10px; color: var(--muted); font-size: .82rem; text-align: right; }
.shop-cart__collect { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--brand-tint); font-size: .86rem; line-height: 1.4; }
.shop-cart__collect svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--brand); }
.shop-cart__links { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: .9rem; }
.shop-cart__links a { color: var(--brand); display: inline-flex; align-items: center; min-height: 44px; }
.shop-cart__continue { display: none; }

@media (min-width: 1024px) {
  .shop-cart { position: sticky; top: var(--shop-sticky); margin-top: 24px; }
  .shop-cart__panel { max-height: calc(100vh - var(--shop-sticky) - 16px); }
  .shop-cart-bar, .shop-cart-backdrop { display: none !important; }
}
@media (max-width: 1023.98px) {
  .shop-cart {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 10001; width: min(420px, 100vw);
    /* Closed: clipped away in place (a translated-off drawer would widen the page on phones). */
    clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .28s ease, visibility 0s linear .28s;
  }
  .shop-cart.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .28s ease; }
  .shop-cart__panel { height: 100%; border-radius: 0; border: 0; border-left: 1px solid var(--line); }
  .shop-cart__body { flex: 1; }
  .shop-cart__close, .shop-cart__continue { display: inline-flex; }
  .shop-cart__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .shop-cart-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .45); }
  html.shop-cart-lock, html.shop-cart-lock body { overflow: hidden; }
  html.shop-has-bar .shop { padding-bottom: 96px; }
}

/* sticky "View basket (n) · £x" bar (phones and tablets) */
.shop-cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 9990;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .5);
}
.shop-cart-bar__l { display: inline-flex; align-items: center; gap: 10px; }
.shop-cart-bar svg { width: 22px; height: 22px; }
.shop-cart-bar.is-bump { animation: shop-bump .4s ease; }
@keyframes shop-bump { 40% { transform: translateY(-4px) scale(1.02); } }

/* header basket button (standard nav + custom-site shop bar) */
.shop-basket-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--pharmacy-primary, #064e3b) 25%, white); background: #fff;
  color: var(--pharmacy-primary, #064e3b) !important; text-decoration: none !important; font-weight: 600; font-size: .95rem; line-height: 1;
  transition: background-color .15s, border-color .15s;
}
.shop-basket-btn:hover { background: color-mix(in srgb, var(--pharmacy-primary, #064e3b) 7%, white); border-color: var(--pharmacy-primary, #064e3b); }
.shop-basket-btn__icon { width: 22px; height: 22px; flex: 0 0 auto; }
.shop-basket-btn__total { font-variant-numeric: tabular-nums; }
.shop-basket-btn--compact { padding: 0; width: 44px; justify-content: center; margin-right: 8px; }
.shop-basket-btn--compact .shop-basket-btn__label, .shop-basket-btn--compact .shop-basket-btn__total { display: none !important; }
.shop-basket-btn--compact .shop-count { position: absolute; top: -4px; right: -4px; }
.shop-basket-btn.is-bump { animation: shop-bump .4s ease; }
.shop-navlink { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.shop-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--pharmacy-primary, #064e3b); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}
.shop-count[hidden], .shop-basket-btn__total[hidden] { display: none; }

/* custom website: shop sub-header under the site's own header */
.shop-subnav { background: #fff; border-bottom: 1px solid var(--line); }
.shop-subnav__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.shop-subnav__title { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }
.shop-subnav__note { color: var(--muted); font-size: .88rem; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.shop-subnav .shop-basket-btn { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 599.98px) {
  .shop-subnav__note { display: none; }
  .shop-subnav .shop-basket-btn__label { display: none; }
}

/* custom website home: floating Shop button */
.shop-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9990;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  background: var(--pharmacy-primary, #064e3b); color: #fff !important; text-decoration: none !important;
  font: 700 1rem/1 system-ui, -apple-system, Segoe UI, sans-serif; font-family: inherit; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .5);
}
.shop-fab svg { width: 22px; height: 22px; }
.shop-fab .shop-count { background: #fff; color: var(--pharmacy-primary, #064e3b); }

/* fallback toast (pages without the side cart) */
.shop-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10002; background: #0f172a; color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: .95rem; box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
.shop-toast a { color: #fff; font-weight: 600; margin-left: 10px; }

/* pharmacy info (GPhC block) */
.shop-info-bar { margin-top: 32px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; color: var(--muted); }
.shop-info-bar p { margin: 2px 0; }
.shop-info-bar a { color: var(--brand); }

@media print {
  .shop-site--custom > header, .shop-site--custom > nav, .shop-site--custom > footer, .shop-subnav, .shop-cart, .shop-cart-bar, .shop-fab { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .shop *, .shop-cart, .shop-cart *, .shop-cart-bar, .shop-basket-btn { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
