/* Burjeel Pharmacy (demo) — stylesheet (inherited from DemoLab, rebranded).
 * Palette: primary teal #00695C · accent indigo #4338CA (Raleway).
 * Design rules honoured: full keyboard nav, focus rings, i-buttons, no modals. */

:root {
  --blue:    #00695C;
  --blue-d:  #004D40;
  --blue-l:  #E0F2F1;
  --pink:    #4338CA;
  --pink-d:  #3730A3;
  --pink-l:  #EEF2FF;
  --amber:   #D97706;
  --red:     #B42318;
  --green:   #059669;
  --ink:     #0B1220;
  --ink-2:   #1F2937;
  --muted:   #6B7280;
  --line:    #E5E7EB;
  --bg:      #FFFFFF;
  --bg-2:    #F7F9FC;
  --bg-3:    #F0F5FA;
  --radius:  12px;
  --shadow-1: 0 1px 2px rgba(11,18,32,.05), 0 2px 6px rgba(11,18,32,.06);
  --shadow-2: 0 8px 24px rgba(11,18,32,.10);
  --focus:   0 0 0 3px rgba(0, 105, 92,.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* ---- Emergency ribbon ---- */
.top-ribbon {
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  text-align: center;
}
.top-ribbon a { color: #fff; text-decoration: underline; font-weight: 700; }
.top-ribbon .sep { opacity: .6; margin: 0 8px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
}
.brand-title { font-weight: 800; font-size: 18px; color: var(--ink); line-height: 1; }
.brand-sub   { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .2px; }

.top-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.top-nav a:hover { background: var(--bg-3); text-decoration: none; }
.top-nav a[aria-current="page"] { background: var(--blue-l); color: var(--blue-d); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .05s, box-shadow .1s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn-pink    { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-pink:hover { background: var(--pink-d); border-color: var(--pink-d); }
.btn-ghost   { background: transparent; color: var(--blue-d); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-l); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-3); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #E0F2F1 0%, #EEF2FF 100%);
  padding: 56px 0 40px;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.hero-sub {
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 0 0 24px;
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  background: #fff;
  color: var(--blue-d);
  border: 1px solid var(--blue-l);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ---- Search combobox ---- */
.searchbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 720px;
}
.searchbox input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}
.searchbox input:focus-visible { box-shadow: none; }
.search-results {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  margin-top: 6px;
  max-width: 720px;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  z-index: 30;
}
.search-results.hidden { display: none; }
.search-results-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  gap: 12px;
}
.search-results-item:last-child { border-bottom: none; }
.search-results-item[aria-selected="true"],
.search-results-item:hover {
  background: var(--blue-l);
}
.search-results-item .name { font-weight: 600; color: var(--ink); }
.search-results-item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.search-results-item .price { font-weight: 700; color: var(--blue-d); white-space: nowrap; }

/* ---- Feature strip ---- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.feature-strip .feat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.feature-strip .feat-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--blue-l);
  color: var(--blue-d);
  display: grid; place-items: center;
  font-size: 18px;
  flex: 0 0 34px;
}
.feature-strip .feat-title { font-weight: 700; font-size: 14px; }
.feature-strip .feat-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- Section base ---- */
section.pad { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; letter-spacing: -.3px; }
.section-head .lede { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 640px; }

/* ---- Category chip grid (home + tests filter) ---- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .05s, box-shadow .1s;
  color: var(--ink);
  text-align: center;
}
.chip:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); text-decoration: none; }
.chip .chip-icon { font-size: 26px; }
.chip .chip-name { font-weight: 700; font-size: 13px; }
.chip[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-l);
  color: var(--blue-d);
}

/* ---- Package cards ---- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.pkg-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .12s;
}
.pkg-card:hover { box-shadow: var(--shadow-2); }
.pkg-card .pkg-stripe { height: 6px; border-radius: 4px; margin: -20px -20px 4px; }
.pkg-card.blue  .pkg-stripe { background: var(--blue); }
.pkg-card.pink  .pkg-stripe { background: var(--pink); }
.pkg-card.amber .pkg-stripe { background: var(--amber); }
.pkg-card.red   .pkg-stripe { background: var(--red); }
.pkg-card .pkg-name { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.pkg-card .pkg-audience { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pkg-card .pkg-price {
  display: flex; align-items: baseline; gap: 8px; margin-top: 4px;
}
.pkg-card .pkg-price .price { font-size: 26px; font-weight: 800; color: var(--ink); }
.pkg-card .pkg-price .mrp   { text-decoration: line-through; color: var(--muted); font-size: 14px; }
.pkg-card .pkg-price .off   { background: var(--pink-l); color: var(--pink-d); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pkg-card ul.pkg-highlights {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.pkg-card ul.pkg-highlights li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 800;
  margin-right: 6px;
}
.pkg-card .pkg-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.pkg-card .pkg-meta span {
  background: var(--bg-3);
  padding: 3px 8px;
  border-radius: 999px;
}
.pkg-card .pkg-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.pkg-card .pkg-actions .btn { flex: 1; justify-content: center; }

/* ---- Info button (i) ---- */
.info-btn {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue-l);
  color: var(--blue-d);
  font-size: 11px;
  font-weight: 800;
  border: none;
  cursor: help;
  vertical-align: middle;
  margin-left: 4px;
}
.info-btn:hover { background: var(--blue); color: #fff; }

/* ---- Tests catalog ---- */
.tests-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.tests-toolbar input[type="search"] {
  flex: 1;
  min-width: 240px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.tests-toolbar .filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.test-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.test-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
}
.test-row .test-name { font-weight: 700; font-size: 15px; }
.test-row .test-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.test-row .test-price { text-align: right; font-weight: 800; color: var(--blue-d); font-size: 18px; }
.test-row .test-actions { display: flex; gap: 6px; margin-top: 6px; justify-content: flex-end; }

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  min-height: 16px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-1);
  max-width: 720px;
  margin: 0 auto;
}

