/* Appearance preferences (theme, accent, fonts, text size, density, motion, contrast, touch targets, list view)
   and the Settings screens. Loaded after styles.css. The dark theme and the accent colours are generated:
   see scripts/build-theme-css.mjs (css/theme-dark.css, css/accent-*.css). */

/* ---------- Dark theme: the colour variables the rest of the stylesheet is built on ---------- */
html[data-scheme="dark"] {
  color-scheme: dark;
  --paper: #0e1311;
  --sheet: #161d1a;
  --ink: #e8efeb;
  --muted: #9eb0a7;
  --line: #27332d;
  --danger: #f19a9a;
  --amber-text: #f0c077;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 5px 18px rgba(0, 0, 0, 0.4);
  --accent-text: #66d6a8;
}
html:not([data-scheme="dark"]) { --accent-text: var(--green-action, #087447); }
html[data-scheme="dark"] body { background-color: var(--paper); color: var(--ink); }

/* ---------- Font style: only fonts already on the device (the site's security policy blocks web fonts) ---------- */
html[data-font="readable"] { --font-ui: Verdana, Tahoma, "Trebuchet MS", "Segoe UI", sans-serif; }
html[data-font="readable"] body { letter-spacing: 0.012em; word-spacing: 0.05em; line-height: 1.6; }
html[data-font="serif"] { --font-ui: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }
html[data-font="readable"] button, html[data-font="readable"] input, html[data-font="readable"] select, html[data-font="readable"] textarea,
html[data-font="serif"] button, html[data-font="serif"] input, html[data-font="serif"] select, html[data-font="serif"] textarea { font-family: inherit; }

/* ---------- Text size (everything is in rem, so the whole app scales) ---------- */
html[data-text-size="small"] { font-size: 93.75%; }
html[data-text-size="large"] { font-size: 112.5%; }
html[data-text-size="xlarge"] { font-size: 125%; }

/* ---------- Density ---------- */
html[data-density="compact"] .batch-list,
html[data-density="compact"] .available-catalog { gap: 0.45rem; }
html[data-density="compact"] .batch { padding: 0.32rem; }
html[data-density="compact"] .product-details { padding: 0.4rem 0.2rem 0.25rem; }
html[data-density="compact"] .profile-hub-row,
html[data-density="compact"] .app-setting { padding-block: 0.5rem; }
html[data-density="compact"] .admin-app .panel,
html[data-density="compact"] .admin-app .sheet { padding: 0.8rem; }
html[data-density="compact"] .admin-app table th,
html[data-density="compact"] .admin-app table td { padding-block: 0.3rem; }
html[data-density="compact"] .admin-app .btn { min-height: 2.1rem; padding-block: 0.25rem; }
html[data-density="compact"] .sx-row { min-height: 2.6rem; }

/* ---------- Reduce motion (also follows the device's own setting) ---------- */
html[data-reduce-motion="true"] *, html[data-reduce-motion="true"] *::before, html[data-reduce-motion="true"] *::after {
  animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Increased contrast ---------- */
html[data-contrast="high"] { --muted: #35433c; --line: #6f8178; --ink: #000; }
html[data-scheme="dark"][data-contrast="high"] { --ink: #fff; --muted: #d3ddd8; --line: #7d9188; }
html[data-contrast="high"] :focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
html[data-contrast="high"] .btn, html[data-contrast="high"] input, html[data-contrast="high"] select, html[data-contrast="high"] textarea { border-width: 2px; }
html[data-contrast="high"] .sx-group-card { border: 1px solid var(--sx-sep-strong); }

/* ---------- Larger buttons and touch targets ---------- */
html[data-large-targets="true"] button, html[data-large-targets="true"] .btn, html[data-large-targets="true"] summary,
html[data-large-targets="true"] select, html[data-large-targets="true"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { min-height: 3rem; }
html[data-large-targets="true"] input[type="checkbox"], html[data-large-targets="true"] input[type="radio"] { width: 1.5rem; height: 1.5rem; }
html[data-large-targets="true"] .sx-row { min-height: 3.6rem; }

/* ---------- Product lists: grid (default) or list ---------- */
html[data-products="list"] .batch-list, html[data-products="list"] .available-catalog { grid-template-columns: 1fr; gap: 0.6rem; }
html[data-products="list"] .batch:not(.available-featured-card) {
  display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); grid-template-areas: "cover details" "cover toggle"; align-items: center; column-gap: 0.7rem; row-gap: 0.3rem;
}
html[data-products="list"] .batch .product-cover { grid-area: cover; align-self: stretch; height: auto; min-height: 7.4rem; }
html[data-products="list"] .batch .product-cover img, html[data-products="list"] .batch .product-image-button { height: 100%; }
html[data-products="list"] .batch .product-details { grid-area: details; padding: 0.2rem 0.2rem 0; }
html[data-products="list"] .batch > .batch-toggle { grid-area: toggle; width: auto; justify-self: start; min-height: 2.2rem; padding-inline: 1.1rem; }
html[data-products="list"] .batch .batch-name { font-size: 1.05rem; }

/* ===================================================================================================== */
/* Settings screens                                                                                       */
/* ===================================================================================================== */
.sx-overlay, .sx-embedded, .sx-scope {
  --sx-bg: #f2f4f3; --sx-card: #fff; --sx-sep: rgba(23, 40, 33, 0.12); --sx-sep-strong: rgba(23, 40, 33, 0.35);
  --sx-label: var(--ink, #172821); --sx-secondary: var(--muted, #65766e); --sx-fill: rgba(23, 40, 33, 0.07);
  --sx-tint: var(--green-action, #087447); --sx-radius: 20px;
}
html[data-scheme="dark"] .sx-overlay, html[data-scheme="dark"] .sx-embedded, html[data-scheme="dark"] .sx-scope {
  --sx-bg: #050807; --sx-card: #161c19; --sx-sep: rgba(255, 255, 255, 0.1); --sx-sep-strong: rgba(255, 255, 255, 0.4);
  --sx-label: #e8efeb; --sx-secondary: #9eb0a7; --sx-fill: rgba(255, 255, 255, 0.09); --sx-tint: var(--accent-text, #66d6a8);
}

.sx-overlay { position: fixed; inset: 0; z-index: 3000; display: none; background: var(--sx-bg); color: var(--sx-label); }
.sx-overlay.is-open { display: block; animation: sx-slide-in 0.34s cubic-bezier(0.22, 0.9, 0.28, 1); }
.sx-overlay.is-closing { display: block; animation: sx-slide-out 0.28s ease-in forwards; }
@keyframes sx-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes sx-slide-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
.sx-overlay .sx-nav { height: 100%; }
.sx-embedded { border: 1px solid var(--sx-sep); border-radius: 18px; overflow: hidden; background: var(--sx-bg); }
.sx-embedded.sx-nav { height: min(46rem, calc(100vh - 8rem)); min-height: 30rem; }

.sx-nav { position: relative; overflow: hidden; background: var(--sx-bg); color: var(--sx-label); font-family: var(--font-ui); isolation: isolate; }
.sx-nav, .sx-nav * { box-sizing: border-box; }
.sx-page {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--sx-bg); transform: translateX(0);
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.28, 1), opacity 0.34s ease; will-change: transform;
}
.sx-page.is-entering, .sx-page.is-leaving { transform: translateX(100%); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12); }
.sx-page.is-behind { transform: translateX(-26%); pointer-events: none; }
.sx-page.is-behind::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.14); pointer-events: none; }
.sx-page.is-dragging { transition: none; transform: translateX(var(--sx-drag, 0)); }
.sx-page.is-behind[style*="--sx-drag-behind"] { transition: none; transform: translateX(calc(-26% * var(--sx-drag-behind))); }

.sx-bar {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 3.1rem; padding: calc(0.2rem + env(safe-area-inset-top)) 0.4rem 0.2rem;
  background: color-mix(in srgb, var(--sx-bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.sx-page.is-scrolled .sx-bar { border-bottom-color: var(--sx-sep); }
.sx-back { display: inline-flex; align-items: center; justify-self: start; gap: 0.1rem; min-height: 2.75rem; padding: 0 0.6rem 0 0.2rem; border: 0; border-radius: 10px; background: transparent; color: var(--sx-tint); font: inherit; font-size: 1.02rem; cursor: pointer; }
.sx-back:hover { background: var(--sx-fill); }
.sx-back-spacer { width: 1px; }
.sx-back-icon { width: 1.5rem; height: 1.5rem; }
.sx-bar-title { margin: 0; font-size: 1rem; font-weight: 700; opacity: 0; transition: opacity 0.18s; white-space: nowrap; max-width: 55vw; overflow: hidden; text-overflow: ellipsis; }
.sx-page.is-scrolled .sx-bar-title { opacity: 1; }
.sx-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(2.5rem + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sx-content { max-width: 44rem; margin-inline: auto; }
.sx-bar.is-bare { min-height: 0.9rem; }
.sx-bar.is-bare .sx-bar-title { display: none; }
.sx-large-title { margin: 0.1rem 1.4rem 1.1rem; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; outline: none; }

.sx-group { margin: 0 1rem 1.6rem; }
.sx-group-title { margin: 0 1rem 0.4rem; color: var(--sx-secondary); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sx-group-note { margin: 0.45rem 1rem 0; color: var(--sx-secondary); font-size: 0.8rem; line-height: 1.45; }
.sx-group-card { overflow: hidden; border-radius: var(--sx-radius); background: var(--sx-card); }

.sx-row { position: relative; display: flex; align-items: center; gap: 0.9rem; width: 100%; min-height: 3.4rem; margin: 0; padding: 0.6rem 1rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
button.sx-row { cursor: pointer; transition: background 0.12s; }
button.sx-row:hover { background: var(--sx-fill); }
button.sx-row:active { background: var(--sx-sep); }
.sx-row:focus-visible, .sx-switch:focus-visible, .sx-seg-option:focus-visible, .sx-swatch:focus-visible, .sx-back:focus-visible { outline: 2px solid var(--sx-tint); outline-offset: -2px; }
.sx-row + .sx-row::before, .sx-choices > .sx-row + .sx-row::before { content: ""; position: absolute; top: 0; left: 1rem; right: 0; height: 1px; background: var(--sx-sep); }
.sx-row.has-icon + .sx-row.has-icon::before { left: 4rem; }
.sx-row-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 0.1rem; }
.sx-row-label { font-size: 1rem; line-height: 1.3; }
.sx-row-sub { color: var(--sx-secondary); font-size: 0.8rem; line-height: 1.35; }
.sx-row-end { display: flex; flex: none; align-items: center; gap: 0.4rem; color: var(--sx-secondary); }
.sx-row-value { max-width: 12rem; overflow: hidden; font-size: 0.95rem; text-overflow: ellipsis; white-space: nowrap; }
.sx-row.is-danger .sx-row-label { color: #d92d20; }
html[data-scheme="dark"] .sx-row.is-danger .sx-row-label { color: #ff8b82; }
.sx-icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-chevron { width: 1.15rem; height: 1.15rem; opacity: 0.55; }
.sx-row-external { width: 1rem; height: 1rem; opacity: 0.6; }
.sx-badge { min-width: 1.4rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: #d92d20; color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; }

.sx-tile { display: grid; flex: none; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: 0.6rem; color: #fff; }
.sx-tile .sx-icon { width: 1.15rem; height: 1.15rem; stroke-width: 2; }
.sx-tint-blue { background: #2f6fed; } .sx-tint-green { background: #2da44e; } .sx-tint-orange { background: #e07b00; }
.sx-tint-red { background: #d92d20; } .sx-tint-purple { background: #7a4de0; } .sx-tint-teal { background: #0e8f9c; }
.sx-tint-pink { background: #d6336c; } .sx-tint-gray { background: #6b7280; } .sx-tint-indigo { background: #4c51bf; }

.sx-switch { position: relative; flex: none; width: 3.15rem; height: 1.95rem; padding: 0; border: 0; border-radius: 999px; background: var(--sx-sep-strong); cursor: pointer; transition: background 0.2s; }
.sx-switch-knob { position: absolute; top: 0.14rem; left: 0.14rem; width: 1.67rem; height: 1.67rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); transition: transform 0.22s cubic-bezier(0.3, 0.9, 0.3, 1); }
.sx-switch[aria-checked="true"] { background: var(--sx-tint); }
.sx-switch[aria-checked="true"] .sx-switch-knob { transform: translateX(1.2rem); }

.sx-row-stack { flex-direction: column; align-items: stretch; gap: 0.6rem; }
.sx-segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: 10px; background: var(--sx-fill); }
.sx-seg-option { min-height: 2.25rem; padding: 0.25rem 0.5rem; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background 0.18s, box-shadow 0.18s; }
.sx-seg-option.is-selected { background: var(--sx-card); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 0.5px var(--sx-sep); }
html[data-scheme="dark"] .sx-seg-option.is-selected { background: #2b3530; }
.sx-seg-a1 { font-size: 0.8rem; } .sx-seg-a2 { font-size: 0.95rem; } .sx-seg-a3 { font-size: 1.12rem; } .sx-seg-a4 { font-size: 1.3rem; }

.sx-choices { display: block; }
.sx-choice .sx-check { opacity: 0; color: var(--sx-tint); stroke-width: 2.4; }
.sx-choice.is-selected .sx-check { opacity: 1; }
.sx-font-readable { font-family: Verdana, Tahoma, "Trebuchet MS", sans-serif; letter-spacing: 0.012em; }
.sx-font-serif { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; }
.sx-font-system { font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; }

.sx-swatches { display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0.15rem 0.1rem; }
.sx-swatch { position: relative; display: grid; width: 2.7rem; height: 2.7rem; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: transform 0.15s; }
.sx-swatch:active { transform: scale(0.92); }
.sx-swatch-check { width: 1.3rem; height: 1.3rem; stroke-width: 3; opacity: 0; }
.sx-swatch.is-selected { box-shadow: 0 0 0 3px var(--sx-card), 0 0 0 5px currentColor; }
.sx-swatch.is-selected .sx-swatch-check { opacity: 1; }
.sx-swatch-green { background: #087957; color: #087957; } .sx-swatch-teal { background: #0e8f9c; color: #0e8f9c; }
.sx-swatch-blue { background: #2f6fed; color: #2f6fed; } .sx-swatch-violet { background: #7a4de0; color: #7a4de0; }
.sx-swatch-orange { background: #c2570c; color: #c2570c; } .sx-swatch-rose { background: #d6336c; color: #d6336c; }
.sx-swatch .sx-swatch-check { color: #fff; }

.sx-action { justify-content: center; gap: 0.5rem; font-weight: 600; color: var(--sx-tint); }
.sx-action.is-danger { color: #d92d20; }
html[data-scheme="dark"] .sx-action.is-danger { color: #ff8b82; }

.sx-notice { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0 1rem 1.4rem; padding: 0.8rem 1rem; border-radius: var(--sx-radius); background: var(--sx-card); color: var(--sx-secondary); font-size: 0.88rem; line-height: 1.45; }
.sx-notice .sx-icon { flex: none; margin-top: 0.1rem; }
.sx-notice.is-warn { color: #9a5b00; background: color-mix(in srgb, #e07b00 14%, var(--sx-card)); }
html[data-scheme="dark"] .sx-notice.is-warn { color: #f0c077; }

.sx-profile { display: flex; align-items: center; gap: 0.9rem; width: 100%; padding: 0.9rem 1rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
button.sx-profile { cursor: pointer; }
.sx-avatar { display: grid; flex: none; width: 4.1rem; height: 4.1rem; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--green, #087957), var(--green-deep, #073d31)); color: #fff; font-size: 1.3rem; font-weight: 800; }
.sx-profile-name { display: block; font-size: 1.3rem; font-weight: 700; }
.sx-profile-sub { display: block; color: var(--sx-secondary); font-size: 0.85rem; }

.sx-preview { margin: 0 1rem 1.4rem; padding: 1rem 1.1rem; border-radius: var(--sx-radius); background: var(--sx-card); }
.sx-preview strong { display: block; font-size: 1.1rem; }
.sx-preview p { margin: 0.35rem 0 0.7rem; color: var(--sx-secondary); line-height: 1.5; }
.sx-preview .sx-preview-button { display: inline-flex; align-items: center; min-height: 2.3rem; padding: 0.3rem 1rem; border-radius: 10px; background: var(--green-action, #087447); color: #fff; font-weight: 700; }

/* Existing screens moved inside a settings card keep working; this just removes their own card chrome. */
.sx-hosted-card { padding: 0.9rem 1rem; }
.sx-hosted-card > * { margin: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
.sx-hosted-card h3 { margin-top: 0; }
.sx-hosted-card input:not([type="checkbox"]):not([type="radio"]), .sx-hosted-card select, .sx-hosted-card textarea { max-width: 100%; }
html[data-scheme="dark"] .sx-hosted-card input, html[data-scheme="dark"] .sx-hosted-card select, html[data-scheme="dark"] .sx-hosted-card textarea { background: #0e1311; color: var(--sx-label); border-color: var(--sx-sep-strong); }

.sx-launch-hidden { display: none !important; }

/* Floating search pill (first page) and results */
.sx-search { position: sticky; bottom: calc(0.9rem + env(safe-area-inset-bottom)); z-index: 3; padding: 0 1rem; margin-top: 1rem; pointer-events: none; }
.sx-search-pill { display: flex; align-items: center; gap: 0.6rem; max-width: 40rem; margin-inline: auto; min-height: 3.2rem; padding: 0 0.6rem 0 1rem; border-radius: 999px; pointer-events: auto;
  background: color-mix(in srgb, var(--sx-card) 82%, transparent); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--sx-sep); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }
.sx-search-icon { flex: none; color: var(--sx-secondary); }
.sx-search-input { flex: 1; min-width: 0; min-height: 2.6rem; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 1.02rem; }
.sx-search-input::placeholder { color: var(--sx-secondary); }
.sx-search-clear { display: grid; flex: none; width: 2rem; height: 2rem; place-items: center; border: 0; border-radius: 50%; background: var(--sx-sep-strong); color: var(--sx-card); cursor: pointer; }
.sx-search-clear[hidden] { display: none; }
.sx-no-results { margin: 1rem 1.4rem; text-align: center; }
.sx-hosted[hidden], .sx-search-results[hidden], .sx-root-groups[hidden] { display: none; }

/* ===================================================================================================== */
/* Customer Account page (profile banner, four numbers, grouped rows)                                       */
/* ===================================================================================================== */
#customer-signed-in.has-account-hub .profile-overview,
#customer-signed-in.has-account-hub .profile-hub-group { display: none !important; }
body.customer-profile-detail-open .acct { display: none; }
.acct { max-width: 44rem; margin: 0.4rem auto 0; padding-bottom: 0.5rem; }
.acct .sx-group { margin-inline: 0; }
.acct .sx-large-title { display: none; }

.acct-hero { position: relative; display: flex; align-items: center; gap: 1rem; overflow: hidden; padding: 1.25rem 1.15rem; border-radius: 24px; color: #fff;
  background: radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.16), transparent 9rem), radial-gradient(circle at 105% 105%, rgba(255, 214, 120, 0.22), transparent 10rem), linear-gradient(135deg, var(--green-deep, #082f24), var(--header-dark, #0f4a38) 58%, var(--green-mid, #176248)); }
.acct-hero::after { content: ""; position: absolute; right: -2.5rem; bottom: -3rem; width: 11rem; height: 11rem; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.acct-avatar { display: grid; flex: none; width: 4.6rem; height: 4.6rem; place-items: center; border-radius: 50%; background: #e4f3ec; color: #087957; font-size: 2rem; font-weight: 800; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22); }
.acct-hero-copy { position: relative; z-index: 1; min-width: 0; flex: 1; }
.acct-greeting { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.acct-name { margin: 0.05rem 0 0.4rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; color: #fff; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin: 0 0 0.35rem; }
.acct-chips span { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.8rem; font-weight: 600; }
.acct-chips .sx-icon, .acct-since .sx-icon { width: 0.95rem; height: 0.95rem; }
.acct-since { display: flex; align-items: center; gap: 0.35rem; margin: 0; font-size: 0.8rem; opacity: 0.85; }
.acct-edit { position: relative; z-index: 1; display: inline-flex; flex: none; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px; background: #fff; color: #0a3d2e; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); }
.acct-edit .sx-icon { width: 1rem; height: 1rem; }

.acct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 0.8rem 0 1.4rem; }
.acct-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-height: 5.6rem; padding: 0.8rem; border: 0; border-radius: 18px; background: var(--sx-card); color: var(--sx-label); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); transition: transform 0.15s; }
.acct-stat:active { transform: scale(0.97); }
.acct-stat:focus-visible { outline: 2px solid var(--sx-tint); outline-offset: 2px; }
.acct-stat-copy { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.acct-stat-value { font-size: 1.2rem; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.acct-stat-label { color: var(--sx-secondary); font-size: 0.74rem; }
.sx-prose { padding: 0.4rem 1rem; }
.sx-prose p { margin: 0.55rem 0; line-height: 1.6; }
.acct .sx-search { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }

@media (max-width: 560px) {
  .acct-hero { flex-wrap: wrap; }
  .acct-edit { width: 100%; justify-content: center; }
  .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The signed-in Account page sits directly on the page background (its rows are the cards). */
body #customer-panel.sheet:has(#customer-signed-in.has-account-hub:not([hidden])) { padding: 0; border: 0; background: transparent; box-shadow: none; }

/* Brand logos for social links */
.sx-brand { display: inline-grid; flex: none; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; color: #fff; background: #6b7280; }
.sx-brand svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
.sx-brand-facebook { background: #1877f2; } .sx-brand-telegram { background: #229ed9; } .sx-brand-tiktok { background: #111; }
.sx-brand-youtube { background: #ff0000; } .sx-brand-x { background: #111; } .sx-brand-whatsapp { background: #25d366; }
.sx-brand-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
html[data-scheme="dark"] .sx-brand-tiktok, html[data-scheme="dark"] .sx-brand-x { background: #2b3130; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sx-brand-small { width: 1.9rem; height: 1.9rem; } .sx-brand-small svg { width: 1rem; height: 1rem; }

/* "Follow SamDart" */
.acct-follow { margin: 0.6rem 0 1.4rem; text-align: center; }
.acct-follow-title { margin: 0 0 0.8rem; color: var(--sx-secondary); font-size: 0.95rem; font-weight: 300; letter-spacing: 0.08em; }
.acct-follow-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.acct-follow-link { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; max-width: 6.2rem; color: inherit; text-decoration: none; }
.acct-follow-link:focus-visible { outline: 2px solid var(--sx-tint); outline-offset: 3px; border-radius: 12px; }
.acct-follow-link .sx-brand { width: 3.1rem; height: 3.1rem; transition: transform 0.15s; }
.acct-follow-link:active .sx-brand { transform: scale(0.92); }
.acct-follow-link .sx-brand svg { width: 1.6rem; height: 1.6rem; }
.acct-follow-handle { max-width: 100%; overflow: hidden; color: var(--sx-secondary); font-size: 0.74rem; font-weight: 300; text-overflow: ellipsis; white-space: nowrap; }

/* ===================================================================================================== */
/* Pop-up sheets                                                                                          */
/* ===================================================================================================== */
.sx-picker { width: 1.1rem; height: 1.1rem; opacity: 0.55; }
body.sx-sheet-open { overflow: hidden; }
.sx-sheet-layer { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-end; justify-content: center; }
.sx-sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 11, 0.5); animation: sx-fade 0.25s ease; }
.sx-sheet { position: relative; display: flex; flex-direction: column; width: min(100%, 34rem); max-height: min(88dvh, 46rem); border-radius: 26px 26px 0 0; background: var(--sx-bg); color: var(--sx-label); font-family: var(--font-ui);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3); transform: translateY(var(--sx-sheet-drag, 0)); animation: sx-sheet-up 0.32s cubic-bezier(0.22, 0.9, 0.28, 1); outline: none; padding-bottom: env(safe-area-inset-bottom); }
.sx-sheet.is-dragging { transition: none; animation: none; }
.sx-sheet-layer.is-closing .sx-sheet { animation: sx-sheet-down 0.24s ease-in forwards; }
.sx-sheet-layer.is-closing .sx-sheet-backdrop { animation: sx-fade-out 0.24s ease-in forwards; }
.sx-sheet-grabber { align-self: center; width: 2.6rem; height: 0.3rem; margin: 0.55rem 0 0.1rem; border-radius: 999px; background: var(--sx-sep-strong); flex: none; }
.sx-sheet-head { display: grid; flex: none; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0.3rem 1rem 0.6rem; }
.sx-sheet-title { margin: 0; font-size: 1.05rem; font-weight: 800; text-align: center; }
.sx-sheet-done { justify-self: end; min-height: 2.4rem; padding: 0 0.9rem; border: 0; border-radius: 999px; background: transparent; color: var(--sx-tint); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.sx-sheet-done:hover { background: var(--sx-fill); }
.sx-sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.2rem 0 1.4rem; -webkit-overflow-scrolling: touch; }
.sx-sheet-body > .sx-group:last-child { margin-bottom: 0.4rem; }
.sx-confirm-text { margin: 0.2rem 1.4rem 1.2rem; color: var(--sx-secondary); line-height: 1.5; text-align: center; }
@keyframes sx-sheet-up { from { transform: translateY(100%); } to { transform: translateY(var(--sx-sheet-drag, 0)); } }
@keyframes sx-sheet-down { from { transform: translateY(var(--sx-sheet-drag, 0)); } to { transform: translateY(100%); } }
@keyframes sx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sx-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (min-width: 700px) {
  .sx-sheet-layer { align-items: center; }
  .sx-sheet { border-radius: 24px; max-height: 84dvh; }
  .sx-sheet-grabber { display: none; }
}

/* Two numbers under the banner */
.acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acct-stat { flex-direction: row; align-items: center; gap: 0.75rem; min-height: 4.8rem; }
.acct-stat .sx-tile { width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; }
.acct-stat .sx-tile .sx-icon { width: 1.4rem; height: 1.4rem; }
.acct-stat-label { order: 0; }
.acct-stat-value { font-size: 1.25rem; }
.acct-stat-note { color: var(--sx-secondary); font-size: 0.74rem; }

/* Delivery addresses */
.addr-slot { display: grid; gap: 0.85rem; margin: 0 1rem; }
.addr-hero { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem; border-radius: var(--sx-radius); background: var(--sx-card); }
.addr-hero strong { font-size: 1.05rem; }
.addr-add { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.2rem; border: 0; border-radius: 16px; background: var(--sx-tint); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
html[data-scheme="dark"] .addr-add, html[data-scheme="dark"] .addr-save { color: #04130d; }
.addr-add .sx-icon { width: 1.2rem; height: 1.2rem; stroke-width: 2.4; }
.addr-card { padding: 1rem; border-radius: var(--sx-radius); background: var(--sx-card); }
.addr-head { display: flex; align-items: center; gap: 0.7rem; }
.addr-label { flex: 1; min-width: 0; font-size: 1.05rem; }
.addr-default { padding: 0.15rem 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--sx-tint) 18%, transparent); color: var(--sx-tint); font-size: 0.75rem; font-weight: 700; }
.addr-link { border: 0; background: transparent; color: var(--sx-tint); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.addr-text { margin: 0.7rem 0 0.3rem; line-height: 1.45; }
.addr-phone { display: flex; align-items: center; gap: 0.4rem; margin: 0; color: var(--sx-secondary); font-size: 0.9rem; }
.addr-phone .sx-icon { width: 1rem; height: 1rem; }
.addr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.9rem; }
.addr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.6rem; border: 0; border-radius: 12px; background: var(--sx-fill); color: inherit; font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.addr-btn.is-danger { background: color-mix(in srgb, #d92d20 12%, transparent); color: #d92d20; }
html[data-scheme="dark"] .addr-btn.is-danger { color: #ff8b82; }
.addr-btn .sx-icon { width: 1.05rem; height: 1.05rem; }
.addr-form { display: grid; gap: 0.55rem; padding: 0.2rem 1rem 0.4rem; }
.addr-field-label { margin-top: 0.3rem; color: var(--sx-secondary); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.addr-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.addr-chip { min-height: 2.5rem; padding: 0 1.1rem; border: 1px solid var(--sx-sep-strong); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.addr-chip.is-selected { border-color: var(--sx-tint); background: color-mix(in srgb, var(--sx-tint) 16%, transparent); color: var(--sx-tint); }
.addr-input { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--sx-sep-strong); border-radius: 12px; background: var(--sx-card); color: inherit; font: inherit; }
.addr-input[hidden] { display: none; }
textarea.addr-input { height: 5.2rem; min-height: 5.2rem; resize: none; }
.addr-form .sx-group { margin: 0.4rem 0 0; }
.addr-save { min-height: 3.1rem; border: 0; border-radius: 14px; background: var(--sx-tint); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.addr-save:disabled { opacity: 0.6; }

/* ===================================================================================================== */
/* Phone tab bar: floating capsule, raised centre "Go to" button, clear active state                       */
/* ===================================================================================================== */
.tab-icon { position: relative; width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s cubic-bezier(0.3, 0.9, 0.3, 1); }
@media (max-width: 760px) {
  body:not(.page-admin) .bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 0.1rem; overflow: visible; padding: 0.4rem 0.55rem 0.45rem;
    border: 1px solid rgb(255 255 255 / 70%); border-radius: 30px; background: rgb(255 255 255 / 93%);
    box-shadow: 0 20px 44px -14px rgb(14 38 27 / 48%), 0 2px 8px rgb(14 38 27 / 10%);
  }
  body:not(.page-admin) .bottom-nav .nav-link, body[data-view] .available-bottom-nav .nav-link {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.18rem; min-height: 3.55rem; padding: 0.35rem 0.1rem 0.25rem;
    border-radius: 18px; background: transparent; box-shadow: none; color: #6b786f; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em;
  }
  body:not(.page-admin) .bottom-nav .nav-link.is-current, body[data-view] .available-bottom-nav .nav-link.is-current { background: transparent; box-shadow: none; color: var(--green-action, #087447); font-weight: 800; }
  body:not(.page-admin) .bottom-nav .nav-link.is-current::before, body[data-view] .available-bottom-nav .nav-link.is-current::before {
    content: ""; position: absolute; top: 0.2rem; left: 50%; width: 3rem; height: 2.15rem; border-radius: 999px; background: color-mix(in srgb, var(--green-action, #087447) 15%, transparent); transform: translateX(-50%);
  }
  body:not(.page-admin) .bottom-nav .nav-link.is-current .tab-icon { stroke-width: 2.1; fill: currentColor; fill-opacity: 0.14; transform: translateY(-1px); }
  body:not(.page-admin) .bottom-nav .nav-link:active .tab-icon { transform: scale(0.88); }
  body:not(.page-admin) .bottom-nav .nav-link .tab-icon + * { position: relative; }

  /* The raised centre button */
  body:not(.page-admin) .bottom-nav .bottom-nav-menu-item { align-self: end; }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle { min-height: 0; height: 3.55rem; padding: 0; color: #fff; overflow: visible; }
  body:not(.page-admin) .bottom-nav .bottom-menu-pill {
    flex-direction: column; gap: 0.12rem; width: 4rem; height: 4rem; margin-top: -1.75rem; padding: 0; border: 0; border-radius: 50%;
    background: linear-gradient(150deg, var(--green, #087957), var(--green-deep, #073d31)); color: #fff;
    box-shadow: 0 0 0 5px rgb(255 255 255 / 94%), 0 12px 24px -8px color-mix(in srgb, var(--green-action, #087447) 75%, transparent);
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em;
  }
  body:not(.page-admin) .bottom-nav .bottom-menu-pill .tab-icon { width: 22px; height: 22px; stroke-width: 2; }
  body:not(.page-admin) .bottom-nav .bottom-menu-pill-chevron { display: none; }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle[aria-expanded="true"] .bottom-menu-pill { background: linear-gradient(150deg, #1d2b25, #0d1713); }
  body:not(.page-admin) .bottom-nav-menu { bottom: calc(100% + 0.9rem); }
  .available-bottom-count { top: 0.1rem; right: calc(50% - 1.45rem); border-color: rgb(255 255 255 / 95%); }
  html[data-scheme="dark"] body:not(.page-admin) .bottom-nav { background: rgb(21 27 24 / 94%) !important; border-color: rgb(255 255 255 / 10%) !important; box-shadow: 0 20px 44px -14px rgb(0 0 0 / 70%), 0 2px 8px rgb(0 0 0 / 40%) !important; }
  html[data-scheme="dark"] body:not(.page-admin) .bottom-nav .nav-link { color: #98a8a0 !important; }
  html[data-scheme="dark"] body:not(.page-admin) .bottom-nav .nav-link.is-current { color: var(--accent-text, #66d6a8) !important; }
  html[data-scheme="dark"] body:not(.page-admin) .bottom-nav .nav-link.is-current::before { background: color-mix(in srgb, var(--accent-text, #66d6a8) 18%, transparent) !important; }
  html[data-scheme="dark"] body:not(.page-admin) .bottom-nav .bottom-menu-pill { box-shadow: 0 0 0 5px rgb(21 27 24 / 96%), 0 12px 24px -8px rgb(0 0 0 / 70%) !important; color: #fff !important; }
}

/* ===================================================================================================== */
/* Coloured tab icons (same coloured tiles as the Account page rows)                                       */
/* ===================================================================================================== */
@media (max-width: 760px) {
  body:not(.page-admin) .bottom-nav .nav-link > .tab-icon {
    box-sizing: content-box; width: 20px; height: 20px; padding: 5px; border-radius: 11px; color: #fff; stroke-width: 1.9;
    background: #6b7280; box-shadow: 0 3px 8px -3px rgb(0 0 0 / 35%);
  }
  body:not(.page-admin) .bottom-nav .nav-link.is-current > .tab-icon { fill: rgb(255 255 255 / 28%); transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 12px -4px rgb(0 0 0 / 40%); }
  body:not(.page-admin) .bottom-nav .nav-link[data-view="preorders"] > .tab-icon { background: linear-gradient(145deg, #34c77b, #1f9d5c); }
  body:not(.page-admin) .bottom-nav .nav-link[data-view="orders"] > .tab-icon { background: linear-gradient(145deg, #ffa53a, #e07b00); }
  body:not(.page-admin) .bottom-nav .nav-link[data-view="invoices"] > .tab-icon { background: linear-gradient(145deg, #7a7fe8, #4c51bf); }
  body:not(.page-admin) .bottom-nav .nav-link[data-view="account"] > .tab-icon { background: linear-gradient(145deg, #5b9bff, #2f6fed); }
  body:not(.page-admin) .bottom-nav .nav-link[data-view="available"] > .tab-icon { background: linear-gradient(145deg, #ff6a5e, #d92d20); }
  body:not(.page-admin) .bottom-nav .nav-link[data-view="available-cart"] > .tab-icon { background: linear-gradient(145deg, #2bc0cc, #0e8f9c); }
  body:not(.page-admin) .bottom-nav .nav-link[data-view="available-orders"] > .tab-icon { background: linear-gradient(145deg, #ffa53a, #e07b00); }
  body:not(.page-admin) .bottom-nav .nav-link.is-current::before { top: 0.05rem; height: 2.65rem; width: 3.4rem; border-radius: 16px; }
}

/* ===================================================================================================== */
/* One page header everywhere: "‹ Account" above a big title                                               */
/* ===================================================================================================== */
body:not(.page-admin) .page-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.05rem 0.5rem; margin: 0 0 1rem; padding: 0 !important; border: 0 !important;
}
body:not(.page-admin) .page-head > .profile-back-button {
  grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; gap: 0.05rem; width: auto; min-width: 0; height: 2.75rem; min-height: 2.75rem;
  padding: 0 0.7rem 0 0.15rem; font-size: 1.02rem; font-weight: 500; text-decoration: none; cursor: pointer;
}
body:not(.page-admin) .page-head > .profile-back-button svg { width: 1.5rem; height: 1.5rem; stroke-width: 2.3; }
body:not(.page-admin) .page-head > .profile-back-button span { display: inline; }
body:not(.page-admin) .page-head > :not(.profile-back-button):not(.customer-notifications-menu) { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
body:not(.page-admin) .page-head > .customer-notifications-menu { grid-column: 2; grid-row: 1; }
body:not(.page-admin) .page-head h2, body:not(.page-admin) .page-head h3,
body:not(.page-admin).customer-profile-detail-open .page-head h3 {
  margin: 0.05rem 0.2rem 0; font-size: 2.1rem !important; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; white-space: normal !important;
}
body:not(.page-admin) .page-head .available-cart-page-subtitle { margin: 0.4rem 0.2rem 0; }
body.customer-profile-detail-open .profile-detail-screen > .page-head { padding-bottom: 0 !important; }

/* ===================================================================================================== */
/* Personal information: read-only rows and rows that edit in place                                        */
/* ===================================================================================================== */
.pe-bar { display: grid; gap: 0.6rem; padding: 0.85rem 1rem; }
.pe-bar + .pe-bar { border-top: 1px solid var(--sx-sep, rgb(0 0 0 / 10%)); }
.pe-top { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.pe-tile { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 9px; color: #fff; }
.pe-tile svg { width: 1.2rem; height: 1.2rem; }
.pe-tile .sx-brand { width: 2.1rem; height: 2.1rem; }
.pe-copy { display: grid; flex: 1; min-width: 0; }
.pe-label { font-size: 0.82rem; color: var(--sx-secondary, #6b7280); }
.pe-value { overflow-wrap: anywhere; font-size: 1.02rem; font-weight: 600; }
.pe-edit { flex: none; min-height: 2.2rem; padding: 0 0.9rem; border: 0; border-radius: 999px; background: var(--sx-fill, rgb(0 0 0 / 6%)); color: var(--sx-tint, #087447); font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.pe-form { display: grid; gap: 0.55rem; }
.pe-input { width: 100%; min-height: 2.9rem; padding: 0 0.85rem; border: 1px solid var(--sx-sep, rgb(0 0 0 / 18%)); border-radius: 12px; background: var(--sx-card, #fff); color: inherit; font: inherit; font-size: 1.05rem; }
.pe-input:focus { outline: 2px solid var(--sx-tint, #087447); outline-offset: 1px; }
.pe-actions { display: flex; gap: 0.6rem; }
.pe-save, .pe-cancel { flex: 1; min-height: 2.8rem; border: 0; border-radius: 12px; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.pe-save { background: var(--sx-tint, #087447); color: #fff; }
.pe-save:disabled { opacity: 0.6; }
.pe-cancel { background: var(--sx-fill, rgb(0 0 0 / 7%)); color: inherit; }
.pe-more { margin-top: 0.4rem; }

/* The Ghana cart / order-history heading only appears on those two pages */
body:not(.page-admin) .available-cart-page-heading.page-head { display: none; }
body[data-view="available-cart"]:not(.page-admin) .available-cart-page-heading.page-head,
body[data-view="available-orders"]:not(.page-admin) .available-cart-page-heading.page-head { display: grid; }
.available-orders-page-heading-copy { display: none; }
body[data-view="available-orders"] .available-orders-page-heading-copy { display: block; }
body[data-view="available-cart"] .available-orders-page-heading-copy { display: none; }
body[data-view="available-orders"] .available-orders-page-heading-copy h2 { display: block; }

/* Numbers on the tab bar sit on the top corner of the icon, nothing more */
@media (max-width: 760px) {
  body:not(.page-admin) .bottom-nav .nav-link > .available-bottom-count {
    position: absolute; top: 0.2rem; right: auto; left: calc(50% + 0.5rem); bottom: auto; margin: 0; min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem;
    border: 2px solid #fff; border-radius: 999px; background: #d92d20; color: #fff; font-size: 0.62rem; font-weight: 800; line-height: 1; letter-spacing: 0; z-index: 2;
  }
  html[data-scheme="dark"] body:not(.page-admin) .bottom-nav .nav-link > .available-bottom-count { border-color: #151b18; }
}

/* ===================================================================================================== */
/* Desktop menu: follows the shop you are in, like the phone tab bar                                       */
/* ===================================================================================================== */
body:not(.page-admin) .customer-nav [data-ctx] { display: none; }
body:not(.page-admin):not([data-nav-context="available"]) .customer-nav [data-ctx="preorder"],
body:not(.page-admin)[data-nav-context="available"] .customer-nav [data-ctx="available"] { display: inline-flex; }
/* The page header above already says "Order History", so the card's own heading is kept for screen readers only */
.available-paid-orders-page .available-orders-page-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-count { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; margin-left: 0.15rem; padding: 0 0.3rem; border-radius: 999px; background: #d92d20; color: #fff; font-size: 0.68rem; font-weight: 800; line-height: 1; }
.nav-count[hidden] { display: none; }
@media (min-width: 761px) {
  /* only the header menu: the phone tab bar (also a .customer-nav) must stay hidden on desktop */
  body:not(.page-admin) .header-nav.customer-nav { display: flex; align-items: center; gap: 0.3rem; }
  body:not(.page-admin) .bottom-nav, body:not(.page-admin)[data-view] .bottom-nav { display: none !important; }
  body:not(.page-admin)[data-view] .customer-nav .nav-link {
    flex-direction: row; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0 1rem; border-radius: 999px; font-size: 0.96rem; font-weight: 600; letter-spacing: 0.005em; white-space: nowrap;
    color: rgb(255 255 255 / 82%); transition: background-color 0.18s ease, color 0.18s ease;
  }
  body:not(.page-admin)[data-view] .customer-nav .nav-link:hover { background: rgb(255 255 255 / 11%); color: #fff; }
  body:not(.page-admin)[data-view] .customer-nav .nav-link.is-current { background: #e8b23a; color: #173d31; font-weight: 800; box-shadow: 0 6px 14px -8px rgb(0 0 0 / 55%); }
  body:not(.page-admin)[data-view] .customer-nav .nav-link .nav-icon { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }
  body:not(.page-admin) .customer-nav .nav-switch {
    align-items: center; gap: 0.4rem; min-height: 2.3rem; margin-left: 0.7rem; padding: 0 0.95rem; border: 1px solid rgb(255 255 255 / 30%); border-radius: 999px;
    color: rgb(255 255 255 / 88%); font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 0.18s ease, border-color 0.18s ease;
  }
  body:not(.page-admin) .customer-nav .nav-switch:hover { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 55%); color: #fff; }
  /* The cart already has its place in the menu while you are in the Ghana Shop */
  body[data-nav-context="available"] .header-account-actions .available-header-cart { display: none; }
}

/* ===================================================================================================== */
/* Titles and feature names start every word with a capital letter                                         */
/* ===================================================================================================== */
body:not(.page-admin) .sx-large-title, body:not(.page-admin) .sx-sheet-title, body:not(.page-admin) .sx-back-label, body:not(.page-admin) .sx-row-label,
body:not(.page-admin) .acct-stat-label, body:not(.page-admin) .acct-follow-title, body:not(.page-admin) .acct-edit span, body:not(.page-admin) .sx-button-label,
body:not(.page-admin) .page-head h2, body:not(.page-admin) .page-head h3, body:not(.page-admin) .page-head .profile-back-button span,
body:not(.page-admin) .section-heading h2, body:not(.page-admin) .available-catalog-heading h2, body:not(.page-admin) .bottom-nav-menu a,
body:not(.page-admin) .bottom-nav-menu button, body:not(.page-admin) .pe-label { text-transform: capitalize; }

/* ===================================================================================================== */
/* On phones the sort sits on the same line as the product title; a long choice is shortened with "…"     */
/* ===================================================================================================== */
@media (max-width: 760px) {
  body:not(.page-admin) .active-products-title-row { flex-wrap: nowrap; gap: 0.5rem; }
  body:not(.page-admin) .active-products-title-row h2 { flex: 1 1 auto; min-width: 0; font-size: 1.25rem; text-wrap: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(.page-admin) .customer-product-sort { flex: 0 1 auto; min-width: 0; gap: 0.3rem; }
  body:not(.page-admin) .customer-product-sort select { width: 6.6rem; max-width: 6.6rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:not(.page-admin) .available-catalog-heading { flex-wrap: nowrap; gap: 0.5rem; }
  body:not(.page-admin) .available-catalog-heading h2 { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(.page-admin) .available-catalog-heading label { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
  body:not(.page-admin) .available-catalog-heading select { max-width: 6.6rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Follow SamDart: size and alignment are chosen in Control Studio */
.acct-follow.align-left { text-align: left; } .acct-follow.align-right { text-align: right; }
.acct-follow.align-left .acct-follow-list { justify-content: flex-start; } .acct-follow.align-right .acct-follow-list { justify-content: flex-end; }
.acct-follow.is-small .acct-follow-link { max-width: 4.8rem; } .acct-follow.is-small .acct-follow-link .sx-brand { width: 2.3rem; height: 2.3rem; } .acct-follow.is-small .acct-follow-link .sx-brand svg { width: 1.2rem; height: 1.2rem; } .acct-follow.is-small .acct-follow-handle { font-size: 0.66rem; }
.acct-follow.is-large .acct-follow-link { max-width: 8rem; } .acct-follow.is-large .acct-follow-link .sx-brand { width: 4.2rem; height: 4.2rem; } .acct-follow.is-large .acct-follow-link .sx-brand svg { width: 2.2rem; height: 2.2rem; } .acct-follow.is-large .acct-follow-handle { font-size: 0.86rem; }

/* The social block on the shop home pages only shows in its own shop */
.social-host { margin: 0.5rem 0 1.5rem; }
.social-host[hidden] { display: none; }
body:not([data-view="preorders"]) .social-host[data-social-place="preorder"], body:not([data-view="available"]) .social-host[data-social-place="available"] { display: none; }

/* ===================================================================================================== */
/* Ghana Shop cart and checkout                                                                            */
/* ===================================================================================================== */
.co-lock { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-arrow { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body:not(.page-admin) .available-proceed-checkout { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.2rem; padding: 0 1.1rem; border-radius: 14px; font-size: 1.02rem; font-weight: 800; }
.co-secure { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0.7rem 0 0; color: #5d6c64; font-size: 0.8rem; }
.co-secure svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: #1f8f5a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Summary card */
body:not(.page-admin) .available-checkout-panel { border-radius: 20px; }
body:not(.page-admin) .available-cart-total { align-items: baseline; }
body:not(.page-admin) .available-cart-total strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; }

/* Cart lines as cards on phones */
@media (max-width: 760px) {
  body:not(.page-admin) .available-cart-lines { display: grid; gap: 0.75rem; }
  body:not(.page-admin) .available-cart-lines > .available-cart-line {
    display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto; grid-template-areas: "image copy remove" "image unit actions" "image total actions"; align-items: center; gap: 0.2rem 0.8rem;
    padding: 0.8rem; border: 1px solid #e6ece8; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px -14px rgb(14 38 27 / 55%);
  }
  body:not(.page-admin) .available-cart-line-media { width: 5.4rem; height: 5.4rem; align-self: start; border-radius: 12px; }
  body:not(.page-admin) .available-cart-line-copy { align-self: start; gap: 0.25rem; }
  body:not(.page-admin) .available-cart-line-copy > strong { font-size: 0.98rem; line-height: 1.25; }
  body:not(.page-admin) .available-cart-line-description { display: none; }
  body:not(.page-admin) .available-cart-line-unit { grid-area: unit; align-self: end; color: var(--green-action, #087447); font-size: 1.08rem; font-weight: 800; }
  body:not(.page-admin) .available-cart-line-total { grid-area: total; justify-self: start; color: #68766e; font-size: 0.74rem; font-weight: 600; }
  body:not(.page-admin) .available-cart-line-total::before { content: "Line total "; }
  body:not(.page-admin) .available-cart-line-total[hidden] { display: none; }
  body:not(.page-admin) .available-cart-line-actions { grid-area: actions; grid-row: 2 / span 2; align-self: end; justify-self: end; border-radius: 12px; background: #f4f7f5; border-color: #e1e8e3; }
  body:not(.page-admin) .available-cart-line-actions button { min-width: 2.2rem; min-height: 2.2rem; border-radius: 10px; font-size: 1.05rem; }
  body:not(.page-admin) .available-cart-line-remove { grid-area: remove; align-self: start; justify-self: end; display: grid; place-items: center; width: 2rem; height: 2rem; min-width: 2rem; min-height: 2rem; border-radius: 50%; background: #f4f7f5; color: #6b786f; font-size: 0.8rem; }
  body:not(.page-admin) .available-cart-line-remove:hover { background: #fde9e7; color: #c0261b; }
}

/* Checkout: steps, big choices, address cards */
.co-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.co-steps li { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; position: relative; color: #8a968f; font-size: 0.74rem; font-weight: 600; text-align: center; }
.co-steps li span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #e6ece8; color: #5d6c64; font-size: 0.8rem; font-weight: 800; position: relative; z-index: 1; }
.co-steps li + li::before { content: ""; position: absolute; top: 0.82rem; right: 50%; width: 100%; height: 2px; background: #e6ece8; }
.co-steps li.is-current { color: #173d31; font-weight: 800; }
.co-steps li.is-current span { background: var(--green-action, #087447); color: #fff; box-shadow: 0 0 0 4px rgb(8 116 71 / 16%); }
body:not(.page-admin) #available-checkout-details > h4 { margin: 0 0 0.6rem; font-size: 1.15rem; font-weight: 800; }
.co-section { margin: 0.9rem 0 0.5rem; color: #173d31; font-size: 0.95rem; font-weight: 800; }

.available-fulfillment-choice.co-enhanced > label, .available-fulfillment-choice.co-enhanced > select { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.co-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.4rem; }
.co-choice-card { display: grid; justify-items: start; gap: 0.12rem; padding: 0.8rem 0.9rem; border: 1.5px solid #dfe7e2; border-radius: 14px; background: #fff; color: #24372d; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s; }
.co-choice-card svg { width: 1.5rem; height: 1.5rem; margin-bottom: 0.2rem; fill: none; stroke: #6b786f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.co-choice-card strong { font-size: 0.98rem; }
.co-choice-card small { color: #68766e; font-size: 0.76rem; }
.co-choice-card.is-selected { border-color: var(--green-action, #087447); background: #eef8f2; box-shadow: 0 0 0 3px rgb(8 116 71 / 12%); }
.co-choice-card.is-selected svg { stroke: var(--green-action, #087447); }

#available-saved-address-row.co-enhanced > label, #available-saved-address-row.co-enhanced > select { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
#available-saved-address-row.co-enhanced::before { content: "Delivery address"; display: block; margin: 0.9rem 0 0.5rem; color: #173d31; font-size: 0.95rem; font-weight: 800; }
.co-addresses { display: grid; gap: 0.55rem; margin-bottom: 0.7rem; }
.co-address { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.8rem 0.9rem; border: 1.5px solid #dfe7e2; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.co-address.is-selected { border-color: var(--green-action, #087447); background: #eef8f2; }
.co-radio { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; border: 2px solid #b8c4bd; border-radius: 50%; }
.co-address.is-selected .co-radio { border-color: var(--green-action, #087447); background: radial-gradient(circle, var(--green-action, #087447) 0 45%, transparent 50%); }
.co-address-copy { display: grid; gap: 0.12rem; min-width: 0; }
.co-address-head { display: flex; align-items: center; gap: 0.5rem; }
.co-address-head em { padding: 0.08rem 0.45rem; border-radius: 999px; background: #dff3e7; color: #167144; font-size: 0.66rem; font-style: normal; font-weight: 800; }
.co-address-text { color: #4d5c54; font-size: 0.86rem; overflow-wrap: anywhere; }
.co-address-phone { color: #68766e; font-size: 0.8rem; }
.co-address-add { min-height: 2.8rem; border: 1.5px dashed #9bc9b0; border-radius: 14px; background: #f1faf5; color: #167144; font: inherit; font-weight: 800; cursor: pointer; }

body:not(.page-admin) #available-checkout-details input[type="text"], body:not(.page-admin) #available-checkout-details input[type="tel"], body:not(.page-admin) #available-checkout-details input:not([type]) { min-height: 3rem; border-radius: 12px; }
body:not(.page-admin) #available-checkout-button { display: flex; align-items: center; justify-content: center; min-height: 3.2rem; border-radius: 14px; font-size: 1.02rem; font-weight: 800; }

html[data-scheme="dark"] .co-choice-card, html[data-scheme="dark"] .co-address { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .co-choice-card.is-selected, html[data-scheme="dark"] .co-address.is-selected { background: #17261f; border-color: var(--accent-text, #66d6a8); }
html[data-scheme="dark"] .co-choice-card small, html[data-scheme="dark"] .co-address-text, html[data-scheme="dark"] .co-address-phone, html[data-scheme="dark"] .co-secure { color: #9eb0a7; }
html[data-scheme="dark"] .co-section, html[data-scheme="dark"] .co-steps li.is-current, html[data-scheme="dark"] #available-saved-address-row.co-enhanced::before { color: #e8efeb; }
html[data-scheme="dark"] .co-steps li span { background: #26302b; color: #b6c4bc; }
html[data-scheme="dark"] .co-steps li + li::before { background: #26302b; }
html[data-scheme="dark"] body:not(.page-admin) .available-cart-lines > .available-cart-line { background: #161c19 !important; border-color: rgb(255 255 255 / 10%) !important; }

/* ===================================================================================================== */
/* Ghana Shop payment steps (Payment → Review → Complete)                                                  */
/* ===================================================================================================== */
.co-flow[hidden] { display: none; }
body[data-co-flow] .available-cart-benefits, body[data-co-flow] .available-cart-layout, body[data-co-flow] .available-cart-lower-layout,
body[data-co-flow] .available-cart-page-heading.page-head { display: none !important; }
.co-flow { max-width: 38rem; margin: 0 auto; }
.co-flow-body { display: grid; gap: 0.9rem; }
.co-flow-head { margin-bottom: 0 !important; }
.co-steps-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 0.2rem; }
.co-steps li.is-done { color: var(--green-action, #087447); font-weight: 700; }
.co-steps li.is-done span { background: var(--green-action, #087447); color: #fff; }
.co-steps li.is-done + li::before, .co-steps li.is-current::before { background: var(--green-action, #087447); }
.co-check { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.co-icon, .co-flow svg.co-hero-icon, .co-flow svg.co-check-end, .co-flow svg.co-arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-icon { width: 1.3rem; height: 1.3rem; flex: none; }

.co-method { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; border: 1.5px solid #dfe7e2; border-radius: 16px; background: #fff; }
.co-method.is-selected { border-color: var(--green-action, #087447); background: #eef8f2; }
.co-method-badge { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: #ffcb05; color: #1a1a1a; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.02em; flex: none; }
.co-method-copy { display: grid; flex: 1; min-width: 0; }
.co-method-copy small { color: #68766e; }
.co-check-end { width: 1.4rem; height: 1.4rem; color: var(--green-action, #087447); stroke-width: 3; }

.co-pay-card { display: grid; gap: 0.1rem; padding: 1rem; border: 1px solid #e3eae5; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px -18px rgb(14 38 27 / 60%); }
.co-pay-card h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.co-pay-lead { margin: 0.2rem 0 0.7rem; color: #5d6c64; font-size: 0.9rem; }
.co-pay-note { margin: 0.7rem 0 0.4rem; padding: 0.65rem 0.8rem; border-radius: 12px; background: #eef4fb; color: #36516f; font-size: 0.82rem; }
.co-copy-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.85rem; border: 1px solid #e3eae5; border-radius: 14px; background: #f8faf8; }
.co-copy-text { display: grid; flex: 1; min-width: 0; }
.co-copy-label { color: #68766e; font-size: 0.78rem; }
.co-copy-value { font-size: 1rem; overflow-wrap: anywhere; letter-spacing: 0.01em; }
.co-copy-value.is-big { font-size: 1.45rem; letter-spacing: 0.04em; }
.co-copy-btn { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border: 1px solid #d7e1da; border-radius: 12px; background: #fff; color: var(--green-action, #087447); cursor: pointer; }
.co-copy-btn.is-copied { background: var(--green-action, #087447); color: #fff; }
.co-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.15rem; border-bottom: 1px solid #edf1ee; color: #4d5c54; }
.co-fact:last-child { border-bottom: 0; }
.co-fact strong { color: #173d31; text-align: right; }
.co-fact strong.is-big { color: var(--green-action, #087447); font-size: 1.5rem; font-weight: 800; }
.co-hold { margin: 0; color: #68766e; font-size: 0.82rem; text-align: center; }
.co-info { margin: 0; padding: 0.8rem 0.95rem; border-radius: 14px; background: #eef4fb; color: #36516f; font-size: 0.86rem; }

body:not(.page-admin) .btn.co-primary { display: flex; align-items: center; gap: 0.8rem; min-height: 3.6rem; padding: 0.55rem 1.1rem; border-radius: 16px; background: var(--green-action, #087447); color: #fff; text-align: left; text-decoration: none; box-shadow: 0 12px 24px -14px rgb(8 116 71 / 70%); }
.co-primary-copy { display: grid; flex: 1; }
.co-primary-copy small { opacity: 0.85; font-size: 0.76rem; font-weight: 500; }
.co-primary .co-arrow { width: 1.2rem; height: 1.2rem; }
body:not(.page-admin) .btn.co-primary-plain { justify-content: center; }
body:not(.page-admin) .btn.co-secondary { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.2rem; border-radius: 16px; font-weight: 800; }
.co-link-danger { justify-self: center; padding: 0.5rem; border: 0; background: transparent; color: #b4382d; font: inherit; font-size: 0.86rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.co-secure-line { margin: 0; color: #5d6c64; font-size: 0.8rem; text-align: center; }

.co-hero { display: grid; justify-items: center; gap: 0.35rem; padding: 1.4rem 1rem; text-align: center; }
.co-hero h3 { margin: 0.3rem 0 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.co-hero p { margin: 0; max-width: 28rem; color: #5d6c64; }
.co-hero-icon { width: 4.6rem; height: 4.6rem; padding: 1.1rem; border-radius: 50%; background: #e4f5ea; color: var(--green-action, #087447); }
.co-hero.is-success .co-hero-icon { background: var(--green-action, #087447); color: #fff; box-shadow: 0 0 0 10px rgb(8 116 71 / 14%); stroke-width: 3; }

html[data-scheme="dark"] .co-method, html[data-scheme="dark"] .co-pay-card, html[data-scheme="dark"] .co-copy-btn { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .co-method.is-selected { background: #17261f; border-color: var(--accent-text, #66d6a8); }
html[data-scheme="dark"] .co-copy-row { background: #101512; border-color: rgb(255 255 255 / 12%); }
html[data-scheme="dark"] .co-fact { border-color: rgb(255 255 255 / 10%); color: #b6c4bc; }
html[data-scheme="dark"] .co-fact strong, html[data-scheme="dark"] .co-pay-card h3 { color: #e8efeb; }
html[data-scheme="dark"] .co-pay-note, html[data-scheme="dark"] .co-info { background: #182230; color: #b9cde4; }
html[data-scheme="dark"] .co-pay-lead, html[data-scheme="dark"] .co-hero p, html[data-scheme="dark"] .co-secure-line, html[data-scheme="dark"] .co-hold, html[data-scheme="dark"] .co-copy-label, html[data-scheme="dark"] .co-method-copy small { color: #9eb0a7; }
html[data-scheme="dark"] .co-hero-icon { background: #1c2e25; }
body:not(.page-admin) .co-flow-head > .available-cart-page-subtitle { grid-row: 3; margin: 0.2rem 0.2rem 0.4rem; color: #68766e; }

/* ===================================================================================================== */
/* Push pages: Checkout, Payment, Review, Complete (slide in from the right; tab bar hidden)               */
/* ===================================================================================================== */
.co-pages { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.co-page {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--page-bg, #f6f4ee); color: var(--ink, #172821); pointer-events: auto;
  transform: translateX(100%); transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.2, 1), box-shadow 0.34s; box-shadow: -18px 0 40px -24px rgb(0 0 0 / 45%);
}
.co-page.is-active { transform: translateX(0); }
.co-page.is-behind { transform: translateX(-26%); box-shadow: none; }
.co-page.is-leaving { transform: translateX(100%); }
.co-page > * { width: min(100%, 40rem); margin-inline: auto; }
.co-page-head { display: grid; grid-template-columns: minmax(4.5rem, 1fr) auto minmax(4.5rem, 1fr); align-items: center; gap: 0.4rem; min-height: 3.4rem; padding: calc(env(safe-area-inset-top, 0px) + 0.4rem) 0.6rem 0.4rem; flex: none; background: var(--page-bg, #f6f4ee); }
.co-page-back { display: inline-flex; align-items: center; justify-self: start; gap: 0.05rem; min-height: 2.75rem; padding: 0 0.7rem 0 0.15rem; border: 0; border-radius: 12px; background: transparent; color: var(--green-action, #087447); font: inherit; font-size: 1.02rem; cursor: pointer; }
.co-page-back .co-icon { width: 1.5rem; height: 1.5rem; stroke-width: 2.3; }
.co-page-titles { display: grid; justify-items: center; text-align: center; }
.co-page-titles h2 { margin: 0; font-size: 1.12rem; font-weight: 800; }
.co-page-titles p { margin: 0; color: #68766e; font-size: 0.78rem; }
.co-page-body { flex: 1 1 auto; display: grid; align-content: start; gap: 0.9rem; overflow-y: auto; padding: 0.4rem 1rem 1.5rem; overscroll-behavior: contain; }
body[data-co-open] { overflow: hidden; }
body[data-co-open] .bottom-nav, body[data-view="available-cart"]:not(:has(.available-cart-layout.is-empty)) .bottom-nav { display: none !important; }

.co-bar { display: grid; gap: 0.6rem; flex: none; padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e3eae5; background: #fff; box-shadow: 0 -14px 30px -22px rgb(14 38 27 / 55%); }
.co-bar-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; color: #32483b; font-weight: 700; }
.co-bar-total strong { color: var(--green-action, #087447); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; }
.co-bar-saving { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.8rem; border-radius: 12px; background: #e6f6ec; color: #167144; font-weight: 700; }
.co-bar-saving[hidden] { display: none; }
.co-bar-saving strong { margin-left: auto; }
.co-bar-saving .co-icon { width: 1.2rem; height: 1.2rem; }
.co-bar #available-checkout-button, .co-cart-bar #available-proceed-checkout { width: 100%; }
.co-bar-button { display: flex; align-items: center; justify-content: center; }

/* the cart's own bar: pinned to the bottom of the phone screen, in the page on a computer */
.co-cart-bar { padding-top: 0.7rem; }
.co-cart-bar .available-cart-total { margin: 0 0 0.1rem; padding: 0; border: 0; }
@media (max-width: 760px) {
  .co-cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; border-radius: 22px 22px 0 0; }
  body[data-view="available-cart"] main { padding-bottom: 10.5rem; }
  body[data-view="available-cart"] .available-cart-benefits, body[data-view="available-cart"] .available-checkout-delivery-note, body[data-view="available-cart"] .available-checkout-or { display: none; }
  body[data-view="available-cart"] .co-secure { display: none; }
}
@media (min-width: 761px) {
  .co-cart-bar { padding: 0; border: 0; box-shadow: none; background: transparent; }
  body[data-view="available-cart"]:not(:has(.available-cart-layout.is-empty)) .bottom-nav { display: none !important; }
}
/* The checkout form only ever shows inside its own page */
.available-checkout-panel > .available-checkout-form { display: none !important; }
.co-page .available-checkout-form { display: block !important; }
.co-page .available-checkout-form[hidden], .co-page #available-checkout-details[hidden] { display: block !important; }
.co-page #available-checkout-details > .co-steps, .co-page #available-checkout-details > h4 { display: none; }
.co-page .available-checkout-details { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }

html[data-scheme="dark"] { --page-bg: #0f1411; }
html[data-scheme="dark"] .co-bar { background: #161c19; border-color: rgb(255 255 255 / 10%); }
html[data-scheme="dark"] .co-bar-total { color: #c9d6cf; }
html[data-scheme="dark"] .co-bar-saving { background: #17261f; color: #66d6a8; }
html[data-scheme="dark"] .co-page-titles p { color: #9eb0a7; }
.co-hero-icon, .co-check-end, .co-arrow, .co-page .co-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-hero-icon { width: 4.6rem; height: 4.6rem; }
.co-page .co-check-end { stroke-width: 3; }
/* Delivery address cards are the source of truth; the location line only shows when there is no saved address */
#available-delivery-fields.has-saved-address > label[for="available-location"], #available-delivery-fields.has-saved-address > #available-location { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%); }
#available-delivery-fields:not(.has-saved-address) > label[for="available-location"] { margin-top: 0.4rem; font-weight: 700; }

/* ===================================================================================================== */
/* Phone pages that open full screen (like Personal Information): no top bar, "‹ Back" on the left and the logo with
   "Go Home" on the right of the same row                                                                  */
/* ===================================================================================================== */
.page-home { display: none; }
@media (max-width: 760px) {
  body[data-view="orders"] .site-header, body[data-view="invoices"] .site-header, body[data-view="available-orders"] .site-header,
  body[data-view="available-cart"] .site-header, body.customer-profile-detail-open .site-header { display: none; }
  body:not(.page-admin) .page-head { grid-template-columns: minmax(0, 1fr) auto auto; }
  body:not(.page-admin) .page-head > .page-home {
    grid-column: 2 !important; grid-row: 1 !important; justify-self: end; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; padding: 0 0.85rem 0 0.65rem;
    border-radius: 999px; background: rgb(8 116 71 / 10%); color: var(--green-action, #087447); font-size: 0.92rem; font-weight: 700; text-decoration: none;
  }
  .page-home svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body:not(.page-admin) .page-head > .customer-notifications-menu { grid-column: 3 !important; grid-row: 1 !important; }
  /* the page content sits straight on the page background, like Personal Information */
  body[data-view="orders"] .orders-page.sheet, body[data-view="invoices"] .invoice-section.sheet { background: transparent; box-shadow: none; border: 0; padding-inline: 0.25rem; }
}
html[data-scheme="dark"] .page-home { background: rgb(102 214 168 / 14%); color: var(--accent-text, #66d6a8); }

/* Full-screen pages share the Personal Information page's background */
:root { --page-bg: #f2f4f3; }
html[data-scheme="dark"] { --page-bg: #050807; }
.co-page, .co-page-head { background: #f2f4f3; }
html[data-scheme="dark"] .co-page, html[data-scheme="dark"] .co-page-head { background: #050807; }
@media (max-width: 760px) {
  body[data-view="orders"], body[data-view="invoices"], body[data-view="available-orders"], body[data-view="available-cart"], body.customer-profile-detail-open { background: #f2f4f3; }
  html[data-scheme="dark"] body[data-view="orders"], html[data-scheme="dark"] body[data-view="invoices"], html[data-scheme="dark"] body[data-view="available-orders"],
  html[data-scheme="dark"] body[data-view="available-cart"], html[data-scheme="dark"] body.customer-profile-detail-open { background: #050807; }
}

@media (max-width: 760px) {
  body.customer-profile-detail-open #customer-panel, body.customer-profile-detail-open .customer-panel { background: transparent; box-shadow: none; border: 0; }
  body.customer-profile-detail-open .profile-detail-screen { background: transparent; }
}

/* ===================================================================================================== */
/* Product categories: one clean icon set, a coloured tile per category                                     */
/* ===================================================================================================== */
body:not(.page-admin) .available-categories button > span {
  display: grid !important; place-items: center; width: 2.1rem !important; height: 2.1rem !important; flex: 0 0 2.1rem !important; border-radius: 12px; color: #fff; font-size: 0 !important;
  background: var(--cat-tint, #6b7280); box-shadow: 0 4px 10px -6px var(--cat-tint, #6b7280);
}
body:not(.page-admin) .preorder-categories button > span { width: 1.85rem !important; height: 1.85rem !important; flex-basis: 1.85rem !important; border-radius: 10px; }
body:not(.page-admin) .available-categories button > span svg { width: 1.2rem !important; height: 1.2rem !important; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body:not(.page-admin) .available-categories button > span svg[stroke-width] { stroke-width: 2.8; }
body:not(.page-admin) .available-categories button { gap: 0.55rem; font-weight: 650; }
body:not(.page-admin) .available-categories button.is-active > span, body:not(.page-admin) .available-categories button[aria-pressed="true"] > span { box-shadow: 0 0 0 2px rgb(255 255 255 / 85%); }
.available-categories button[data-available-category="all"], .available-categories button[data-preorder-category="all"] { --cat-tint: #0f8a5a; }
.available-categories button[data-available-category="bags"], .available-categories button[data-preorder-category="bags"] { --cat-tint: #d9822b; }
.available-categories button[data-available-category="fashion"], .available-categories button[data-preorder-category="fashion"] { --cat-tint: #7a4de0; }
.available-categories button[data-available-category="footwear"], .available-categories button[data-preorder-category="footwear"] { --cat-tint: #2f6fed; }
.available-categories button[data-available-category="beauty"], .available-categories button[data-preorder-category="beauty"] { --cat-tint: #d6336c; }
.available-categories button[data-available-category="accessories"], .available-categories button[data-preorder-category="accessories"] { --cat-tint: #0e8f9c; }
.available-categories button[data-available-category="home"], .available-categories button[data-preorder-category="home"] { --cat-tint: #4c51bf; }
.available-categories button[data-available-category="electronics"], .available-categories button[data-preorder-category="electronics"] { --cat-tint: #475569; }
.available-categories button[data-available-category="others"], .available-categories button[data-preorder-category="others"] { --cat-tint: #6b7280; }

/* Go Home on the push pages and the settings pages */
.co-page-head .page-home, .sx-bar-end .sx-home { display: inline-flex; align-items: center; justify-self: end; gap: 0.4rem; min-height: 2.4rem; padding: 0 0.85rem 0 0.65rem; border: 0; border-radius: 999px; background: rgb(8 116 71 / 10%); color: var(--green-action, #087447); font: inherit; font-size: 0.92rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.co-page-head .page-home svg, .sx-bar-end .sx-home svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-bar-end { display: flex; justify-content: flex-end; }
.sx-bar-end .sx-home { color: var(--sx-tint, #087447); background: var(--sx-fill, rgb(0 0 0 / 7%)); }

/* An empty cart has no total or checkout button to pin, so the tab bar stays available */
.available-cart-layout.is-empty .co-cart-bar { display: none; }
@media (max-width: 760px) {
  body[data-view="available-cart"]:has(.available-cart-layout.is-empty) main { padding-bottom: 6.5rem; }
}

/* Payment method cards (MTN MoMo / Telecel Cash) */
.co-methods { display: grid; gap: 0.6rem; }
button.co-method { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.co-method .co-radio { margin-left: auto; width: 1.3rem; height: 1.3rem; border: 2px solid #b8c4bd; border-radius: 50%; flex: none; }
.co-method.is-unavailable { opacity: 0.55; cursor: not-allowed; }
.co-method-badge.is-mtn { background: #ffcb05; color: #1a1a1a; }
.co-method-badge.is-telecel { background: #e3000f; color: #fff; font-size: 0.64rem; }
.co-method.is-selected .co-check-end { margin-left: auto; }
.co-how { display: grid; gap: 0.35rem; margin: 0; padding: 0.9rem 1rem 0.9rem 2.2rem; border-radius: 16px; background: #f4f7f5; color: #4d5c54; font-size: 0.88rem; }
body:not(.page-admin) .btn.co-primary.is-telecel { background: #c8000d; box-shadow: 0 12px 24px -14px rgb(200 0 13 / 70%); }
html[data-scheme="dark"] .co-how { background: #161c19; color: #b6c4bc; }
html[data-scheme="dark"] .co-method .co-radio { border-color: #4a5750; }
.co-page-head { grid-template-columns: minmax(5rem, 1fr) auto minmax(7.2rem, 1fr); }
.co-page-head .page-home { white-space: nowrap; }
.co-page-titles h2 { font-size: 1.05rem; }

/* "Added to cart" feedback */
.cart-toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; align-items: center; gap: 0.9rem; max-width: min(92vw, 26rem); padding: 0.7rem 0.8rem 0.7rem 1rem; border-radius: 16px; background: #123f31; color: #fff; font-weight: 700; box-shadow: 0 18px 40px -16px rgb(0 0 0 / 60%); transform: translateX(-50%); animation: cart-toast-in 0.28s cubic-bezier(0.22, 0.8, 0.2, 1); }
.cart-toast button { flex: none; min-height: 2.3rem; padding: 0 0.9rem; border: 0; border-radius: 999px; background: #f6b51f; color: #1a1a1a; font: inherit; font-weight: 800; cursor: pointer; }
@keyframes cart-toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.available-dialog-add.is-added { background: #1f9d5c !important; }
.is-bumped { animation: cart-bump 0.5s ease; }
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .is-bumped, .cart-toast { animation: none; } }

/* Copy buttons show a check and "Copied" for a moment */
.co-copy-btn { gap: 0.3rem; min-width: 2.6rem; width: auto; padding: 0 0.7rem; display: inline-flex; align-items: center; justify-content: center; }
.co-copy-btn.is-copied { background: var(--green-action, #087447); color: #fff; border-color: transparent; }
.co-copy-btn.is-copy-failed { background: #b4382d; color: #fff; border-color: transparent; }
.co-copy-done { font-size: 0.82rem; font-weight: 800; }

/* Choose a method, then reveal the steps on request */
.co-choose { margin: 0.2rem 0 -0.3rem; font-size: 1rem; font-weight: 800; }
.co-howto { border-radius: 16px; background: #f4f7f5; color: #4d5c54; }
.co-howto summary { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; padding: 0 1rem; font-weight: 800; color: #173d31; cursor: pointer; list-style: none; }
.co-howto summary::-webkit-details-marker { display: none; }
.co-howto summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.co-howto[open] summary::after { transform: rotate(-135deg); }
.co-howto .co-how { background: transparent; padding-top: 0; }
html[data-scheme="dark"] .co-howto { background: #161c19; color: #b6c4bc; }
html[data-scheme="dark"] .co-howto summary { color: #e8efeb; }
.cart-toast { width: max-content; white-space: nowrap; }
.cart-toast span { overflow: hidden; text-overflow: ellipsis; }
.co-page-head .page-home.is-cancel { background: rgb(200 40 30 / 10%); color: #c0261b; }
html[data-scheme="dark"] .co-page-head .page-home.is-cancel { background: rgb(255 120 110 / 14%); color: #ff8a80; }

/* Delivery / Pickup: icon and name on one line, the description underneath */
.co-choice-card { grid-template-columns: auto 1fr; align-items: center; column-gap: 0.55rem; row-gap: 0.15rem; }
.co-choice-card svg { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.co-choice-card strong { grid-column: 2; grid-row: 1; }
.co-choice-card small { grid-column: 1 / -1; grid-row: 2; }

/* Payment methods side by side: the first on the left, the second on the right */
.co-methods { grid-template-columns: 1fr 1fr; align-items: stretch; }
button.co-method { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "badge mark" "copy copy"; align-items: center; gap: 0.6rem 0.4rem; padding: 0.8rem; }
button.co-method .co-method-badge { grid-area: badge; width: 2.6rem; height: 2.6rem; }
button.co-method .co-radio, button.co-method .co-check-end { grid-area: mark; justify-self: end; margin-left: 0; }
button.co-method .co-method-copy { grid-area: copy; }
button.co-method .co-method-copy small { font-size: 0.74rem; }

/* Method cards: logo, then name, on one line (no description) */
button.co-method { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "badge copy mark"; gap: 0.5rem; padding: 0.7rem 0.6rem; }
button.co-method .co-method-badge { width: 2.4rem; height: 2.4rem; font-size: 0.7rem; }
button.co-method .co-method-copy { min-width: 0; }
button.co-method .co-method-copy strong { display: block; overflow: hidden; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
button.co-method .co-method-copy small { display: none; }
button.co-method .co-radio, button.co-method .co-check-end { width: 1.2rem; height: 1.2rem; }
button.co-method .co-method-copy strong { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
button.co-method .co-radio { display: none; }
button.co-method { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "badge copy"; position: relative; }
button.co-method .co-check-end { position: absolute; top: 0.35rem; right: 0.35rem; width: 1rem; height: 1rem; }

/* Built-in avatars */
.has-avatar { color: #fff; }
.acct-avatar.has-avatar { font-size: 2.4rem; box-shadow: 0 0 0 4px rgb(255 255 255 / 28%); }
.avatar.has-avatar, .profile-avatar.has-avatar { font-size: 1.15em; line-height: 1; }
.acct-avatar-btn { position: relative; display: inline-grid; flex: none; padding: 0; border: 0; background: transparent; cursor: pointer; }
.acct-avatar-edit { position: absolute; right: -0.1rem; bottom: -0.1rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; color: #087447; box-shadow: 0 2px 6px rgb(0 0 0 / 30%); }
.acct-avatar-edit svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.av-head { display: flex; align-items: center; gap: 1rem; padding: 0.4rem 0.2rem 1rem; color: var(--sx-secondary, #65766e); font-size: 0.9rem; }
.av-head p { margin: 0; }
.av-preview { display: grid; flex: none; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: var(--sx-fill, #e4f3ec); color: var(--sx-tint, #087447); font-size: 2.2rem; font-weight: 800; }
.av-preview.has-avatar { color: #fff; }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; padding: 0.4rem 0; }
.av-choice { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; transition: transform 0.15s; }
.av-choice:active { transform: scale(0.92); }
.av-choice.is-selected { border-color: var(--sx-tint, #087447); box-shadow: 0 0 0 3px rgb(8 116 71 / 20%); }
.av-face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font-size: 2rem; line-height: 1; }
.av-reset { display: block; width: 100%; margin: 0.8rem 0 0.2rem; padding: 0.8rem; border: 0; border-radius: 14px; background: var(--sx-fill, rgb(0 0 0 / 7%)); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }

/* Bigger banner avatar; drawn people fill their circle */
.has-avatar { overflow: hidden; }
.has-avatar svg { display: block; width: 100%; height: 100%; }
.acct-avatar { width: 6.2rem; height: 6.2rem; }
.acct-avatar.has-avatar:not(.has-person) { font-size: 3.6rem; }
.acct-avatar-edit { width: 1.9rem; height: 1.9rem; right: 0.1rem; bottom: 0.1rem; }
.acct-avatar-edit svg { width: 1.05rem; height: 1.05rem; }
.av-preview { width: 5rem; height: 5rem; }
.av-preview.has-avatar:not(.has-person) { font-size: 2.6rem; }
.av-title { margin: 1rem 0.2rem 0.2rem; color: var(--sx-secondary, #65766e); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.av-face.has-person { font-size: 0; }

/* Customers' built-in avatars in the Operations Admin lists */
.avatar-dot.is-picture { overflow: hidden; padding: 0; color: #fff; font-size: 1.05em; line-height: 1; }
.avatar-dot.is-picture svg { display: block; width: 100%; height: 100%; }

/* ===================================================================================================== */
/* Product page (Ghana Shop): full screen, sticky top bar and order bar                                     */
/* ===================================================================================================== */
.pd-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--page-bg, #f2f4f3); color: var(--ink, #172821); }
.pd-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.pd-dialog[open] { display: flex; flex-direction: column; animation: pd-in 0.34s cubic-bezier(0.22, 0.8, 0.2, 1); }
@keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pd-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pd-dialog[open] { animation: none; } }
.pd-icon { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* top bar */
.pd-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; flex: none; min-height: 3.4rem; padding: calc(env(safe-area-inset-top, 0px) + 0.3rem) 0.6rem 0.3rem; background: var(--page-bg, #f2f4f3); border-bottom: 1px solid rgb(0 0 0 / 6%); }
.pd-back { display: inline-flex; align-items: center; gap: 0.05rem; min-height: 2.75rem; padding: 0 0.7rem 0 0.15rem; border: 0; border-radius: 12px; background: transparent; color: var(--green-action, #087447); font: inherit; font-size: 1.02rem; cursor: pointer; }
.pd-back .pd-icon { width: 1.5rem; height: 1.5rem; stroke-width: 2.3; }
.pd-top-title { margin: 0; overflow: hidden; font-size: 0.98rem; font-weight: 800; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.pd-tools { display: flex; align-items: center; gap: 0.15rem; }
.pd-tools .available-product-share { display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; border: 0; background: transparent; }
.pd-tools .available-product-share-button, .pd-heart { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #32483b; cursor: pointer; }
.pd-tools .available-product-share-button svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pd-tools .available-product-share-button:hover, .pd-heart:hover { background: rgb(0 0 0 / 6%); }
.pd-heart { position: static; font-size: 1.5rem; line-height: 1; color: #c43d56; box-shadow: none; }
.pd-tools .available-product-share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* body */
.pd-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pd-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.pd-layout { display: grid; gap: 1rem; max-width: 64rem; margin: 0 auto; padding: 0.6rem 1rem 1.2rem; }
@media (min-width: 900px) {
  .pd-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 1.6rem; padding-top: 1.3rem; }
  .pd-media { position: sticky; top: 0; }
}
.pd-info { display: grid; gap: 1rem; min-width: 0; }

/* pictures */
.pd-frame { position: relative; overflow: hidden; border-radius: 22px; background: #fff; aspect-ratio: 1; box-shadow: 0 8px 24px -18px rgb(14 38 27 / 55%); }
.pd-gallery { height: 100%; gap: 0; border-radius: inherit; }
.pd-gallery > .available-gallery-item, .pd-gallery .available-gallery-item { flex: 0 0 100%; width: 100%; height: 100%; aspect-ratio: auto; background: #fff; }
.pd-gallery .available-product-image-button > img, .pd-gallery .available-gallery-item > video, .pd-gallery .available-gallery-item > img { width: 100%; height: 100%; object-fit: contain; }
.pd-frame .available-product-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(145deg, #f4efe6, #edf5ef); color: #6a8874; font-weight: 800; }
.pd-count { position: absolute; right: 0.7rem; bottom: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 0.78rem; font-weight: 700; }
.pd-arrow { position: absolute; top: 50%; display: none; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 90%); color: #173d31; box-shadow: 0 4px 14px rgb(0 0 0 / 22%); transform: translateY(-50%); cursor: pointer; }
.pd-arrow:disabled { opacity: 0.35; cursor: default; }
.pd-arrow-prev { left: 0.6rem; } .pd-arrow-next { right: 0.6rem; }
@media (hover: hover) { .pd-arrow { display: grid; } }
.pd-dots { display: flex; justify-content: center; gap: 0.35rem; margin-top: 0.6rem; }
.pd-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #c9d3cd; transition: width 0.2s, background-color 0.2s; }
.pd-dot.is-active { width: 1.2rem; border-radius: 999px; background: var(--green-action, #087447); }
.pd-thumbs { display: flex; gap: 0.5rem; margin-top: 0.7rem; overflow-x: auto; padding-bottom: 0.2rem; }
.pd-thumb { flex: none; width: 3.6rem; height: 3.6rem; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; opacity: 0.75; }
.pd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--green-action, #087447); opacity: 1; }

/* the essentials */
.pd-summary { display: grid; gap: 0.5rem; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pd-badge { display: inline-flex; align-items: center; padding: 0.22rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.01em; }
.pd-badge.is-in { background: #e1f5e8; color: #167144; }
.pd-badge.is-out { background: #fde9e7; color: #b4382d; }
.pd-badge.is-low { background: #fff1d6; color: #9a5b00; }
.pd-name { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.pd-price-row { display: flex; align-items: baseline; gap: 0.5rem; }
.pd-price { color: var(--green-action, #087447); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.pd-price-note { color: #68766e; font-size: 0.9rem; }
.pd-location { display: flex; align-items: center; gap: 0.35rem; margin: 0; color: #4d5c54; font-size: 0.92rem; }
.pd-location svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pd-blurb { display: -webkit-box; padding: 0; overflow: hidden; border: 0; background: transparent; color: #4d5c54; font: inherit; font-size: 0.95rem; line-height: 1.5; text-align: left; -webkit-box-orient: vertical; -webkit-line-clamp: 3; cursor: pointer; }

/* cards: options, delivery */
.pd-card { display: grid; gap: 0.7rem; padding: 1rem; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); }
.pd-card-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.pd-options { display: grid; gap: 0.6rem; }
.pd-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.5rem; border: 1.5px solid #e3eae5; border-radius: 16px; transition: border-color 0.15s, background-color 0.15s; }
.pd-option:has(.pd-option-select.is-selected), .pd-option.is-picked { border-color: var(--green-action, #087447); background: #f1faf5; }
.pd-option.is-sold-out { opacity: 0.55; }
.pd-option-select { display: flex; align-items: center; gap: 0.7rem; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pd-option-image { display: grid; flex: none; place-items: center; width: 3.2rem; height: 3.2rem; overflow: hidden; border-radius: 12px; background: #eef3ef; color: #6a8874; font-size: 0.78rem; font-weight: 800; }
.pd-option-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-option-copy { display: grid; min-width: 0; }
.pd-option-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pd-option-copy small { color: #68766e; font-size: 0.78rem; }
.pd-option-copy small.is-low { color: #9a5b00; font-weight: 700; }
.pd-option-copy small.is-out { color: #b4382d; font-weight: 700; }
.pd-qty { display: inline-flex; align-items: center; border-radius: 12px; background: #f1f4f2; }
.pd-qty-step { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #173d31; font: inherit; font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.pd-qty-step:disabled { opacity: 0.35; cursor: default; }
.pd-qty input { width: 2.2rem; min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1rem; font-weight: 800; text-align: center; -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

.pd-info-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.pd-info-icon { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; flex: none; fill: none; stroke: var(--green-action, #087447); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-info-copy { display: grid; gap: 0.1rem; min-width: 0; font-size: 0.9rem; color: #4d5c54; }
.pd-info-copy strong { color: #173d31; font-size: 0.95rem; }
.pd-link { color: var(--green-action, #087447); font-size: 0.9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* "about", "returns" and "help" folded away until wanted */
.pd-more { display: grid; gap: 0.5rem; }
.pd-acc { border-radius: 16px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); }
.pd-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.2rem; padding: 0 1rem; font-weight: 800; cursor: pointer; list-style: none; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc-chevron { width: 1.2rem; height: 1.2rem; transition: transform 0.2s; }
.pd-acc[open] .pd-acc-chevron { transform: rotate(180deg); }
.pd-acc-body { display: grid; gap: 0.5rem; padding: 0 1rem 1rem; color: #4d5c54; font-size: 0.92rem; line-height: 1.55; }
.pd-acc-body p { margin: 0; white-space: pre-line; }

/* related products */
.pd-related { max-width: 64rem; margin: 0 auto; padding: 0.4rem 1rem 1.6rem; }
.pd-related-title { margin: 0 0 0.7rem; font-size: 1.15rem; font-weight: 800; }
.pd-related-row { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.4rem; scroll-snap-type: x proximity; }
.pd-related-card { display: grid; flex: none; gap: 0.35rem; width: 9.5rem; padding: 0.5rem; border: 0; border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); scroll-snap-align: start; cursor: pointer; }
.pd-related-picture { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #f4efe6, #edf5ef); color: #6a8874; font-size: 0.75rem; font-weight: 800; }
.pd-related-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-related-card strong { display: -webkit-box; overflow: hidden; font-size: 0.88rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pd-related-price { color: var(--green-action, #087447); font-size: 0.92rem; font-weight: 800; }

/* the order bar */
.pd-bar { display: grid; gap: 0.5rem; flex: none; width: 100%; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e3eae5; background: #fff; box-shadow: 0 -14px 30px -22px rgb(14 38 27 / 55%); }
.pd-bar > * { width: min(100%, 40rem); margin-inline: auto; }
.pd-total { margin-block: 0; color: #32483b; font-weight: 800; font-size: 1rem; }
.pd-confirmation { margin-block: 0; padding: 0.5rem 0.8rem; border-radius: 12px; background: #e6f6ec; color: #167144; font-size: 0.85rem; font-weight: 700; }
.pd-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pd-add, .pd-buy { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.2rem; border-radius: 14px; font-size: 1rem; font-weight: 800; }
.pd-add { border: 2px solid var(--green-action, #087447); background: #fff; color: var(--green-action, #087447); }
.pd-buy { border: 2px solid var(--green-action, #087447); background: var(--green-action, #087447); color: #fff; }
.pd-add:disabled, .pd-buy:disabled { opacity: 0.45; }
.pd-add.is-added { background: #1f9d5c; border-color: #1f9d5c; color: #fff; }
.pd-legal { margin-block: 0; color: #68766e; font-size: 0.7rem; line-height: 1.4; }
.pd-legal a { color: inherit; text-decoration: underline; }
.pd-cart-link { justify-self: center; padding: 0.3rem; border: 0; background: transparent; color: var(--green-action, #087447); font: inherit; font-size: 0.88rem; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* dark mode */
html[data-scheme="dark"] .pd-dialog, html[data-scheme="dark"] .pd-top { background: #050807; color: #e8efeb; }
html[data-scheme="dark"] .pd-card, html[data-scheme="dark"] .pd-acc, html[data-scheme="dark"] .pd-related-card, html[data-scheme="dark"] .pd-bar, html[data-scheme="dark"] .pd-frame, html[data-scheme="dark"] .pd-gallery .available-gallery-item { background: #161c19; }
html[data-scheme="dark"] .pd-bar, html[data-scheme="dark"] .pd-top { border-color: rgb(255 255 255 / 10%); }
html[data-scheme="dark"] .pd-option { border-color: rgb(255 255 255 / 12%); }
html[data-scheme="dark"] .pd-option:has(.pd-option-select.is-selected), html[data-scheme="dark"] .pd-option.is-picked { background: #17261f; }
html[data-scheme="dark"] .pd-qty, html[data-scheme="dark"] .pd-option-image { background: #26302b; }
html[data-scheme="dark"] .pd-qty-step, html[data-scheme="dark"] .pd-info-copy strong, html[data-scheme="dark"] .pd-total, html[data-scheme="dark"] .pd-tools .available-product-share-button { color: #e8efeb; }
html[data-scheme="dark"] .pd-info-copy, html[data-scheme="dark"] .pd-acc-body, html[data-scheme="dark"] .pd-blurb, html[data-scheme="dark"] .pd-location, html[data-scheme="dark"] .pd-price-note, html[data-scheme="dark"] .pd-option-copy small, html[data-scheme="dark"] .pd-legal { color: #9eb0a7; }
html[data-scheme="dark"] .pd-add { background: transparent; color: var(--accent-text, #66d6a8); border-color: var(--accent-text, #66d6a8); }
html[data-scheme="dark"] .pd-back, html[data-scheme="dark"] .pd-link, html[data-scheme="dark"] .pd-cart-link, html[data-scheme="dark"] .pd-price, html[data-scheme="dark"] .pd-related-price { color: var(--accent-text, #66d6a8); }
.pd-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pd-total-row .pd-cart-link { padding: 0; }

/* Product page: specifications and what is in the box */
.pd-specs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.5rem 1rem; margin: 0; }
.pd-specs dt { color: #68766e; font-size: 0.88rem; }
.pd-specs dd { margin: 0; color: #173d31; font-weight: 700; overflow-wrap: anywhere; }
.pd-included { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.pd-included li { position: relative; padding-left: 1.6rem; }
.pd-included li::before { content: ""; position: absolute; left: 0.1rem; top: 0.35rem; width: 0.65rem; height: 0.35rem; border-left: 2px solid var(--green-action, #087447); border-bottom: 2px solid var(--green-action, #087447); transform: rotate(-45deg); }
html[data-scheme="dark"] .pd-specs dd { color: #e8efeb; }
html[data-scheme="dark"] .pd-specs dt { color: #9eb0a7; }

/* Category icons in black and white */
body:not(.page-admin) .available-categories button > span { background: #f1f1f1 !important; color: #111 !important; box-shadow: none !important; }
body:not(.page-admin) .available-categories button.is-active > span, body:not(.page-admin) .available-categories button[aria-pressed="true"] > span { background: #fff !important; color: #111 !important; box-shadow: none !important; }
html[data-scheme="dark"] body:not(.page-admin) .available-categories button > span { background: #2a2a2a !important; color: #fff !important; }
html[data-scheme="dark"] body:not(.page-admin) .available-categories button.is-active > span, html[data-scheme="dark"] body:not(.page-admin) .available-categories button[aria-pressed="true"] > span { background: #fff !important; color: #111 !important; }

/* My Orders: what is left to pay, and a short history of what just happened */
.my-order-reported strong { color: #9a5b00; }
.my-order-left { padding-top: 0.45rem; border-top: 1px dashed #d6dfd9; }
.my-order-left strong { color: var(--green-action, #087447); font-size: 1.1em; }
.my-order-activity { margin-top: 0.9rem; padding: 0.85rem 0.9rem; border-radius: 14px; background: rgb(8 116 71 / 6%); }
.my-order-activity h4 { margin: 0 0 0.5rem; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #5d6c64; }
.my-order-activity ol { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.my-order-activity li { position: relative; display: grid; gap: 0.1rem; padding-left: 1.2rem; font-size: 0.88rem; }
.my-order-activity li::before { content: ""; position: absolute; left: 0.1rem; top: 0.35rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #b8c4bd; }
.my-order-activity li.is-reported::before { background: #e0a100; }
.my-order-activity li.is-paid::before { background: var(--green-action, #087447); }
.my-order-activity time { color: #68766e; font-size: 0.76rem; }
html[data-scheme="dark"] .my-order-activity { background: rgb(102 214 168 / 8%); }
html[data-scheme="dark"] .my-order-activity time, html[data-scheme="dark"] .my-order-activity h4 { color: #9eb0a7; }

/* Product page: the top bar keeps only Back, the name, Save and Share; WhatsApp and Copy link sit under the details */
.pd-tools { gap: 0.1rem; }
.pd-tools .available-product-share-button, .pd-heart { width: 2.6rem; height: 2.6rem; background: rgb(0 0 0 / 5%); }
.pd-tools .available-product-share-button { margin-left: 0.25rem; }
.pd-share-row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.2rem 0 0.1rem; padding: 0; border: 0; background: transparent; }
.pd-share-row .available-product-share-button { display: inline-flex; align-items: center; gap: 0.45rem; width: auto; height: 2.5rem; padding: 0 1rem 0 0.8rem; border: 1.5px solid #dfe7e2; border-radius: 999px; background: #fff; color: #32483b; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.pd-share-row .available-product-share-button svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pd-share-row .available-product-share-button[data-available-share="whatsapp"] { color: #167a43; border-color: #bfe3cd; background: #f1faf5; }
.pd-share-row .available-product-share-status { color: #167144; font-size: 0.82rem; font-weight: 700; }
html[data-scheme="dark"] .pd-tools .available-product-share-button, html[data-scheme="dark"] .pd-heart { background: rgb(255 255 255 / 8%); }
html[data-scheme="dark"] .pd-share-row .available-product-share-button { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .pd-share-row .available-product-share-button[data-available-share="whatsapp"] { background: #17261f; color: #66d6a8; }
.pd-share-row .available-product-share-button { white-space: nowrap; flex: none; }
.pd-share-row .available-product-share-button svg { flex: none; }

/* Admin, Ghana Shop stocks: tick several products and set their location in one go */
.available-admin-product { position: relative; padding-left: 2.8rem; }
.available-admin-select { position: absolute; left: 0.85rem; top: 1rem; width: 1.2rem; height: 1.2rem; accent-color: var(--green-action, #087447); cursor: pointer; }
.available-admin-bulk { position: sticky; top: 0; z-index: 3; display: grid; gap: 0.6rem; margin: 0.6rem 0; padding: 0.8rem 0.9rem; border: 1px solid #dfe7e2; border-radius: 14px; background: #f7faf8; box-shadow: 0 8px 20px -18px rgb(14 38 27 / 60%); }
.available-admin-bulk-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; }
.available-admin-bulk-all { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.available-admin-bulk-count { color: #5d6c64; font-weight: 600; }
.available-admin-bulk-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.available-admin-bulk-row input { flex: 1 1 14rem; min-width: 0; }
.available-admin-bulk-status { margin: 0; min-height: 1.1rem; font-size: 0.86rem; font-weight: 700; }
.available-admin-bulk-status.is-ok { color: #167144; }
.available-admin-bulk-status.is-error { color: #b4382d; }
html[data-scheme="dark"] .available-admin-bulk { background: #161c19; border-color: rgb(255 255 255 / 12%); }
.available-admin-bulk .available-admin-bulk-all { white-space: nowrap; }
.available-admin-bulk input[type="checkbox"], .available-admin-select { flex: none; width: 1.2rem; min-width: 1.2rem; height: 1.2rem; min-height: 0; margin: 0; padding: 0; }
.available-admin-bulk-row input:not([type="checkbox"]) { min-height: 2.6rem; }

/* WhatsApp and Copy link sit on the stock badges' line, in the same small type */
.pd-badges { align-items: center; }
.pd-badges .pd-share-row { display: contents !important; }
.pd-badges .pd-share-row .available-product-share-button { height: auto; gap: 0.3rem; padding: 0.22rem 0.65rem 0.22rem 0.5rem; border-width: 1px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.01em; line-height: 1.2; }
.pd-badges .pd-share-row .available-product-share-button svg { width: 0.95rem; height: 0.95rem; }
.pd-badges .pd-share-row .available-product-share-status { font-size: 0.74rem; }
.pd-badges { gap: 0.35rem; }
.pd-badges .pd-share-row .available-product-share-button { padding: 0.22rem 0.55rem 0.22rem 0.45rem; white-space: nowrap; }
@media (max-width: 400px) {
  .pd-badges .pd-share-row .available-product-share-button svg { display: none; }
  .pd-badges .pd-share-row .available-product-share-button { padding: 0.22rem 0.6rem; }
}

/* ===================================================================================================== */
/* Customer reviews (product pages)                                                                         */
/* ===================================================================================================== */
.pd-reviews { max-width: 64rem; margin: 0 auto; padding: 0.4rem 1rem 1.2rem; }
.pd-rating { justify-self: start; padding: 0; border: 0; background: transparent; color: #b97800; font: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer; }
.rv { display: grid; gap: 1rem; padding: 1.1rem; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); }
.rv-title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.rv-note { margin: 0; color: #68766e; font-size: 0.92rem; }
.rv-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.rv-score { display: grid; justify-items: center; gap: 0.2rem; }
.rv-average { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.rv-score small { color: #68766e; font-size: 0.8rem; }
.rv-stars { display: inline-flex; gap: 0.08rem; font-size: 1.05rem; line-height: 1; }
.rv-star { color: #d3d9d5; }
.rv-star.is-on { color: #f5b301; }
.rv-bars { display: grid; gap: 0.3rem; }
.rv-bar-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 2.6rem; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #4d5c54; }
.rv-track { height: 0.5rem; overflow: hidden; border-radius: 999px; background: #e9eeeb; }
.rv-fill { display: block; height: 100%; border-radius: inherit; background: #1f9d5c; }
.rv-bar-share { text-align: right; color: #68766e; }
.rv-write-button { width: 100%; min-height: 3rem; border: 1.5px solid #b9dfc9; border-radius: 14px; background: #f1faf5; color: #167144; font: inherit; font-weight: 800; cursor: pointer; }
.rv-form { display: grid; gap: 0.6rem; }
.rv-picker { display: flex; gap: 0.25rem; }
.rv-pick { padding: 0.1rem; border: 0; background: transparent; color: #d3d9d5; font-size: 2rem; line-height: 1; cursor: pointer; }
.rv-pick.is-on { color: #f5b301; }
.rv-text { width: 100%; padding: 0.7rem 0.8rem; border: 1px solid #dfe7e2; border-radius: 12px; background: #fff; color: inherit; font: inherit; resize: vertical; }
.rv-counter { justify-self: end; color: #68766e; }
.rv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.rv-remove { margin-left: auto; padding: 0.4rem; border: 0; background: transparent; color: #b4382d; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.rv-list { display: grid; }
.rv-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 0.75rem; padding: 1rem 0; border-top: 1px solid #edf1ee; }
.rv-face { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; overflow: hidden; border-radius: 50%; background: #e4ece7; color: #3a4a42; font-weight: 800; }
.rv-face.has-avatar { color: #fff; }
.rv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.1rem 0.5rem; }
.rv-who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; }
.rv-verified { display: inline-flex; align-items: center; gap: 0.2rem; color: #167144; font-size: 0.76rem; font-weight: 700; }
.rv-check { width: 0.95rem; height: 0.95rem; fill: currentColor; }
.rv-head .rv-stars { grid-column: 1; font-size: 0.95rem; }
.rv-date { grid-column: 2; grid-row: 1 / span 2; color: #68766e; font-size: 0.78rem; text-align: right; }
.rv-body { grid-column: 2; margin: 0.2rem 0 0; color: #3f4f46; font-size: 0.93rem; line-height: 1.5; overflow-wrap: anywhere; }
html[data-scheme="dark"] .rv { background: #161c19; }
html[data-scheme="dark"] .rv-card { border-color: rgb(255 255 255 / 10%); }
html[data-scheme="dark"] .rv-body, html[data-scheme="dark"] .rv-bar-row { color: #b6c4bc; }
html[data-scheme="dark"] .rv-text { background: #101512; border-color: rgb(255 255 255 / 12%); }
html[data-scheme="dark"] .rv-write-button { background: #17261f; border-color: rgb(102 214 168 / 35%); color: #66d6a8; }
@media (max-width: 420px) { .rv-summary { grid-template-columns: 1fr; } .rv-score { justify-items: start; grid-template-columns: auto auto; align-items: end; gap: 0.2rem 0.7rem; } }

/* Admin: customer reviews */
.available-admin-reviews { display: grid; gap: 0.7rem; }
.available-admin-review { display: grid; gap: 0.4rem; padding: 0.8rem 0.9rem; border: 1px solid #dfe7e2; border-radius: 14px; background: #fff; }
.available-admin-review.is-hidden { opacity: 0.6; background: #f7f7f5; }
.available-admin-review-head { display: grid; gap: 0.1rem; }
.available-admin-review-head strong { color: #b97800; font-size: 0.95rem; }
.available-admin-review p { margin: 0; overflow-wrap: anywhere; }
.available-admin-review .btn { justify-self: start; }

/* ===================================================================================================== */
/* PreOrder product page: full screen, with the total and order buttons pinned at the bottom                */
/* ===================================================================================================== */
dialog.batch-dialog[id^="panel-"] { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: var(--page-bg, #f2f4f3); color: var(--ink, #172821); box-shadow: none; }
dialog.batch-dialog[id^="panel-"]::backdrop { background: rgb(0 0 0 / 35%); backdrop-filter: none; }
dialog.batch-dialog[id^="panel-"][open] { display: flex; flex-direction: column; animation: pd-fade 0.14s ease-out; }
dialog.batch-dialog[id^="panel-"] > .batch-dialog-header { display: grid; grid-template-columns: minmax(5rem, 1fr) auto minmax(5rem, 1fr); align-items: center; gap: 0.5rem; flex: none; min-height: 3.4rem; margin: 0; padding: calc(env(safe-area-inset-top, 0px) + 0.3rem) 0.6rem 0.3rem; border: 0; border-bottom: 1px solid rgb(0 0 0 / 6%); background: var(--page-bg, #f2f4f3); }
dialog.batch-dialog[id^="panel-"] .batch-dialog-heading { grid-column: 2; grid-row: 1; min-width: 0; text-align: center; }
dialog.batch-dialog[id^="panel-"] .panel-title { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: 0; }
dialog.batch-dialog[id^="panel-"] .panel-subtitle { display: none; }
dialog.batch-dialog[id^="panel-"] .close-batch-dialog { grid-column: 1; grid-row: 1; justify-self: start; min-height: 2.75rem; padding: 0 0.7rem 0 0.2rem; border: 0; border-radius: 12px; background: transparent; box-shadow: none; color: var(--green-action, #087447); font-size: 1.02rem; font-weight: 600; }
dialog.batch-dialog[id^="panel-"] .closed-note { flex: none; margin: 0; padding: 0.5rem 1rem; }
dialog.batch-dialog[id^="panel-"] .batch-dialog-content { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 0; gap: 0; }
dialog.batch-dialog[id^="panel-"] .order-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
dialog.batch-dialog[id^="panel-"] .order-form-scroll { display: grid; flex: 1 1 auto; align-content: start; gap: 0.9rem; width: 100%; max-width: 64rem; margin: 0 auto; padding: 0.6rem 1rem 1.4rem; overflow-y: auto; overscroll-behavior: contain; }
dialog.batch-dialog[id^="panel-"] .dialog-product, dialog.batch-dialog[id^="panel-"] .current-orders { border: 0; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); }
dialog.batch-dialog[id^="panel-"] .order-form-scroll > h3 { margin: 0.2rem 0 0; font-size: 1.15rem; font-weight: 800; }
dialog.batch-dialog[id^="panel-"] .related-products { padding: 0.2rem 0 0; }

/* the order bar */
dialog.batch-dialog[id^="panel-"] .order-bar { display: grid; gap: 0.5rem; flex: none; width: 100%; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e3eae5; background: #fff; box-shadow: 0 -14px 30px -22px rgb(14 38 27 / 55%); }
dialog.batch-dialog[id^="panel-"] .order-bar > * { width: min(100%, 40rem); margin-inline: auto; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-block: 0; padding: 0; border: 0; background: transparent; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-total-value { color: var(--green-action, #087447); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit { min-height: 3.1rem; border-radius: 14px; font-size: 0.98rem; font-weight: 800; }
dialog.batch-dialog[id^="panel-"] .order-bar .legal-order-acknowledgement { margin-block: 0; font-size: 0.7rem; line-height: 1.4; }
dialog.batch-dialog[id^="panel-"] .order-bar .payment-notice { margin-block: 0; font-size: 0.8rem; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"], html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] > .batch-dialog-header { background: #050807; color: #e8efeb; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .dialog-product, html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .current-orders, html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-bar { background: #161c19; border-color: rgb(255 255 255 / 10%); }
dialog.batch-dialog[id^="panel-"] .close-batch-dialog { display: inline-flex; align-items: center; white-space: nowrap; width: auto; }
dialog.batch-dialog[id^="panel-"] .order-bar { grid-template-columns: 1fr 1fr; column-gap: 0.6rem; row-gap: 0.45rem; }
dialog.batch-dialog[id^="panel-"] .order-bar > * { width: 100%; margin-inline: 0; }
dialog.batch-dialog[id^="panel-"] .order-bar > .order-total, dialog.batch-dialog[id^="panel-"] .order-bar > .referral-credit-option, dialog.batch-dialog[id^="panel-"] .order-bar > .referral-credit-summary,
dialog.batch-dialog[id^="panel-"] .order-bar > .payment-notice, dialog.batch-dialog[id^="panel-"] .order-bar > .legal-order-acknowledgement, dialog.batch-dialog[id^="panel-"] .order-bar > .form-error { grid-column: 1 / -1; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit { min-height: 2.9rem; padding: 0.35rem 0.5rem; font-size: 0.86rem; gap: 0.35rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-help { font-size: 0.66rem; }

/* ===================================================================================================== */
/* PreOrder page polish: close button, tighter intro, premium order buttons, reviews card and page        */
/* ===================================================================================================== */
dialog.batch-dialog[id^="panel-"] > .batch-dialog-header .pd-close-corner { grid-column: 3; grid-row: 1; justify-self: end; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 6%); color: inherit; cursor: pointer; }
.pd-close-corner .order-submit-svg { width: 1.2rem; height: 1.2rem; }
.order-intro { display: grid; gap: 0.35rem; }
dialog.batch-dialog[id^="panel-"] .order-intro > h3 { margin: 0.2rem 0 0; font-size: 1.15rem; font-weight: 800; }
dialog.batch-dialog[id^="panel-"] .order-intro > .help, dialog.batch-dialog[id^="panel-"] .order-intro > .preorder-shipping-disclosure { margin: 0; }
dialog.batch-dialog[id^="panel-"] .order-intro > .preorder-shipping-disclosure { padding: 0.5rem 0.75rem; font-size: 0.8rem; }

.order-submit-svg { flex: none; width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
dialog.batch-dialog[id^="panel-"] .order-bar { grid-template-columns: 1fr; row-gap: 0.55rem; }
dialog.batch-dialog[id^="panel-"] .order-bar > * { grid-column: 1 / -1; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit { display: flex; align-items: center; justify-content: center; gap: 0.8rem; width: 100%; margin: 0; text-align: left; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-copy { align-items: flex-start; gap: 0.1rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-later { min-height: 3.6rem; padding: 0.5rem 1rem; border: 0; border-radius: 16px; background: linear-gradient(135deg, #0a8a5f, #076a4a); color: #fff; box-shadow: 0 12px 22px -14px rgb(7 106 74 / 85%); }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-later .order-submit-label { font-size: 1.08rem; font-weight: 800; letter-spacing: 0.01em; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-later .order-submit-help { color: #c9f3e2; font-size: 0.78rem; font-weight: 600; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-later .order-submit-svg { width: 1.6rem; height: 1.6rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now { min-height: 3.1rem; padding: 0.4rem 1rem; border: 1.5px solid #b9dfc9; border-radius: 16px; background: #f1faf5; color: #0a7a52; box-shadow: none; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now .order-submit-label { font-size: 0.95rem; font-weight: 800; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now .order-submit-help { color: #4d6f60; font-size: 0.74rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now:disabled { border-color: #dfe5e2; background: #f3f5f4; color: #8a968f; opacity: 1; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now:disabled .order-submit-help { color: #9aa5a0; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit:disabled:not(.order-submit-now) { opacity: 0.7; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now { border-color: rgb(102 214 168 / 35%); background: #17261f; color: #66d6a8; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now:disabled { border-color: rgb(255 255 255 / 10%); background: #1c2220; color: #7d8b84; }
html[data-scheme="dark"] .pd-close-corner { background: rgb(255 255 255 / 10%); }

/* reviews: a short card on the page, the full reviews open in their own page */
.rv-summary-card { display: flex; align-items: center; gap: 0.85rem; width: 100%; padding: 0.95rem 1rem; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rv-summary-card:active { transform: scale(0.99); }
.rv-summary-stars { display: grid; place-items: center; min-width: 5.2rem; }
.rv-summary-stars .rv-stars { font-size: 1.1rem; }
.rv-summary-none { color: #c9d1cc; font-size: 1.5rem; line-height: 1; }
.rv-summary-copy { display: grid; flex: 1; gap: 0.1rem; min-width: 0; }
.rv-summary-copy strong { font-size: 1rem; font-weight: 800; }
.rv-summary-copy small { color: #68766e; font-size: 0.82rem; }
.rv-summary-chevron { color: #8a968f; font-size: 1.6rem; line-height: 1; }
.pd-reviews { padding-block: 0.2rem; }
dialog.rv-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--page-bg, #f2f4f3); color: var(--ink, #172821); overflow: hidden; }
dialog.rv-dialog[open] { display: flex; flex-direction: column; animation: rv-up 0.3s cubic-bezier(0.22, 0.8, 0.2, 1); }
dialog.rv-dialog::backdrop { background: rgb(0 0 0 / 35%); }
@keyframes rv-up { from { transform: translateY(100%); } to { transform: none; } }
.rv-dialog-header { display: grid; grid-template-columns: minmax(5rem, 1fr) auto minmax(5rem, 1fr); align-items: center; flex: none; min-height: 3.4rem; padding: calc(env(safe-area-inset-top, 0px) + 0.3rem) 0.6rem 0.3rem; border-bottom: 1px solid rgb(0 0 0 / 6%); }
.rv-dialog-title { margin: 0; font-size: 1rem; font-weight: 800; }
.rv-dialog-back { justify-self: start; min-height: 2.75rem; padding: 0 0.7rem 0 0.2rem; border: 0; background: transparent; color: var(--green-action, #087447); font: inherit; font-size: 1.02rem; font-weight: 600; cursor: pointer; }
.rv-dialog-close { grid-column: 3; justify-self: end; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 6%); color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rv-dialog-body { flex: 1 1 auto; width: 100%; max-width: 44rem; margin: 0 auto; padding: 0.8rem 1rem calc(1.4rem + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.rv-dialog-body .rv-title { display: none; }
html[data-scheme="dark"] .rv-summary-card { background: #161c19; }
html[data-scheme="dark"] .rv-summary-copy small { color: #9db0a6; }
html[data-scheme="dark"] .rv-dialog-close { background: rgb(255 255 255 / 10%); }

/* compact order bar: total on one line, the two order buttons side by side */
dialog.batch-dialog[id^="panel-"] .order-bar { grid-template-columns: 1fr 1fr; gap: 0.45rem 0.6rem; padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom, 0px)); }
dialog.batch-dialog[id^="panel-"] .order-bar > .order-total, dialog.batch-dialog[id^="panel-"] .order-bar > .referral-credit-option, dialog.batch-dialog[id^="panel-"] .order-bar > .referral-credit-summary,
dialog.batch-dialog[id^="panel-"] .order-bar > .payment-notice, dialog.batch-dialog[id^="panel-"] .order-bar > .legal-order-acknowledgement, dialog.batch-dialog[id^="panel-"] .order-bar > .form-error { grid-column: 1 / -1; }
dialog.batch-dialog[id^="panel-"] .order-bar > .order-submit { grid-column: auto; min-width: 0; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-total-value { font-size: 1.35rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit { gap: 0.55rem; justify-content: flex-start; padding: 0.4rem 0.8rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-later { min-height: 3.1rem; border-radius: 14px; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now { min-height: 3.1rem; border-radius: 14px; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-later .order-submit-label, dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now .order-submit-label { font-size: 1rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-later .order-submit-help, dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-now .order-submit-help { font-size: 0.74rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-submit-later .order-submit-svg { width: 1.4rem; height: 1.4rem; }
dialog.batch-dialog[id^="panel-"] .order-bar .legal-order-acknowledgement { font-size: 0.64rem; line-height: 1.3; opacity: 0.85; }

/* product page: write-a-review card, then the first reviews and "View all" */
.rv-summary-cta { flex: none; padding: 0.5rem 0.8rem; border: 1.5px solid #b9dfc9; border-radius: 12px; background: #f1faf5; color: #167144; font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.rv-summary-cta[hidden] { display: none; }
.rv-card-wrap { display: grid; gap: 0.6rem; }
.rv-preview { display: grid; gap: 0.6rem; }
.rv-preview .rv-card { padding: 0.9rem 1rem; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); }
.rv-preview .rv-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-view-all { width: 100%; min-height: 2.9rem; border: 1.5px solid #b9dfc9; border-radius: 14px; background: transparent; color: #167144; font: inherit; font-weight: 800; cursor: pointer; }
.rv-view-all[hidden] { display: none; }
html[data-scheme="dark"] .rv-preview .rv-card { background: #161c19; }
html[data-scheme="dark"] .rv-summary-cta { background: #17261f; border-color: rgb(102 214 168 / 35%); color: #66d6a8; }
dialog.batch-dialog[id^="panel-"] .order-form-scroll > * { min-width: 0; max-width: 100%; }
.rv-card-wrap, .rv-preview, .rv-preview .rv-card { min-width: 0; }
.rv-summary-card { gap: 0.6rem; padding: 0.85rem 0.9rem; }
.rv-summary-stars { display: flex; }
.rv-summary-cta { white-space: normal; text-align: center; max-width: 7rem; }
dialog.batch-dialog[id^="panel-"] .pd-reviews { width: 100%; max-width: none; margin: 0; padding: 0; }

/* ===================================================================================================== */
/* Ghana Shop orders: status pills, recent-order cards on the cart page, and the Order History cards       */
/* ===================================================================================================== */
.order-pill { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 1.6rem; padding: 0.2rem 0.7rem 0.2rem 0.55rem; border-radius: 999px; background: #eef4ef; color: #41644d; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.order-pill::before { flex: none; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; content: ""; }
.order-pill.is-pay { background: #fff3dc; color: #8a5a00; }
.order-pill.is-review { background: #e8f0ff; color: #2f56a0; }
.order-pill.is-progress { background: #e6f5ec; color: #176a42; }
.order-pill.is-ready { background: #e3f1ff; color: #1f5f9a; }
.order-pill.is-done { background: #e2f5e8; color: #14693d; }
.order-pill.is-issue { background: #fdeaea; color: #a03030; }
.order-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; color: #5a6a61; font-size: 0.78rem; font-weight: 600; }
.order-chip-icon { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.order-thumb-more { position: absolute; right: 0.3rem; bottom: 0.3rem; padding: 0.1rem 0.42rem; border-radius: 999px; background: rgb(0 0 0 / 62%); color: #fff; font-size: 0.68rem; font-weight: 800; line-height: 1.3; }
.order-pay-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.2rem; border: 0; border-radius: 12px; background: linear-gradient(135deg, #0a8a5f, #076a4a); color: #fff; font: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 18px -12px rgb(7 106 74 / 80%); }
.order-pay-button:disabled { opacity: 0.6; cursor: progress; }
.order-pay-icon { flex: none; width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* cart page: latest orders as compact cards */
.available-orders .available-my-orders { gap: 0.7rem; }
.recent-order { position: relative; display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0.2rem 0.85rem; padding: 0.9rem; border: 1px solid #e6ece8; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 50%); }
.recent-order.is-pay { border-color: #f3dfb4; background: #fffdf8; }
.recent-order-thumb { position: relative; display: grid; place-items: center; align-self: start; width: 4.4rem; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #f6f6f1; }
.recent-order-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recent-order-thumb.is-placeholder, .available-history-order-media.is-placeholder { background: linear-gradient(145deg, #f4efe6, #edf5ef); }
.recent-order-body { display: grid; gap: 0.15rem; min-width: 0; }
.recent-order-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.recent-order-id { color: #718077; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.recent-order-name { display: block; overflow: hidden; margin-top: 0.15rem; color: #1f352a; font-size: 0.98rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.recent-order-meta { color: #69776e; font-size: 0.8rem; }
.recent-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.4rem; }
.recent-order-total { color: #173d31; font-size: 1.02rem; font-weight: 800; white-space: nowrap; }
.recent-order > .order-pay-button { grid-column: 1 / -1; width: 100%; margin-top: 0.55rem; }
.recent-order-note { grid-column: 1 / -1; margin: 0.55rem 0 0; padding: 0.55rem 0.7rem; border-radius: 10px; background: #eef3ff; color: #35558f; font-size: 0.78rem; line-height: 1.4; }
.recent-orders-more { display: block; padding: 0.75rem; border-radius: 12px; background: #f1f6f2; color: #167144; font-size: 0.86rem; font-weight: 800; text-align: center; text-decoration: none; }
.recent-orders-empty { display: grid; justify-items: center; gap: 0.4rem; padding: 1.4rem 1rem; border: 1.5px dashed #d5e3d9; border-radius: 16px; color: #68766e; text-align: center; }
.recent-orders-empty p { margin: 0; font-size: 0.88rem; }
.recent-orders-empty-icon { width: 2rem; height: 2rem; fill: none; stroke: #8aa595; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* order history page */
.history-attention { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.9rem 1rem; border: 1px solid #f3dfb4; border-radius: 16px; background: #fff7e6; color: #6f4b00; }
.history-attention-icon { flex: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.history-attention strong { display: block; font-size: 0.95rem; }
.history-attention span { font-size: 0.82rem; line-height: 1.4; }
.available-history-order { padding: 1rem 1.1rem; border-radius: 18px; border-color: #e6ece8; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 50%); }
.available-history-order.is-pay { border-color: #f3dfb4; }
.history-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; }
.history-order-id { display: grid; gap: 0.1rem; min-width: 0; }
.available-history-order-date { margin-top: 0; }
.available-history-order-media { position: relative; }
.available-history-order-copy h4 { display: -webkit-box; overflow: hidden; margin: 0 0 0.15rem; font-size: 1.02rem; line-height: 1.25; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.available-history-order-copy .order-chip { margin-top: 0.45rem; }
.available-history-order-side { align-content: center; gap: 0.1rem; }
.available-history-order-side small { color: #849087; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.available-history-order-total { font-size: 1.15rem; font-weight: 800; }
.available-order-progress { margin-top: 1.1rem; }
.available-order-progress li { grid-template-rows: 1.1rem auto; font-size: 0.7rem; }
.available-order-progress li::before { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; color: #fff; font-size: 0.62rem; font-weight: 900; line-height: 1; }
.available-order-progress li.is-complete::before { content: "✓"; }
.available-order-progress li:not(:last-child)::after { top: 0.5rem; left: 1.3rem; }
.available-order-progress li.is-current::before { box-shadow: 0 0 0 4px #dff0e4; }
.available-history-order-actions { justify-content: space-between; }
.available-history-order-actions .available-history-buy-again { min-height: 2.5rem; padding: 0.4rem 1rem; border: 1.5px solid #b9dfc9; border-radius: 12px; background: #f1faf5; color: #167144; font-size: 0.85rem; font-weight: 800; }
.available-history-order-actions .available-history-buy-again:hover { background: #e4f4ea; }
.available-history-order-actions .order-pay-button { min-height: 2.6rem; }
.history-order-note { color: #35558f; font-size: 0.8rem; font-weight: 700; }
.available-history-order .available-order-warning { margin: 0.7rem 0 0; }
@media (min-width: 761px) {
  .available-history-order-main { grid-template-columns: 5.75rem minmax(0, 1fr) auto; }
  .available-history-order-media { width: 5.75rem; border-radius: 14px; }
}
@media (max-width: 760px) {
  .available-history-order { padding: 0.85rem; }
  .history-order-head { margin-bottom: 0.65rem; }
  .available-history-order-side { flex-direction: row; align-items: baseline; gap: 0.4rem; }
  .available-history-order-actions .order-pay-button { flex: 1; }
}
html[data-scheme="dark"] .recent-order, html[data-scheme="dark"] .available-history-order { background: #161c19; border-color: rgb(255 255 255 / 10%); }
html[data-scheme="dark"] .recent-order.is-pay { background: #1d1a12; border-color: rgb(243 223 180 / 28%); }
html[data-scheme="dark"] .recent-order-name, html[data-scheme="dark"] .recent-order-total { color: #e8efe9; }
html[data-scheme="dark"] .recent-order-meta, html[data-scheme="dark"] .order-chip { color: #9db0a6; }
html[data-scheme="dark"] .order-pill { background: #1f2b25; color: #b7d4c3; }
html[data-scheme="dark"] .order-pill.is-pay { background: #3a2c0c; color: #f5cf7e; }
html[data-scheme="dark"] .order-pill.is-review { background: #1b2740; color: #a9c2f2; }
html[data-scheme="dark"] .order-pill.is-issue { background: #3a1818; color: #f2a7a7; }
html[data-scheme="dark"] .history-attention { background: #2a2210; border-color: rgb(243 223 180 / 28%); color: #f5cf7e; }
html[data-scheme="dark"] .recent-orders-more { background: #17261f; color: #66d6a8; }
.recent-order-thumb.is-placeholder::before { width: 1.6rem; height: 1.6rem; background: #6a8874; content: ""; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 20'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 20'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Ghana Shop: the sort menu must show "Recommended" in full, and the new row badges */
.available-catalog-heading select#available-sort { min-width: 9.5rem; }
.available-home-row .available-featured-label strong { font-size: 0.8rem; }
.header-saved-button svg { stroke-width: 1.9; }
.header-saved-button:hover svg, .header-saved-button:focus-visible svg { fill: rgb(255 255 255 / 25%); }

/* Ghana Shop catalogue heading on phones: the title on its own line, then Location and Sort side by side */
@media (max-width: 760px) {
  body:not(.page-admin) .available-catalog-heading { flex-wrap: wrap; align-items: center; gap: 0.5rem; }
  body:not(.page-admin) .available-catalog-heading h2 { flex: 1 0 100%; white-space: normal; overflow: visible; }
  body:not(.page-admin) .available-catalog-heading label { flex: 1 1 0; min-width: 0; justify-content: space-between; font-size: 0.78rem; }
  body:not(.page-admin) .available-catalog-heading select, body:not(.page-admin) .available-catalog-heading select#available-sort { flex: 1; min-width: 0; max-width: none; font-size: 0.8rem; }
}

/* ===================================================================================================== */
/* Invite & Earn card (Ghana Shop home and cart), "use your credit" chooser, preorder offer, saved hints    */
/* ===================================================================================================== */
.invite-card { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; padding: 1.1rem 1.2rem; border: 1px solid #f0dcae; border-radius: 20px; background: linear-gradient(135deg, #fff8e8, #fffdf7); box-shadow: 0 8px 22px -18px rgb(110 78 0 / 55%); }
.invite-card[hidden] { display: none; }
.invite-card-icon { display: grid; flex: none; place-items: center; width: 3rem; height: 3rem; border-radius: 16px; background: #f6c453; color: #4a3200; }
.invite-card-icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.invite-card-copy { flex: 1; min-width: 0; }
.invite-card-copy h2 { margin: 0; color: #4a3200; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.invite-card-copy p { margin: 0.25rem 0 0; color: #6b5420; font-size: 0.86rem; line-height: 1.45; }
.invite-card-button { flex: none; min-height: 2.8rem; padding: 0 1.1rem; border: 0; border-radius: 12px; background: #176344; color: #fff; font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
.invite-card--compact { margin: 1rem 0; padding: 0.9rem 1rem; }
.invite-card--compact .invite-card-copy p { display: none; }
@media (max-width: 640px) {
  .invite-card { flex-wrap: wrap; padding: 1rem; }
  .invite-card-copy { flex-basis: calc(100% - 4rem); }
  .invite-card-button { width: 100%; }
  .invite-card--compact .invite-card-button { width: 100%; }
}
html[data-scheme="dark"] .invite-card { background: #231d0d; border-color: rgb(246 196 83 / 28%); }
html[data-scheme="dark"] .invite-card-copy h2 { color: #f6d98a; }
html[data-scheme="dark"] .invite-card-copy p { color: #cdb677; }
html[data-scheme="dark"] .invite-card-button { background: #1f9d5c; }

dialog.credit-chooser { width: min(92vw, 24rem); padding: 1.2rem; border: 0; border-radius: 22px; background: #fff; color: #172821; box-shadow: 0 24px 60px rgb(0 0 0 / 30%); }
dialog.credit-chooser::backdrop { background: rgb(0 0 0 / 45%); }
dialog.credit-chooser h2 { margin: 0; font-size: 1.2rem; }
.credit-chooser-note { margin: 0.35rem 0 0.9rem; color: #5b6a62; font-size: 0.9rem; line-height: 1.45; }
.credit-chooser-choice { display: grid; gap: 0.15rem; width: 100%; margin-top: 0.55rem; padding: 0.9rem 1rem; border: 1.5px solid #cfe5d7; border-radius: 14px; background: #f3faf6; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.credit-chooser-choice strong { color: #167144; font-size: 1.02rem; }
.credit-chooser-choice span { color: #5b6a62; font-size: 0.82rem; }
.credit-chooser-cancel { width: 100%; margin-top: 0.7rem; padding: 0.7rem; border: 0; background: transparent; color: #5b6a62; font: inherit; font-weight: 700; cursor: pointer; }
html[data-scheme="dark"] dialog.credit-chooser { background: #161c19; color: #e8efe9; }
html[data-scheme="dark"] .credit-chooser-choice { background: #17261f; border-color: rgb(102 214 168 / 30%); }
html[data-scheme="dark"] .credit-chooser-choice strong { color: #66d6a8; }

.pd-preorder-offer { display: grid; gap: 0.35rem; margin-top: 0.8rem; padding: 0.9rem 1rem; border: 1.5px dashed #b9dfc9; border-radius: 16px; background: #f1faf5; }
.pd-preorder-offer strong { color: #14693d; font-size: 0.98rem; }
.pd-preorder-offer span { color: #4d5c54; font-size: 0.84rem; line-height: 1.45; }
.pd-preorder-button { justify-self: start; min-height: 2.75rem; margin-top: 0.3rem; padding: 0 1.2rem; border-radius: 12px; font-weight: 800; }
html[data-scheme="dark"] .pd-preorder-offer { background: #17261f; border-color: rgb(102 214 168 / 35%); }
html[data-scheme="dark"] .pd-preorder-offer span { color: #b6c4bc; }

.saved-item-hint { display: inline-flex; align-items: center; width: fit-content; padding: 0.15rem 0.55rem; border-radius: 999px; background: #fff1d6; color: #8a5a00; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
html[data-scheme="dark"] .saved-item-hint { background: #3a2c0c; color: #f5cf7e; }
.header-saved-button { position: relative; }
.saved-badge { position: absolute; top: -0.15rem; right: -0.15rem; display: grid; place-items: center; min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem; border: 2px solid #123f31; border-radius: 999px; background: #f6a21a; color: #1d1300; font-size: 0.62rem; font-weight: 900; line-height: 1; }

/* ===================================================================================================== */
/* Home rows (Popular, Featured, New arrivals, Back in stock, Best sellers): six products in ONE line.       */
/* On a wide screen all six fit; as the screen narrows the row swipes sideways instead of wrapping.        */
/* ===================================================================================================== */
.available-featured-products {
  display: flex; grid-template-columns: none; gap: 0.6rem; overflow-x: auto; overflow-y: hidden;
  padding: 0.15rem 0.15rem 0.7rem; scroll-snap-type: x proximity; scroll-padding-inline: 0.15rem;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; touch-action: pan-x pan-y pinch-zoom;
}
.available-featured-products > .available-featured-card {
  flex: 0 0 max(9.25rem, calc((100% - 3rem) / 6)); min-width: 0; scroll-snap-align: start;
}
.available-featured-products::-webkit-scrollbar { height: 6px; }
.available-featured-products::-webkit-scrollbar-thumb { border-radius: 999px; background: rgb(0 0 0 / 18%); }
@media (hover: none) { .available-featured-products { scrollbar-width: none; } .available-featured-products::-webkit-scrollbar { display: none; } }
body:not([data-view="preorders"]) #preorder-new-arrivals { display: none !important; }

/* ===================================================================================================== */
/* Browsing bar: count, Sort menu, Filter drawer, Grid/List switch, active-filter chips                     */
/* ===================================================================================================== */
.is-replaced { display: none !important; }
.browse-host { margin: 0.6rem 0 0.9rem; }
.browse-wrap[hidden] { display: none; }
.browse-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.browse-count { flex: 1 1 8rem; min-width: 0; margin: 0; color: #5b6a62; font-size: 0.86rem; font-weight: 700; }
.browse-controls { display: flex; flex: 0 1 auto; align-items: center; gap: 0.45rem; max-width: 100%; }
.browse-pill { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; min-height: 2.6rem; padding: 0 0.85rem; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; color: #173d31; font: inherit; font-size: 0.86rem; font-weight: 800; cursor: pointer; box-shadow: 0 3px 10px -8px rgb(14 38 27 / 50%); }
.browse-pill:hover { border-color: #9fc3ae; }
.browse-pill.is-active { border-color: #167144; background: #f1faf5; color: #167144; }
.browse-pill-value { min-width: 0; max-width: 9rem; overflow: hidden; color: #167144; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.browse-pill-label { flex: none; }
.browse-sort .browse-pill-label { display: none; }
@media (min-width: 761px) { .browse-sort .browse-pill-label { display: inline; } .browse-sort .browse-pill-label::after { content: ":"; } }
.browse-icon { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.browse-chevron { width: 0.95rem; height: 0.95rem; opacity: 0.6; }
.browse-badge { display: grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 999px; background: #167144; color: #fff; font-size: 0.68rem; font-weight: 900; line-height: 1; }
.browse-badge[hidden] { display: none; }
.browse-view { display: inline-flex; padding: 0.2rem; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; }
.browse-view-button { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #68766e; cursor: pointer; }
.browse-view-button[aria-pressed="true"] { background: #167144; color: #fff; }

.browse-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.browse-chips[hidden] { display: none; }
.browse-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; padding: 0 0.5rem 0 0.75rem; border: 0; border-radius: 999px; background: #e6f4ec; color: #14693d; font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; }
.browse-chip-x { width: 0.8rem; height: 0.8rem; stroke-width: 2.4; }
.browse-chip-clear { padding: 0.3rem 0.4rem; border: 0; background: transparent; color: #5b6a62; font: inherit; font-size: 0.8rem; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* the sort menu: a small drop-down on a computer, a sheet on a phone */
dialog.browse-menu, dialog.browse-drawer { position: fixed; margin: 0; padding: 0; border: 0; background: #fff; color: #172821; box-shadow: 0 24px 60px rgb(0 0 0 / 28%); overflow: hidden; }
dialog.browse-menu::backdrop, dialog.browse-drawer::backdrop { background: rgb(0 0 0 / 30%); }
dialog.browse-menu { border-radius: 16px; }
dialog.browse-menu[open] { display: block; }
.browse-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0.9rem 0.4rem 1.1rem; }
.browse-menu-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.browse-close { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 6%); color: inherit; cursor: pointer; }
.browse-close .browse-icon { width: 1.05rem; height: 1.05rem; }
.browse-options { display: grid; gap: 0.1rem; padding: 0.2rem 0.5rem 0.6rem; }
.browse-option { display: flex; align-items: center; justify-content: space-between; min-height: 2.8rem; padding: 0 0.7rem; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.browse-option:hover { background: #f4f8f5; }
.browse-tick { width: 1.15rem; height: 1.15rem; fill: none; stroke: #167144; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.browse-option[aria-checked="true"] { color: #167144; font-weight: 800; }
.browse-option[aria-checked="true"] .browse-tick { opacity: 1; }

/* the filter drawer: a side panel on a computer, a sheet on a phone */
dialog.browse-drawer { inset: 0 0 0 auto; width: min(26rem, 100vw); height: 100%; max-height: none; border-radius: 22px 0 0 22px; }
dialog.browse-drawer[open] { display: flex; flex-direction: column; animation: browse-side 0.26s cubic-bezier(0.22, 0.8, 0.2, 1); }
@keyframes browse-side { from { transform: translateX(100%); } to { transform: none; } }
.browse-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.1rem 0.8rem; }
.browse-section { padding: 0.95rem 0; border-top: 1px solid #edf1ee; }
.browse-section:first-child { border-top: 0; }
.browse-section h3 { margin: 0 0 0.6rem; color: #47705a; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.browse-choices { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.browse-choice-chip { min-height: 2.4rem; padding: 0 0.95rem; border: 1.5px solid #dfe7e2; border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.browse-choice-chip[aria-pressed="true"] { border-color: #167144; background: #167144; color: #fff; }
.browse-price-pair { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; }
.browse-price-pair input { width: 100%; min-height: 2.7rem; padding: 0 0.8rem; border: 1px solid #dfe7e2; border-radius: 10px; background: #fff; color: inherit; font: inherit; }
.browse-dash { color: #68766e; font-size: 0.82rem; }
.browse-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.8rem; font-weight: 600; }
.browse-switch input { width: 1.3rem; height: 1.3rem; accent-color: #167144; }
.browse-foot { display: flex; flex: none; align-items: center; gap: 0.8rem; padding: 0.8rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #edf1ee; background: inherit; }
.browse-clear { padding: 0.5rem 0.2rem; border: 0; background: transparent; color: #5b6a62; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.browse-done { flex: 1; min-height: 3rem; border: 0; border-radius: 14px; background: linear-gradient(135deg, #0a8a5f, #076a4a); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

@media (max-width: 760px) {
  .browse-count { flex-basis: 100%; }
  .browse-controls { width: 100%; }
  .browse-sort { flex: 1 1 auto; justify-content: space-between; }
  .browse-pill-value { max-width: 7rem; }
  dialog.browse-menu, dialog.browse-drawer { inset: auto 0 0 0 !important; width: 100% !important; max-width: none; border-radius: 22px 22px 0 0; }
  dialog.browse-menu { max-height: 70vh; }
  dialog.browse-drawer { height: auto; max-height: 90vh; }
  dialog.browse-menu[open], dialog.browse-drawer[open] { animation: browse-up 0.26s cubic-bezier(0.22, 0.8, 0.2, 1); }
}
@keyframes browse-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.browse-menu[open], dialog.browse-drawer[open] { animation: none; } }

html[data-scheme="dark"] .browse-pill, html[data-scheme="dark"] .browse-view, html[data-scheme="dark"] dialog.browse-menu, html[data-scheme="dark"] dialog.browse-drawer, html[data-scheme="dark"] .browse-choice-chip, html[data-scheme="dark"] .browse-price-pair input { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efe9; }
html[data-scheme="dark"] .browse-pill.is-active { background: #17261f; border-color: rgb(102 214 168 / 40%); color: #66d6a8; }
html[data-scheme="dark"] .browse-pill-value, html[data-scheme="dark"] .browse-option[aria-checked="true"] { color: #66d6a8; }
html[data-scheme="dark"] .browse-chip { background: #17261f; color: #66d6a8; }
html[data-scheme="dark"] .browse-count, html[data-scheme="dark"] .browse-chip-clear, html[data-scheme="dark"] .browse-clear { color: #9db0a6; }
html[data-scheme="dark"] .browse-section, html[data-scheme="dark"] .browse-foot { border-color: rgb(255 255 255 / 10%); }
html[data-scheme="dark"] .browse-option:hover { background: #1c2420; }
html[data-scheme="dark"] .browse-section h3 { color: #8fd4b0; }
html[data-scheme="dark"] .browse-choice-chip[aria-pressed="true"] { background: #1f9d5c; border-color: #1f9d5c; color: #fff; }

/* Search suggestions */
.search-assist-host { position: relative; }
.search-assist { position: absolute; z-index: 60; top: calc(100% + 0.35rem); right: 0; left: 0; max-height: 18rem; overflow-y: auto; padding: 0.35rem; border: 1px solid #dfe7e2; border-radius: 14px; background: #fff; box-shadow: 0 16px 36px -14px rgb(14 38 27 / 40%); }
.search-assist[hidden] { display: none; }
.search-assist-head { display: flex; align-items: center; justify-content: space-between; padding: 0.35rem 0.6rem; color: #68766e; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.search-assist-head button { border: 0; background: transparent; color: #167144; font: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.search-assist-row { display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 2.6rem; padding: 0 0.6rem; border: 0; border-radius: 10px; background: transparent; color: #172821; font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer; }
.search-assist-row:hover, .search-assist-row.is-active { background: #f1f6f2; }
.search-assist-row.is-correction { color: #167144; font-weight: 800; }
.search-assist-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-assist-icon { flex: none; width: 1.05rem; height: 1.05rem; fill: none; stroke: #7a8a81; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-scheme="dark"] .search-assist { background: #161c19; border-color: rgb(255 255 255 / 12%); }
html[data-scheme="dark"] .search-assist-row { color: #e8efe9; }
html[data-scheme="dark"] .search-assist-row:hover, html[data-scheme="dark"] .search-assist-row.is-active { background: #1c2420; }

/* Ghana Shop search: the focus ring goes on the whole search pill, not on the text box inside it */
.available-search:focus-within { border-color: #167144; box-shadow: 0 0 0 3px rgb(22 113 68 / 16%); }
.available-search input:focus, .available-search input:focus-visible { outline: 0; box-shadow: none; }
.available-search { margin-bottom: 0.4rem; }
.search-assist-host { position: relative; }
.search-assist-host > .available-search { margin-bottom: 0; }
.search-assist-host:has(> .available-search) { margin-bottom: 0.6rem; }

/* price on the home-row cards (Popular, New posts, Featured, New arrivals, Back in stock, Best sellers) */
.available-featured-price { display: block; margin: 0.1rem 0.5rem 0.05rem; padding: 0; color: #167144; font-size: 0.86rem; font-weight: 800; line-height: 1.2; }
html[data-scheme="dark"] .available-featured-price { color: #66d6a8; }

/* Phones: a tighter PreOrder list header (no description, no result count above the bar) */
@media (max-width: 760px) {
  .browse-count { display: none; }
  #orders-section > .section-heading > div > .help { display: none; }
  #orders-section > .section-heading { gap: 0.55rem; margin-bottom: 0.35rem; }
  #orders-section .active-products-title-row { margin-bottom: 0; }
  #orders-section .browse-host { margin-top: 0.4rem; }
}

/* Smaller browsing bar: a shorter Sort, a wider Grid/List switch */
.browse-pill { min-height: 2.3rem; gap: 0.35rem; padding: 0 0.7rem; font-size: 0.8rem; }
.browse-pill .browse-icon { width: 1rem; height: 1rem; }
.browse-sort { max-width: 11rem; }
.browse-sort .browse-pill-value { max-width: 6.2rem; font-size: 0.78rem; }
.browse-view { padding: 0.15rem; }
.browse-view-button { width: 2.9rem; height: 2rem; border-radius: 999px; }
.browse-view-button .browse-icon { width: 1.05rem; height: 1.05rem; }
.browse-badge { min-width: 1.05rem; height: 1.05rem; font-size: 0.64rem; }
@media (max-width: 760px) {
  .browse-controls { gap: 0.4rem; }
  .browse-sort { flex: 0 1 auto; justify-content: flex-start; }
  .browse-sort .browse-pill-value { max-width: 4.6rem; }
  .browse-filter { flex: none; }
  .browse-view { margin-left: auto; }
}

/* Drifting Popular / Featured rows: soft edges, no snapping while they move, hands always win */
.available-featured-products.is-flowing { scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.available-featured-products.is-flowing::-webkit-scrollbar { display: none; }
.available-featured-products.is-flowing > .available-featured-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.available-featured-products.is-flowing:hover > .available-featured-card:hover { transform: translateY(-3px) scale(1.02); }
@media (prefers-reduced-motion: reduce) { .available-featured-products.is-flowing { -webkit-mask-image: none; mask-image: none; } }

/* Phones: Sort and Filter share the free space; the Grid/List switch keeps its size (no empty gap between them) */
@media (max-width: 760px) {
  .browse-sort { flex: 1.4 1 0; max-width: none; justify-content: space-between; }
  .browse-filter { flex: 1 1 0; justify-content: center; }
  .browse-view { flex: none; margin-left: 0; }
  .browse-sort .browse-pill-value { max-width: none; flex: 1; text-align: left; }
}

/* ===================================================================================================== */
/* Product catalogue: cards say only what matters, bigger grids, lighter buttons, sticky bar, Show more   */
/* ===================================================================================================== */

/* 1. Say only what is worth saying */
#batch-list > .batch.has-no-cutoff .batch-date { display: none !important; }
#batch-list > .batch:not(.is-closed):not(.is-closing-soon) .product-cover .pill,
#batch-list > .batch:not(.is-closed):not(.is-closing-soon) .detail-status .pill { display: none !important; }
#batch-list > .batch.has-no-orders .batch-count { display: none; }
#batch-list > .batch.is-closing-soon .batch-date, #batch-list > .batch.is-closing-soon .detail-status .batch-date { background: #fff1d6; color: #8a5a00; font-weight: 800; }
.batch-rating { margin: 0.1rem 0 0; color: #b97800; font-size: 0.82rem; font-weight: 800; line-height: 1.3; }
.batch-rating[hidden] { display: none; }
.available-product-card .product-cover .pill.is-soon { background: #fff1d6; color: #8a5a00; }

/* 2. The whole card is a button; the order button is lighter */
.batch { cursor: pointer; }
.batch > .batch-toggle { background: #fff; color: #167144; border: 1.5px solid #b9dfc9; box-shadow: none; font-weight: 800; }
.batch > .batch-toggle:hover, .batch:hover > .batch-toggle { background: #f1faf5; border-color: #167144; }
html[data-scheme="dark"] .batch > .batch-toggle { background: #161c19; color: #66d6a8; border-color: rgb(102 214 168 / 35%); }

/* 3. Denser grids: 4 across on a wide screen, 2 across on a phone (List view keeps the one-per-row card) */
@media (min-width: 1300px) {
  body:not(.page-admin) #batch-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
}
@media (max-width: 700px) {
  html:not([data-products="list"]) body:not(.page-admin) #batch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.4rem; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch > .product-cover { grid-column: auto; grid-row: auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; border-radius: 11px; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .product-cover img,
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .product-image-button { height: 100%; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .product-cover .batch-date { display: inline-flex; top: 0.4rem; left: 0.4rem; padding: 0.22rem 0.45rem; font-size: 0.62rem; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .product-cover .pill { display: inline-flex; top: 0.4rem; right: 0.4rem; font-size: 0.62rem; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch.has-no-cutoff .product-cover .batch-date { display: none; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch:not(.is-closed):not(.is-closing-soon) .product-cover .pill { display: none; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .detail-status,
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .batch-meta { display: none; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .product-details { grid-column: auto; padding: 0 0.15rem; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .batch-name { display: -webkit-box; overflow: hidden; font-size: 0.9rem; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .product-price { font-size: 1rem; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .batch-count-row > :not(.batch-count) { display: none; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .batch-count { margin: 0; font-size: 0.75rem; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch > .batch-toggle { grid-column: auto; width: 100%; min-height: 2.3rem; margin-top: 0.1rem; font-size: 0.84rem; }
  html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch .wish-heart { width: 2rem; height: 2rem; }
}

/* 4. "Show more" instead of page numbers */
.load-more { display: block; width: min(100%, 22rem); min-height: 3rem; margin: 1.1rem auto 0; padding: 0 1.4rem; border: 1.5px solid #b9dfc9; border-radius: 999px; background: #fff; color: #167144; font: inherit; font-weight: 800; cursor: pointer; }
.load-more[hidden] { display: none; }
.load-more:hover { background: #f1faf5; border-color: #167144; }
html[data-scheme="dark"] .load-more { background: #161c19; color: #66d6a8; border-color: rgb(102 214 168 / 35%); }

/* 5. Returning visitors get a smaller welcome banner, so the products start sooner */
html[data-returning] .welcome-hero .hero-lead, html[data-returning] .welcome-hero .hero-highlights, html[data-returning] .welcome-hero .hero-note { display: none; }
html[data-returning] .welcome-hero .hero-copy { padding-block: 1.1rem; }
html[data-returning] .welcome-hero .hero-art { min-height: 9rem; }
@media (max-width: 680px) { html[data-returning] .welcome-hero .hero-copy { padding: 1rem 1.1rem; } html[data-returning] .welcome-hero .hero-copy h2 { font-size: clamp(1.5rem, 7vw, 2rem); } html[data-returning] .welcome-hero .hero-art { min-height: 7.5rem; } }

/* 6. The browsing bar and the category buttons stay in view while a long list scrolls under them */
.browse-sticky, #available-goods .browse-host { position: sticky; top: 0; z-index: 25; background: var(--paper, #f6f3ea); }
.browse-sticky { margin: 0 -0.5rem 0.7rem; padding: 0.4rem 0.5rem 0.25rem; box-shadow: 0 8px 12px -12px rgb(14 38 27 / 40%); }
.browse-sticky .browse-host { margin: 0 0 0.5rem; }
.browse-sticky .available-categories { margin: 0; }
#available-goods .browse-host { margin: 0.4rem 0 0.7rem; padding: 0.4rem 0; box-shadow: 0 8px 12px -12px rgb(14 38 27 / 40%); }

/* Catalogue fixes: readable light button, one badge per card, equal-height cards */
html body:not(.page-admin) .batch > .batch-toggle { background: #fff; color: #167144; border: 1.5px solid #b9dfc9; box-shadow: none; font-weight: 800; }
html body:not(.page-admin) .batch > .batch-toggle:hover, html body:not(.page-admin) .batch:hover > .batch-toggle { background: #f1faf5; border-color: #167144; }
html[data-scheme="dark"] body:not(.page-admin) .batch > .batch-toggle { background: #161c19; color: #66d6a8; border-color: rgb(102 214 168 / 35%); }
#batch-list > .batch:not(.is-closed) .product-cover .pill, #batch-list > .batch:not(.is-closed) .detail-status .pill { display: none !important; }
html:not([data-products="list"]) body:not(.page-admin) #batch-list { align-items: stretch; }
html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch { display: flex; flex-direction: column; }
html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch > .product-details { flex: 1 1 auto; }
html:not([data-products="list"]) body:not(.page-admin) #batch-list > .batch > .batch-toggle { margin-top: auto; }

/* Catalogue: price and stars on one line; list view without the button (the whole card opens); categories above the title */
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.price-row .product-price, .price-row .batch-rating { margin: 0; }
.price-row .batch-rating { flex: none; text-align: right; white-space: nowrap; }
.batch { position: relative; }
html[data-products="list"] .batch:not(.available-featured-card) { grid-template-areas: "cover details"; row-gap: 0; }
html[data-products="list"] body:not(.page-admin) .batch > .batch-toggle { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; border: 0; clip-path: inset(50%); white-space: nowrap; }
html[data-products="list"] .batch:has(> .batch-toggle:focus-visible) { outline: 3px solid var(--green-action, #087447); outline-offset: 2px; }
html[data-products="list"] body:not(.page-admin) .batch > .product-cover { grid-row: 1; }
html[data-products="list"] body:not(.page-admin) .batch > .product-details { grid-row: 1; }
#orders-section > .available-categories { margin: 0.2rem 0 1.1rem; }
#orders-section .browse-host { position: sticky; top: 0; z-index: 25; margin: 0.5rem 0 0.8rem; padding: 0.4rem 0; background: var(--paper, #f6f3ea); box-shadow: 0 8px 12px -12px rgb(14 38 27 / 40%); }

/* Supplier: one tappable line on a card (long names are cut short), the bar above a product page, and the factory page */
.batch-supplier { display: block; max-width: 100%; margin: 0.05rem 0 0; padding: 0; overflow: hidden; border: 0; background: transparent; color: #167144; font: inherit; font-size: 0.58rem; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.batch-supplier:hover { text-decoration: underline; }
.batch-supplier[hidden], .pd-supplier[hidden] { display: none; }
dialog.batch-dialog[id^="panel-"] .pd-supplier { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.4rem 0.5rem 0.4rem 0.8rem; border: 1px solid #e3e8e5; border-radius: 14px; background: #f1f3f2; color: #172821; }
.pd-supplier-who { display: grid; min-width: 0; gap: 0; }
.pd-supplier-label { color: #66766d; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pd-supplier-name { overflow: hidden; font-size: 0.86rem; text-overflow: ellipsis; white-space: nowrap; }
.pd-supplier-enter { display: inline-flex; flex: none; align-items: center; gap: 0.3rem; min-height: 1.9rem; padding: 0 0.75rem; border: 0; border-radius: 999px; background: #167144; color: #fff; font: inherit; font-size: 0.74rem; font-weight: 800; cursor: pointer; transition: transform 0.12s ease; }
.pd-supplier-enter:hover { transform: translateY(-1px); }
.pd-supplier-enter:active { transform: scale(0.97); }
.pd-supplier-enter svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* A product from more than one supplier: the others sit under the first, one line each. */
dialog.batch-dialog[id^="panel-"] .pd-supplier { flex-wrap: wrap; }
.pd-supplier-more { display: grid; flex: 1 0 100%; gap: 0.35rem; }
.pd-supplier-more:empty { display: none; }
.pd-supplier-extra { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.35rem; border-top: 1px solid #e3e8e5; }
.pd-supplier-extra .pd-supplier-name { min-width: 0; }
html[data-scheme="dark"] .pd-supplier-extra { border-top-color: rgb(255 255 255 / 10%); }
dialog.factory-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--page-bg, #f2f4f3); color: var(--ink, #172821); }
dialog.factory-dialog::backdrop { background: rgb(0 0 0 / 35%); }
dialog.factory-dialog[open] { display: flex; flex-direction: column; animation: pd-fade 0.14s ease-out; }
.factory-header { display: grid; grid-template-columns: minmax(5rem, 1fr) auto minmax(5rem, 1fr); align-items: center; flex: none; min-height: 3.4rem; padding: calc(env(safe-area-inset-top, 0px) + 0.3rem) 0.6rem 0.3rem; border-bottom: 1px solid rgb(0 0 0 / 6%); }
.factory-back { justify-self: start; min-height: 2.75rem; padding: 0 0.7rem 0 0.2rem; border: 0; background: transparent; color: var(--green-action, #087447); font: inherit; font-size: 1.02rem; font-weight: 600; cursor: pointer; }
.factory-title { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factory-body { flex: 1 1 auto; width: 100%; max-width: 64rem; margin: 0 auto; padding: 0.8rem 1rem 2rem; overflow-y: auto; overscroll-behavior: contain; }
.factory-hero { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border: 1px solid #e3e8e5; border-radius: 18px; background: #f1f3f2; color: #172821; }
.factory-badge { display: grid; flex: none; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: #167144; color: #fff; }
.factory-badge svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.factory-hero p, .factory-hero h2 { margin: 0; }
.factory-label { color: #66766d; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.factory-hero h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
.factory-stats { color: #4d5d54; font-size: 0.86rem; font-weight: 600; }
.factory-note { margin: 0.9rem 0 0; color: #5b6b62; font-size: 0.9rem; }
.factory-group { margin-top: 1.2rem; }
.factory-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.factory-group-head h3 { margin: 0; font-size: 1rem; }
.factory-group-head span { color: #5b6b62; font-size: 0.82rem; font-weight: 600; }
.factory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr)); gap: 0.7rem; }
.factory-tile { width: 100%; }
html[data-scheme="dark"] .batch-supplier { color: #66d6a8; }
html[data-scheme="dark"] .factory-note, html[data-scheme="dark"] .factory-group-head span { color: #9fb0a7; }

/* Operations Admin: suppliers (cards, and the push-up sheet with the buying list and products by month) */
.supplier-section { margin: 0.8rem 0 1rem; border: 1px solid #dfe7e2; border-radius: 16px; background: #fff; }
.supplier-section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.9rem; cursor: pointer; list-style: none; }
.supplier-section-head::-webkit-details-marker { display: none; }
.supplier-section-head h3 { margin: 0; font-size: 1rem; }
.supplier-section-meta { margin-left: auto; color: #55675e; font-size: 0.8rem; font-weight: 700; }
.supplier-section-head::after { width: 0.5rem; height: 0.5rem; border-right: 2px solid #55675e; border-bottom: 2px solid #55675e; content: ""; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease; }
.supplier-section[open] > .supplier-section-head::after { transform: translateY(2px) rotate(-135deg); }
.supplier-section-body { display: grid; gap: 0.5rem; padding: 0 0.9rem 0.9rem; }
.supplier-section-body .help { margin: 0; }
.supplier-search { width: 100%; min-height: 2.4rem; padding: 0.4rem 0.7rem; border: 1px solid #cfd9d3; border-radius: 10px; font: inherit; }
.supplier-search[hidden] { display: none; }
.supplier-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; max-height: min(24rem, 55vh); margin-top: 0.1rem; padding: 0.1rem; overflow-y: auto; overscroll-behavior: contain; }
html[data-scheme="dark"] .supplier-section { border-color: rgb(255 255 255 / 12%); background: #161c19; }
html[data-scheme="dark"] .supplier-section-meta { color: #9fb0a7; }
html[data-scheme="dark"] .supplier-search { border-color: rgb(255 255 255 / 16%); background: #1a211e; color: inherit; }
.supplier-tile { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.2rem 0.7rem; padding: 0.75rem 0.85rem; border: 1px solid #dfe7e2; border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.supplier-tile:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -16px rgb(14 38 27 / 70%); }
.supplier-tile-badge { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 13px; background: linear-gradient(135deg, #0f5c37, #1b8a55); color: #fff; }
.supplier-tile-badge.is-large { width: 3.2rem; height: 3.2rem; border-radius: 16px; }
.supplier-tile-badge svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.supplier-tile-copy { display: grid; min-width: 0; }
.supplier-tile-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-tile-copy small { color: #5b6b62; }
.supplier-tile-chip { grid-column: 1 / -1; justify-self: start; padding: 0.15rem 0.6rem; border-radius: 999px; background: #eef2ef; color: #4d5d54; font-size: 0.78rem; font-weight: 700; }
.supplier-tile-chip.is-active { background: #e1f4ea; color: #0f6a3d; }
dialog.supplier-dialog { position: fixed; inset: auto 0 0 0; width: min(54rem, 100%); max-width: 100%; max-height: 92vh; margin: 0 auto; padding: 0; border: 0; border-radius: 24px 24px 0 0; overflow: hidden; background: #f6f8f7; color: #172821; box-shadow: 0 -18px 50px -20px rgb(0 0 0 / 50%); }
dialog.supplier-dialog::backdrop { background: rgb(0 0 0 / 45%); }
dialog.supplier-dialog[open] { display: flex; flex-direction: column; animation: supplier-push-up 0.22s ease-out; }
@keyframes supplier-push-up { from { transform: translateY(40%); opacity: 0.4; } to { transform: none; opacity: 1; } }
.supplier-sheet-grip { flex: none; width: 2.8rem; height: 0.28rem; margin: 0.5rem auto 0; border-radius: 99px; background: #c4cec8; }
#supplier-dialog-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.supplier-sheet { padding: 0.6rem 1rem 1.6rem; }
.supplier-sheet-head { display: flex; align-items: center; gap: 0.8rem; padding-right: 2.4rem; }
.supplier-sheet-head h2, .supplier-sheet-head p { margin: 0; }
.supplier-sheet-head h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
.supplier-sheet-head p { color: #5b6b62; font-size: 0.86rem; }
.supplier-sheet-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; margin: 0.8rem 0 0; }
.supplier-rename { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.supplier-rename .form-error { flex-basis: 100%; margin: 0; }
.supplier-sheet-section { margin-top: 1.1rem; }
.supplier-sheet-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.supplier-card-list { margin: 0; padding: 0.7rem 0.9rem 0.7rem 1.9rem; border-radius: 14px; background: #fff; color: #3f4f46; font-size: 0.9rem; line-height: 1.55; }
.supplier-product { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; width: 100%; margin-bottom: 0.4rem; padding: 0.55rem 0.7rem; border: 1px solid #e6ece8; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.supplier-product:hover { border-color: #b9dfc9; }
.supplier-product-thumb { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 10px; background: #e8efea; object-fit: cover; font-weight: 800; }
.supplier-product-copy { display: grid; min-width: 0; }
.supplier-product-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-product-copy small { color: #5b6b62; }
html[data-scheme="dark"] .supplier-tile, html[data-scheme="dark"] .supplier-product, html[data-scheme="dark"] .supplier-card-list { background: #161c19; border-color: rgb(255 255 255 / 12%); }
html[data-scheme="dark"] dialog.supplier-dialog { background: #101513; color: #e8efeb; }
html[data-scheme="dark"] .supplier-tile-copy small, html[data-scheme="dark"] .supplier-product-copy small, html[data-scheme="dark"] .supplier-sheet-head p { color: #9fb0a7; }
html[data-scheme="dark"] .supplier-tile-chip { background: #222b27; color: #b6c4bc; }
html[data-scheme="dark"] .supplier-tile-chip.is-active { background: #17382a; color: #66d6a8; }
html[data-scheme="dark"] .supplier-card-list { color: #b6c4bc; }
/* Ghana Shop catalogue cards: smaller share and heart icons, heart on the right */
.available-product-card .available-catalog-share { top: 0.5rem; right: 0.5rem; width: 1.65rem; height: 1.65rem; }
.available-product-card .available-catalog-share svg { width: 0.85rem; height: 0.85rem; }
.available-product-card .product-cover .wish-heart { left: auto; right: 0.5rem; bottom: 0.5rem; width: 1.8rem; height: 1.8rem; font-size: 1.02rem; }
dialog.supplier-dialog .batch-dialog-close { left: auto; right: 0.7rem; top: 0.7rem; }
.supplier-rename-input { flex: 1 1 14rem; min-width: 0; }
.factory-body { padding-bottom: 1rem; }
.factory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.9rem 0 0.7rem; }
.factory-chips { display: flex; flex: 1 1 auto; gap: 0.4rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.factory-chips::-webkit-scrollbar { display: none; }
.factory-chips[hidden] { display: none; }
.factory-chip { display: inline-flex; flex: none; align-items: center; gap: 0.3rem; min-height: 2.1rem; padding: 0 0.8rem; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; color: #32483b; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.factory-chip svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.factory-chip.is-active { border-color: #167144; background: #167144; color: #fff; }
.factory-views { display: inline-flex; flex: none; margin-left: auto; padding: 0.15rem; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; }
.factory-views button { display: grid; place-items: center; width: 2rem; height: 1.9rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #4d5d54; cursor: pointer; }
.factory-views svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.factory-views button.is-active { background: #167144; color: #fff; }
.factory-grid.is-list { grid-template-columns: 1fr; }
.factory-grid.is-list .factory-tile { display: grid; grid-template-columns: 4.6rem 1fr; grid-template-areas: "media name" "media price"; align-items: center; column-gap: 0.8rem; text-align: left; }
.factory-grid.is-list .factory-tile .related-product-media { grid-area: media; width: 4.6rem; height: 4.6rem; aspect-ratio: auto; }
.factory-grid.is-list .factory-tile .related-product-name { grid-area: name; align-self: end; }
.factory-grid.is-list .factory-tile .related-product-price { grid-area: price; align-self: start; }
.factory-search { flex: none; padding: 0.6rem 1rem calc(env(safe-area-inset-bottom, 0px) + 0.6rem); border-top: 1px solid rgb(0 0 0 / 6%); background: var(--page-bg, #f2f4f3); }
.factory-search input { display: block; width: 100%; max-width: 64rem; min-height: 2.7rem; margin: 0 auto; padding: 0 1rem; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; color: inherit; font: inherit; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .pd-supplier, html[data-scheme="dark"] .factory-hero { background: #1a211e; border-color: rgb(255 255 255 / 10%); color: #e8efeb; }
html[data-scheme="dark"] .pd-supplier-label, html[data-scheme="dark"] .factory-label, html[data-scheme="dark"] .factory-stats { color: #9fb0a7; }
html[data-scheme="dark"] .factory-chip, html[data-scheme="dark"] .factory-views, html[data-scheme="dark"] .factory-search input { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .factory-chip.is-active { background: #167144; border-color: #167144; color: #fff; }
html[data-scheme="dark"] .factory-views button { color: #b6c4bc; }
html[data-scheme="dark"] .factory-views button.is-active { color: #fff; }

/* Ghana share icon: a perfect circle with the icon centred; a bigger heart in the same container */
.available-product-card .available-catalog-share { display: grid; place-items: center; box-sizing: border-box; padding: 0; line-height: 0; aspect-ratio: 1; }
.available-product-card .available-catalog-share svg { display: block; margin: 0; }
.available-product-card .product-cover .wish-heart { font-size: 1.3rem; padding: 0; line-height: 1; }
.factory-orders { display: flex; flex: none; align-items: center; gap: 0.45rem; margin-left: auto; padding: 0.4rem 0.7rem; border-radius: 14px; background: #167144; color: #fff; text-align: right; }
.factory-orders > div { display: grid; line-height: 1.15; }
.factory-orders strong { font-size: 1.2rem; font-weight: 800; color: #fff; }
.factory-orders > div > span { color: rgb(255 255 255 / 85%); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; }
.factory-orders-icon { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgb(255 255 255 / 20%); color: #fff; }
.factory-orders-icon svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.factory-hero > div:first-of-type { flex: 1 1 auto; min-width: 0; }
.factory-views button { display: inline-flex; align-items: center; gap: 0.3rem; width: auto; padding: 0 0.75rem 0 0.6rem; font: inherit; font-size: 0.78rem; font-weight: 700; }
.factory-views button.is-active { background: #167144; color: #fff; }

/* Operations Admin: Preorders / Ghana Shop switch */
[data-shop][hidden] { display: none !important; }
.shop-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem; margin: 0 0 0.9rem; padding: 0.2rem; border-radius: 14px; background: rgb(255 255 255 / 10%); }
.shop-switch-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.4rem; padding: 0 0.5rem; border: 0; border-radius: 11px; background: transparent; color: #cfe3d8; font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.shop-switch-btn:hover { background: rgb(255 255 255 / 8%); }
.shop-switch-btn.is-active { background: #fff; color: #0f5c37; box-shadow: 0 4px 10px -6px rgb(0 0 0 / 60%); }
.nav-badge.is-warn { background: #e8a317; color: #1b1400; }

/* Ghana Shop stocks: low-stock flags, filters, bulk tools */
.available-admin-bulk { position: static; }
.available-admin-bulk-label { flex: none; width: 4.2rem; align-self: center; color: #5d6c64; font-size: 0.8rem; font-weight: 800; }
.available-admin-bulk-row select { min-height: 2.6rem; max-width: 13rem; }
.available-admin-bulk-row input:not([type="checkbox"]) { flex: 1 1 8rem; }
.available-admin-bulk-hint { flex-basis: 100%; color: #6a7a71; }
.available-admin-stockbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.6rem 0; }
.available-admin-stocksummary { flex-basis: 100%; margin: 0 0 0.2rem; color: #4d5d54; font-size: 0.88rem; font-weight: 700; }
.available-admin-stocksummary.is-warn { color: #9a6200; }
.available-admin-chip { min-height: 2.2rem; padding: 0 0.85rem; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; color: #32483b; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.available-admin-chip.is-active { border-color: #167144; background: #167144; color: #fff; }
.available-admin-flag { align-self: flex-start; margin-left: auto; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.available-admin-flag.is-low { background: #fdecc4; color: #7a4d00; }
.available-admin-flag.is-out { background: #fadcd9; color: #8c231b; }
.available-admin-option-list li.is-low { color: #9a6200; font-weight: 700; }
.available-admin-option-list li.is-out { color: #b4382d; font-weight: 700; }
html[data-scheme="dark"] .available-admin-chip { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .available-admin-chip.is-active { background: #167144; border-color: #167144; color: #fff; }
html[data-scheme="dark"] .available-admin-stocksummary.is-warn { color: #f2c35c; }
html[data-scheme="dark"] .available-admin-flag.is-low { background: #3a2c0c; color: #f2c35c; }
html[data-scheme="dark"] .available-admin-flag.is-out { background: #3b1714; color: #f4a8a1; }

/* Ghana Shop pickup list (also the printed page) */
.pickup-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin: 0.6rem 0 1rem; }
.pickup-stages { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pickup-delivery { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; cursor: pointer; }
.pickup-controls .btn { margin-left: auto; }
.pickup-sheet { padding: 1rem; border: 1px solid #dfe7e2; border-radius: 14px; background: #fff; color: #172821; }
.pickup-sheet-head h2 { margin: 0; font-size: 1.15rem; }
.pickup-sheet-head p { margin: 0.2rem 0 0; color: #5d6c64; font-size: 0.88rem; }
.pickup-group { margin-top: 1.1rem; }
.pickup-group h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.pickup-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pickup-table th, .pickup-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid #e6ece8; text-align: left; vertical-align: top; }
.pickup-table th { color: #5d6c64; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.pickup-table td:nth-child(4) { white-space: pre-line; }
.pickup-done { width: 2.6rem; }
.pickup-box { display: inline-block; width: 1.15rem; height: 1.15rem; border: 2px solid #5d6c64; border-radius: 3px; }
.pickup-empty { margin: 1rem 0 0; color: #5d6c64; }
html[data-scheme="dark"] .pickup-sheet { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .pickup-table th, html[data-scheme="dark"] .pickup-table td { border-color: rgb(255 255 255 / 10%); }
.pickup-print { display: none; }
@media (max-width: 700px) {
  .pickup-table, .pickup-table tbody, .pickup-table tr, .pickup-table td { display: block; }
  .pickup-table thead { display: none; }
  .pickup-table tr { padding: 0.5rem 0; border-bottom: 1px solid #e6ece8; }
  .pickup-table td { padding: 0.1rem 0; border: 0; }
}
@media print {
  body.is-printing-pickup > *:not(#pickup-print) { display: none !important; }
  body.is-printing-pickup #pickup-print { display: block !important; }
  body.is-printing-pickup { background: #fff !important; }
  body.is-printing-pickup .pickup-sheet { padding: 0; border: 0; color: #000; background: #fff; }
  body.is-printing-pickup .pickup-table, body.is-printing-pickup .pickup-table tbody { display: table; }
  body.is-printing-pickup .pickup-table tbody { display: table-row-group; }
  body.is-printing-pickup .pickup-table tr { display: table-row; }
  body.is-printing-pickup .pickup-table td, body.is-printing-pickup .pickup-table th { display: table-cell; border-bottom: 1px solid #999; }
  body.is-printing-pickup .pickup-table thead { display: table-header-group; }
  body.is-printing-pickup .pickup-group { break-inside: avoid; }
  body.is-printing-pickup .pickup-box { border-color: #000; }
}
.shop-switch-btn { white-space: nowrap; font-size: 0.78rem; padding: 0 0.3rem; }
.pickup-delivery { white-space: nowrap; }
.pickup-delivery input[type="checkbox"] { flex: none; width: 1.2rem; min-width: 1.2rem; height: 1.2rem; min-height: 1.2rem; padding: 0; }

/* Factory page: one-line header, and a category dropdown */
.factory-hero { display: block; }
.factory-label, .factory-hero h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factory-hero h2 { margin: 0.1rem 0 0.35rem; font-size: 1.25rem; }
.factory-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin: 0; font-size: 0.8rem; font-weight: 600; color: #4d5d54; }
.factory-stats-orders strong { color: #d9570b; font-size: 1.05rem; font-weight: 800; }
html[data-scheme="dark"] .factory-stats-orders strong { color: #ffa45c; }
.factory-cat { position: relative; flex: 1 1 auto; min-width: 0; }
.factory-cat[hidden] { display: none; }
.factory-cat-trigger { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; min-height: 2.3rem; padding: 0 0.85rem; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; color: #172821; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.factory-cat-trigger svg, .factory-cat-option svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.factory-cat-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factory-cat-caret { flex: none; font-size: 0.8rem; opacity: 0.7; }
.factory-cat-menu { position: absolute; z-index: 5; top: calc(100% + 0.3rem); left: 0; display: grid; min-width: 14rem; max-width: min(22rem, 86vw); max-height: 55vh; padding: 0.3rem; overflow-y: auto; border: 1px solid #dfe7e2; border-radius: 16px; background: #fff; box-shadow: 0 18px 32px -18px rgb(14 38 27 / 55%); }
.factory-cat-menu[hidden] { display: none; }
.factory-cat-option { display: flex; align-items: center; gap: 0.55rem; width: 100%; min-height: 2.5rem; padding: 0 0.7rem; border: 0; border-radius: 11px; background: transparent; color: #172821; font: inherit; font-size: 0.88rem; font-weight: 600; text-align: left; cursor: pointer; }
.factory-cat-option .factory-cat-text { flex: 1 1 auto; }
.factory-cat-option:hover { background: #f1f3f2; }
.factory-cat-option.is-active { background: #e1f4ea; color: #0f6a3d; font-weight: 800; }
.factory-cat-count { flex: none; color: #66766d; font-size: 0.8rem; font-weight: 700; }
html[data-scheme="dark"] .factory-cat-trigger, html[data-scheme="dark"] .factory-cat-menu { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .factory-cat-option { color: #e8efeb; }
html[data-scheme="dark"] .factory-cat-option:hover { background: #222b27; }
html[data-scheme="dark"] .factory-cat-option.is-active { background: #17382a; color: #66d6a8; }

/* Factory page header, final layout: badge + two one-line texts, then products (left) and the green orders pill (right) */
.factory-hero { display: grid; gap: 0.7rem; }
.factory-hero-top { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.factory-hero-text { flex: 1 1 auto; min-width: 0; }
.factory-hero-text .factory-label, .factory-hero-text h2 { margin: 0; }
.factory-hero .factory-stats { align-items: center; }
.factory-stats-orders strong { color: inherit; font-size: inherit; }
.factory-orders strong { color: #ffd27a; font-size: 1.2rem; font-weight: 800; }
html[data-scheme="dark"] .factory-orders strong { color: #ffd27a; }
.factory-orders > div > span { color: rgb(255 255 255 / 88%); }

/* Factory header: plain small print with icons, the orders figure on one line and no coloured box */
.factory-hero .factory-stats { flex-wrap: nowrap; gap: 0.6rem; }
.factory-stat { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; font-size: 0.8rem; font-weight: 600; color: #4d5d54; }
.factory-stat-icon { display: inline-grid; place-items: center; flex: none; color: #167144; }
.factory-stat-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.factory-hero .factory-orders { margin-left: auto; padding: 0; border-radius: 0; background: transparent; color: #4d5d54; text-align: right; }
.factory-hero .factory-orders strong { color: #d9570b; font-size: 1.05rem; font-weight: 800; }
html[data-scheme="dark"] .factory-stat { color: #b6c4bc; }
html[data-scheme="dark"] .factory-stat-icon { color: #66d6a8; }
html[data-scheme="dark"] .factory-hero .factory-orders strong { color: #ffa45c; }

/* Factory header: thin, faint rules above and below the products / orders line */
.factory-hero .factory-stats { padding: 0.5rem 0; border-top: 1px solid rgb(23 40 33 / 12%); border-bottom: 1px solid rgb(23 40 33 / 12%); }
html[data-scheme="dark"] .factory-hero .factory-stats { border-color: rgb(255 255 255 / 12%); }

/* Factory page: the card holding the supplier label, name and counts wears the SamDart header green
   (--green-deep follows the colour set in Control Studio), with light text */
.factory-hero { border: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgb(255 255 255 / 3.5%) 7px, rgb(255 255 255 / 3.5%) 8px), var(--green-deep, #073d31); color: #f6f1e7; box-shadow: inset 0 -3px 0 #c9821a; }
.factory-hero .factory-label { color: #cfe3d8; }
.factory-hero h2 { color: #fff; }
.factory-hero .factory-badge { background: rgb(255 255 255 / 16%); color: #f6f1e7; }
.factory-hero .factory-stats { border-color: rgb(255 255 255 / 22%); }
.factory-hero .factory-stat { color: #e8efeb; }
.factory-hero .factory-stat-icon { color: #ffd27a; }
.factory-hero .factory-orders strong { color: #ffd27a; }
html[data-scheme="dark"] .factory-hero { background: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgb(255 255 255 / 3.5%) 7px, rgb(255 255 255 / 3.5%) 8px), var(--green-deep, #073d31); color: #f6f1e7; border: 0; }
html[data-scheme="dark"] .factory-hero .factory-label { color: #cfe3d8; }
html[data-scheme="dark"] .factory-hero .factory-stat { color: #e8efeb; }
html[data-scheme="dark"] .factory-hero .factory-stat-icon, html[data-scheme="dark"] .factory-hero .factory-orders strong { color: #ffd27a; }
html[data-scheme="dark"] .factory-hero .factory-stats { border-color: rgb(255 255 255 / 22%); }

/* Ghana Shop: the now price with the crossed-out before price and the saving */
.price-was { margin-left: 0.45rem; color: #8a9690; font-size: 0.78em; font-weight: 600; text-decoration: line-through; white-space: nowrap; }
.price-off { margin-left: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: #fdeceb; color: #b4382d; font-size: 0.68em; font-weight: 800; white-space: nowrap; vertical-align: middle; }
html[data-scheme="dark"] .price-was { color: #8d9b94; }
html[data-scheme="dark"] .price-off { background: #3b1714; color: #f4a8a1; }

/* Telegram draft review: a big window (almost the whole screen on a computer, full width on a phone) */
.ui-sheet--wide { width: 100%; }
@media (min-width: 720px) {
  .ui-sheet--wide { inset: 0 0 0 auto; width: min(960px, 96vw); }
  .ui-sheet--wide .ui-sheet-body { padding: 1.2rem 1.6rem 2rem; }
  .ui-sheet--wide .telegram-draft-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.2rem; align-items: start; }
  .ui-sheet--wide .telegram-draft-form > :has(textarea), .ui-sheet--wide .telegram-draft-form > .actions, .ui-sheet--wide .telegram-draft-form > .form-error, .ui-sheet--wide .telegram-draft-form > fieldset { grid-column: 1 / -1; }
  .ui-sheet--wide .telegram-draft-form textarea { min-height: 7rem; }
  .ui-sheet--wide pre { max-height: 16rem; overflow: auto; font-size: 0.95rem; }
}
.available-product-card .product-price, .available-featured-price, .pd-related-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.4rem; }
.price-now { white-space: nowrap; }
.available-product-card .product-price .price-was, .available-featured-price .price-was, .pd-related-price .price-was,
.available-product-card .product-price .price-off, .available-featured-price .price-off, .pd-related-price .price-off { margin-left: 0; }

/* Command palette (Ctrl K) and keyboard help */
dialog.cp-dialog { position: fixed; inset: 12vh auto auto 50%; width: min(36rem, 94vw); max-width: none; margin: 0; padding: 0; border: 0; border-radius: 18px; background: var(--sheet, #fff); color: var(--ink, #172821); transform: translateX(-50%); box-shadow: 0 30px 70px -20px rgb(0 0 0 / 55%); }
dialog.cp-dialog::backdrop { background: rgb(10 25 19 / 48%); }
dialog.cp-dialog[open] { animation: cp-in 0.14s ease-out; }
@keyframes cp-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cp-box { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: 70vh; }
.cp-input { width: 100%; min-height: 3.4rem; padding: 0 1.1rem; border: 0; border-bottom: 1px solid #e3e8e5; border-radius: 18px 18px 0 0; background: transparent; color: inherit; font: inherit; font-size: 1.05rem; outline: none; }
.cp-list { overflow-y: auto; padding: 0.4rem; overscroll-behavior: contain; }
.cp-group { margin: 0.5rem 0.6rem 0.2rem; color: #66766d; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cp-item { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; width: 100%; min-height: 2.7rem; padding: 0 0.7rem; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer; }
.cp-item.is-active { background: #e1f4ea; color: #0f6a3d; }
.cp-item-hint, .cp-foot kbd, .cp-help kbd { padding: 0.1rem 0.4rem; border: 1px solid #d3ddd7; border-bottom-width: 2px; border-radius: 6px; background: #f6f8f7; color: #4d5d54; font: inherit; font-size: 0.75rem; font-weight: 700; }
.cp-empty { margin: 1rem; color: #66766d; }
.cp-foot { margin: 0; padding: 0.55rem 1rem; border-top: 1px solid #e3e8e5; color: #66766d; font-size: 0.78rem; }
.cp-sequence { position: fixed; z-index: 100; left: 50%; bottom: 1.4rem; padding: 0.55rem 1rem; border-radius: 999px; background: #123f31; color: #fff; font-size: 0.85rem; font-weight: 700; transform: translateX(-50%); box-shadow: 0 10px 24px -10px rgb(0 0 0 / 50%); }
.cp-help-block { margin-bottom: 1.1rem; }
.cp-help-block h3 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.cp-help-list { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0; }
.cp-help-list dt { white-space: nowrap; }
.cp-help-list dd { margin: 0; color: #4d5d54; }
html[data-scheme="dark"] dialog.cp-dialog { background: #161c19; color: #e8efeb; }
html[data-scheme="dark"] .cp-input, html[data-scheme="dark"] .cp-foot { border-color: rgb(255 255 255 / 12%); }
html[data-scheme="dark"] .cp-item.is-active { background: #17382a; color: #66d6a8; }
html[data-scheme="dark"] .cp-item-hint, html[data-scheme="dark"] .cp-foot kbd, html[data-scheme="dark"] .cp-help kbd { background: #222b27; border-color: rgb(255 255 255 / 14%); color: #c5d3cb; }
@media (prefers-reduced-motion: reduce) { dialog.cp-dialog[open] { animation: none; } }
.available-admin-order-refs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.2rem 0; color: #4d5d54; font-size: 0.86rem; }
.available-admin-order-refs code { font-weight: 800; letter-spacing: 0.06em; }
@media print { .pickup-sheet .ui-copy { display: none !important; } }

/* Operations Admin: breadcrumb, density switch, sticky table headers */
.admin-breadcrumb { margin: 0 0 0.6rem; }
.admin-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.1rem; margin: 0; padding: 0; list-style: none; color: #66766d; font-size: 0.82rem; font-weight: 600; }
.admin-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.admin-breadcrumb li + li::before { content: "›"; margin: 0 0.45rem; color: #a2afa8; font-weight: 700; }
.admin-breadcrumb li[aria-current="page"] { color: #172821; font-weight: 800; }
.admin-breadcrumb button { padding: 0; border: 0; background: transparent; color: #167144; font: inherit; font-weight: 700; cursor: pointer; }
.admin-breadcrumb button:hover { text-decoration: underline; }
html[data-scheme="dark"] .admin-breadcrumb ol { color: #9fb0a7; }
html[data-scheme="dark"] .admin-breadcrumb li[aria-current="page"] { color: #e8efeb; }
html[data-scheme="dark"] .admin-breadcrumb button { color: #66d6a8; }
.density-btn { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; padding: 0; border: 1px solid #dfe7e2; border-radius: 50%; background: #fff; color: #32483b; cursor: pointer; }
.density-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform 0.15s ease; }
.density-btn[aria-pressed="true"] { border-color: #167144; background: #e1f4ea; color: #0f6a3d; }
.density-btn[aria-pressed="true"] svg { transform: scaleY(0.82); }
html[data-scheme="dark"] .density-btn { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .density-btn[aria-pressed="true"] { background: #17382a; color: #66d6a8; }
/* Compact rows: tighter tables and lists, same information */
html[data-admin-density="compact"] .ui-table th { padding: 0.3rem 0.5rem; }
html[data-admin-density="compact"] .ui-table td { padding: 0.05rem 0.5rem; font-size: 0.88rem; }
html[data-admin-density="compact"] .ui-row-main { min-height: 42px; padding: 0.25rem 0.2rem; }
html[data-admin-density="compact"] .pickup-table th, html[data-admin-density="compact"] .pickup-table td { padding: 0.25rem 0.4rem; }
html[data-admin-density="compact"] .available-admin-order, html[data-admin-density="compact"] .available-admin-product { padding-top: 0.55rem; padding-bottom: 0.55rem; }
html[data-admin-density="compact"] .ui-list { gap: 0.15rem; }
/* Long lists keep their column headings in view while you scroll (large screens, where the table layout is used) */
@media (min-width: 1024px) {
  .ui-table-scroll { overflow: visible; }
  .ui-table thead th { position: sticky; top: 74px; z-index: 2; background: var(--sheet, #fff); box-shadow: 0 1px 0 var(--line, #e3e8e5); }
}
/* The grouped lists clip their rounded corners with "clip" rather than "hidden", so sticky column headings still work inside them */
.ui-cgroup { overflow: clip; }
@media (min-width: 1024px) {
  .ui-table thead th { top: calc(var(--ui-sticky-top, 74px) + 3.55rem); }
}

/* Dashboard: clickable KPI cards with a trend line, in a Preorders row and a Ghana Shop row */
.dash-section-title { margin: 1rem 0 0; color: #5d6c64; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.dash-section-title + .stat-row { margin-top: 0.5rem; }
button.stat-card { position: relative; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
button.stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -16px rgb(14 38 27 / 60%); }
button.stat-card:active { transform: scale(0.99); }
button.stat-card:focus-visible { outline: 3px solid var(--green-action, #087447); outline-offset: 2px; }
.stat-copy { min-width: 0; flex: 1 1 auto; }
.stat-spark { position: absolute; right: 2.1rem; bottom: 0.7rem; width: 3.7rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.stat-spark circle { fill: currentColor; stroke: none; }
.stat-card.tone-green .stat-spark { color: #1f8a52; }
.stat-card.tone-pink .stat-spark { color: #d4537a; }
.stat-go { position: absolute; right: 0.8rem; top: 0.7rem; color: #8aa095; font-size: 1.4rem; line-height: 1; transition: transform 0.12s ease; }
button.stat-card:hover .stat-go { transform: translateX(2px); color: #167144; }
@media (prefers-reduced-motion: reduce) { button.stat-card, .stat-go { transition: none; } button.stat-card:hover { transform: none; } }

/* Telegram review form: the PreOrder and Ghana Shop details fold away in their own groups */
.telegram-group { margin: 0.4rem 0 0; border: 1px solid #e3e8e5; border-radius: 14px; background: #fbfcfb; }
.telegram-group > summary { display: grid; gap: 0.1rem; padding: 0.8rem 2.6rem 0.8rem 1rem; list-style: none; cursor: pointer; position: relative; }
.telegram-group > summary::-webkit-details-marker { display: none; }
.telegram-group > summary::after { content: ""; position: absolute; right: 1.05rem; top: 50%; width: 0.55rem; height: 0.55rem; margin-top: -0.4rem; border-right: 2px solid #0f5c37; border-bottom: 2px solid #0f5c37; transform: rotate(45deg); transition: transform 0.15s; }
.telegram-group[open] > summary::after { transform: rotate(-135deg); margin-top: -0.2rem; }
.telegram-group > summary strong { font-size: 0.95rem; font-weight: 800; color: #0f5c37; }
.telegram-group > summary small { color: #66766d; }
.telegram-group > summary:focus-visible { outline: 3px solid #1f8a5b; outline-offset: -3px; border-radius: 14px; }
.telegram-group-body { display: grid; gap: 0.7rem; padding: 0.2rem 1rem 1rem; }
@media (min-width: 720px) {
  .ui-sheet--wide .telegram-group-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.1rem; }
  .ui-sheet--wide .telegram-group-body > :has(textarea), .ui-sheet--wide .telegram-group-body > fieldset { grid-column: 1 / -1; }
  .ui-sheet--wide .telegram-draft-form > details, .ui-sheet--wide .telegram-draft-form > .telegram-action-bar { grid-column: 1 / -1; }
}
.telegram-action-bar { position: sticky; bottom: 0; z-index: 3; display: grid; gap: 0.4rem; margin: 0.6rem -1rem -1rem; padding: 0.7rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line, #dfe7e2); background: var(--sheet, #fff); box-shadow: 0 -12px 22px -16px rgb(0 0 0 / 35%); }
.telegram-action-bar .form-error:empty { display: none; }
.telegram-action-bar .actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.telegram-action-bar .actions .btn { flex: 1 1 auto; min-height: 40px; margin: 0; padding: 0 0.8rem; font-size: 0.88rem; white-space: nowrap; }
html[data-scheme="dark"] .telegram-group { background: #161c19; border-color: rgb(255 255 255 / 12%); }
html[data-scheme="dark"] .telegram-group > summary strong { color: #66d6a8; }
html[data-scheme="dark"] .telegram-group > summary::after { border-color: #66d6a8; }

/* Easier to tap: the look stays, the touch area grows (small text links used to be only 14 to 16 px tall) */
.batch-supplier { padding: 0.4rem 0; margin: -0.3rem 0 -0.3rem; }
a[href="/ghana-shop/orders"][data-view="available-orders"] { display: inline-block; padding: 0.55rem 0.4rem; margin: -0.55rem -0.4rem; }

/* Product descriptions: the formatted text, the admin editor and the reading window */
.rt-content { color: #26332c; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.rt-content > :first-child { margin-top: 0; }
.rt-content > :last-child { margin-bottom: 0; }
.rt-content p { margin: 0 0 0.9em; }
.rt-content .rt-h1, .rt-content .rt-h2, .rt-content .rt-h3 { margin: 1.4em 0 0.5em; color: var(--green-deep, #0f5a3c); line-height: 1.25; }
.rt-content .rt-h1 { font-size: 1.55rem; font-weight: 800; padding-bottom: 0.3em; border-bottom: 2px solid #d8eadf; }
.rt-content .rt-h2 { font-size: 1.25rem; font-weight: 750; }
.rt-content .rt-h3 { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.rt-content ul, .rt-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.rt-content li { margin: 0.25em 0; padding-left: 0.2em; }
.rt-content li::marker { color: var(--green-deep, #0f5a3c); font-weight: 700; }
.rt-content blockquote { margin: 1em 0; padding: 0.7em 1em; border-left: 4px solid #1f8a5b; background: #f1f8f4; border-radius: 0 10px 10px 0; color: #34463c; }
.rt-content hr { margin: 1.5em 0; border: 0; border-top: 1px solid #d4e0d9; }
.rt-content a { color: #0f6b46; text-decoration: underline; text-underline-offset: 2px; }
.rt-empty { color: #6b7b72; font-style: italic; }

.rt-editor { display: grid; gap: 0.4rem; }
.rt-tabs { display: flex; gap: 0.25rem; }
.rt-tab { min-height: 36px; padding: 0 0.9rem; border: 1px solid #cfdcd4; border-radius: 8px 8px 0 0; background: #f4f8f6; color: #44564c; font: inherit; font-weight: 600; cursor: pointer; }
.rt-tab.is-active { background: #fff; color: #0f5a3c; border-bottom-color: #fff; }
.rt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; padding: 0.4rem; border: 1px solid #cfdcd4; border-radius: 10px; background: #f4f8f6; }
.rt-style { min-height: 36px; border: 1px solid #cfdcd4; border-radius: 8px; background: #fff; font: inherit; }
.rt-btn { min-width: 36px; min-height: 36px; padding: 0 0.55rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #26332c; font: inherit; cursor: pointer; }
.rt-btn:hover, .rt-btn[aria-pressed="true"] { background: #dcefe4; border-color: #b9d8c6; }
.rt-btn-text { font-size: 0.85rem; font-weight: 600; }
.rt-link { display: flex; gap: 0.4rem; }
.rt-link[hidden], .rt-preview[hidden], .rt-toolbar[hidden], .rt-foot[hidden], .rt-editor textarea[hidden] { display: none; }
.rt-link input { flex: 1; min-width: 0; }
.rt-preview { min-height: 12rem; max-height: 28rem; overflow: auto; padding: 1rem; border: 1px solid #cfdcd4; border-radius: 10px; background: #fff; }
.rt-foot { color: #6b7b72; font-size: 0.82rem; text-align: right; }
.rt-editor textarea { font-family: inherit; line-height: 1.55; }

.pd-description-button { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%; min-height: 52px; margin: 0.5rem 0; padding: 0 1rem; border: 1.5px solid #0f5a3c; border-radius: 14px; background: #f1f8f4; color: #0f5a3c; font: inherit; font-weight: 800; text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s; }
.pd-description-chevron { font-size: 1.6rem; line-height: 1; }
.pdesc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0 0 1.4rem; padding: 0.9rem 1rem; border-radius: 12px; background: #f1f8f4; }
.pdesc-facts dt { font-weight: 700; color: #0f5a3c; }
.pdesc-facts dd { margin: 0; overflow-wrap: anywhere; }
.pd-description-button:hover, .pd-description-button:focus-visible { background: #0f5a3c; color: #fff; }
.pd-description-button[hidden] { display: none; }

.pdesc-dialog { width: min(680px, 100vw); max-width: 100vw; height: auto; max-height: min(86vh, 86dvh); margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: #26332c; overflow: hidden; box-shadow: 0 30px 80px -20px rgb(0 0 0 / 45%); }
.pdesc-dialog[open] { display: flex; flex-direction: column; position: fixed; }
.pdesc-dialog::backdrop { background: rgb(15 30 22 / 55%); }
.pdesc-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 0.9rem 0.6rem; background: var(--green-deep, #0f5a3c); color: #fff; }
.pdesc-close { min-height: 40px; padding: 0 0.8rem; border: 1px solid rgb(255 255 255 / 45%); border-radius: 10px; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pdesc-body { flex: 1; overflow: auto; padding: 1.4rem 1.2rem 2rem; }
.pdesc-article { max-width: 42rem; margin: 0 auto; }
.pdesc-title { margin: 0 0 1rem; font-size: 1.7rem; line-height: 1.2; color: #14221b; }
.pdesc-foot { padding: 0.7rem 1rem; border-top: 1px solid #e0e9e4; text-align: center; }
/* On a phone it slides up from the bottom as a sheet; on a computer it is a centred pop-up. */
@media (max-width: 640px) {
  .pdesc-dialog { width: 100vw; max-height: 88dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; animation: pdesc-up 0.28s ease-out; }
  .pdesc-dialog::before { content: ""; display: block; width: 44px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: rgb(255 255 255 / 55%); position: absolute; left: 0; right: 0; z-index: 1; }
  .pdesc-body { padding: 1rem 1rem 1.6rem; }
}
@keyframes pdesc-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pdesc-dialog { animation: none; } }

html[data-scheme="dark"] .rt-content, html[data-scheme="dark"] .pdesc-dialog { color: #dbe6e0; background: #131916; }
html[data-scheme="dark"] .pdesc-title { color: #f0f6f2; }
html[data-scheme="dark"] .rt-content .rt-h1, html[data-scheme="dark"] .rt-content .rt-h2, html[data-scheme="dark"] .rt-content .rt-h3 { color: #66d6a8; border-color: #2c3a33; }
html[data-scheme="dark"] .rt-content blockquote { background: #1a241f; color: #c4d4cb; }
html[data-scheme="dark"] .rt-content a { color: #66d6a8; }
html[data-scheme="dark"] .rt-toolbar, html[data-scheme="dark"] .rt-tab { background: #1a211d; border-color: #2c3a33; color: #dbe6e0; }
html[data-scheme="dark"] .rt-tab.is-active, html[data-scheme="dark"] .rt-preview { background: #131916; border-color: #2c3a33; }
html[data-scheme="dark"] .rt-btn { color: #dbe6e0; }
html[data-scheme="dark"] .pd-description-button { background: transparent; color: #66d6a8; border-color: #66d6a8; }
html[data-scheme="dark"] .pd-description-button:hover { background: #66d6a8; color: #0b1410; }
html[data-scheme="dark"] .pdesc-facts { background: #1a241f; }
html[data-scheme="dark"] .pdesc-facts dt { color: #66d6a8; }

/* Telegram drafts: a photo thumbnail in place of the letter, and icons in the ⋮ menu */
.avatar-dot.is-photo { width: 44px; height: 44px; border-radius: 10px; }
.avatar-dot.is-photo.is-picture { overflow: hidden; padding: 0; background: #e9eeeb; }
.avatar-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.ui-menu-item:has(.ui-menu-icon) { display: flex; align-items: center; gap: 0.65rem; }
.ui-menu-icon { flex: none; width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* The quick big preview of the main picture, shown at the top while the customer is down at the order controls */
dialog.batch-dialog[id^="panel-"] .thumbnail-preview { position: absolute; left: 50%; z-index: 40; width: min(62vw, 250px); max-height: 22vh; margin: 0; padding: 0; transform: translateX(-50%); overflow: hidden; border: 2px solid #fff; border-top: 0; border-radius: 0 0 16px 16px; background: #1d1c18; box-shadow: 0 16px 36px -12px rgb(0 0 0 / 60%); pointer-events: none; }
.thumbnail-preview[hidden] { display: none; }
.thumbnail-preview img { display: block; width: 100%; max-height: 22vh; object-fit: contain; }
.thumbnail-preview.is-showing { animation: thumbnail-preview-in 0.18s ease-out; }
@keyframes thumbnail-preview-in { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .thumbnail-preview.is-showing { animation: none; } }

/* Description format: the chooser, the "text was kept" note, and the extra elements HTML and Markdown can bring */
.rt-format { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; color: #44564c; font-size: 0.85rem; font-weight: 700; }
.rt-format[hidden] { display: none; }
.rt-format select { min-height: 36px; padding: 0 0.5rem; border: 1px solid #cfdcd4; border-radius: 8px; background: #fff; color: #26332c; font: inherit; font-weight: 600; }
.rt-tabs { align-items: flex-end; }
.rt-format-note { margin: 0; padding: 0.55rem 0.8rem; border: 1px solid #f0d58a; border-radius: 10px; background: #fff7dc; color: #6b4e00; font-size: 0.88rem; }
.rt-format-note[hidden] { display: none; }
.rt-editor textarea.rt-text.is-code { font-family: Consolas, "Courier New", monospace; font-size: 0.92rem; }
.rt-content table { width: 100%; margin: 0 0 1em; border-collapse: collapse; font-size: 0.95em; }
.rt-content th, .rt-content td { padding: 0.45em 0.6em; border: 1px solid #d4e0d9; text-align: left; vertical-align: top; }
.rt-content th { background: #f1f8f4; font-weight: 700; }
.rt-content code { padding: 0.1em 0.35em; border-radius: 6px; background: #eef3f0; font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }
.rt-content pre { margin: 0 0 1em; padding: 0.8em 1em; overflow-x: auto; border-radius: 10px; background: #eef3f0; }
.rt-content pre code { padding: 0; background: transparent; }
.rt-content mark { padding: 0.05em 0.2em; border-radius: 4px; background: #fff0a8; }
.rt-content dt { font-weight: 700; }
.rt-content dd { margin: 0 0 0.5em 1em; }
.rt-content > :is(div, span) { margin: 0 0 0.9em; }
html[data-scheme="dark"] .rt-format { color: #9eb0a7; }
html[data-scheme="dark"] .rt-format select { background: #131916; border-color: #2c3a33; color: #dbe6e0; }
html[data-scheme="dark"] .rt-format-note { background: #2a2410; border-color: #5e4d14; color: #f1d98a; }
html[data-scheme="dark"] .rt-content th { background: #1a241f; }
html[data-scheme="dark"] .rt-content th, html[data-scheme="dark"] .rt-content td { border-color: #2c3a33; }
html[data-scheme="dark"] .rt-content code, html[data-scheme="dark"] .rt-content pre { background: #1a241f; }
.rt-editor .rt-tabs .rt-format { display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 0.4rem; margin: 0 0 0 auto; color: #44564c; font-size: 0.85rem; white-space: nowrap; }
.rt-editor .rt-tabs .rt-format[hidden] { display: none; }
.rt-editor .rt-tabs .rt-format span { margin: 0; }
.rt-editor .rt-tabs .rt-format select { width: auto; margin: 0; }
.rt-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; text-align: left; }
.rt-foot > span:last-child { flex: none; }

/* Options the supplier has run out of: still listed, clearly marked, not orderable */
.option-quantity-field.is-out-of-stock { opacity: 0.62; }
.option-quantity-field.is-out-of-stock .option-quantity-label { text-decoration: line-through; text-decoration-thickness: 1px; }
.option-stock-badge { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: #fbe4e1; color: #a02a1d; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.option-quantity-field.is-out-of-stock .quantity-control { pointer-events: none; }
html[data-scheme="dark"] .option-stock-badge { background: #3a1d1a; color: #ff9d92; }

/* The "Out of stock" ticks in the product forms */
.oos-picker { display: grid; gap: 0.4rem; margin: 0.6rem 0; padding: 0.7rem 0.9rem 0.8rem; border: 1px solid #f0c7c1; border-radius: 12px; background: #fff7f6; }
.oos-picker[hidden] { display: none; }
.oos-picker legend { padding: 0 0.4rem; color: #a02a1d; font-weight: 800; }
.oos-picker .help { margin: 0; }
.oos-picker-list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; }
.oos-picker-row { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0 0.7rem; border: 1px solid #e3cfcb; border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; }
.oos-picker-row:has(input:checked) { border-color: #c4493a; background: #fbe4e1; color: #7c1f14; }
.oos-picker-row input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: #c4493a; }
html[data-scheme="dark"] .oos-picker { background: #241615; border-color: #5a2e29; }
html[data-scheme="dark"] .oos-picker-row { background: #1a1110; border-color: #5a2e29; }
html[data-scheme="dark"] .oos-picker-row:has(input:checked) { background: #3a1d1a; color: #ffb8ae; }

/* Find Factories banner: a small picture strip above the welcome banner (or a slim text strip until one is uploaded) */
.factories-banner { max-width: 68rem; margin: 0 auto 0.8rem; }
.factories-banner[hidden] { display: none; }
.factories-banner svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.factories-banner-link { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; overflow: hidden; }
.factories-banner-link:focus-visible, .ff-row:focus-visible { outline: 3px solid #1f8a5b; outline-offset: 2px; }
.factories-banner-image { display: block; width: 100%; aspect-ratio: 195 / 23; object-fit: cover; background: #efe7d6; }
@media (min-width: 681px) { .factories-banner-image { aspect-ratio: 136 / 15; } }
.factories-banner.has-image .factories-banner-link { box-shadow: 0 8px 20px -16px rgb(0 0 0 / 55%); }
.factories-banner-link.is-text { display: flex; align-items: center; gap: 0.7rem; min-height: 3.2rem; padding: 0.4rem 0.8rem; border: 1px solid #f0dcb3; background: linear-gradient(135deg, #fffaf0, #fff3dc); color: #123f31; }
.factories-art { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; color: #e8890c; }
.factories-art svg { width: 100%; height: 100%; stroke-width: 1.6; }
.factories-strip-title { flex: 1 1 auto; min-width: 0; font-size: 1rem; font-weight: 800; text-align: left; }
.factories-strip-go { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; padding: 0 0.8rem; border-radius: 999px; background: #0f5a3c; color: #fff; font-size: 0.8rem; font-weight: 800; }
.factories-strip-go svg { width: 1rem; height: 1rem; stroke-width: 2.2; }
html[data-scheme="dark"] .factories-banner-link.is-text { background: linear-gradient(135deg, #2a2415, #211d12); border-color: #4a3f1f; color: #f1e6c8; }

/* The All Factories page */
/* The All Factories page: green header, search, category cards, one row per factory, and a "request a factory" card */
dialog.all-factories-dialog { background: #f4f7f5; }
dialog.all-factories-dialog[open] { display: flex; flex-direction: column; }
.ff-header { flex: none; display: flex; align-items: center; gap: 0.6rem; padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 1rem 0.9rem; background: linear-gradient(160deg, #0f5a3c, #0a3f2b); color: #fff; }
.ff-back { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 14%); color: #fff; cursor: pointer; }
.ff-back svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ff-heading { display: grid; flex: 1 1 auto; text-align: center; padding-right: 2.4rem; }
.ff-title { font-size: 1.15rem; font-weight: 800; }
.ff-subtitle { font-size: 0.8rem; opacity: 0.85; }
.ff-body { flex: 1 1 auto; width: 100%; max-width: 64rem; margin: -0.5rem auto 0; padding: 0.9rem 1rem 1.5rem; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; background: #f4f7f5; position: relative; }
.ff-chips { display: flex; gap: 0.5rem; margin: 0 0 0.8rem; padding-bottom: 0.2rem; overflow-x: auto; scrollbar-width: none; }
.ff-chips::-webkit-scrollbar { display: none; }
.ff-chip { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.6rem; padding: 0 0.9rem 0 0.65rem; border: 1px solid #e0e8e3; border-radius: 14px; background: #fff; color: #26332c; font: inherit; font-size: 0.84rem; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 14px -14px rgb(0 0 0 / 50%); }
.ff-chip-icon { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; }
.ff-chip-icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ff-chip.is-active { border-color: #0f5a3c; background: #0f5a3c; color: #fff; }
.ff-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0 0 0.7rem; padding: 0.45rem 0; border-top: 1px solid rgb(0 0 0 / 7%); border-bottom: 1px solid rgb(0 0 0 / 7%); }
.ff-bar .factory-views button { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; width: auto; padding: 0 0.75rem; font: inherit; font-size: 0.8rem; font-weight: 700; }
.ff-bar .factory-views svg { flex: none; }
.ff-bar .factory-views { margin-left: 0; }
.ff-count { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ff-sort { display: inline-flex; align-items: center; gap: 0.45rem; color: #44564c; font-size: 0.85rem; font-weight: 650; }
.ff-sort select { min-height: 2.3rem; padding: 0 0.6rem; border: 1px solid #dfe7e2; border-radius: 12px; background: #fff; color: #26332c; font: inherit; font-weight: 600; }
/* The search box sits at the bottom of the screen and stays there; its suggestions open upwards. */
.ff-searchbar { position: relative; flex: none; display: block; margin: 0; padding: 0.6rem 1rem calc(env(safe-area-inset-bottom, 0px) + 0.6rem); border-top: 1px solid rgb(0 0 0 / 7%); background: #f4f7f5; }
.search-assist-host:has(> .ff-searchbar) { flex: none; position: relative; }
.search-assist-host > .ff-searchbar + .search-assist { top: auto; bottom: calc(100% - 0.2rem); }
.ff-search-icon { position: absolute; left: 1.9rem; top: 50%; width: 1.2rem; height: 1.2rem; margin-top: -0.6rem; fill: none; stroke: #7a8a82; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ff-searchbar input { display: block; width: 100%; max-width: 64rem; min-height: 2.9rem; margin: 0 auto; padding: 0 1rem 0 2.9rem; border: 1px solid #e0e8e3; border-radius: 999px; background: #fff; color: #1d3026; font: inherit; font-size: 0.95rem; }
.ff-searchbar input:focus-visible { outline: 3px solid #1f8a5b; outline-offset: 1px; }
.ff-list { display: grid; gap: 0.6rem; }
.ff-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 0.75rem; row-gap: 0.4rem; padding: 0.7rem 0.7rem 0.7rem 0.8rem; border: 1px solid #e3eae5; border-radius: 16px; background: #fff; color: #1d3026; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 8px 18px -16px rgb(0 0 0 / 50%); transition: transform 0.12s, box-shadow 0.12s; }
.ff-row:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -16px rgb(0 0 0 / 55%); }
.ff-row:focus-visible { outline: 3px solid #1f8a5b; outline-offset: 2px; }
.ff-rank { position: absolute; left: -0.2rem; top: -0.3rem; z-index: 1; display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem; border-radius: 8px; background: #e7ece9; color: #44564c; font-size: 0.78rem; font-weight: 800; }
.ff-rank.is-top-1 { background: #f5b82e; color: #fff; }
.ff-rank.is-top-2 { background: #a9b3bc; color: #fff; }
.ff-rank.is-top-3 { background: #d8873a; color: #fff; }
.ff-media { display: grid; place-items: center; width: 4rem; height: 4rem; overflow: hidden; border-radius: 14px; background: #eef3f0; color: #0f5a3c; font-size: 1.5rem; font-weight: 800; }
.ff-media.is-empty { background: linear-gradient(135deg, #e3f1ea, #d6eadf); }
.ff-media img { width: 100%; height: 100%; object-fit: cover; }
.ff-info { display: grid; gap: 0.15rem; min-width: 0; }
.ff-name { font-size: 1rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.ff-kinds { color: #5b6b62; font-size: 0.8rem; line-height: 1.25; }
.ff-stats { display: flex; flex-wrap: wrap; gap: 0.15rem 0.8rem; margin-top: 0.15rem; color: #66766d; font-size: 0.76rem; }
.ff-stat { display: inline-flex; align-items: center; gap: 0.3rem; }
.ff-stat-icon { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ff-stat.is-rating { color: #1d3026; font-weight: 700; }
.ff-stat.is-rating .ff-stat-icon { fill: #f5b82e; stroke: #f5b82e; }
.ff-go { grid-column: 3; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #e3f4ea; color: #0f5a3c; }
.ff-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
@media (min-width: 560px) { .ff-list.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .ff-list.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 980px) { .ff-list.is-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; } }
.ff-list.is-grid .ff-row { grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 0.35rem; padding: 0.7rem 0.75rem 0.75rem; border-radius: 14px; }
.ff-list.is-grid .ff-media { width: 2.6rem; height: 2.6rem; border-radius: 10px; font-size: 1.1rem; }
.ff-list.is-grid .ff-info { gap: 0.1rem; }
.ff-list.is-grid .ff-name { font-size: 1rem; line-height: 1.2; }
.ff-list.is-grid .ff-kinds { display: block; font-size: 0.78rem; }
.ff-list.is-grid .ff-stats { flex-direction: column; gap: 0.05rem; font-size: 0.74rem; }
.ff-list.is-grid .ff-go { display: none; }
.ff-list.is-grid .ff-rank { left: auto; right: 0.5rem; top: 0.5rem; }
.ff-go svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) {
  .ff-row { grid-template-columns: auto minmax(0, 1fr) auto auto; padding: 0.8rem 0.9rem 0.8rem 1rem; }
      .ff-go { grid-column: 4; }
  .ff-media { width: 4.6rem; height: 4.6rem; }
}
.ff-help { display: flex; align-items: center; gap: 0.9rem; margin: 1rem 0 0; padding: 0.9rem 1rem; border-radius: 16px; background: linear-gradient(135deg, #e5f3ea, #d9ede1); }
.ff-help-art { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; color: #e8890c; }
.ff-help-art svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ff-help-copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 0.15rem; color: #1d3026; }
.ff-help-copy strong { font-size: 0.95rem; }
.ff-help-copy span { color: #4d5c54; font-size: 0.82rem; line-height: 1.3; }
.ff-help-button { flex: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.7rem; padding: 0 1rem; border-radius: 12px; background: #0f5a3c; color: #fff; font-size: 0.88rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ff-help-button-icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .ff-help { flex-wrap: wrap; } .ff-help-button { width: 100%; justify-content: center; } }
html[data-scheme="dark"] dialog.all-factories-dialog, html[data-scheme="dark"] .ff-body { background: #0f1512; }
html[data-scheme="dark"] .ff-searchbar input, html[data-scheme="dark"] .ff-chip, html[data-scheme="dark"] .ff-sort select, html[data-scheme="dark"] .ff-row { background: #161c19; border-color: rgb(255 255 255 / 12%); color: #e8efeb; }
html[data-scheme="dark"] .ff-chip.is-active { background: #1f8a5b; border-color: #1f8a5b; }
html[data-scheme="dark"] .ff-kinds, html[data-scheme="dark"] .ff-stats { color: #9fb0a7; }
html[data-scheme="dark"] .ff-searchbar { background: #0f1512; border-color: rgb(255 255 255 / 10%); }
html[data-scheme="dark"] .ff-media, html[data-scheme="dark"] html[data-scheme="dark"] .ff-go { background: #1f3a2d; color: #9fe0c3; }
html[data-scheme="dark"] .ff-help { background: #17251e; }
html[data-scheme="dark"] .ff-help-copy { color: #e8efeb; }
html[data-scheme="dark"] .ff-help-copy span { color: #a6b8ae; }

/* Hearts on the Popular products and New posts cards */
.preorder-most-ordered .available-featured-card { position: relative; }
.preorder-most-ordered .available-featured-card > .wish-heart { top: 0.45rem; right: 0.45rem; left: auto; bottom: auto; width: 2rem; height: 2rem; font-size: 1.1rem; }

/* Ghana Shop "more about this product" rows: an icon in front, the title, a chevron; and links that leave the page */
.pd-acc summary { gap: 0.7rem; justify-content: flex-start; }
.pd-acc-icon { flex: none; width: 1.35rem; height: 1.35rem; fill: none; stroke: #0f5a3c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-acc-title { flex: 1 1 auto; min-width: 0; }
.pd-acc summary .pd-acc-chevron { margin-left: auto; }
.pd-acc-action { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 3.2rem; padding: 0 1rem; border: 0; font: inherit; font-weight: 800; text-align: left; color: inherit; cursor: pointer; }
.pd-acc-action[hidden] { display: none; }
.pd-acc-chevron-right { flex: none; width: 1.2rem; height: 1.2rem; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-acc-action:hover, .pd-acc-action:focus-visible, .pd-acc summary:hover, .pd-acc summary:focus-visible { background: #f1f8f4; border-radius: 16px; }
.pd-link-row { display: flex; align-items: center; gap: 0.65rem; min-height: 2.9rem; padding: 0.4rem 0.8rem; border: 1px solid #dbe7e0; border-radius: 12px; background: #f8fbf9; color: #0f5a3c; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.pd-link-row:hover, .pd-link-row:focus-visible { border-color: #0f5a3c; background: #eef7f2; }
.pd-link-icon { flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-link-text { flex: 1 1 auto; min-width: 0; }
.pd-link-out { flex: none; width: 1rem; height: 1rem; margin-left: auto; opacity: 0.7; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-scheme="dark"] .pd-acc-icon { stroke: #66d6a8; }
html[data-scheme="dark"] .pd-acc-action:hover, html[data-scheme="dark"] .pd-acc-action:focus-visible, html[data-scheme="dark"] .pd-acc summary:hover { background: #1c2621; }
html[data-scheme="dark"] .pd-link-row { background: #17201c; border-color: #2c3a33; color: #66d6a8; }

/* PreOrder: the About row and the Help row sit close together, compact */
/* The form grid puts 0.9rem between rows; the Help row pulls up so it sits just under About (about 4px apart). */
.order-form .pd-description-button { margin: 0.5rem 0 0; min-height: 48px; }

/* PreOrder "About this product": an icon in front, like the Help row under it */
.pd-description-button { gap: 0.7rem; justify-content: flex-start; }
.pd-description-button .pd-acc-icon { stroke: currentColor; }
.pd-description-button .pd-description-text { flex: 1 1 auto; text-align: left; }

/* Home page: no wasted space between the header, the banner and the welcome banner */
body:not(.page-admin)[data-view="preorders"] main.wrap { padding-top: 0.55rem; }
.factories-banner { margin-bottom: 0.5rem; }
#preorder-factories:not([hidden]) + .welcome-hero { margin-top: 0; }
body:not(.page-admin)[data-view="preorders"] .welcome-hero { margin-bottom: 0.9rem; }

/* Staff: the suppliers of a product as tags (a product can come from several) */
.supplier-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; min-height: 2.5rem; padding: 0.3rem 0.45rem; border: 1px solid #cfd9d3; border-radius: 10px; background: #fff; }
.supplier-picker:focus-within { border-color: #167144; box-shadow: 0 0 0 3px rgb(22 113 68 / 14%); }
.supplier-picker-chips { display: contents; }
.supplier-chip { display: inline-flex; align-items: center; gap: 0.3rem; max-width: 100%; padding: 0.15rem 0.3rem 0.15rem 0.6rem; border-radius: 999px; background: #e3f3ea; color: #0f5233; font-size: 0.82rem; font-weight: 700; }
.supplier-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-chip small { padding: 0 0.35rem; border-radius: 999px; background: #167144; color: #fff; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.supplier-chip-remove { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.supplier-chip-remove:hover { background: rgb(15 82 51 / 14%); }
.supplier-picker .supplier-picker-input { flex: 1 1 9rem; min-width: 8rem; min-height: 1.9rem; padding: 0.2rem 0.3rem; border: 0; outline: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; }
.supplier-picker .supplier-picker-input[hidden] { display: none; }
.supplier-picker-note { flex: 1 0 100%; color: #8a4b00; font-size: 0.74rem; }
.supplier-picker-note:empty { display: none; }
.batch-bulk-suppliers { align-items: flex-start; }
.batch-bulk-suppliers .supplier-picker { min-width: min(18rem, 100%); }
html[data-scheme="dark"] .supplier-picker { border-color: rgb(255 255 255 / 16%); background: #1a211e; }
html[data-scheme="dark"] .supplier-chip { background: rgb(102 214 168 / 16%); color: #8fe7c4; }
html[data-scheme="dark"] .supplier-picker-note { color: #f0b46a; }

/* My Orders: each order shows its picture and one line about it, and its page fits a phone screen */
.my-order-row { gap: 0.65rem; }
.my-order-row-thumb { position: relative; flex: none; width: 2.9rem; height: 2.9rem; overflow: hidden; border-radius: 10px; background: #eef3f0; }
.my-order-row-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.my-order-row-copy { display: grid; flex: 1; min-width: 0; gap: 0.1rem; }
.my-order-row-copy .my-order-row-name { display: -webkit-box; overflow: hidden; font-size: 0.92rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.my-order-row-meta { color: #66766d; font-size: 0.76rem; font-weight: 600; }

.my-order-dialog { max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); }
.my-order-dialog-media { height: 8.5rem; }
.my-order-dialog-body { padding: 0.8rem 1.1rem 1rem; }
.my-order-dialog-body h2 { margin-top: 0.4rem; font-size: 1.12rem; line-height: 1.25; }
.my-order-dialog-details { margin-top: 0.65rem; }
.my-order-dialog-details dt, .my-order-dialog-details dd { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.my-order-dialog-actions { gap: 0.5rem; margin-top: 0.75rem; }
.my-order-dialog-actions .my-order-action-button { min-height: 2.6rem; padding-block: 0.5rem; }
@media (min-width: 681px) { .my-order-dialog-media { height: 11rem; } }

.my-order-steps { margin: 0.65rem 0 0; }
.my-order-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.4rem 0.6rem; padding: 0.55rem 0.75rem; border-radius: 12px; background: #fff7e6; color: #173d31; cursor: pointer; list-style: none; }
.my-order-progress::-webkit-details-marker { display: none; }
.my-order-progress-bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.my-order-progress-bar i { height: 5px; border-radius: 999px; background: #e1d9c4; }
.my-order-progress-bar i.is-done { background: #167144; }
.my-order-progress-bar i.is-current { background: #e0a13a; }
.my-order-progress-text { display: grid; min-width: 0; line-height: 1.25; }
.my-order-progress-text strong { overflow: hidden; font-size: 0.86rem; text-overflow: ellipsis; white-space: nowrap; }
.my-order-progress-text small { color: #6d5a2a; font-size: 0.74rem; font-weight: 700; }
.my-order-progress-toggle { display: inline-flex; align-items: center; gap: 0.3rem; color: #167144; font-size: 0.76rem; font-weight: 800; }
.my-order-progress-toggle::after { width: 0.4rem; height: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease; }
.my-order-steps[open] .my-order-progress-toggle::after { transform: translateY(1px) rotate(-135deg); }
.my-order-steps .order-timeline { margin: 0.4rem 0 0; }
html[data-scheme="dark"] .my-order-progress { background: #2a2618; color: #e8efeb; }
html[data-scheme="dark"] .my-order-progress-bar i { background: rgb(255 255 255 / 16%); }
html[data-scheme="dark"] .my-order-progress-text small { color: #e0c98a; }
html[data-scheme="dark"] .my-order-progress-toggle { color: #66d6a8; }
html[data-scheme="dark"] .my-order-row-meta { color: #9fb0a7; }
html[data-scheme="dark"] .my-order-row-thumb { background: #1a211e; }

/* Staff: sub-categories (Bags > Tote bags) as tick chips, and the manager list */
.subcategory-picker { display: grid; gap: 0.5rem; padding: 0.55rem 0.65rem; border: 1px solid #cfd9d3; border-radius: 10px; background: #fff; }
.subcategory-picker-list { display: grid; gap: 0.45rem; }
.subcategory-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.subcategory-group > strong { flex: 1 0 100%; color: #55675e; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.subcategory-chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.subcategory-chip input { position: absolute; opacity: 0; pointer-events: none; }
.subcategory-chip span { padding: 0.3rem 0.7rem; border: 1px solid #cfd9d3; border-radius: 999px; background: #f6f9f7; color: #27352f; font-size: 0.82rem; font-weight: 700; }
.subcategory-chip input:checked + span { border-color: #167144; background: #167144; color: #fff; }
.subcategory-chip input:focus-visible + span { outline: 2px solid #167144; outline-offset: 2px; }
.subcategory-picker-add { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.subcategory-picker-add input { flex: 1 1 10rem; min-width: 0; }
.subcategory-picker-add[hidden], .subcategory-picker-add select[hidden] { display: none; }
.subcategory-manager-heading { margin: 0.7rem 0 0.2rem; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: #55675e; }
.subcategory-manager-row { grid-template-columns: minmax(0, 1fr) auto auto; }
html[data-scheme="dark"] .subcategory-picker { border-color: rgb(255 255 255 / 16%); background: #1a211e; }
html[data-scheme="dark"] .subcategory-chip span { border-color: rgb(255 255 255 / 16%); background: #232b27; color: #e8efeb; }
html[data-scheme="dark"] .subcategory-chip input:checked + span { border-color: #2f9e6b; background: #2f9e6b; color: #fff; }

/* A supplier's page: sub-category filters under the category dropdown */
.factory-subs { display: flex; gap: 0.4rem; margin: 0 0 0.6rem; padding: 0.1rem 0 0.2rem; overflow-x: auto; scrollbar-width: none; }
.factory-subs::-webkit-scrollbar { display: none; }
.factory-subs[hidden] { display: none; }
.factory-sub { flex: none; padding: 0.38rem 0.8rem; border: 1px solid #d5ddd8; border-radius: 999px; background: #fff; color: #27352f; font: inherit; font-size: 0.8rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.factory-sub small { margin-left: 0.25rem; color: #6b7a72; font-size: 0.72rem; font-weight: 700; }
.factory-sub.is-active { border-color: #167144; background: #167144; color: #fff; }
.factory-sub.is-active small { color: rgb(255 255 255 / 80%); }
html[data-scheme="dark"] .factory-sub { border-color: rgb(255 255 255 / 14%); background: #1a211e; color: #e8efeb; }
html[data-scheme="dark"] .factory-sub.is-active { border-color: #2f9e6b; background: #2f9e6b; color: #fff; }

/* Phones: the customer app no longer draws under the clock and battery (it is laid out below them, like the staff app), so
   the strip up there is the header's colour instead of the faded page colour, and pop-ups never start behind it. */
html:has(body:not(.page-admin)) { background: var(--header-dark); }
html[data-scheme="dark"]:has(body:not(.page-admin)) { background: var(--green-deep); }
body:not(.page-admin) { min-height: 100vh; min-height: 100dvh; }

/* The order page: the picture and the close button stay in place and only the details scroll, so opening the steps never
   pushes them out of sight. */
.my-order-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.my-order-dialog .my-order-dialog-media { flex: none; }
.my-order-dialog .my-order-dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Other pop-ups that scroll: their close button stays visible while the content moves under it. */
.momo-payment-dialog .spotlight-close, .spotlight-dialog .spotlight-close { position: sticky; top: 0.4rem; margin: 0 0 -2.2rem auto; }

/* Staff: the shipping sheet upload preview */
.shipping-sheet-upload { display: inline-flex; }
.shipping-sheet-report { display: grid; gap: 0.35rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.shipping-sheet-report li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.6rem; padding: 0.5rem 0.65rem; border: 1px solid #dfe7e2; border-radius: 10px; background: #fff; }
.shipping-sheet-report li strong { overflow: hidden; text-overflow: ellipsis; }
.shipping-sheet-report li small { grid-column: 1 / -1; color: #55675e; font-weight: 600; }
.shipping-sheet-report li.is-apply { border-color: #9fd2b5; background: #f1faf4; }
.shipping-sheet-report li.is-apply small { color: #0f6a3d; }
.shipping-sheet-report li.is-rejected, .shipping-sheet-report li.is-error { border-color: #ecc6c0; background: #fff6f4; }
.shipping-sheet-report li.is-rejected small, .shipping-sheet-report li.is-error small { color: #9a3b2e; }
html[data-scheme="dark"] .shipping-sheet-report li { border-color: rgb(255 255 255 / 12%); background: #161c19; }

/* My Orders: tick several unpaid orders and pay for them at once */
.my-order-rows li.has-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 0.4rem; }
.my-order-rows li.has-pick > .my-order-payment-reminder { grid-column: 1 / -1; }
.my-order-pick { display: grid; place-items: center; width: 2.4rem; height: 3rem; margin-left: -0.3rem; cursor: pointer; }
.my-order-pick input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: #167144; cursor: pointer; }
.my-order-pay-bar { position: sticky; bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; align-items: center; gap: 0.5rem; margin: 0.8rem 0 0; padding: 0.6rem 0.7rem; border: 1px solid #b9d9c7; border-radius: 16px; background: rgb(255 255 255 / 96%); box-shadow: 0 12px 28px -14px rgb(14 38 27 / 45%); backdrop-filter: blur(10px); }
.my-order-pay-bar[hidden] { display: none; }
.my-order-pay-summary { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.my-order-pay-summary strong { font-size: 0.9rem; }
.my-order-pay-summary span { color: #55675e; font-size: 0.78rem; font-weight: 700; }
.my-order-pay-bar .btn { min-height: 2.5rem; padding-inline: 0.9rem; white-space: nowrap; }
html[data-scheme="dark"] .my-order-pay-bar { border-color: rgb(255 255 255 / 14%); background: rgb(22 28 25 / 96%); }
html[data-scheme="dark"] .my-order-pay-summary span { color: #9fb0a7; }

/* Notifications use the app's own type: the same font as everything else, titles like the other list titles (15px, bold), text
   one step smaller, and small print for dates and labels. These rules sit last on purpose: the older notification styles
   each set their own sizes and had drifted apart. */
html body .customer-notification-card .notification-card-title,
html body .staff-payment-alert-item .notification-card-title,
html body .staff-notification-title,
html body .customer-notification-heading .notification-card-title { font-family: var(--font-ui) !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.3 !important; }
html body .customer-notification-card .notification-card-body,
html body .staff-payment-alert-item .notification-card-body,
html body .staff-notifications-list .notification-card-body,
html body .customer-alerts-list .customer-notification-card .notification-card-body { font-family: var(--font-ui) !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.45 !important; }
html body .customer-notification-category,
html body .staff-notification-meta { font-family: var(--font-ui) !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: 0.04em; }
html body .customer-notification-card .notification-card-time,
html body .staff-payment-alert-item .notification-card-time,
html body .staff-notification-time,
html body .customer-alerts-list .customer-notification-card .notification-card-meta { font-family: var(--font-ui) !important; font-size: 12px !important; font-weight: 500 !important; }
html body .customer-notification-card .notification-card-action,
html body .customer-notification-card .customer-notification-action,
html body .staff-payment-alert-item .staff-notification-card-action { font-family: var(--font-ui) !important; font-size: 13px !important; font-weight: 700 !important; }
html body .customer-notification-card .notification-card-state { font-family: var(--font-ui) !important; font-size: 11px !important; font-weight: 800 !important; }
html body .staff-notification-amount, html body .customer-notification-amount { font-family: var(--font-ui) !important; font-size: 15px !important; font-weight: 700 !important; }
/* The title and its "New" tag sit on one line with room between them; the date and the "Read full update" link wrap apart. */
html body .customer-notification-heading { gap: 0.5rem !important; }
html body .customer-notification-card .notification-card-meta { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-start !important; gap: 0.2rem 0.9rem !important; text-align: left; }
html body .customer-alerts-popup-header strong { font-size: 16px; }
html body .customer-alerts-popup-header button { font-size: 13px; }

/* "Order added - View all your orders" on a PreOrder product page: it floats above the order bar (not over its buttons), is as
   wide as the screen allows, and the button drops under the words on a narrow phone instead of cutting them off. */
.cart-toast.is-order { bottom: calc(12.5rem + env(safe-area-inset-bottom, 0px)); flex-wrap: wrap; justify-content: space-between; width: min(92vw, 26rem); white-space: normal; }
.cart-toast.is-order span { flex: 1 1 8rem; overflow: visible; text-overflow: clip; }
.cart-toast.is-order button { flex: 1 1 auto; }

/* PreOrder product page: About this product, Ask SamDart and Report are three rows of the same size, one under the other. */
.pd-link-stack { display: grid; gap: 0.5rem; margin: 0.5rem 0 0.4rem; }
.order-form .pd-link-stack .pd-description-button, .pd-link-stack .pd-link-row {
  box-sizing: border-box; display: flex; align-items: center; gap: 0.65rem; width: 100%; min-height: 2.9rem; margin: 0; padding: 0.4rem 0.8rem;
  border: 1px solid #dbe7e0; border-radius: 12px; background: #f8fbf9; color: #0f5a3c; font: inherit; font-size: 0.9rem; font-weight: 700; text-align: left; text-decoration: none;
}
.order-form .pd-link-stack .pd-description-button[hidden] { display: none; }
.pd-link-stack .pd-description-button:hover, .pd-link-stack .pd-description-button:focus-visible { border-color: #0f5a3c; background: #eef7f2; color: #0f5a3c; }
.pd-link-stack .pd-description-button .pd-acc-icon { flex: none; width: 1.25rem; height: 1.25rem; stroke: currentColor; }
.pd-link-stack .pd-description-chevron { margin-left: auto; font-size: 1.3rem; line-height: 1; opacity: 0.7; }
html[data-scheme="dark"] .pd-link-stack .pd-description-button { background: #17201c; border-color: #2c3a33; color: #66d6a8; }
html[data-scheme="dark"] .pd-link-stack .pd-description-button:hover { background: #1c2621; color: #66d6a8; }

/* Compact: the three rows are shorter and sit close together and close to what is above and below them. */
.order-form .pd-link-stack { gap: 0.25rem; margin: -0.35rem 0 -0.45rem; }
.order-form .pd-link-stack .pd-description-button, .order-form .pd-link-stack .pd-link-row { min-height: 2.2rem; padding: 0.2rem 0.7rem; gap: 0.55rem; border-radius: 10px; font-size: 0.86rem; line-height: 1.2; }
.pd-link-stack .pd-description-button .pd-acc-icon, .pd-link-stack .pd-link-icon { width: 1.05rem; height: 1.05rem; }
.pd-link-stack .pd-link-out { width: 0.85rem; height: 0.85rem; }
.pd-link-stack .pd-description-chevron { font-size: 1.15rem; }

/* PreOrder cards: clean like other shops. The whole card (picture, name, price) opens the product; "View & Order" stays as a small
   button; the supplier is plain text. */
html body:not(.page-admin) .batch .batch-supplier { margin: 0; padding: 0; font-size: 0.66rem; cursor: inherit; }
html body:not(.page-admin) .batch .batch-supplier:hover { text-decoration: none; }
html body:not(.page-admin) #batch-list > .batch > .batch-toggle { min-height: 1.7rem !important; height: auto; margin-top: 0.1rem; padding: 0.05rem 0.5rem !important; border-radius: 9px; font-size: 0.74rem !important; line-height: 1.2; }
html body:not(.page-admin) #batch-list > .batch { cursor: pointer; }

/* Compact: three across on a phone (a choice next to Grid and List). Only the picture, the name and the price are left, and the whole
   card is the button. */
@media (max-width: 700px) {
  html[data-products="compact"] body:not(.page-admin) #batch-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch { gap: 0.2rem; padding: 0.25rem; border-radius: 12px; }
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch > .product-cover { border-radius: 9px; }
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .batch-name { font-size: 0.74rem; line-height: 1.2; }
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .product-price { font-size: 0.84rem; }
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .product-details { padding: 0 0.1rem; }
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .batch-supplier,
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .batch-count-row,
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .batch-rating,
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .product-cover .batch-date,
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch > .batch-toggle { display: none; }
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .wish-heart { width: 1.65rem; height: 1.65rem; }
  html[data-products="compact"] body:not(.page-admin) #batch-list > .batch .product-cover .pill { top: 0.25rem; right: 0.25rem; font-size: 0.56rem; }
}

/* "NB: Shipping fees are excluded!." and the estimate share one line (never two). */
.order-intro > .preorder-shipping-disclosure { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.74rem; }
.preorder-shipping-estimate { margin-left: 0.35rem; font-weight: 800; }
.preorder-shipping-estimate[hidden] { display: none; }
dialog.batch-dialog[id^="panel-"] .order-intro > .preorder-shipping-disclosure { font-size: 0.74rem; }

/* My Orders preview: a way to open the product's own page */
.my-order-product-link { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%; min-height: 2.4rem; margin: 0.65rem 0 0; padding: 0.3rem 0.8rem; border: 1px solid #dbe7e0; border-radius: 10px; background: #f8fbf9; color: #0f5a3c; font: inherit; font-size: 0.88rem; font-weight: 700; text-align: left; cursor: pointer; }
.my-order-product-link[hidden] { display: none; }
.my-order-product-link:hover, .my-order-product-link:focus-visible { border-color: #0f5a3c; background: #eef7f2; }
.my-order-product-link-arrow { font-size: 1.3rem; line-height: 1; opacity: 0.7; }
html[data-scheme="dark"] .my-order-product-link { background: #17201c; border-color: #2c3a33; color: #66d6a8; }

/* NB and ESF side by side on one row */
.preorder-shipping-row { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; min-width: 0; }
.preorder-shipping-row > .preorder-shipping-disclosure { flex: 1 1 auto; min-width: 0; margin: 0; }
.preorder-shipping-row > .preorder-shipping-estimate { flex: none; margin: 0; padding: 0.5rem 0.65rem; border-radius: 10px; background: #fff7e0; color: #7a4b00; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.preorder-shipping-row > .preorder-shipping-estimate[hidden] { display: none; }

/* Order preview: "Open Page" top left (the close button is top right), "Check shipping fee" right of the status */
.my-order-open-page { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.3rem; height: 2.2rem; padding: 0 0.75rem 0 0.6rem; border: 0; border-radius: 999px; background: rgb(255 255 255 / 92%); color: #173d31; font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 16%); }
.my-order-open-page[hidden] { display: none; }
.my-order-open-page svg, .my-order-shipping-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.my-order-dialog-badges { align-items: center; }
.my-order-shipping-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: auto; padding: 0.25rem 0.6rem; border: 1px solid #cfe3d8; border-radius: 999px; background: #f2f9f5; color: #0f5a3c; font: inherit; font-size: 0.74rem; font-weight: 800; cursor: pointer; }
.my-order-shipping-dialog { width: min(24rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow-y: auto; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 28px 70px rgb(7 40 30 / 32%); }
.my-order-shipping-dialog::backdrop { background: rgb(8 20 15 / 55%); }
.my-order-shipping-body { padding: 1.3rem 1.1rem 1.1rem; }
.my-order-shipping-body h2 { margin: 0 2rem 0.2rem 0; font-size: 1.15rem; }
.my-order-shipping-product { margin: 0 0 0.6rem; color: #5f6f67; font-size: 0.82rem; }
.my-order-shipping-note, .my-order-shipping-tip, .my-order-shipping-invite { margin: 0.65rem 0 0; font-size: 0.82rem; line-height: 1.45; }
.my-order-shipping-tip { padding: 0.55rem 0.7rem; border-radius: 10px; background: #fff7e0; color: #5c3a00; }
.my-order-shipping-invite { font-weight: 700; }
.my-order-shipping-body .btn { width: 100%; margin-top: 0.5rem; }
html[data-scheme="dark"] .my-order-shipping-dialog { background: #17201c; }
html[data-scheme="dark"] .my-order-open-page { background: rgb(30 42 36 / 92%); color: #e5f3ec; }
html[data-scheme="dark"] .my-order-shipping-link { background: #1d2a24; border-color: #2c3a33; color: #66d6a8; }
html[data-scheme="dark"] .my-order-shipping-tip, html[data-scheme="dark"] .preorder-shipping-row > .preorder-shipping-estimate { background: #2f2812; color: #f1d58a; }

.preorder-shipping-row > .preorder-shipping-disclosure { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.74rem; }
