/* Plus Jakarta Sans (SIL Open Font License), bundled so the demo looks identical offline and on every device */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../assets/pjs-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../assets/pjs-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* brand: sampled from the Bariki logo */
  --g: #00964b; --g-dark: #007a3d; --g-deep: #00522a; --g-soft: #e8f6ee; --g-line: #bfe6cf;
  --ink: #0e1d15; --ink-2: #44544b; --ink-3: #5f6f66; --line: #e3eae6; --bg: #f3f6f4; --card: #fff; --glass: rgba(255,255,255,.94); --amber-soft: #fff7e6;
  --amber: #d97706; --red: #dc2626; --blue: #2563eb;
  --r: 16px;
  --shadow-sm: 0 1px 2px rgba(14,29,21,.06);
  --shadow: 0 1px 2px rgba(14,29,21,.05), 0 6px 20px -6px rgba(14,29,21,.10);
  --shadow-lg: 0 18px 48px -12px rgba(14,29,21,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); font-size: 14px; line-height: 1.45; word-spacing: .06em; }
::selection { background: #bfe6cf; color: var(--ink); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { letter-spacing: -.02em; }
.ic { flex: none; display: block; }
.ic.ic-in { display: inline-block; vertical-align: -2px; margin: 0 1px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid rgba(0,150,75,.4); outline-offset: 2px; border-radius: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; background: var(--g-dark); color: #fff; font-weight: 700; letter-spacing: -.005em;
  transition: background .15s, transform .08s, box-shadow .15s; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(0,82,42,.25); }
.btn:hover { background: var(--g-deep); }
.btn:active { transform: scale(.97); }
.btn:disabled { background: #c3cdc8; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.lg { height: 54px; font-size: 16px; border-radius: 16px; }
.btn.lg:not(.ghost):not(.outline):not(.danger):not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 20px -8px rgba(0,122,61,.6); }
.btn.sm { height: 40px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: var(--g-soft); color: var(--g-dark); box-shadow: none; }
.btn.ghost:hover { background: #d7efe1; }
.btn.outline { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.outline:hover { box-shadow: inset 0 0 0 1.5px #c5d1cb; background: #fbfcfb; }
.btn.danger { background: var(--card); color: var(--red); box-shadow: inset 0 0 0 1.5px #f3caca; }
.btn.danger:hover { background: #fff5f5; }
.btn.amber { background: #b45309; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(146,64,14,.3); }
.btn.amber:hover { background: #92400e; }

/* status + tags */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: color-mix(in srgb, var(--c) 88%, black); background: color-mix(in srgb, var(--c) 11%, white); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; background: #eef2f0; color: var(--ink-2); white-space: nowrap; }
.chip.rx { background: #fde8e8; color: #b91c1c; }
.chip.promo { background: #fdf2d0; color: #8a4a0c; }
/* A product row's advert badges (customer.js rowTags), in the adverts' own colours. */
.chip.offer { background: #dc2626; color: #fff; }
.chip.new { background: #facc15; color: #0e1d15; }
.chip.green { background: var(--g-soft); color: var(--g-dark); }

.art { border-radius: 14px; display: grid; place-items: center; flex: none; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; height: 50px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--card); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #cfd9d4; }
.input:focus { border-color: var(--g); box-shadow: 0 0 0 4px rgba(0,150,75,.12); }
.input::placeholder { color: #a3b0a9; }
textarea.input { height: 80px; padding: 12px 14px; resize: none; }

/* toasts: top-center on phones, bottom-right on the back office */
.toasts { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(92vw, 390px); pointer-events: none; }
.toasts.desk { left: auto; right: 20px; top: auto; bottom: 20px; transform: none; width: 380px; }
.toast { display: flex; align-items: flex-start; gap: 11px; background: rgba(14,29,21,.94); color: #fff; padding: 12px 14px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-weight: 500; font-size: 13.5px; line-height: 1.4; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .22s, transform .3s var(--ease); }
.toasts.desk .toast { transform: translateY(8px) scale(.98); }
.toast.in { opacity: 1; transform: none; }
.toast .t-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: -1px; }
.toast.ok .t-ic { background: #16a34a; } .toast.err .t-ic { background: #dc2626; } .toast.info .t-ic { background: #2563eb; }
.toast .t-msg { flex: 1; min-width: 0; padding-top: 2px; }
/* A toast's one action ("Undo"). The stack lets taps through to the page; this button takes them. */
.toast .t-act { pointer-events: auto; flex: none; align-self: center; margin: -8px -6px -8px 0; min-width: 44px; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 10px; background: none; color: #86efac; font: inherit; font-weight: 800; cursor: pointer; }
.toast .t-act:active { background: rgba(255,255,255,.12); }

.offline-bar { display: none; }
html.offline .offline-bar { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; top: 0; left: 0; right: 0; background: #b45309; color: #fff; padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px; font-size: 12px; font-weight: 700; z-index: 999; }

/* loading skeleton */
.sk { background: linear-gradient(90deg, #e9efec 25%, #f5f8f6 50%, #e9efec 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }

@keyframes pop { from { transform: scale(.6); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,150,75,.45) } 50% { box-shadow: 0 0 0 10px rgba(0,150,75,0) } }
@keyframes flash { 0% { background: #fff6d8 } 100% { background: #fff } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes fade { from { opacity: 0 } }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--g-soft); border-top-color: var(--g); animation: spin .8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* payment channels' logos: square and white, the same size whatever the artwork (portal and console) */
.ch-logo { flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid var(--line); object-fit: contain; font-weight: 800; color: var(--ink-2, #3b4a42); }

/* An office advert (common.js adCardHtml): the medicine on a white tile over the office's colour. */
.adv { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 14px 14px 14px 14px; border-radius: 18px; color: #fff; box-sizing: border-box; }
.adv[data-act] { cursor: pointer; }
.adv-o1, .adv-o2 { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.adv-o1 { width: 120px; height: 120px; right: -30px; top: -50px; }
.adv-o2 { width: 70px; height: 70px; right: 70px; bottom: -40px; background: rgba(255,255,255,.08); }
.adv-art { position: relative; flex: none; width: 58px; height: 58px; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.adv-art .art { border-radius: 14px; }
.adv-txt { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adv-txt em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-txt b { font-size: 15.5px; font-weight: 800; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-txt span { font-size: 12.5px; opacity: .92; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-go { position: relative; flex: none; background: #fff; font-weight: 800; font-size: 12.5px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }

/* The bulk discount on an advert: on the corner of the picture, outside its clipped tile. */
.adv-artw { position: relative; flex: none; }
.adv-off { position: absolute; left: -6px; top: -6px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 99px; line-height: 1.3; }

/* The badge the office picked for an advert (MPYA, OFA, ...), ahead of its tag. */
.adv-badge { font-style: normal; display: inline-block; background: #facc15; color: #0e1d15; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; opacity: 1; }