.form-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
}
.form-status.ok  { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.form-status.err { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* Radio pill row */
.radio-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.radio-pill {
  position: relative;
}
.radio-pill input {
  position: absolute; opacity: 0; inset: 0; cursor: pointer;
}
.radio-pill span {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.radio-pill input:checked + span {
  background: var(--blue-l);
  border-color: var(--blue);
  color: var(--blue-d);
}
.radio-pill input:focus-visible + span { box-shadow: var(--focus); }

/* ---- Location list ---- */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.loc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.loc-card .loc-name { font-weight: 700; font-size: 16px; }
.loc-card .loc-city { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.loc-card .loc-addr { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.loc-card .loc-phone { display: block; margin-top: 8px; font-weight: 700; color: var(--blue-d); }
.loc-card .loc-tags {
  display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap;
}
.loc-card .loc-tags span {
  font-size: 11px;
  background: var(--bg-3);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink-2);
}

/* ---- Blog cards ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card .blog-tag {
  font-size: 11px;
  background: var(--pink-l);
  color: var(--pink-d);
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.blog-card h3 { font-size: 16px; margin: 4px 0 0; line-height: 1.3; }
.blog-card p  { color: var(--muted); font-size: 13.5px; margin: 0; }
.blog-card .blog-meta { font-size: 12px; color: var(--muted); }

/* ---- Callout / CTA ---- */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); }
.cta-band p  { margin: 0 0 20px; opacity: .95; }
.cta-band .btn-outline { background: #fff; color: var(--blue-d); border-color: #fff; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #E5E7EB;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #fff; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { color: #CBD5E1; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-note {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #1F2937;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.6;
}
.footer-note strong { color: #E2E8F0; }

/* ---- Utilities ---- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid   { grid-template-columns: 1fr; }
  .top-nav a   { padding: 6px 8px; font-size: 13px; }
  .brand-sub   { display: none; }
  .test-row    { grid-template-columns: 1fr; }
  .test-row .test-price { text-align: left; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .top-nav { width: 100%; justify-content: flex-start; }
  section.pad { padding: 36px 0; }
  .hero { padding: 36px 0 28px; }
}

/* ---- Print / accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   LabAI right-side dock — always-open chat widget
   ========================================================================= */

:root {
  --brj-w: 360px;
  --brj-min-h: 56px;
}

/* On desktop, main content leaves room for the dock. */
@media (min-width: 1100px) {
  body.has-brj-dock     { padding-right: var(--brj-w); }
  body.has-brj-dock-min { padding-right: 0; }
}

.brj-dock {
  position: fixed;
  right: 0;
  top: 0;
  width: var(--brj-w);
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid var(--line);
  box-shadow: -6px 0 24px rgba(11, 18, 32, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 60;
  font-family: 'Raleway', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  transition: transform 0.18s ease, height 0.18s ease;
}

.brj-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.brj-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.brj-header-text { flex: 1; min-width: 0; }
.brj-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brj-sub {
  font-size: 11.5px;
  opacity: 0.9;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.brj-dot-online {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35);
  animation: brj-pulse 2s infinite;
}
@keyframes brj-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.10); }
}
.brj-info {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: none;
  font-size: 10px;
  font-weight: 800;
  cursor: help;
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.brj-info:hover { background: rgba(255, 255, 255, 0.35); }
.brj-min {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.brj-min:hover { background: rgba(255, 255, 255, 0.30); }

/*
 * Auth pill (12 Jul 2026) — a single element in the header that shows
 * "Login" when logged out and "email · Logout" when logged in. Two
 * variants (brj-auth-in, brj-auth-out) share the same base so the
 * transition is visually seamless when the state flips at runtime.
 */
.brj-auth {
  border: none;
  color: #fff;
  padding: 6px 10px;
  height: 28px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.brj-auth.brj-auth-out {
  background: rgba(255, 255, 255, 0.22);
}
.brj-auth.brj-auth-out:hover,
.brj-auth.brj-auth-out:focus-visible {
  background: rgba(255, 255, 255, 0.36);
  outline: none;
}
.brj-auth.brj-auth-in {
  background: rgba(255, 255, 255, 0.14);
  padding-left: 8px;
}
.brj-auth.brj-auth-in::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.30);
  flex-shrink: 0;
}
.brj-auth.brj-auth-in:hover,
.brj-auth.brj-auth-in:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

/* Compact mode — on narrow phones the pill hides the email text and
 * shows just the online dot, keeping the header uncluttered. Full
 * email + Logout copy stays in the title attribute for accessibility. */
@media (max-width: 420px) {
  .brj-auth {
    max-width: 88px;
    font-size: 11px;
    padding: 6px 8px;
  }
}

/*
 * Auth bar (12 Jul 2026 · v2) — a dedicated horizontal band that lives
 * directly below the gradient header, above the cart, showing
 * "Logged in as {email}" with a Logout affordance. Only visible when
 * a session token is present. Palette: a soft brand-tinted strip that
 * flows visually from the pink end of the header gradient into the
 * neutral body below.
 */
.brj-authbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(67, 56, 202, 0.06) 0%, rgba(0, 105, 92, 0.05) 100%);
  border-bottom: 1px solid rgba(0, 105, 92, 0.12);
  font-size: 12.5px;
  color: var(--ink);
  flex-shrink: 0;
}
.brj-authbar[hidden] { display: none; }
.brj-authbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
  flex-shrink: 0;
}
.brj-authbar-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brj-authbar-label {
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.brj-authbar-email {
  font-weight: 800;
  color: var(--blue-d, var(--blue));
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.brj-authbar-logout {
  border: 1px solid rgba(0, 105, 92, 0.25);
  background: #fff;
  color: var(--blue-d, var(--blue));
  padding: 5px 12px;
  height: 26px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.brj-authbar-logout:hover,
.brj-authbar-logout:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  outline: none;
}

@media (max-width: 420px) {
  .brj-authbar {
    padding: 8px 12px;
    font-size: 12px;
    gap: 8px;
  }
  .brj-authbar-logout {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* Body: messages + suggestions + input */
.brj-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.brj-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  background: var(--bg-2);
  scroll-behavior: smooth;
}

.brj-msg {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brj-msg.brj-user  { align-items: flex-end; }
.brj-msg.brj-bot   { align-items: flex-start; }

.brj-bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.brj-user  .brj-bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.brj-bot   .brj-bubble {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}

.brj-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 90%;
}
.brj-action {
  display: block;
  padding: 8px 12px;
  background: #fff;
  border: 1.5px solid var(--blue-l);
  color: var(--blue-d);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.08s, border-color 0.08s;
}
.brj-action:hover {
  background: var(--blue-l);
  border-color: var(--blue);
  text-decoration: none;
}

/* Typing dots */
.brj-typing .brj-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
}
.brj-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: brj-bounce 1.2s infinite ease-in-out;
}
.brj-dot:nth-child(1) { animation-delay: 0s; }
.brj-dot:nth-child(2) { animation-delay: 0.18s; }
.brj-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes brj-bounce {
  0%, 60%, 100% { transform: translateY(0);   opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1;   }
}

/* Suggestion chips */
.brj-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  max-height: 96px;
  overflow-y: auto;
}
.brj-suggestions:empty { display: none; }
.brj-chip {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.08s, border-color 0.08s;
}
.brj-chip:hover {
  background: var(--blue-l);
  border-color: var(--blue);
  color: var(--blue-d);
}

/* Input row */
.brj-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.brj-input input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.1s;
}
.brj-input input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.15);
}
.brj-input button {
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.08s;
}
.brj-input button:hover { background: var(--blue-d); }
.brj-input button:disabled { background: var(--muted); cursor: not-allowed; }

/* Footer disclaimer */
.brj-footer {
  padding: 8px 14px;
  background: var(--bg-3);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

/* ------ Minimised state ------ */
.brj-dock.brj-minimised {
  height: var(--brj-min-h);
  top: auto;
  bottom: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 12px 0 0 0;
}
.brj-dock.brj-minimised .brj-body,
.brj-dock.brj-minimised .brj-footer {
  display: none;
}

/* ------ Mobile / tablet — dock as bottom sheet, always visible ------ */
@media (max-width: 1099px) {
  :root { --brj-w: 100%; }
  .brj-dock {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    max-height: 480px;
    border-left: none;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 24px rgba(11, 18, 32, 0.10);
  }
  body.has-brj-dock { padding-bottom: calc(60vh - 100px); }
  body.has-brj-dock-min { padding-bottom: var(--brj-min-h); }
  .brj-dock.brj-minimised {
    border-radius: 12px 12px 0 0;
  }
}

@media (max-width: 480px) {
  .brj-dock {
    height: 55vh;
    max-height: 460px;
  }
  body.has-brj-dock { padding-bottom: 20px; }
  .brj-header { padding: 10px 12px; }
  .brj-title { font-size: 14px; }
  .brj-bubble { font-size: 13px; }
}

/* ═════════════════════════════════════════════════════════════════════
   LabAI in-chat cart (12 Jul 2026 · v3)
   ─────────────────────────────────────────────────────────────────────
   Anchored at the TOP of the chat body (directly below the auth bar,
   above .brj-messages). It's always visible whenever the cart holds
   at least one item — the message stream scrolls beneath it, the cart
   never scrolls away. Hidden entirely when the cart is empty so the
   messages get the full height back.

   Layout:
     .brj-cart          — flex column, flex-shrink:0 (won't be squeezed)
     .brj-cart-list     — the scrollable item strip (up to ~26vh)
     .brj-cart-foot     — total + Book cart CTA (always visible)

   Every row is keyboard-focusable via its × button. "Book cart" hands
   the full list of codes to the existing conversational booking flow —
   no separate page, no modal (per the house design rule: no dialog
   boxes on button click).
   ───────────────────────────────────────────────────────────────────── */

.brj-cart {
  flex-shrink: 0;
  background: #FFFDF7;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Soft shadow to visually lift the cart above the messages beneath —
     reinforces the "always on top of chat" affordance. */
  box-shadow: 0 4px 8px -6px rgba(0, 105, 92, 0.28),
              0 1px 0 rgba(0, 105, 92, 0.06);
  position: relative;
  z-index: 2;
}
.brj-cart::before {
  /* Thin gradient accent along the top edge — visually anchors the cart
     to the header/auth bar above and reads as "this belongs at the top". */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  opacity: 0.55;
  pointer-events: none;
}
.brj-cart[hidden] { display: none; }

.brj-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brj-cart-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brj-cart-icon { font-size: 14px; }
.brj-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.brj-cart-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.brj-cart-clear:hover { color: var(--ink); }

.brj-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Cap the scrollable item strip so a large cart doesn't hide the
     message stream. Total + Book-cart CTA (in .brj-cart-foot /
     .brj-cart-book) stay fixed just below. */
  max-height: 26vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.brj-cart-list::-webkit-scrollbar { width: 6px; }
.brj-cart-list::-webkit-scrollbar-thumb {
  background: rgba(0, 105, 92, 0.18);
  border-radius: 3px;
}
.brj-cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
}
.brj-cart-name {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.brj-cart-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  vertical-align: 1px;
}
.brj-cart-price {
  color: var(--ink-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.brj-cart-rm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  transition: background 0.08s, color 0.08s, border-color 0.08s;
}
.brj-cart-rm:hover,
.brj-cart-rm:focus-visible {
  background: #FFEDED;
  color: #B42318;
  border-color: #FDA29B;
  outline: none;
}

.brj-cart-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 2px 0;
  border-top: 1px dashed var(--line);
  margin-top: 2px;
}
.brj-cart-total-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.brj-cart-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.brj-cart-book {
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.06s, filter 0.08s;
  letter-spacing: 0.2px;
}
.brj-cart-book:hover { filter: brightness(1.05); }
.brj-cart-book:active { transform: translateY(1px); }
.brj-cart-book:focus-visible {
  outline: 3px solid rgba(0, 105, 92, 0.35);
  outline-offset: 2px;
}

/* Add-to-cart pulse — plays for ~0.9 s when a new item lands, or when
   the user taps a duplicate (soft "already here" feedback). */
@keyframes brj-cart-pulse-kf {
  0%   { box-shadow: 0 0 0 0 rgba(0, 105, 92, 0.00); background: #FFFDF7; }
  30%  { box-shadow: 0 0 0 4px rgba(0, 105, 92, 0.18); background: #FFF7E6; }
  100% { box-shadow: 0 0 0 0 rgba(0, 105, 92, 0.00); background: #FFFDF7; }
}
.brj-cart.brj-cart-pulse {
  animation: brj-cart-pulse-kf 900ms ease-out;
}

/* ═════════════════════════════════════════════════════════════════════
   LabAI context-nudge (10 Jul 2026)
   ─────────────────────────────────────────────────────────────────────
   When window.LabAI.setContext(...) is called from app.js (user hovers
   or focuses a test / package / category on the left side of the page),
   two things fire:

     1. .brj-suggestions gets `.brj-pulse` for ~3.6 s → the strip
        glows a soft blue/pink halo + each fresh chip bounces in.
     2. If the dock is minimised, .brj-dock gets `.brj-min-nudge`
        so the collapsed bubble wiggles briefly and draws the eye.

   The goal is to signal "the AI on the right is now ready with
   thyroid-specific / diabetes-specific / etc. questions — click one"
   without redesigning anything else.
   ───────────────────────────────────────────────────────────────────── */

@keyframes brj-strip-pulse {
  0%   { box-shadow: inset 0 0 0 0 rgba(0, 105, 92, 0.00);
         background: var(--bg-2); }
  15%  { box-shadow: inset 0 0 0 3px rgba(0, 105, 92, 0.35),
                     0 0 22px 4px rgba(0, 105, 92, 0.22);
         background: rgba(0, 105, 92, 0.08); }
  50%  { box-shadow: inset 0 0 0 2px rgba(67, 56, 202, 0.28),
                     0 0 28px 6px rgba(67, 56, 202, 0.20);
         background: rgba(67, 56, 202, 0.05); }
  85%  { box-shadow: inset 0 0 0 3px rgba(0, 105, 92, 0.35),
                     0 0 22px 4px rgba(0, 105, 92, 0.22);
         background: rgba(0, 105, 92, 0.08); }
  100% { box-shadow: inset 0 0 0 0 rgba(0, 105, 92, 0);
         background: var(--bg-2); }
}
.brj-suggestions.brj-pulse {
  animation: brj-strip-pulse 1.8s ease-in-out 2;
}
/* Chips inside a pulsing strip get a fresh-appear bounce so the user
   sees they've changed rather than glancing past a re-rendered strip. */
@keyframes brj-chip-in {
  0%   { transform: translateY(6px) scale(0.92); opacity: 0; }
  60%  { transform: translateY(-2px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0)    scale(1);    opacity: 1; }
}
.brj-suggestions.brj-pulse .brj-chip {
  animation: brj-chip-in 320ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
  /* Border colour subtly shifts to the accent so the strip reads as
     "primed with new content" without changing the base chip look. */
  border-color: var(--blue);
  color: var(--blue-d);
  background: #E8F5F3;
}
/* Stagger the chip bounces so they cascade in left-to-right. */
.brj-suggestions.brj-pulse .brj-chip:nth-child(1) { animation-delay: 0ms; }
.brj-suggestions.brj-pulse .brj-chip:nth-child(2) { animation-delay: 60ms; }
.brj-suggestions.brj-pulse .brj-chip:nth-child(3) { animation-delay: 120ms; }
.brj-suggestions.brj-pulse .brj-chip:nth-child(4) { animation-delay: 180ms; }
.brj-suggestions.brj-pulse .brj-chip:nth-child(5) { animation-delay: 240ms; }

/* If the dock is minimised when a context nudge fires, wiggle the
   collapsed bubble so a user with LabAI hidden still gets a hint. */
@keyframes brj-min-wiggle {
  0%, 100% { transform: rotate(0deg)  scale(1); }
  15%      { transform: rotate(-6deg) scale(1.06); }
  30%      { transform: rotate(6deg)  scale(1.06); }
  45%      { transform: rotate(-4deg) scale(1.04); }
  60%      { transform: rotate(4deg)  scale(1.04); }
  75%      { transform: rotate(-2deg) scale(1.02); }
}
.brj-dock.brj-minimised.brj-min-nudge {
  animation: brj-min-wiggle 1.1s ease-in-out 2;
}
/* Respect users who've asked the OS not to animate. */
@media (prefers-reduced-motion: reduce) {
  .brj-suggestions.brj-pulse,
  .brj-suggestions.brj-pulse .brj-chip,
  .brj-dock.brj-minimised.brj-min-nudge {
    animation: none !important;
  }
}

/* =========================================================================
   Burjeel Pharmacy additions (10 Sep 2026)
   Keyboard policy: two-tone focus ring visible on white AND on the
   teal/indigo gradients; never outline:none without a replacement.
   ========================================================================= */
:root { --focus-ring: #111827; --focus-halo: #FFD43B; }
:focus-visible { outline: 2px solid var(--focus-ring) !important; outline-offset: 2px !important; box-shadow: 0 0 0 5px var(--focus-halo) !important; }
.brj-header :focus-visible, .coord-topbar :focus-visible, .top-ribbon :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: #fff !important; box-shadow: 0 0 0 5px #111827 !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 1000; background: #111827; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* Rx badges */
.rx-badge { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; vertical-align: 2px; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.rx-otc { background: #DCFCE7; color: #14532D; border-color: #86EFAC; }
.rx-pom { background: #FEF3C7; color: #78350F; border-color: #FCD34D; }
.rx-cd  { background: #FEE2E2; color: #7F1D1D; border-color: #FCA5A5; }
.rx-kit { background: #EEF2FF; color: #3730A3; border-color: #C7D2FE; }

/* Catalogue */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip-count { font-size: 11px; font-weight: 800; background: var(--bg-3); color: var(--ink-2); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.chip[aria-pressed="true"] .chip-count { background: rgba(255,255,255,.25); color: #fff; }
.result-count { color: var(--muted); font-size: 13px; margin: 0 0 8px; grid-column: 1 / -1; }
.test-row h3.test-name { margin: 0; font-size: inherit; }
.test-desc { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.mrp { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .85em; margin-left: 6px; }
.test-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.notice-inline { color: var(--muted); font-size: 13px; }
h3.pkg-name { margin: 0; }
.notice { border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; border: 1px solid var(--line); background: var(--bg-2); line-height: 1.55; }
.notice-info { background: var(--blue-l); border-color: #B2DFDB; color: #00332C; }
.notice-warn { background: #FFFBEB; border-color: #FCD34D; color: #78350F; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); box-shadow: var(--shadow-1); transition: border-color .1s, transform .1s; }
.cat-card:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-1px); }
.cat-card h3 { margin: 6px 0 4px; font-size: 16px; }
.cat-card p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.cat-card .cat-meta { color: var(--muted); font-size: 12px; }
.cat-icon { font-size: 24px; }
.outlet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.loc-card h3.loc-name { margin: 0 0 4px; }
.loc-phones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.loc-map { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 13px; }
.loc-tags .tag-ok { background: #DCFCE7; color: #14532D; }
.loc-tags .tag-warn { background: #FEF3C7; color: #78350F; }
.step-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-list li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 52px; position: relative; }
.step-list li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.field-error { color: var(--red); font-size: 12.5px; min-height: 1em; margin-top: 4px; }
[aria-invalid="true"] { border-color: var(--red) !important; }

/* Price list / receipts */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.price-table th, .price-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { background: var(--bg-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.price-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tfoot th, .price-table tfoot td { background: var(--bg-2); font-weight: 700; }
.price-table tbody tr:hover { background: var(--bg-3); }
.price-section { margin: 26px 0; scroll-margin-top: 90px; }
.price-section h3 { margin: 0 0 10px; }
.price-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; }
.price-toc a { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; background: #fff; }
.receipt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.receipt-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.receipt-head p { margin: 0; }
.receipt-ref { margin: 2px 0 0; font-size: 22px; letter-spacing: 1px; font-family: ui-monospace, Menlo, monospace; }
.receipt-amount { font-size: 24px; font-weight: 800; color: var(--blue-d); }
.kv-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; }
.kv-list dt { color: var(--muted); font-weight: 600; } .kv-list dd { margin: 0; }
.status-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg-3); }
.status-chip.p-paid, .status-chip.s-delivered, .status-chip.s-collected, .status-chip.s-confirmed { background: #D1FAE5; color: #065F46; }
.status-chip.p-authorised, .status-chip.s-pharmacist_review { background: var(--blue-l); color: var(--blue-d); }
.status-chip.p-pending, .status-chip.p-cod_due, .status-chip.p-due_at_pickup { background: #FEF3C7; color: #92400E; }
.status-chip.p-failed, .status-chip.s-cancelled { background: #FEE2E2; color: #991B1B; }
.pay-list { padding-left: 18px; font-size: 13px; }
.pay-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.pay-form label { display: block; font-weight: 700; font-size: 13px; margin: 10px 0 4px; }
.pay-form input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 15px; }
.pay-form button[type=submit] { margin-top: 12px; width: 100%; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }

/* ---- @burjeel dock additions ---- */
.brj-title { margin: 0; font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .2px; }
.brj-hbtn { background: rgba(255,255,255,.18); color: #fff; border: 0; min-width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 800; line-height: 1; display: grid; place-items: center; padding: 0 6px; flex-shrink: 0; }
.brj-hbtn:hover { background: rgba(255,255,255,.3); }
.brj-link { background: none; border: 0; color: var(--blue-d); font-weight: 700; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 2px 4px; }
.brj-help { background: #FFFDF5; border-bottom: 1px solid var(--line); padding: 10px 14px; font-size: 12.5px; flex-shrink: 0; max-height: 40vh; overflow-y: auto; }
.brj-help[hidden] { display: none; }
.brj-help-head { display: flex; justify-content: space-between; align-items: center; }
.brj-help h3 { margin: 0; font-size: 13px; }
.brj-keys { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; margin: 8px 0 0; }
.brj-keys dt { white-space: nowrap; } .brj-keys dd { margin: 0; color: var(--ink-2); }
kbd { font-family: ui-monospace, Menlo, monospace; font-size: 11px; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--ink); }
.brj-cart-title { margin: 0; }
.brj-cart-list { max-height: 22vh; }
.brj-cart-row { grid-template-columns: 1fr auto auto auto; }
.brj-cart-name { white-space: normal; line-height: 1.3; }
.brj-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.brj-qty button { width: 26px; height: 26px; border: 0; background: var(--bg-2); cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink); }
.brj-qty button:hover { background: var(--blue-l); }
.brj-qty button:disabled { opacity: .4; cursor: not-allowed; }
.brj-qty output { min-width: 22px; text-align: center; font-weight: 700; font-size: 12.5px; }
.brj-cart-note { margin: 0; font-size: 11.5px; color: var(--muted); }
.brj-cart-note:empty { display: none; }
.brj-cart-checkout { width: 100%; padding: 10px 12px; background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%); color: #fff; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.brj-cart-checkout:hover { filter: brightness(1.06); }
.brj-cart.brj-pulse { animation: brj-cart-pulse-kf 900ms ease-out; }
.brj-suggestions.brj-glow { animation: brj-strip-pulse 1.8s ease-in-out 2; }
.brj-authbar-text strong { color: var(--blue-d); }
.brj-input { align-items: flex-end; }
.brj-input textarea { flex: 1; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.4; resize: none; min-height: 42px; max-height: 40vh; overflow-y: hidden; background: #fff; font-family: inherit; }
.brj-input textarea:focus { border-color: var(--blue); }
.brj-input button { height: 42px; }
.brj-hint { font-size: 10.5px; color: var(--muted); padding: 0 14px 8px; background: #fff; flex-shrink: 0; }
.brj-messages:focus-visible { outline-offset: -3px !important; }
.brj-action-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.brj-action-primary:hover { background: var(--blue-d); color: #fff; }
.brj-action:disabled { opacity: .55; cursor: default; }
.brj-inline-form { width: 100%; max-width: 95%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.brj-inline-form label { font-weight: 700; font-size: 12px; color: var(--ink-2); }
.brj-inline-form input { padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; width: 100%; }
.brj-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brj-row2 > div { display: flex; flex-direction: column; gap: 4px; }
.brj-secure { margin: 0 0 4px; font-size: 12.5px; color: var(--blue-d); }
.brj-form-hint { margin: 0; font-size: 11px; color: var(--muted); }
.brj-form-err { margin: 0; color: var(--red); font-size: 12px; }
.brj-form-err:empty { display: none; }

@media print {
  .brj-dock, .site-header, .top-ribbon, .site-footer, .price-toc, .tests-toolbar, [data-print], .skip-link, .cta-band { display: none !important; }
  body.has-brj-dock { padding: 0 !important; }
  .table-scroll { overflow: visible; border: 0; }
}
/* Header fit with the right dock: keep nav on one row at desktop widths. */
@media (min-width: 1100px) {
  body.has-brj-dock .top-nav { gap: 2px; flex-wrap: nowrap; }
  body.has-brj-dock .top-nav a { padding: 6px 7px; font-size: 13.5px; white-space: nowrap; }
  body.has-brj-dock .top-nav .btn { white-space: nowrap; padding: 8px 12px; }
  body.has-brj-dock .brand-sub { display: none; }
}
@media (min-width: 1100px) and (max-width: 1380px) {
  body.has-brj-dock .top-nav a[href="/about.html"], body.has-brj-dock .top-nav a[href="/categories.html"] { display: none; }
}
/* The hidden attribute must always win over component display rules
   (e.g. .boot { display:grid } kept the staff console loader on screen). */
[hidden] { display: none !important; }
