/* 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; }
@media (hover: hover) { .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; }
@media (hover: hover) { 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: nowrap; gap: 0.7rem; padding: 1rem 0.9rem; }
  .acct-edit { width: auto; min-height: 2.3rem; padding: 0 0.8rem; font-size: 0.82rem; }
  .acct-hero-copy { overflow-wrap: anywhere; }
  .acct-hero .acct-avatar { width: 4rem; height: 4rem; font-size: 1.6rem; }
  .acct-name { font-size: 1.25rem; }
  /* The Edit button stays at the right as a round icon, so the name keeps its room. */
  .acct-edit { width: 2.5rem; height: 2.5rem; min-height: 2.5rem; padding: 0; justify-content: center; }
  .acct-edit span { display: none; }
  .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; }
@media (hover: hover) { .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;
  }
  @media (hover: hover) { 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;
  }
  @media (hover: hover) { 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; }
  @media (hover: hover) { 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; 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; }
@media (hover: hover) { .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; }

/* 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; 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; 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-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 summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.75rem; margin: -0.85rem -0.9rem; padding: 0.85rem 0.9rem; cursor: pointer; list-style: none; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #5d6c64; }
.my-order-activity summary::-webkit-details-marker { display: none; }
.my-order-activity summary::after { content: ""; width: 0.5rem; height: 0.5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.15s; }
.my-order-activity[open] summary { margin-bottom: 0.1rem; }
.my-order-activity[open] summary::after { transform: rotate(-135deg); }
.my-order-activity ol { margin-top: 1.2rem; }
.my-order-track-cta { display: block; width: 100%; margin-top: 0.75rem; min-height: 2.75rem; }
.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 summary { 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; 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; 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; }
@media (hover: hover) { .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:focus-visible svg { fill: rgb(255 255 255 / 25%); }
@media (hover: hover) { .header-saved-button:hover 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) {
  /* The button stays at the right of the card on a phone: it gets smaller and the text beside it shrinks. */
  .invite-card { flex-wrap: nowrap; gap: 0.6rem; padding: 0.9rem; }
  .invite-card-icon { width: 2.4rem; height: 2.4rem; border-radius: 12px; }
  .invite-card-icon svg { width: 1.3rem; height: 1.3rem; }
  .invite-card-copy h2 { font-size: 1rem; }
  .invite-card-button { min-height: 2.4rem; padding: 0 0.8rem; font-size: 0.82rem; }
}
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%); }
@media (hover: hover) { .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; }
@media (hover: hover) { .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%); }
@media (hover: hover) { 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.is-active { background: #f1f6f2; }
@media (hover: hover) { .search-assist-row:hover { 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.is-active { background: #1c2420; }
@media (hover: hover) { html[data-scheme="dark"] .search-assist-row:hover { 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; }
@media (hover: hover) { .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; }
@media (hover: hover) { .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; 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; }
@media (hover: hover) { .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; }
@media (hover: hover) { 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; }
@media (hover: hover) { .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; }
@media (hover: hover) { .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; }
@media (hover: hover) { .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; }
@media (hover: hover) { .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; }
@media (hover: hover) { .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; }
@media (hover: hover) { .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; }
@media (hover: hover) { 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; }
@media (hover: hover) { .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; }
@media (hover: hover) { 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; }
@media (hover: hover) { button.stat-card:hover .stat-go { transform: translateX(2px); color: #167144; } }
@media (prefers-reduced-motion: reduce) { button.stat-card, .stat-go { transition: none; } @media (hover: hover) { 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[aria-pressed="true"] { background: #dcefe4; border-color: #b9d8c6; }
@media (hover: hover) { .rt-btn:hover { 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:focus-visible { background: #0f5a3c; color: #fff; }
@media (hover: hover) { .pd-description-button:hover { 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; }
@media (hover: hover) { 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; }
@media (hover: hover) { .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:focus-visible,
.pd-acc summary:focus-visible { background: #f1f8f4; border-radius: 16px; }
@media (hover: hover) { .pd-acc-action:hover,
.pd-acc summary:hover { 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:focus-visible { border-color: #0f5a3c; background: #eef7f2; }
@media (hover: hover) { .pd-link-row:hover { 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:focus-visible { background: #1c2621; }
@media (hover: hover) { html[data-scheme="dark"] .pd-acc-action:hover,
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; }
@media (hover: hover) { .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 { position: relative; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto; align-items: center; column-gap: 0.3rem; }
.my-order-rows li.has-pick > .my-order-payment-reminder, .my-order-rows li.has-pick > .my-order-again { grid-column: 2 / -1; }
.my-order-rows li.has-pick > .my-order-payment-reminder { grid-column: 1 / -1; }
.my-order-rows li.has-pick .my-order-row { border-bottom: 0; }
.my-order-rows li.has-pick { border-bottom: 1px solid #eee7da; }
.my-order-rows li.has-pick:last-child { border-bottom: 0; }
.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:focus-visible { border-color: #0f5a3c; background: #eef7f2; color: #0f5a3c; }
@media (hover: hover) { .pd-link-stack .pd-description-button:hover { 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; }
@media (hover: hover) { 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; }
@media (hover: hover) { 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:focus-visible { border-color: #0f5a3c; background: #eef7f2; }
@media (hover: hover) { .my-order-product-link:hover { 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-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-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; }

/* Prices from a cost in yuan: product forms and Settings > Prices */
.pricing-fields { display: grid; gap: 0.45rem; padding: 0.7rem; border: 1px dashed #cfe3d8; border-radius: 12px; background: #f8fbf9; }
.pricing-fields > label { display: grid; gap: 0.3rem; font-weight: 700; }
.pricing-profit-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.5rem; }
.pricing-profit-row > select:only-child { grid-column: 1 / -1; }
.pricing-profit-row input[hidden] { display: none; }
.pricing-preview { margin: 0; min-height: 1.2em; font-size: 0.84rem; font-weight: 700; color: #0f5a3c; }
.pricing-preview.is-error { color: #b42318; }
.pricing-category-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.pricing-category-name { font-size: 0.88rem; font-weight: 700; overflow-wrap: anywhere; }
.pricing-settings-form h4 { margin: 0.9rem 0 0.35rem; font-size: 0.9rem; }
html[data-scheme="dark"] .pricing-fields { background: #17201c; border-color: #2c3a33; }
html[data-scheme="dark"] .pricing-preview { color: #66d6a8; }

.pricing-change-list { margin: 0.4rem 0 0.7rem; padding-left: 1.1rem; font-size: 0.84rem; max-height: 14rem; overflow-y: auto; }
.pricing-change-list li { margin: 0.15rem 0; overflow-wrap: anywhere; }
.pricing-settings-form [data-pricing-preview] { margin-top: 0.4rem; }
.pricing-convert-list { display: grid; gap: 0.35rem; margin: 0.5rem 0; max-height: 18rem; overflow-y: auto; }
.pricing-convert-row { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(5rem, 0.9fr); gap: 0.5rem; align-items: center; }
.pricing-convert-name { font-size: 0.86rem; font-weight: 700; overflow-wrap: anywhere; }
.pricing-convert-price { font-size: 0.82rem; color: #5f6f67; white-space: nowrap; }

/* Order cycle: the note on a closed batch */
.my-order-cycle-note { margin: 0.2rem 0 0.6rem; padding: 0.55rem 0.7rem; border-radius: 10px; background: #fff7e0; color: #5c3a00; font-size: 0.82rem; line-height: 1.4; }
.closed-note { line-height: 1.4; }
html[data-scheme="dark"] .my-order-cycle-note { background: #2f2812; color: #f1d58a; }

/* Admin: the monthly order cycle card on the Batches screen */
.order-cycle-card { display: grid; gap: 0.5rem; margin: 0 0 0.9rem; padding: 0.8rem 0.9rem; border: 1px solid #cfe3d8; border-radius: 14px; background: #f8fbf9; }
.order-cycle-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 0.8rem; }
.order-cycle-summary { font-size: 0.82rem; color: #4f6158; }
.order-cycle-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.order-cycle-panel { display: grid; gap: 0.5rem; }
.order-cycle-panel:empty { display: none; }
.order-cycle-panel label { display: grid; gap: 0.25rem; font-weight: 700; }
.order-cycle-card .help, .order-cycle-card .form-error { margin: 0; }
.order-cycle-card .help:empty, .order-cycle-card .form-error:empty { display: none; }
html[data-scheme="dark"] .order-cycle-card { background: #17201c; border-color: #2c3a33; }
html[data-scheme="dark"] .order-cycle-summary { color: #a9c0b4; }

/* Admin: "This month's products" switches */
.order-cycle-products { display: grid; gap: 0.5rem; }
.order-cycle-products[hidden] { display: none; }
.order-cycle-products label:not(.cycle-product-row) { display: grid; gap: 0.25rem; font-weight: 700; }
.cycle-product-list { display: grid; gap: 0.3rem; max-height: 24rem; overflow-y: auto; }
.cycle-product-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; padding: 0.35rem 0.5rem; border: 1px solid #dbe7e0; border-radius: 10px; background: #fff; cursor: pointer; }
.cycle-product-row.is-on { border-color: #86c3a4; background: #f0f8f3; }
.cycle-product-thumb { width: 2.4rem; height: 2.4rem; overflow: hidden; border-radius: 8px; background: #eef2ef; }
.cycle-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cycle-product-text { display: grid; min-width: 0; }
.cycle-product-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.cycle-product-text small { color: #5f6f67; font-size: 0.76rem; }
.cycle-product-row input[type="checkbox"] { width: 2.4rem; height: 1.4rem; accent-color: #0f5a3c; cursor: pointer; }
html[data-scheme="dark"] .cycle-product-row { background: #17201c; border-color: #2c3a33; }
html[data-scheme="dark"] .cycle-product-row.is-on { background: #1a2a22; border-color: #3d6b52; }
html[data-scheme="dark"] .cycle-product-text small { color: #a9c0b4; }

/* Earlier orders: a plain line above "Current Orders" (EARLIER ORDERS | TOD), with a thin line between it and the heading. */
.earlier-orders-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; margin: 0 0 0.6rem; padding: 0 0 0.55rem; border-bottom: 1px solid #dbe7e0; color: #3d5248; font-size: 0.82rem; }
.earlier-orders-note[hidden] { display: none; }
.earlier-orders-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.earlier-orders-item svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.earlier-orders-item strong { font-size: 0.95rem; color: #0f5a3c; }
.earlier-orders-item > span { font-weight: 700; }
.earlier-orders-dash { margin: 0 0.45rem; }
html[data-scheme="dark"] .earlier-orders-note { border-bottom-color: #2c3a33; color: #a9c0b4; }
html[data-scheme="dark"] .earlier-orders-item strong { color: #66d6a8; }

/* About this product, Ask SamDart and Report sit together in one card, with a fine line between the rows. */
.pd-link-stack, .order-form .pd-link-stack { gap: 0; margin: 0.6rem 0 0.5rem; padding: 0.15rem 0.35rem; border: 1px solid #dbe7e0; border-radius: 14px; background: #f8fbf9; }
.pd-link-stack > * + *, .order-form .pd-link-stack > * + * { border-top: 1px solid #e3ece8; }
.pd-link-stack .pd-description-button, .pd-link-stack .pd-link-row,
.order-form .pd-link-stack .pd-description-button, .order-form .pd-link-stack .pd-link-row { border: 0; border-radius: 10px; background: transparent; }
.pd-link-stack > [hidden] + *, .order-form .pd-link-stack > [hidden] + * { border-top: 0; }
html[data-scheme="dark"] .pd-link-stack, html[data-scheme="dark"] .order-form .pd-link-stack { border-color: #2c3a33; background: #17201c; }
html[data-scheme="dark"] .pd-link-stack > * + * { border-top-color: #2c3a33; }
html[data-scheme="dark"] .pd-link-stack .pd-description-button, html[data-scheme="dark"] .pd-link-stack .pd-link-row { background: transparent; }

/* Small, rounded tick boxes everywhere (switches keep their own look). */
html:not([data-large-targets="true"]) body input[type="checkbox"]:not([role="switch"]) {
  -webkit-appearance: none !important; appearance: none !important; box-sizing: border-box !important; flex: none !important; width: 1.05rem !important; min-width: 1.05rem !important; height: 1.05rem !important; min-height: 1.05rem !important; margin: 0 !important; padding: 0 !important; border: 1.5px solid #9db5a9 !important; border-radius: 6px !important; background: #fff center / 0.72rem no-repeat !important; cursor: pointer !important; vertical-align: middle !important; transition: background-color 0.12s, border-color 0.12s !important; }
html:not([data-large-targets="true"]) body input[type="checkbox"]:not([role="switch"]):checked {
  border-color: #0f5a3c !important; background-color: #0f5a3c !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important; }
html:not([data-large-targets="true"]) body input[type="checkbox"]:not([role="switch"]):indeterminate {
  border-color: #0f5a3c !important; background-color: #0f5a3c !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") !important; }
html:not([data-large-targets="true"]) body input[type="checkbox"]:not([role="switch"]):focus-visible { outline: 2px solid #8fcdb0 !important; outline-offset: 2px !important; }
html:not([data-large-targets="true"]) body input[type="checkbox"]:not([role="switch"]):disabled { opacity: 0.5 !important; cursor: not-allowed !important; }
html[data-scheme="dark"]:not([data-large-targets="true"]) body input[type="checkbox"]:not([role="switch"]):not(:checked):not(:indeterminate) { border-color: #4a5e54 !important; background-color: #101713 !important; }
html[data-scheme="dark"]:not([data-large-targets="true"]) body input[type="checkbox"]:not([role="switch"]):checked,
html[data-scheme="dark"]:not([data-large-targets="true"]) body input[type="checkbox"]:not([role="switch"]):indeterminate { border-color: #2f9e72 !important; background-color: #2f9e72 !important; }

/* Sign-out icon on the top right corner of the Account banner, half outside it. */
.acct-hero-wrap { position: relative; }
.acct-signout { position: absolute; z-index: 2; top: -0.55rem; right: -0.3rem; display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #fff; color: #0f4a38; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); cursor: pointer; }
.acct-signout svg { width: 1.05rem; height: 1.05rem; }
.acct-signout:focus-visible { background: #c4493a; border-color: #c4493a; color: #fff; }
@media (hover: hover) { .acct-signout:hover { background: #c4493a; border-color: #c4493a; color: #fff; } }
html[data-scheme="dark"] .acct-signout { border-color: #17201c; background: #e4f3ec; }

/* One rule for every heading: each word starts with a capital letter. New headings follow it without any extra work. Names that people type
   (product names and the like) are left as written; add class "keep-case" to any other heading that must stay as typed. */
h1, h2, h3, h4, h5, h6 { text-transform: capitalize; }
h1[class*="name"], h2[class*="name"], h3[class*="name"], h4[class*="name"], h5[class*="name"], h6[class*="name"], .keep-case { text-transform: none; }

/* "Check Shipping Fee": a rounded label in the colour of the order's status (amber when unpaid, green when paid...), with a light that
   sweeps across it, a truck that rolls, and a round arrow that sticks out of its right edge and nudges forward. */
.my-order-shipping-link { --ship-bg: #fff1d6; --ship-fg: #8a5a00; --ship-line: #e8c987; --ship-glow: rgb(138 90 0 / 26%); position: relative; display: inline-flex; align-items: center; margin: 0 0.6rem 0 auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ship-fg); font: inherit; cursor: pointer; overflow: visible; transition: transform 0.15s; }
.my-order-shipping-link.is-paid { --ship-bg: #e2f4ea; --ship-fg: #16774a; --ship-line: #a9d9bf; --ship-glow: rgb(22 119 74 / 26%); }
.my-order-shipping-link.is-paying { --ship-bg: #e6eefb; --ship-fg: #2a5aa6; --ship-line: #b4c9ee; --ship-glow: rgb(42 90 166 / 26%); }
.my-order-shipping-link.is-updating { --ship-bg: #fff3d8; --ship-fg: #805000; --ship-line: #e8cf94; --ship-glow: rgb(128 80 0 / 26%); }
.my-order-shipping-link .shipping-face { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; overflow: hidden; padding: 0.28rem 1.3rem 0.28rem 0.4rem; border: 1px solid var(--ship-line); border-radius: 9px; background: var(--ship-bg); box-shadow: 0 3px 9px var(--ship-glow); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.my-order-shipping-link .shipping-face::before { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 80%), transparent); transform: skewX(-18deg); animation: shipping-shine 3.6s ease-in-out infinite; pointer-events: none; }
.my-order-shipping-link .shipping-face svg { flex: none; width: 0.85rem; height: 0.85rem; padding: 0.16rem; box-sizing: content-box; border-radius: 50%; background: var(--ship-fg); color: var(--ship-bg); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: shipping-roll 2.4s ease-in-out infinite; }
.my-order-shipping-link .shipping-arrow { position: absolute; top: 50%; right: -0.6rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ship-fg); color: var(--ship-bg); box-shadow: 0 2px 7px var(--ship-glow), 0 0 0 2px #fff; transform: translateY(-50%); animation: shipping-arrow-nudge 1.6s ease-in-out infinite; }
.my-order-shipping-link .shipping-arrow svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.my-order-shipping-link:focus-visible { transform: translateY(-1px); }
@media (hover: hover) { .my-order-shipping-link:hover { transform: translateY(-1px); } }
.my-order-shipping-link:active { transform: scale(0.97); }
@keyframes shipping-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes shipping-arrow-nudge { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(3px); } }
@keyframes shipping-roll { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.5px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .my-order-shipping-link .shipping-face::before, .my-order-shipping-link .shipping-face svg, .my-order-shipping-link .shipping-arrow { animation: none; } }
html[data-scheme="dark"] .my-order-shipping-link { --ship-bg: #3a2e12; --ship-fg: #f0c077; --ship-line: #5b4820; --ship-glow: rgb(0 0 0 / 40%); background: none; border: 0; }
html[data-scheme="dark"] .my-order-shipping-link.is-paid { --ship-bg: #12281d; --ship-fg: #66d6a8; --ship-line: #25503c; }
html[data-scheme="dark"] .my-order-shipping-link.is-paying { --ship-bg: #17233a; --ship-fg: #8fb4f5; --ship-line: #2a3f66; }
html[data-scheme="dark"] .my-order-shipping-link .shipping-arrow { box-shadow: 0 2px 7px var(--ship-glow), 0 0 0 2px #161d1a; }

/* My Orders and My Invoice: each month's heading has a calendar icon (short month name over the month number) and a line under it that separates it from the products. */
.my-order-group > summary > span:first-child, .invoice-group > summary > span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; }
.group-month-icon { display: inline-grid; flex: none; width: 1.7rem; overflow: hidden; border: 1px solid #bfdccd; border-radius: 6px; background: #fff; text-align: center; }
.group-month-icon small { background: var(--green-action); color: #fff; font-size: 0.4rem; font-weight: 800; letter-spacing: 0.05em; line-height: 0.72rem; }
.group-month-icon b { color: var(--green-deep); font-size: 0.78rem; font-weight: 800; line-height: 0.98rem; }
.my-order-group[open] > summary, .invoice-group[open] > summary { position: relative; border-bottom: 1px solid var(--line); }
.my-order-group[open] > summary::before, .invoice-group[open] > summary::before { content: ""; position: absolute; left: 1rem; bottom: -1px; width: 3.4rem; height: 3px; border-radius: 3px; background: var(--green-action); }
.my-order-group[open] > .cutoff-group-content, .invoice-group[open] > .cutoff-group-content { padding-top: 0.6rem; }
@media print { .group-month-icon { display: none; } .invoice-group[open] > summary::before { display: none; } }
html[data-scheme="dark"] .group-month-icon { border-color: #2c3a33; background: #161d1a; }
html[data-scheme="dark"] .group-month-icon b { color: var(--ink); }

/* Quantity buttons: no double-tap zoom or delayed second tap, and no text selection while tapping fast. */
.quantity-step, .pd-qty-step, .available-dialog-quantity-step, .available-cart-line-actions button { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* "Start next cycle" panel on the Batches screen */
.order-cycle-panel label.cycle-next-tick { display: flex; flex-direction: row; align-items: center; gap: 0.6rem; margin: 0.9rem 0 0.2rem; cursor: pointer; }
.cycle-next-field { display: grid; gap: 0.25rem; font-weight: 700; margin: 0.4rem 0; max-width: 16rem; }
.cycle-next-products { display: grid; gap: 0.5rem; margin: 0.4rem 0 0.8rem; }
.order-cycle-panel label.cycle-next-field[hidden], .cycle-next-products[hidden] { display: none; }

/* Swatch picker for products with many colours and sizes (public/js/option-picker.js) */
.batch-dialog .option-picker { display: grid; gap: 0.9rem; }
.batch-dialog .option-picker-heading { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.batch-dialog .option-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.batch-dialog .option-swatch { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; padding: 0.25rem 0.75rem 0.25rem 0.25rem; border: 1px solid var(--line); border-radius: 11px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 0.88rem; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.batch-dialog .option-swatch-picture { flex: 0 0 auto; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; overflow: hidden; border-radius: 8px; background: var(--paper); color: var(--muted); font-weight: 800; }
.batch-dialog .option-swatch-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.batch-dialog .option-swatch-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.batch-dialog .option-swatch[aria-pressed="true"] { border-color: var(--green-action); box-shadow: 0 0 0 1px var(--green-action); color: var(--green-action); font-weight: 750; }
.batch-dialog .option-swatch.has-quantity:not([aria-pressed="true"]) { border-color: #9fd2b8; background: #f2faf5; }
.batch-dialog .option-swatch-count { position: absolute; top: -0.45rem; right: -0.3rem; display: grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; border-radius: 999px; background: var(--green-action); color: #fff; font-size: 0.72rem; font-weight: 800; }
.batch-dialog .option-swatch-count[hidden] { display: none; }
.batch-dialog .option-swatch.is-out-of-stock { opacity: 0.55; }
.batch-dialog .option-swatch-out { color: var(--danger); font-size: 0.72rem; font-weight: 700; }
.batch-dialog .option-size-panel[hidden] { display: none; }
.batch-dialog .option-size-list { display: grid; }
.batch-dialog .option-size-row.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.15rem 0.75rem; margin: 0; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.batch-dialog .option-size-row.field label { display: grid; gap: 0.1rem; margin: 0; color: var(--ink); font-size: 0.92rem; font-weight: 650; line-height: 1.25; }
.batch-dialog .option-size-price { color: #bd5c0a; font-size: 0.85rem; font-weight: 750; }
.batch-dialog .option-size-row.is-out-of-stock { opacity: 0.6; }
.batch-dialog .option-picked { padding: 0.65rem 0.75rem; border: 1px solid #cfe5d8; border-radius: 12px; background: #f4faf6; }
.batch-dialog .option-picked-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.45rem; font-size: 0.9rem; }
.batch-dialog .option-picked-clear { padding: 0.15rem 0.4rem; border: 0; background: none; color: var(--danger); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.batch-dialog .option-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.batch-dialog .option-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.3rem 0.2rem 0.6rem; border: 1px solid #b9dcc8; border-radius: 999px; background: #fff; font-size: 0.82rem; }
.batch-dialog .option-chip-quantity { color: var(--green-action); }
.batch-dialog .option-chip-remove { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; padding: 0; border: 0; border-radius: 50%; background: #e8efeb; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.batch-dialog .option-size-tag { display: inline-block; min-width: 1.6rem; color: var(--green-action); font-weight: 800; }
.batch-dialog .option-picked-key { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.batch-dialog .option-size-row .quantity-control { grid-template-columns: 2.6rem 3.4rem 2.6rem; width: auto; }
.batch-dialog .option-size-row .quantity-control input { min-width: 0; }
.batch-dialog .option-size-name { overflow-wrap: anywhere; }

/* Long size names wrap instead of pushing the product page sideways */
.dialog-product-option-price { white-space: normal; overflow-wrap: anywhere; }

/* Swatch picker in the dark theme */
html[data-scheme="dark"] .batch-dialog .option-swatch[aria-pressed="true"] { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); color: var(--accent-text); }
html[data-scheme="dark"] .batch-dialog .option-swatch.has-quantity:not([aria-pressed="true"]) { border-color: #2e6a50; background: #14231c; }
html[data-scheme="dark"] .batch-dialog .option-size-tag, html[data-scheme="dark"] .batch-dialog .option-chip-quantity { color: var(--accent-text); }
html[data-scheme="dark"] .batch-dialog .option-size-price { color: var(--amber-text); }
html[data-scheme="dark"] .batch-dialog .option-picked { border-color: #284a3a; background: #13211a; }
html[data-scheme="dark"] .batch-dialog .option-chip { border-color: #2e5a46; background: var(--sheet); }
html[data-scheme="dark"] .batch-dialog .option-chip-remove { background: #26332d; color: var(--ink); }
.my-order-pay-note { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.78rem; font-weight: 500; line-height: 1.3; }
.my-order-pay-note[hidden] { display: none; }

/* Share button on a page of the shop (public/js/share-page.js): the page's link, for people using SamDart as an app with no address bar. */
.share-page-button { display: grid; flex: none; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 50%; background: #e6f2eb; color: var(--green-action, #087447); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.share-page-button svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.share-page-button:active { transform: scale(0.94); }
.factory-header .share-page-button { grid-column: 3; justify-self: end; }
.ff-header .share-page-button { background: rgb(255 255 255 / 14%); color: #fff; }
.ff-heading { padding-right: 0; }
.share-page-toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); z-index: 20; padding: 0.55rem 1rem; border-radius: 999px; background: #173d31; color: #fff; font-size: 0.88rem; font-weight: 650; box-shadow: 0 6px 18px rgb(0 0 0 / 30%); transform: translateX(-50%); }
html[data-scheme="dark"] .share-page-button { background: #1d2a24; color: var(--accent-text); }
html[data-scheme="dark"] .ff-header .share-page-button { background: rgb(255 255 255 / 14%); color: #fff; }
html[data-scheme="dark"] .share-page-toast { background: #e8efeb; color: #0e1311; }

/* The order window's close button sits at the top right, so the row of badges leaves room for it. */
.my-order-dialog-badges { padding-right: 2.9rem; }

/* "Customers to remind" on the Batches order-cycle card */
.cycle-remind-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.7rem; border: 1px solid #dbe7e0; border-radius: 10px; background: #fff; }
.cycle-remind-text { display: grid; gap: 0.1rem; min-width: 0; }
.cycle-remind-text small { color: #5d7068; }
.cycle-remind-products { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cycle-remind-row a.btn { text-decoration: none; }

/* "Tell me when it's back" on a product that is off this month */
.back-alert { margin: 0.7rem 1rem 0; }
.back-alert[hidden] { display: none; }
.back-alert-button { display: inline-flex; align-items: center; gap: 0.5rem; width: 100%; justify-content: center; }
.back-alert-button svg { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-alert-button.is-asked { border-color: #9fd2b8; background: #f2faf5; color: #0f5a3c; }
html[data-scheme="dark"] .back-alert-button.is-asked { border-color: #2e6a50; background: #14231c; color: var(--accent-text); }

/* A size or option with no colours: one tidy line (picture, name with its price underneath, quantity box on the right) */
.batch-dialog .option-variant-group.is-single { padding: 0.7rem 0; }
.batch-dialog .option-variant-group.is-single .color-quantity-list { display: block; }
.batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; grid-template-rows: auto auto; align-items: center; column-gap: 0.75rem; row-gap: 0.1rem; padding-top: 0; }
.batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field.has-option-image { grid-template-columns: 3.4rem minmax(0, 1fr) 8.5rem; }
.batch-dialog .option-variant-group.is-single .option-quantity-image { grid-column: 1; grid-row: 1 / 3; width: 3.4rem; height: 3.4rem; }
.batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field > .option-quantity-label { position: static; grid-column: 1; grid-row: 1; align-self: end; min-height: 0; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; transform: none; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; font-size: 0.95rem; font-weight: 750; line-height: 1.25; }
.batch-dialog .option-variant-group.is-single .option-single-price { grid-column: 1; grid-row: 2; align-self: start; font-size: 0.85rem; }
.batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field.has-option-image > .option-quantity-label,
.batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field.has-option-image > .option-single-price { grid-column: 2; }
.batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field > .option-quantity-control { grid-column: 2; grid-row: 1 / 3; min-height: 2.6rem; grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem; }
.batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field.has-option-image > .option-quantity-control { grid-column: 3; }
@media (max-width: 430px) {
  .batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field { grid-template-columns: minmax(0, 1fr) 7.4rem; column-gap: 0.55rem; }
  .batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field.has-option-image { grid-template-columns: 2.8rem minmax(0, 1fr) 7.4rem; }
  .batch-dialog .option-variant-group.is-single .option-quantity-image { width: 2.8rem; height: 2.8rem; }
  .batch-dialog .option-variant-group.is-single .color-quantity-list .option-quantity-field > .option-quantity-control { grid-template-columns: 2.1rem minmax(0, 1fr) 2.1rem; }
}

/* A picture that failed to load: no broken-picture icon (the question mark); its box stays plain */
img.img-failed { visibility: hidden; }

/* "See more" on the home rows and the page it opens */
.available-featured-heading.has-see-more { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.see-more-link { flex: none; border: 0; background: none; padding: 0.2rem 0; color: var(--primary, #087957); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
@media (hover: hover) { .see-more-link:hover { text-decoration: underline; } }
/* The "See more" page: the home page is hidden and only the catalogue stays, under a top bar with Back. */
.collection-bar { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.8rem; padding: 0.6rem 0.2rem; border-bottom: 1px solid rgb(0 0 0 / 10%); }
.collection-bar[hidden] { display: none; }
.collection-bar-label { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.collection-bar-back { flex: none; border: 0; background: none; padding: 0.3rem 0.1rem; color: var(--primary, #087957); font: inherit; font-weight: 700; cursor: pointer; }
@media (hover: hover) { .collection-bar-back:hover { text-decoration: underline; } }
html.collection-page-preorder #studio-home-preorder-above,
html.collection-page-preorder #preorder-factories,
html.collection-page-preorder #preorder-banners,
html.collection-page-preorder .jump-to-products-wrap,
html.collection-page-preorder .preorder-welcome-hero,
html.collection-page-preorder #preorder-most-ordered,
html.collection-page-preorder #preorder-new-arrivals,
html.collection-page-preorder #preorder-categories,
html.collection-page-preorder #orders-section .section-heading .help,
html.collection-page-preorder #studio-home-preorder-below,
html.collection-page-available #studio-home-available-above,
html.collection-page-available .available-shop-header,
html.collection-page-available .available-welcome-hero,
html.collection-page-available .available-featured,
html.collection-page-available #available-signin-note,
html.collection-page-available #available-categories,
html.collection-page-available .available-catalog-heading { display: none !important; }
html[data-scheme="dark"] .collection-bar { border-color: rgb(255 255 255 / 14%); }
/* The page is already in the row's own order, so it has no heading, sort or filter: just the search box and the view icons, on one line. */
html.collection-page-preorder #orders-section,
html.collection-page-available #available-section-catalog { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.6rem; }
html.collection-page-preorder #orders-section > *,
html.collection-page-available #available-section-catalog > * { grid-column: 1 / -1; }
html.collection-page-preorder #orders-section > .section-heading,
html.collection-page-available #available-section-catalog > .search-assist-host { grid-column: 1; margin: 0 0 0.7rem; }
html.collection-page-preorder #orders-section > .browse-host,
html.collection-page-available #available-section-catalog > .browse-host { grid-column: 2; margin: 0 0 0.7rem; padding: 0; position: static; box-shadow: none; background: none; }
html.collection-page-preorder #orders-section .section-heading > div:first-child { display: none; }
html.collection-page-preorder #orders-section .catalog-tools { width: 100%; margin: 0; }
html.collection-page-preorder .browse-count, html.collection-page-available .browse-count,
html.collection-page-preorder .browse-sort, html.collection-page-available .browse-sort,
html.collection-page-preorder .browse-filter, html.collection-page-available .browse-filter,
html.collection-page-preorder .browse-chips, html.collection-page-available .browse-chips { display: none !important; }
html.collection-page-preorder .browse-bar, html.collection-page-available .browse-bar { justify-content: flex-end; }

/* My Orders: the month's status, its small summary, the search box, the paid tick, the "..." menu and Order Again */
.group-status { display: inline; padding: 0; background: none; font-size: 0.74rem; font-weight: 750; letter-spacing: 0; }
.group-status.is-open { color: #8a5a00; }
.group-status.is-progress { color: #2a5aa6; }
.group-status.is-done { color: #16774a; }
.group-status.is-closed { color: #66766d; }
.my-order-rows li.has-pick .my-order-row::after { display: none; }
.my-orders-search { position: relative; display: block; margin: 0.2rem 0 0.9rem; }
.my-orders-search[hidden] { display: none; }
.my-orders-search svg { position: absolute; top: 50%; left: 0.85rem; width: 1.1rem; height: 1.1rem; fill: none; stroke: #66766d; stroke-width: 2; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.my-orders-search input { width: 100%; min-height: 2.9rem; padding: 0 0.9rem 0 2.5rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; font: inherit; font-size: 1rem; }
.my-order-pick-spacer { display: grid; place-items: center; width: 2.1rem; height: 3rem; }
.my-order-more { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 12px; background: none; color: #66766d; cursor: pointer; }
.my-order-more svg { width: 1.2rem; height: 1.2rem; }
.my-order-more[aria-expanded="true"] { background: #eef3f0; color: #173d31; }
@media (hover: hover) { .my-order-more:hover { background: #eef3f0; color: #173d31; } }
.my-order-menu { position: fixed; z-index: 60; min-width: 12.5rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 28px -10px rgb(14 38 27 / 40%); }
.my-order-menu-item { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 2.75rem; padding: 0 0.8rem; border: 0; border-radius: 10px; background: none; color: #173d31; font: inherit; font-size: 0.92rem; font-weight: 650; text-align: left; cursor: pointer; }
.my-order-menu-item svg { flex: none; width: 1.15rem; height: 1.15rem; }
.my-order-menu-item:focus-visible { background: #eef3f0; }
@media (hover: hover) { .my-order-menu-item:hover { background: #eef3f0; } }
.my-order-menu-item.is-danger { color: #9b3220; }
.my-order-menu-item.is-danger:focus-visible { background: #f8e4df; }
@media (hover: hover) { .my-order-menu-item.is-danger:hover { background: #f8e4df; } }
.my-order-again { justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; margin: 0 0 0.55rem; padding: 0 0.95rem; border: 1.5px solid var(--green-action, #167144); border-radius: 999px; background: none; color: var(--green-action, #167144); font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.my-order-again svg { width: 1rem; height: 1rem; }
.my-order-dialog-quick { display: flex; gap: 0.6rem; margin: 0.9rem 0 0; }
.my-order-quick-button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.4rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: #173d31; font: inherit; font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.my-order-quick-button svg { width: 1rem; height: 1rem; }
html[data-scheme="dark"] .group-status.is-open { color: #f0c46b; }
html[data-scheme="dark"] .group-status.is-progress { color: #a9c5f2; }
html[data-scheme="dark"] .group-status.is-done { color: #6fd0a5; }
html[data-scheme="dark"] .group-status.is-closed { color: #a3ada6; }
html[data-scheme="dark"] .my-orders-search input, html[data-scheme="dark"] .my-order-menu, html[data-scheme="dark"] .my-order-quick-button { border-color: rgb(255 255 255 / 14%); background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .my-order-menu-item { color: #eee9dc; }
html[data-scheme="dark"] .my-order-menu-item:focus-visible { background: #262e2a; }
@media (hover: hover) { html[data-scheme="dark"] .my-order-menu-item:hover,
html[data-scheme="dark"] .my-order-more:hover { background: #262e2a; } }
html[data-scheme="dark"] .my-order-menu-item.is-danger { color: #f0a090; }
html[data-scheme="dark"] .my-order-rows li.has-pick { border-color: rgb(255 255 255 / 10%); }
html[data-scheme="dark"] .my-order-again { border-color: #6fd0a5; color: #6fd0a5; }

/* My Orders: the order preview is a sheet that slides up from the bottom on a phone, with its pictures as a swiping strip, and the
   order's steps open as a second sheet ("Journey"). */
.my-order-grab { position: sticky; top: 0; z-index: 6; display: none; justify-content: center; height: 0; overflow: visible; touch-action: none; cursor: grab; }
.my-order-grab i { position: relative; display: block; width: 2.6rem; height: 5px; margin-top: 0.65rem; border-radius: 3px; background: rgb(255 255 255 / 88%); box-shadow: 0 0 0 1px rgb(0 0 0 / 15%); }
.my-order-grab i::after { content: ""; position: absolute; inset: -0.9rem -2.2rem; }
.my-order-dialog[open] { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.my-order-dialog .my-order-dialog-media { position: relative; flex: none; height: 13rem; background: #102a22; }
.my-order-dialog .my-order-dialog-media.is-empty { height: 4.6rem; }
.my-order-dialog .my-order-dialog-body { flex: none; min-height: 0; overflow: visible; padding: 0.95rem 1.15rem 1.2rem; }
.my-order-dialog .my-order-dialog-badges { padding-right: 0; }
.my-order-dialog .my-order-dialog-body h2 { margin: 0.7rem 0 0.5rem; font-size: 1.45rem; letter-spacing: -0.01em; }
.my-order-dialog .my-order-open-page, .my-order-dialog .spotlight-close { top: 0.9rem; min-height: 2.75rem; }
.my-order-dialog .spotlight-close { width: 2.75rem; height: 2.75rem; }
.my-order-dialog .my-order-open-page { height: 2.75rem; padding: 0 1rem 0 0.8rem; font-size: 0.88rem; }
.my-order-slider { position: absolute; inset: 0; }
.my-order-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.my-order-slides::-webkit-scrollbar { display: none; }
.my-order-slide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; }
.my-order-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.my-order-slide-counter { position: absolute; left: 0.9rem; bottom: 0.9rem; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 650; cursor: pointer; }
.my-order-slide-dots { position: absolute; right: 1rem; bottom: 1.5rem; display: flex; gap: 5px; pointer-events: none; }
.my-order-slide-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / 45%); transition: width 0.3s, background 0.3s; }
.my-order-slide-dots i.on { width: 18px; border-radius: 4px; background: #fff; }
.my-order-dialog .my-order-progress { width: 100%; margin-top: 0.7rem; padding: 0.85rem 1rem; border: 0; border-radius: 18px; font: inherit; text-align: left; }
.my-order-dialog .my-order-progress-bar i { height: 7px; }
.my-order-dialog .my-order-progress-toggle::after { transform: translateX(-2px) rotate(-45deg); }
.my-order-dialog .my-order-progress:active { transform: scale(0.985); }
.my-order-dialog .my-order-dialog-details { margin-top: 0.9rem; border-radius: 18px; }
.my-order-dialog .my-order-dialog-details dt, .my-order-dialog .my-order-dialog-details dd { padding: 0.75rem 1rem; font-size: 0.95rem; }
.my-order-dialog .my-order-dialog-actions { gap: 0.65rem; margin-top: 0.9rem; }
.my-order-dialog .my-order-dialog-actions .my-order-action-button { min-height: 3.2rem; border-radius: 16px; font-weight: 800; }
.my-order-safe { margin: 0.1rem 0 0; color: #66766d; font-size: 0.76rem; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .my-order-dialog[open] .my-order-dialog-body > * { animation: my-order-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .my-order-dialog[open] .my-order-dialog-body > :nth-child(1) { animation-delay: 0.18s; }
  .my-order-dialog[open] .my-order-dialog-body > :nth-child(2) { animation-delay: 0.25s; }
  .my-order-dialog[open] .my-order-dialog-body > :nth-child(3) { animation-delay: 0.32s; }
  .my-order-dialog[open] .my-order-dialog-body > :nth-child(4) { animation-delay: 0.39s; }
  .my-order-dialog[open] .my-order-dialog-body > :nth-child(5) { animation-delay: 0.46s; }
  .my-order-dialog[open] .my-order-dialog-body > :nth-child(6) { animation-delay: 0.53s; }
  .my-order-dialog[open] .my-order-dialog-body > :nth-child(7) { animation-delay: 0.6s; }
  .my-order-dialog[open] .my-order-dialog-body > :nth-child(n+8) { animation-delay: 0.67s; }
}
@keyframes my-order-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes my-order-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 680px) {
  .my-order-grab { display: flex; }
  .my-order-dialog, .my-order-journey-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .my-order-dialog { max-height: 94vh; max-height: 94dvh; }
  .my-order-journey-dialog { max-height: 88vh; max-height: 88dvh; }
  .my-order-dialog[open], .my-order-journey-dialog[open] { animation: my-order-sheet-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .my-order-dialog.is-dragging[open], .my-order-journey-dialog.is-dragging[open] { animation: none; }
  .my-order-journey-dialog .my-order-grab i { background: #d6ddd7; box-shadow: none; }
}
.my-order-journey-dialog { width: min(26rem, calc(100% - 2rem)); max-height: min(88vh, 42rem); 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%); overscroll-behavior: contain; }
.my-order-journey-dialog::backdrop { background: rgb(9 30 23 / 60%); backdrop-filter: blur(2px); }
.my-order-journey-head { padding: 1.5rem 1.3rem 0.2rem; }
.my-order-journey-head h3 { margin: 0; color: #123f31; font-size: 1.2rem; }
.my-order-journey-head p { margin: 0.2rem 0 0; color: #5d6a63; font-size: 0.85rem; }
.my-order-journey-foot { padding: 0 1.3rem 1.4rem; }
.my-order-journey-foot .btn { width: 100%; }
.my-order-journey-dialog .order-timeline { display: block; counter-reset: journey; margin: 0; padding: 1rem 1.3rem 0.6rem; }
.my-order-journey-dialog .order-timeline-step { position: relative; display: block; counter-increment: journey; padding: 0 0 1.3rem 3rem; border-radius: 0; background: none; color: inherit; font-size: 0.95rem; }
.my-order-journey-dialog .order-timeline-step:last-child { padding-bottom: 0.4rem; }
.my-order-journey-dialog .order-timeline-step::before { content: counter(journey); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2rem; height: 2rem; margin: 0; border: 0; border-radius: 50%; background: #ecedea; color: #5d6a63; font-size: 0.85rem; font-weight: 800; z-index: 1; }
.my-order-journey-dialog .order-timeline-step::after { content: ""; position: absolute; top: 2.15rem; bottom: 0.1rem; left: 0.93rem; width: 3px; border-radius: 2px; background: #e1e5de; }
.my-order-journey-dialog .order-timeline-step:last-child::after { display: none; }
.my-order-journey-dialog .order-timeline-step.is-done::before { content: "✓"; background: #087957; color: #fff; }
.my-order-journey-dialog .order-timeline-step.is-done::after { background: #087957; }
.my-order-journey-dialog .order-timeline-step.is-current::before { border: 0; background: #d99a35; color: #fff; animation: my-order-ring 1.8s ease-in-out infinite; }
@keyframes my-order-ring { 0% { box-shadow: 0 0 0 0 rgb(217 154 53 / 55%); } 70% { box-shadow: 0 0 0 10px rgb(217 154 53 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(217 154 53 / 0%); } }
.my-order-journey-dialog .order-timeline-step > span { display: block; padding-top: 0.2rem; font-weight: 750; }
.my-order-journey-dialog .order-timeline-step.is-upcoming > span { color: #5d6a63; font-weight: 600; }
.my-order-journey-dialog .order-timeline-detail { display: block; margin-top: 0.15rem; color: #5d6a63; font-size: 0.82rem; font-weight: 500; line-height: 1.4; }
.my-order-journey-dialog .order-timeline-state { display: inline-block; margin-top: 0.4rem; padding: 0.18rem 0.6rem; border-radius: 999px; background: #ecedea; color: #5d6a63; font-size: 0.72rem; font-weight: 800; }
.my-order-journey-dialog .order-timeline-state:empty { display: none; }
.my-order-journey-dialog .order-timeline-step.is-done .order-timeline-state { background: #dff1e7; color: #087957; }
.my-order-journey-dialog .order-timeline-step.is-current .order-timeline-state { background: #fbefd6; color: #8a5410; }
@media (prefers-reduced-motion: reduce) { .my-order-journey-dialog .order-timeline-step.is-current::before { animation: none; } }
html[data-scheme="dark"] .my-order-journey-dialog { background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .my-order-journey-head h3 { color: #cfe8dc; }
html[data-scheme="dark"] .my-order-journey-head p, html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-detail, html[data-scheme="dark"] .my-order-safe { color: #a3ada6; }
html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-step::before, html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-state { background: #262e2a; color: #a3ada6; }
html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-step::after { background: #2b3530; }
html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-step.is-done::before { background: #087957; color: #fff; }
html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-step.is-done::after { background: #087957; }
html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-step.is-done .order-timeline-state { background: #173a2d; color: #6fd0a5; }
html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-step.is-current .order-timeline-state { background: #3a2d12; color: #f0c46b; }
html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-step.is-current::before { background: #d99a35; color: #fff; }
html[data-scheme="dark"] .my-order-journey-dialog .order-timeline-step.is-upcoming > span { color: #a3ada6; }
html[data-scheme="dark"] .my-order-journey-dialog::backdrop { background: rgb(0 0 0 / 65%); }

/* My Orders (details and journey): customer circles, padlock note, Save / Cancel on one line, the Notify switch */
.my-order-dialog-details dd.has-avatars { display: flex; align-items: center; justify-content: flex-end; gap: 0.55rem; }
.my-order-avatars { display: inline-flex; }
.my-order-avatars i { width: 1.4rem; height: 1.4rem; margin-left: -0.4rem; border: 2px solid #f7faf8; border-radius: 50%; background: #087957; }
.my-order-avatars i:first-child { margin-left: 0; }
.my-order-avatars i:nth-child(2) { background: #b2701a; }
.my-order-avatars i:nth-child(3) { background: #7b5cc4; }
.my-order-safe { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.my-order-safe svg { flex: none; width: 1rem; height: 1rem; color: #087957; }
.order-editor-actions { display: contents; }
.my-order-quantity-editor .order-editor-actions { display: flex; gap: 0.6rem; margin-top: 0.7rem; }
.my-order-quantity-editor .order-editor-actions .btn { flex: 1; min-width: 0; margin: 0; }
.my-order-journey-notify { padding: 0.4rem 1.3rem 0.8rem; }
.my-order-journey-notify-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; min-height: 3.2rem; font-weight: 700; }
.my-order-journey-notify small { display: block; color: #5d6a63; font-size: 0.78rem; line-height: 1.4; }
.journey-switch { position: relative; flex: none; width: 3.4rem; height: 2rem; padding: 0; border: 0; border-radius: 1rem; background: #c8cfc9; cursor: pointer; transition: background 0.3s; }
.journey-switch i { position: absolute; top: 3px; left: 3px; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 30%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.journey-switch[aria-checked="true"] { background: #087957; }
.journey-switch[aria-checked="true"] i { transform: translateX(1.4rem); }
.journey-switch:disabled { opacity: 0.6; }
html[data-scheme="dark"] .my-order-avatars i { border-color: #18201c; }
html[data-scheme="dark"] .my-order-journey-notify small { color: #a3ada6; }
html[data-scheme="dark"] .my-order-safe svg { color: #6fd0a5; }

/* The ✕ and Open Page buttons stay in view while the sheet scrolls. */
.my-order-floating { position: sticky; top: 0; z-index: 7; display: flex; align-items: flex-start; justify-content: space-between; height: 0; padding: 0 0.9rem; pointer-events: none; }
.my-order-dialog .my-order-floating .my-order-open-page, .my-order-dialog .my-order-floating .spotlight-close { position: static; margin-top: 0.9rem; pointer-events: auto; box-shadow: 0 2px 10px rgb(0 0 0 / 25%); }
.my-order-dialog .my-order-floating .my-order-open-page[hidden] { display: none; }
.my-order-dialog .my-order-floating .spotlight-close { margin-left: auto; }

/* My Orders: the month's date and its status take turns in the same place. */
.cutoff-rotator { display: inline-grid; overflow: hidden; text-align: right; }
.cutoff-rotator-item { grid-area: 1 / 1; white-space: nowrap; font-size: 0.76rem; font-weight: 700; }
.cutoff-rotator-date { color: var(--muted); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .cutoff-rotator-item { animation: my-order-rotate 9s ease-in-out infinite; }
  .cutoff-rotator-item:last-child { animation-delay: -4.5s; }
}
@keyframes my-order-rotate {
  0% { opacity: 1; transform: none; }
  38% { opacity: 1; transform: none; }
  46% { opacity: 0; transform: translateY(-70%); }
  47% { opacity: 0; transform: translateY(70%); }
  88% { opacity: 0; transform: translateY(70%); }
  96%, 100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cutoff-rotator { display: grid; }
  .cutoff-rotator-item { grid-area: auto; }
}

/* My Orders: the countdown card under a month's recent activity */
.my-order-clock { margin: 0.9rem 0 0.2rem; padding: 0.85rem 0.9rem 0.95rem; border-radius: 16px; background: #fff7e6; text-align: center; }
.my-order-clock.is-progress { background: #e8f0fb; }
.my-order-clock.is-closed { background: #eef0ee; }
.my-order-clock-label { margin: 0 0 0.55rem; color: #8a5a00; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.my-order-clock.is-progress .my-order-clock-label { color: #2a5aa6; }
.my-order-clock.is-closed .my-order-clock-label { color: #55645c; }
.my-order-clock-digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.my-order-clock-digits div { padding: 0.5rem 0.15rem 0.4rem; border-radius: 12px; background: #fff; }
.my-order-clock-digits b { display: block; color: #123f31; font-size: 1.4rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.my-order-clock-digits small { color: #66766d; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.my-order-clock-note { margin: 0; color: #4b5b53; font-size: 0.88rem; line-height: 1.4; }
html[data-scheme="dark"] .my-order-clock { background: #2a2618; }
html[data-scheme="dark"] .my-order-clock.is-progress { background: #172337; }
html[data-scheme="dark"] .my-order-clock.is-closed { background: #222a26; }
html[data-scheme="dark"] .my-order-clock-label { color: #f0c46b; }
html[data-scheme="dark"] .my-order-clock.is-progress .my-order-clock-label { color: #a9c5f2; }
html[data-scheme="dark"] .my-order-clock.is-closed .my-order-clock-label { color: #a3ada6; }
html[data-scheme="dark"] .my-order-clock-digits div { background: #18201c; }
html[data-scheme="dark"] .my-order-clock-digits b { color: #eee9dc; }
html[data-scheme="dark"] .my-order-clock-digits small, html[data-scheme="dark"] .my-order-clock-note { color: #a3ada6; }

/* My Orders: countdown cards for each loading (container), their heading, staff's note and the ready state */
.my-order-clock-heading { margin: 0 0 0.3rem; color: #55645c; font-size: 0.78rem; font-weight: 700; }
.my-order-clock-extra { margin: 0.55rem 0 0; padding: 0.45rem 0.6rem; border-radius: 10px; background: rgba(255, 255, 255, 0.7); color: #6a4a00; font-size: 0.82rem; line-height: 1.35; }
.my-order-clock.is-ready { background: #e6f5ec; }
.my-order-clock.is-ready .my-order-clock-label { color: #17683f; }
.my-order-clock.is-ready .my-order-clock-note { color: #1b3d2d; font-size: 0.95rem; font-weight: 600; }
html[data-scheme="dark"] .my-order-clock-heading { color: #a3ada6; }
html[data-scheme="dark"] .my-order-clock-extra { background: rgba(255, 255, 255, 0.07); color: #f0c46b; }
html[data-scheme="dark"] .my-order-clock.is-ready { background: #15281e; }
html[data-scheme="dark"] .my-order-clock.is-ready .my-order-clock-label { color: #8fd8ad; }
html[data-scheme="dark"] .my-order-clock.is-ready .my-order-clock-note { color: #d6eadd; }

/* Operations Admin: Statistics > Loadings */
.loading-status { min-height: 1.2rem; margin: 0 0 0.6rem; color: var(--muted, #55645c); font-size: 0.9rem; }
.loading-new { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.loading-new input { flex: 1; min-width: 0; padding: 0.55rem 0.7rem; border: 1px solid #cfd8d2; border-radius: 10px; font: inherit; }
.loading-empty { margin: 0.4rem 0; color: #66766d; font-size: 0.9rem; }
.loading-card { margin: 0 0 0.7rem; border: 1px solid #dbe3de; border-radius: 14px; background: #fff; }
.loading-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; padding: 0.75rem 0.9rem; cursor: pointer; }
.loading-name { font-weight: 800; }
.loading-meta { color: #66766d; font-size: 0.85rem; }
.loading-stage { padding: 0.15rem 0.55rem; border-radius: 999px; background: #eef0ee; color: #4b5b53; font-size: 0.74rem; font-weight: 800; }
.loading-stage.is-shipped, .loading-stage.is-arrived, .loading-stage.is-cleared { background: #e8f0fb; color: #2a5aa6; }
.loading-stage.is-ready { background: #e6f5ec; color: #17683f; }
.loading-body { padding: 0 0.9rem 0.9rem; }
.loading-section { margin-top: 0.9rem; }
.loading-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.loading-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.65rem; }
.loading-field { display: grid; gap: 0.25rem; font-size: 0.85rem; font-weight: 700; }
.loading-field input, .loading-field select, .loading-field textarea { width: 100%; box-sizing: border-box; padding: 0.5rem 0.6rem; border: 1px solid #cfd8d2; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; }
.loading-field small { color: #66766d; font-weight: 400; }
.loading-formula, .loading-note { margin: 0.6rem 0 0; color: #55645c; font-size: 0.82rem; line-height: 1.4; }
.loading-table-wrap { overflow-x: auto; }
.loading-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.86rem; }
.loading-table th, .loading-table td { padding: 0.4rem 0.35rem; border-bottom: 1px solid #e6ece8; text-align: left; vertical-align: middle; }
.loading-table thead th { color: #66766d; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.loading-table tbody th { font-weight: 600; }
.loading-table tbody th small { display: block; color: #66766d; font-weight: 400; }
.loading-table td input { width: 5.2rem; padding: 0.35rem 0.4rem; border: 1px solid #cfd8d2; border-radius: 8px; font: inherit; }
.loading-strong { font-weight: 800; }
.loading-add { margin-top: 0.7rem; }
.loading-add summary { cursor: pointer; font-weight: 700; }
.loading-picks { display: grid; gap: 0.35rem; margin: 0.5rem 0; }
.loading-pick { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.88rem; }
.loading-pick small { color: #66766d; }
.loading-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
html[data-scheme="dark"] .loading-card { border-color: #2c3731; background: #18201c; }
html[data-scheme="dark"] .loading-new input, html[data-scheme="dark"] .loading-field input, html[data-scheme="dark"] .loading-field select, html[data-scheme="dark"] .loading-field textarea, html[data-scheme="dark"] .loading-table td input { border-color: #35433b; background: #111814; color: #eee9dc; }
html[data-scheme="dark"] .loading-table th, html[data-scheme="dark"] .loading-table td { border-color: #26302a; }
html[data-scheme="dark"] .loading-stage { background: #26302a; color: #c6d0c9; }
html[data-scheme="dark"] .loading-stage.is-shipped, html[data-scheme="dark"] .loading-stage.is-arrived, html[data-scheme="dark"] .loading-stage.is-cleared { background: #172337; color: #a9c5f2; }
html[data-scheme="dark"] .loading-stage.is-ready { background: #15281e; color: #8fd8ad; }
html[data-scheme="dark"] .loading-meta, html[data-scheme="dark"] .loading-empty, html[data-scheme="dark"] .loading-field small, html[data-scheme="dark"] .loading-formula, html[data-scheme="dark"] .loading-note, html[data-scheme="dark"] .loading-table tbody th small { color: #a3ada6; }
.loading-field input, .loading-field select, .loading-field textarea { margin: 0; }
.loading-field textarea { height: auto; min-height: 3.4rem; resize: vertical; }
.loading-section h3 { text-transform: none; letter-spacing: normal; }
.loading-summary { list-style-position: inside; }
.loading-table tbody th { background: transparent; color: inherit; font-size: 0.86rem; letter-spacing: normal; text-transform: none; }
.loading-table tbody th small { text-transform: none; letter-spacing: normal; }
.loading-product-name { display: block; font-weight: 700; }

/* My Orders: choosing pickup or delivery once the goods are ready */
.my-order-handover { margin: 0.9rem 0; padding: 0.9rem; border-radius: 16px; background: #e6f5ec; }
.my-order-handover-title { margin: 0 0 0.4rem; color: #17683f; font-size: 1rem; font-weight: 800; }
.my-order-handover-text { margin: 0 0 0.6rem; color: #1b3d2d; font-size: 0.9rem; line-height: 1.4; }
.my-order-handover-ask { margin: 0 0 0.45rem; color: #1b3d2d; font-size: 0.85rem; font-weight: 700; }
.my-order-handover-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.my-order-handover-choice { padding: 0.65rem 0.5rem; border: 2px solid #b8dcc8; border-radius: 12px; background: #fff; color: #17683f; font: inherit; font-size: 0.88rem; font-weight: 800; cursor: pointer; }
.my-order-handover-choice.is-selected { border-color: #17683f; background: #17683f; color: #fff; }
.my-order-handover-address { display: grid; gap: 0.3rem; margin-top: 0.7rem; color: #1b3d2d; font-size: 0.85rem; font-weight: 700; }
.my-order-handover-address textarea { width: 100%; box-sizing: border-box; padding: 0.55rem 0.65rem; border: 1px solid #b8dcc8; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; }
.my-order-handover-hint { margin: 0.5rem 0 0; color: #4b5b53; font-size: 0.8rem; line-height: 1.4; }
.my-order-handover-save { width: 100%; margin-top: 0.7rem; }
.my-order-handover-status { min-height: 1rem; margin: 0.4rem 0 0; color: #8a3b00; font-size: 0.82rem; }
.my-order-handover-saved { margin: 0.5rem 0 0; color: #1b3d2d; font-size: 0.85rem; font-weight: 700; }
.my-order-handover-staff { margin: 0.4rem 0 0; padding: 0.5rem 0.6rem; border-radius: 10px; background: #fff; color: #1b3d2d; font-size: 0.85rem; line-height: 1.4; }
html[data-scheme="dark"] .my-order-handover { background: #15281e; }
html[data-scheme="dark"] .my-order-handover-title { color: #8fd8ad; }
html[data-scheme="dark"] .my-order-handover-text, html[data-scheme="dark"] .my-order-handover-ask, html[data-scheme="dark"] .my-order-handover-address, html[data-scheme="dark"] .my-order-handover-saved, html[data-scheme="dark"] .my-order-handover-staff { color: #d6eadd; }
html[data-scheme="dark"] .my-order-handover-choice { border-color: #2f5640; background: #18201c; color: #8fd8ad; }
html[data-scheme="dark"] .my-order-handover-choice.is-selected { border-color: #8fd8ad; background: #2a6b49; color: #fff; }
html[data-scheme="dark"] .my-order-handover-address textarea { border-color: #2f5640; background: #111814; color: #eee9dc; }
html[data-scheme="dark"] .my-order-handover-staff { background: #18201c; }
html[data-scheme="dark"] .my-order-handover-hint { color: #a3ada6; }

.loading-handover-count { padding: 0.15rem 0.55rem; border-radius: 999px; background: #e6f5ec; color: #17683f; font-size: 0.74rem; font-weight: 800; }
.loading-handover-count.has-delivery { background: #fff1d6; color: #8a5a00; }
.loading-handovers { display: grid; gap: 0.55rem; margin-top: 0.6rem; }
.loading-handover { padding: 0.65rem 0.75rem; border: 1px solid #dbe3de; border-radius: 12px; }
.loading-handover.is-done { background: #f3f6f4; opacity: 0.85; }
.loading-handover p { margin: 0.15rem 0; font-size: 0.88rem; }
.loading-handover-how { font-weight: 800; color: #17683f; }
.loading-handover-how.is-delivery { color: #8a5a00; }
.loading-handover-contact { color: #66766d; }
.loading-handover-note { display: flex; gap: 0.5rem; align-items: center; margin: 0.4rem 0; }
.loading-handover-note input { flex: 1; min-width: 0; padding: 0.4rem 0.55rem; border: 1px solid #cfd8d2; border-radius: 8px; font: inherit; }
html[data-scheme="dark"] .loading-handover { border-color: #2c3731; }
html[data-scheme="dark"] .loading-handover.is-done { background: #151c18; }
html[data-scheme="dark"] .loading-handover-count { background: #15281e; color: #8fd8ad; }
html[data-scheme="dark"] .loading-handover-count.has-delivery { background: #2a2618; color: #f0c46b; }
html[data-scheme="dark"] .loading-handover-note input { border-color: #35433b; background: #111814; color: #eee9dc; }
.my-order-handover-address textarea { height: 5rem; min-height: 0; resize: vertical; }

/* Loadings, grouped under the cutoff month they are for */
.loading-group { margin: 0 0 0.9rem; border: 1px solid #c9d8cf; border-radius: 16px; background: #f6faf7; }
.loading-group-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; padding: 0.85rem 1rem; cursor: pointer; list-style: none; }
.loading-group-summary::-webkit-details-marker { display: none; }
.loading-group-summary::before { content: "\25B8"; color: #167144; }
.loading-group[open] > .loading-group-summary::before { content: "\25BE"; }
.loading-group-name { font-size: 1.05rem; font-weight: 800; }
.loading-group-body { padding: 0 0.8rem 0.8rem; }
.loading-group-body > .loading-new { margin-bottom: 0.7rem; }
html[data-scheme="dark"] .loading-group { border-color: #2c3731; background: #131a16; }

/* Batches: the supplier list is now a tab of its own, so its heading no longer folds away */
.supplier-section-head { cursor: default; }
.supplier-section-head::after { display: none; }
.batches-panel > .admin-view-tabs { margin-top: 0.9rem; }

/* ---- Batches tab ---------------------------------------------------------------------------------------------------- */
/* Summary tiles: the two that stand for a status filter the list when tapped. */
.batch-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin: 0 0 1rem; }
.batch-stat { display: grid; gap: 0.15rem; min-width: 0; padding: 0.85rem 1rem; border: 1px solid #e2e9e5; border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; }
button.batch-stat { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
@media (hover: hover) { button.batch-stat:hover { border-color: #9fd2b5; box-shadow: 0 10px 22px -18px rgb(14 38 27 / 55%); transform: translateY(-1px); } }
button.batch-stat:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }
.batch-stat.is-current { border-color: #167144; box-shadow: inset 0 0 0 1px #167144; }
.batch-stat-label { color: #55675e; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.batch-stat-value { overflow: hidden; color: #10251b; font-size: 1.65rem; font-weight: 850; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.batch-stat-note { overflow: hidden; color: #66766e; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.batch-stat.is-urgent .batch-stat-value, .batch-stat.is-urgent .batch-stat-note { color: #b42318; }
.batch-stat.is-attention .batch-stat-value { color: #a15c00; }

/* One row: status chips on the left; sort, filters and view grouped on the right. */
.batches-panel .batch-toolbar { flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.7rem; }
.batches-panel .batch-filters { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-color: #e1e9e5; background: #f1f5f3; }
.batches-panel .batch-filters::-webkit-scrollbar { display: none; }
.batches-panel .batch-filter { white-space: nowrap; }

/* Selecting: a slim "select all" line; the bar floats at the bottom while anything is selected. */
.batches-panel .batch-bulk-toolbar { display: block; margin: 0 0 0.4rem; padding: 0; border: 0; background: transparent; }
.batches-panel .batch-bulk-toolbar.has-selection { position: static; background: transparent; }
.batches-panel .batch-bulk-toolbar .batch-bulk-actions { display: none; }
.batches-panel .batch-bulk-toolbar.has-selection .batch-bulk-actions {
  position: fixed; left: 50%; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: grid; gap: 0.5rem; width: max-content; max-width: calc(100vw - 2rem); transform: translateX(-50%);
}
.batch-bulk-head { display: flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.5rem 0.45rem 1rem; border-radius: 18px; background: #0f3d2a; box-shadow: 0 18px 40px -16px rgb(6 24 16 / 65%); color: #fff; }
.batches-panel .batch-selection-count { margin: 0 0.4rem 0 0; color: #fff; font-size: 0.98rem; font-weight: 850; white-space: nowrap; }
.batch-bulk-open { min-height: 2.6rem; padding: 0.4rem 0.9rem; border: 0; border-radius: 12px; background: rgb(255 255 255 / 12%); color: #fff; font: inherit; font-size: 0.86rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.batch-bulk-open[aria-expanded="true"] { background: rgb(255 255 255 / 24%); }
@media (hover: hover) { .batch-bulk-open:hover { background: rgb(255 255 255 / 24%); } }
.batch-bulk-delete { min-height: 2.6rem; padding: 0.4rem 0.95rem; border: 0; border-radius: 12px; background: #c8402f; color: #fff; font: inherit; font-size: 0.86rem; font-weight: 800; cursor: pointer; }
@media (hover: hover) { .batch-bulk-delete:hover { background: #ad3424; } }
.batches-panel .batch-bulk-head .batch-selection-clear { display: grid; place-items: center; width: 2.6rem; min-height: 2.6rem; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; }
@media (hover: hover) { .batches-panel .batch-bulk-head .batch-selection-clear:hover { background: rgb(255 255 255 / 14%); } }
.batch-bulk-head button:focus-visible { outline: 2px solid #9fe0bd; outline-offset: 2px; }
.batch-bulk-head button:disabled { opacity: 0.5; cursor: not-allowed; }
/* The open action's form sits just above the bar. */
.batch-bulk-groups { display: none; }
.batch-bulk-toolbar[data-bulk-panel] .batch-bulk-groups, .batch-bulk-groups:has(.batch-bulk-error:not(:empty)) { display: grid; justify-self: center; width: min(26rem, calc(100vw - 2rem)); padding: 0.9rem; border: 1px solid #cfe3d8; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -20px rgb(6 24 16 / 55%); }
.batch-bulk-group { display: grid; gap: 0.6rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.batch-bulk-group[hidden] { display: none; }
.batch-bulk-group > * { grid-column: auto !important; grid-row: auto !important; }
.batch-bulk-group legend { margin: 0 0 0.3rem; padding: 0; color: #10251b; font-size: 0.98rem; font-weight: 850; }
.batch-bulk-group .batch-bulk-date { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; min-width: 0; color: #52615b; font-size: 0.76rem; font-weight: 700; }
.batch-bulk-group .batch-bulk-date input, .batch-bulk-group .batch-bulk-date select, .batch-bulk-group .batch-bulk-date > div { width: 100% !important; max-width: none; min-width: 0; box-sizing: border-box; }
.batch-bulk-group .batch-bulk-date input, .batch-bulk-group .batch-bulk-date select { min-height: 2.6rem; padding: 0.3rem 0.6rem; border: 1px solid #cfd9d3; border-radius: 10px; background: #fff; color: #27352f; font: inherit; font-size: 0.9rem; font-weight: 600; }
.batch-bulk-group .btn { width: 100%; min-height: 2.6rem; font-size: 0.86rem; }
.batches-panel .batch-bulk-error { margin: 0.4rem 0 0; }
.batch-bulk-error:empty { display: none; }

/* The list: Filters shares one line with the count and the Detailed view switch (the search is in the top bar). */
#admin-batches .ui-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; }
#admin-batches .ui-controls { position: static; flex: 0 0 auto; order: 1; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
#admin-batches .ui-toolbar { margin: 0; padding: 0; }
#admin-batches .ui-list-head { flex: 1 1 0; order: 2; min-width: 0; margin: 0; }
#admin-batches .ui-list-body, #admin-batches .ui-list-more { flex: 1 0 100%; order: 3; }
/* Leave room at the bottom so the floating bar never covers the last row. */
.batches-panel:has(.batch-bulk-toolbar.has-selection) #admin-batches { padding-bottom: 5.5rem; }


/* Rows: name with category and supplier under it, a Test tag, items with how many are paid, selected rows tinted. */
.batch-who { align-items: center; }
.batch-who-text { display: grid; gap: 0.1rem; min-width: 0; text-align: left; }
.batch-who-name { color: #10251b; font-weight: 800; }
.batch-who-sub { overflow: hidden; color: #66766e; font-size: 0.8rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
#admin-batches tr.ui-tr:has(.batch-row-select:checked), #admin-batches li.ui-row:has(.batch-row-select:checked) { background: #e7f4ec; }

@media (max-width: 899px) {
  .batch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .batch-stats { gap: 0.5rem; }
  .batch-stat { padding: 0.7rem 0.8rem; }
  .batch-stat-value { font-size: 1.35rem; }
  .batches-panel .batch-bulk-toolbar.has-selection .batch-bulk-actions { width: calc(100vw - 1.5rem); max-width: none; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); }
  .batch-bulk-head { flex-wrap: wrap; justify-content: space-between; padding: 0.55rem; }
  .batches-panel .batch-selection-count { flex: 1 1 auto; margin-left: 0.4rem; }
  .batch-bulk-open { flex: 1 1 30%; padding: 0.4rem 0.5rem; font-size: 0.8rem; }
  .batch-bulk-delete { flex: 1 1 auto; }
  .batch-bulk-toolbar[data-bulk-panel] .batch-bulk-groups { width: 100%; box-sizing: border-box; }
}

html[data-scheme="dark"] .batch-stat { border-color: #2c3a33; background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .batch-stat-value, html[data-scheme="dark"] .batch-who-name, html[data-scheme="dark"] .batch-bulk-group legend { color: #eee9dc; }
html[data-scheme="dark"] .batch-stat-label, html[data-scheme="dark"] .batch-stat-note, html[data-scheme="dark"] .batch-who-sub { color: #9fb0a7; }
html[data-scheme="dark"] #admin-batches .ui-cgroup-summary { background: #161c19; }
html[data-scheme="dark"] .batch-bulk-toolbar[data-bulk-panel] .batch-bulk-groups { border-color: #2c3a33; background: #18201c; }
html[data-scheme="dark"] .batch-bulk-group .batch-bulk-date input, html[data-scheme="dark"] .batch-bulk-group .batch-bulk-date select { border-color: #35433b; background: #111814; color: #eee9dc; }
html[data-scheme="dark"] #admin-batches tr.ui-tr:has(.batch-row-select:checked), html[data-scheme="dark"] #admin-batches li.ui-row:has(.batch-row-select:checked) { background: #173023; }

/* Sort, Filters and Detailed view: one segmented group. */
.batches-panel .batch-toolbar { align-items: center; }
.batch-view-controls { display: flex; align-items: stretch; margin-left: auto; border: 1px solid #dfe7e2; border-radius: 12px; background: #fff; overflow: hidden; }
.batch-view-controls > * { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.batch-view-controls > * + * { border-left: 1px solid #e3eae6 !important; }
.batch-view-controls > [hidden] { display: none !important; }
.batches-panel .batch-view-controls .batch-sort { min-height: 2.5rem; padding: 0 0.4rem 0 0.8rem; background: transparent; font-size: 0.82rem; }
.batches-panel .batch-view-controls .batch-sort select { min-height: 2.4rem; font-size: 0.85rem; }
.batch-view-controls .ui-filter-btn, .batch-view-controls .ui-detail-toggle { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.5rem; padding: 0 0.95rem; background: transparent; color: #27352f; font: inherit; font-size: 0.85rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .batch-view-controls .ui-filter-btn:hover,
.batch-view-controls .ui-detail-toggle:hover,
.batches-panel .batch-view-controls .batch-sort:hover { background: #f3f7f5; } }
.batch-view-controls .ui-detail-toggle[aria-pressed="true"] { background: #eaf6ef; color: #0f5a36; }
#admin-batches .ui-list-status { margin: 0; color: #66766e; font-size: 0.82rem; }

/* The batch bar (one per cutoff group). */
#admin-batches .ui-cgroup { margin: 0 0 1rem; border: 1px solid #dfe8e3; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgb(16 37 27 / 4%); }
#admin-batches .ui-cgroup-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.6rem 1.1rem; padding: 0.8rem 0.9rem 0.8rem 0.7rem; border-radius: 18px; background: linear-gradient(180deg, #fbfdfc, #f6faf8); cursor: pointer; list-style: none; }
#admin-batches .ui-cgroup[open] > .ui-cgroup-summary { border-bottom: 1px solid #e6ede9; border-radius: 18px 18px 0 0; }
#admin-batches .ui-cgroup-summary::-webkit-details-marker { display: none; }
#admin-batches .ui-cgroup-summary::after, #admin-batches .ui-cgroup-summary::before { display: none; content: none; }
#admin-batches .ui-cgroup-summary > strong { display: none; }
.batch-icon { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.batch-bar-title { display: inline-flex; align-items: center; gap: 0.65rem; min-width: 0; }
.batch-bar-chevron { width: 1rem; height: 1rem; fill: none; stroke: #7a8a82; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); transition: transform 0.15s ease; }
.ui-cgroup[open] .batch-bar-chevron { transform: none; }
.batch-bar-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: #e3f4ea; color: #167144; }
.batch-bar-icon .batch-icon { width: 1.35rem; height: 1.35rem; }
/* The year of a month group ("January Orders" 2027): small, so the title keeps its room. */
.year-tag { display: inline-block; flex: 0 0 auto; margin-left: 0.35rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgb(8 116 71 / 10%); color: #0f5a36; font-size: 0.68rem; font-weight: 800; line-height: 1.35; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; vertical-align: middle; }
.year-tag:empty { display: none; }
html[data-scheme="dark"] .year-tag { background: rgb(102 214 168 / 14%); color: #8fe0bb; }
.batch-bar-name { color: #10251b; font-size: 1.08rem; font-weight: 850; white-space: nowrap; }
.batch-bar-state { padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.76rem; font-weight: 800; }
.batch-bar-state.is-open { background: #dff3e7; color: #0f6a3d; }
.batch-bar-state.is-closed { background: #fff1dc; color: #9a5b00; }
.batch-bar-state.is-bought { background: #e6eefc; color: #2549a6; }
.batch-bar-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0; min-width: 0; }
.batch-bar-fact { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.15rem 1.1rem; border: 0; border-left: 1px solid #dfe7e2; background: transparent; color: #2f3f37; font: inherit; font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.batch-bar-fact .batch-icon { color: #4c5d55; }
.batch-bar-fact em { color: #66766e; font-size: 0.78rem; font-style: normal; font-weight: 700; }
.batch-bar-fact em.is-urgent { color: #b42318; }
.batch-bar-arrival { cursor: pointer; }
.batch-bar-arrival .batch-icon { color: #167144; }
@media (hover: hover) { .batch-bar-arrival:hover span { color: #0f5a36; text-decoration: underline; text-underline-offset: 3px; } }
.batch-bar-manage { display: inline-flex; align-items: center; gap: 0.45rem; margin-left: auto; min-height: 2.5rem; padding: 0 0.8rem 0 0.9rem; border: 1px solid #167144; border-radius: 12px; background: #fff; color: #0f5a36; font: inherit; font-size: 0.86rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.batch-bar-manage[aria-expanded="true"] { background: #eaf6ef; }
@media (hover: hover) { .batch-bar-manage:hover { background: #eaf6ef; } }
.batch-bar-caret { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.batch-bar-manage:focus-visible, .batch-bar-arrival:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }
.batch-manage-menu { position: fixed; z-index: 80; display: grid; min-width: 17rem; max-width: calc(100vw - 1rem); padding: 0.35rem; border: 1px solid #dfe7e2; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -16px rgb(6 24 16 / 45%); }
.batch-manage-item { display: grid; gap: 0.1rem; padding: 0.6rem 0.75rem; border: 0; border-radius: 10px; background: transparent; color: #10251b; font: inherit; font-size: 0.88rem; font-weight: 750; text-align: left; cursor: pointer; }
.batch-manage-item small { color: #66766e; font-size: 0.75rem; font-weight: 600; }
.batch-manage-item:focus-visible { background: #eef6f1; outline: none; }
@media (hover: hover) { .batch-manage-item:hover { background: #eef6f1; outline: none; } }

/* The table under a bar. */
#admin-batches .ui-cgroup .ui-table thead th { padding: 0.65rem 0.9rem; border-bottom: 1px solid #e6ede9; background: #fff; color: #66766e; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
#admin-batches .ui-cgroup .ui-table tbody td { padding: 0.7rem 0.9rem; border-bottom: 1px solid #eef2f0; vertical-align: middle; }
#admin-batches .ui-cgroup .ui-table tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) { #admin-batches .ui-cgroup .ui-table tbody tr:hover td { background: #f7faf8; } }
#admin-batches tr.ui-tr:has(.batch-row-select:checked) td { background: #e9f5ee; }
#admin-batches .ui-cgroup-foot { padding: 0.55rem 0.9rem; border-top: 1px solid #eef2f0; color: #66766e; font-size: 0.78rem; }

@media (max-width: 719px) {
  .batch-view-controls { flex: 1 1 100%; margin-left: 0; }
  .batch-view-controls > * { flex: 1 1 auto; justify-content: center; }
  #admin-batches .ui-cgroup-summary { gap: 0.55rem; padding: 0.75rem; }
  .batch-bar-facts { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .batch-bar-fact { padding: 0; border-left: 0; white-space: normal; text-align: left; }
  .batch-bar-manage { flex: 1 1 100%; justify-content: center; margin-left: 0; }
}
html[data-scheme="dark"] .batch-view-controls, html[data-scheme="dark"] .batch-bar-manage, html[data-scheme="dark"] .batch-manage-menu, html[data-scheme="dark"] #admin-batches .ui-cgroup { border-color: #2c3a33; background: #18201c; }
html[data-scheme="dark"] #admin-batches .ui-cgroup-summary { background: #161c19; }
html[data-scheme="dark"] .batch-bar-name, html[data-scheme="dark"] .batch-manage-item, html[data-scheme="dark"] .batch-bar-fact, html[data-scheme="dark"] .batch-view-controls .ui-filter-btn, html[data-scheme="dark"] .batch-view-controls .ui-detail-toggle { color: #eee9dc; }
html[data-scheme="dark"] .batch-bar-icon { background: #173023; color: #9fe0bd; }
html[data-scheme="dark"] .batch-bar-manage { color: #9fe0bd; border-color: #2f6b4b; }
html[data-scheme="dark"] #admin-batches .ui-cgroup .ui-table thead th { background: #18201c; }
html[data-scheme="dark"] #admin-batches tr.ui-tr:has(.batch-row-select:checked) td { background: #173023; }
@media (min-width: 720px) {
  #admin-batches .ui-cgroup-summary { flex-wrap: nowrap; }
  .batch-bar-title { flex: 0 0 auto; }
  .batch-bar-facts { flex: 1 1 auto; }
  .batch-bar-manage { flex: 0 0 auto; }
}
@media (max-width: 1023px) {
  .batch-view-controls .ui-detail-toggle { display: none !important; }
}
@media (max-width: 719px) {
  .batches-panel .batch-toolbar { flex-direction: column; align-items: stretch; }
  .batches-panel .batch-filters { align-self: stretch; width: 100%; box-sizing: border-box; margin: 0; }
  .batch-view-controls { width: 100%; box-sizing: border-box; }
  .batches-panel .batch-view-controls .batch-sort { flex: 1 1 auto; min-width: 0; }
  .batches-panel .batch-view-controls .batch-sort select { flex: 1; min-width: 0; }
}
/* Product names in the batch table are plain, not bold. */
.batch-who-name { font-weight: 500; }
#admin-batches .ui-row-title { font-weight: 500; }

/* ---- Order cycle (Batches > Order cycle) ------------------------------------------------------------------------------- */
.cycle-board { display: grid; gap: 1rem; }
.cycle-icon { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Head: title with its icon; Start New Cycle and This month's products on the right. */
.cycle-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.4rem 0.9rem; }
.cycle-head-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: #167144; }
.cycle-head-icon .cycle-icon { width: 2rem; height: 2rem; }
.cycle-head h3 { margin: 0; color: #10251b; font-size: 1.45rem; font-weight: 850; }
.cycle-head p { margin: 0.15rem 0 0; color: #55675e; font-size: 0.88rem; }
.cycle-head-actions { display: grid; justify-items: end; gap: 0.5rem; }
.cycle-head-primary, .cycle-head-secondary { min-height: 2.6rem; padding: 0.45rem 1.2rem; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; }
.cycle-head-primary { border: 0; background: #167144; color: #fff; font-size: 0.95rem; box-shadow: 0 10px 22px -14px rgb(22 113 68 / 85%); }
.cycle-head-primary span { margin-right: 0.35rem; font-size: 1.1rem; }
@media (hover: hover) { .cycle-head-primary:hover { background: #0f5a36; } }
.cycle-head-secondary { border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; color: #10251b; font-size: 0.86rem; }
@media (hover: hover) { .cycle-head-secondary:hover { background: #f3f7f5; } }
.cycle-head-primary:active, .cycle-head-secondary:active { transform: scale(0.97); }

/* Choosing a cycle. */
.cycle-switcher { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.cycle-switcher[hidden] { display: none; }
.cycle-switcher::-webkit-scrollbar { display: none; }
.cycle-switch { display: grid; gap: 0.05rem; flex: 0 0 auto; padding: 0.45rem 0.85rem; border: 1px solid #dfe7e2; border-radius: 12px; background: #fff; color: #27352f; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.cycle-switch strong { font-size: 0.86rem; font-weight: 800; }
.cycle-switch small { color: #66766e; font-size: 0.72rem; font-weight: 650; }
@media (hover: hover) { .cycle-switch:hover { border-color: #9fd2b5; } }
.cycle-switch.is-current { border-color: #167144; background: #eaf6ef; box-shadow: inset 0 0 0 1px #167144; }

/* The summary card: the cycle, its state and step, and four facts. */
.cycle-summary { display: grid; grid-template-columns: minmax(15rem, 1.4fr) repeat(4, minmax(0, 1fr)); align-items: center; padding: 0.9rem 1rem; border: 1px solid #e2e9e5; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px -24px rgb(14 38 27 / 70%); }
.cycle-summary-empty { grid-column: 1 / -1; margin: 0; color: #55675e; }
.cycle-summary-head { display: flex; align-items: center; gap: 0.8rem; min-width: 0; padding-right: 1rem; }
.cycle-summary-icon { display: grid; place-items: center; flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 14px; background: #e3f4ea; color: #167144; }
.cycle-summary-text { display: grid; gap: 0.15rem; min-width: 0; }
.cycle-summary-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.cycle-summary-name { color: #10251b; font-size: 1.05rem; font-weight: 850; }
.cycle-summary-state { padding: 0.18rem 0.7rem; border-radius: 999px; background: #eef1ee; color: #3f4f47; font-size: 0.78rem; font-weight: 800; }
.cycle-summary-state.is-open, .cycle-summary-state.is-ready, .cycle-summary-state.is-complete { background: #dff3e7; color: #0f6a3d; }
.cycle-summary-state.is-closed, .cycle-summary-state.is-buying { background: #fff1dc; color: #9a5b00; }
.cycle-summary-state.is-bought, .cycle-summary-state.is-transit { background: #e6eefc; color: #2549a6; }
.cycle-summary-step { color: #55675e; font-size: 0.82rem; }
.cycle-fact { display: flex; align-items: center; gap: 0.7rem; min-width: 0; padding: 0.15rem 1rem; border-left: 1px solid #e6ede9; color: #167144; }
.cycle-fact-text { display: grid; min-width: 0; }
.cycle-fact-value { overflow: hidden; color: #10251b; font-size: 1.15rem; font-weight: 850; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.cycle-fact small { color: #55675e; font-size: 0.78rem; }

/* The steps: a timeline of rows (marker on a line, what to do, how far, status, action). */
.cycle-steps { position: relative; display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.cycle-step { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1.7fr) minmax(0, 1fr) 8.5rem 20.5rem; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border: 1px solid #e2e9e5; border-radius: 16px; background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
@media (hover: hover) { .cycle-step:hover { box-shadow: 0 10px 22px -20px rgb(14 38 27 / 60%); } }
/* The line joining the markers. */
.cycle-step:not(:last-child)::after { content: ""; position: absolute; top: calc(50% + 1.15rem); bottom: calc(-50% - 0.55rem + 1.15rem); left: calc(1rem + 1.2rem - 1px); width: 2px; background: #dfe8e3; pointer-events: none; }
.cycle-step.is-done:not(:last-child)::after { background: #9fd2b5; }
.cycle-step.is-current { border-color: #6fbf93; background: #eef8f2; box-shadow: 0 0 0 1px #6fbf93, 0 14px 28px -24px rgb(14 38 27 / 70%); }
.cycle-step-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #eef1ee; color: #3f4f47; font-size: 0.95rem; font-weight: 850; }
.cycle-step.is-done .cycle-step-marker { background: #167144; color: #fff; }
.cycle-step.is-current .cycle-step-marker { border: 2px solid #167144; background: #fff; color: #0f5a36; }
.cycle-step.is-ongoing .cycle-step-marker { background: #dff3e7; color: #0f6a3d; }
.cycle-step.is-optional .cycle-step-marker { background: #e7f0fb; color: #2549a6; }
.cycle-step-body { display: grid; gap: 0.2rem; min-width: 0; }
.cycle-step-title { color: #10251b; font-size: 0.98rem; font-weight: 800; }
.cycle-step-toggle { display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cycle-step-chevron { width: 1rem; height: 1rem; fill: none; stroke: #66766e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.cycle-step-toggle[aria-expanded="true"] .cycle-step-chevron { transform: rotate(180deg); }
.cycle-step-description { color: #55675e; font-size: 0.84rem; line-height: 1.35; }
.cycle-step-journey { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.45rem; margin-top: 0.15rem; font-size: 0.74rem; }
.cycle-step-journey-label { color: #66766e; font-weight: 700; }
.cycle-step-journey-part { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.08rem 0.5rem 0.08rem 0.55rem; border-radius: 999px; background: #f1f5f3; }
.cycle-step-journey-name { color: #27352f; font-weight: 750; }
.cycle-step-journey-count { color: #0f6a3d; font-weight: 800; font-variant-numeric: tabular-nums; }
.cycle-step-needs { color: #9a5b00; font-size: 0.74rem; font-weight: 800; }
.cycle-step-metric { color: #2f3f37; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.cycle-step-status { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; justify-self: start; padding: 0.25rem 0.75rem; border-radius: 999px; background: #eef1ee; color: #55675e; font-size: 0.76rem; font-weight: 800; white-space: nowrap; }
.cycle-step-status.is-done { background: #dff3e7; color: #0f6a3d; }
.cycle-step-status.is-done::before { content: "\2713"; }
.cycle-step-status.is-current { background: #e3ecfb; color: #2549a6; }
.cycle-step-status.is-current::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.cycle-step-status.is-ongoing { background: #dff3e7; color: #0f6a3d; }
.cycle-step-status.is-optional { background: #eef3fb; color: #2549a6; }
.cycle-step.is-locked .cycle-step-title, .cycle-step.is-locked .cycle-step-description { color: #7d8b84; }
.cycle-step-more { display: grid; gap: 0.35rem; margin-top: 0.35rem; padding: 0.6rem 0.75rem; border-radius: 12px; background: #f6f9f7; color: #3f4f47; font-size: 0.82rem; }
.cycle-step-more[hidden] { display: none; }
.cycle-step-more p { margin: 0; }
.cycle-loading-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.cycle-loading-stage { padding: 0.08rem 0.5rem; border-radius: 999px; background: #eef1ee; font-size: 0.72rem; font-weight: 800; }
.cycle-loading-stage.is-shipped { background: #e6eefc; color: #2549a6; }
.cycle-loading-stage.is-arrived, .cycle-loading-stage.is-cleared { background: #fff1dc; color: #9a5b00; }
.cycle-loading-stage.is-ready { background: #dff3e7; color: #0f6a3d; }
.cycle-loading-row small { color: #66766e; }
.cycle-reopen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; padding: 0.7rem 0.9rem; border: 1px solid #f0c46b; border-radius: 12px; background: #fff8e6; color: #7a4e00; font-size: 0.86rem; list-style: none; }
.cycle-step-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; }
.cycle-action { min-width: 9.5rem; min-height: 2.5rem; padding: 0.4rem 1rem; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; color: #10251b; font: inherit; font-size: 0.86rem; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; }
@media (hover: hover) { .cycle-action:hover:not(:disabled) { background: #f3f7f5; } }
.cycle-action:active:not(:disabled) { transform: scale(0.97); }
.cycle-action.is-primary { border-color: #167144; background: #167144; color: #fff; box-shadow: 0 8px 18px -12px rgb(22 113 68 / 80%); }
@media (hover: hover) { .cycle-action.is-primary:hover:not(:disabled) { background: #0f5a36; } }
.cycle-action:disabled { background: #f6f8f7; color: #9aa8a1; cursor: not-allowed; }
.cycle-step.is-done .cycle-action:disabled { background: #f1f8f4; border-color: #cfe6d9; color: #0f6a3d; }
.cycle-action:focus-visible, .cycle-step-toggle:focus-visible, .cycle-switch:focus-visible, .cycle-head-primary:focus-visible, .cycle-head-secondary:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }

/* Drawers and sheets opened from the steps. */
.cycle-sheet-body { display: grid; gap: 0.8rem; }
.cycle-sheet-lead { margin: 0; color: #2f3f37; font-size: 0.92rem; line-height: 1.45; }
.cycle-sheet-points { display: grid; gap: 0.3rem; margin: 0; padding-left: 1.1rem; color: #3f4f47; font-size: 0.88rem; }
.cycle-sheet-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.cycle-field { display: grid; gap: 0.3rem; color: #3f4f47; font-size: 0.8rem; font-weight: 750; }
.cycle-field input { min-height: 2.6rem; padding: 0.35rem 0.6rem; border: 1px solid #cfd9d3; border-radius: 10px; font: inherit; font-size: 0.92rem; }
.cycle-field[hidden] { display: none; }
.cycle-search { min-height: 2.6rem; padding: 0.4rem 0.8rem; border: 1px solid #cfd9d3; border-radius: 10px; font: inherit; }
.cycle-tick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0.6rem; cursor: pointer; }
.cycle-tick input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: #167144; }
.cycle-tick-text { display: grid; gap: 0.15rem; }
.cycle-tick-text small { color: #66766e; font-size: 0.8rem; line-height: 1.4; }
.cycle-tick.is-disabled { opacity: 0.55; cursor: not-allowed; }
.cycle-next-section { position: relative; display: grid; gap: 0.6rem; padding: 0.85rem 0.9rem 0.9rem 3rem; border: 1px solid #e2e9e5; border-radius: 14px; }
.cycle-next-number { position: absolute; top: 0.85rem; left: 0.9rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e3f4ea; color: #0f6a3d; font-size: 0.8rem; font-weight: 850; }
.cycle-next-products { display: grid; gap: 0.6rem; }
.cycle-next-products[hidden] { display: none; }
.cycle-remind-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.8rem; border: 1px solid #e2e9e5; border-radius: 12px; }
.cycle-remind-text { display: grid; gap: 0.1rem; min-width: 0; }
.cycle-remind-text small { color: #66766e; font-size: 0.78rem; }

/* Motion: only to show what changed, and none for people who ask for less. */
@media (prefers-reduced-motion: no-preference) {
  .cycle-step-more:not([hidden]) { animation: cycle-more-in 0.22s ease-out; }
  .cycle-step.just-done { animation: cycle-done 0.9s ease-out; }
  .cycle-step.just-done .cycle-step-marker { animation: cycle-marker-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
  /* Every admin drawer slides in: up from the bottom on phones, in from the right from 720px. */
  dialog.ui-sheet[open] { animation: ui-sheet-up 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
  dialog.ui-sheet[open]::backdrop { animation: ui-backdrop-in 0.25s ease-out; }
  dialog.ui-confirm[open] { animation: ui-confirm-in 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
  .ui-toast { animation: ui-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 720px) {
  dialog.ui-sheet[open] { animation-name: ui-sheet-in; }
}
@keyframes cycle-done { 0% { box-shadow: 0 0 0 0 rgb(22 113 68 / 45%); } 100% { box-shadow: 0 0 0 14px rgb(22 113 68 / 0%); } }
@keyframes cycle-marker-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
@keyframes cycle-more-in { from { opacity: 0; transform: translateY(-0.25rem); } }
@keyframes ui-sheet-up { from { transform: translateY(100%); } }
@keyframes ui-sheet-in { from { transform: translateX(100%); } }
@keyframes ui-backdrop-in { from { opacity: 0; } }
@keyframes ui-confirm-in { from { opacity: 0; transform: translateY(0.6rem) scale(0.97); } }
@keyframes ui-toast-in { from { opacity: 0; transform: translateY(0.75rem); } }
.ui-toast-icon { display: grid; place-items: center; flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #1f8a52; color: #fff; font-size: 0.85rem; font-weight: 900; }
.ui-toast--error .ui-toast-icon { background: #c8402f; }
.ui-toast--success, .ui-toast--error { max-width: min(36rem, calc(100vw - 2rem)); box-shadow: 0 18px 40px -16px rgb(6 24 16 / 55%); }
.ui-toast--success .ui-toast-action, .ui-toast--error .ui-toast-action { text-decoration: none; opacity: 0.85; font-weight: 700; }

/* Narrower screens: the facts wrap, then each row stacks. */
@media (max-width: 1199px) {
  .cycle-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0.9rem; }
  .cycle-summary-head { grid-column: 1 / -1; padding-right: 0; }
  .cycle-fact:nth-child(2) { border-left: 0; padding-left: 0; }
  .cycle-step { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .cycle-step-metric { grid-column: 2; grid-row: 2; }
  .cycle-step-status { grid-column: 3; grid-row: 1; justify-self: end; }
  .cycle-step-actions { grid-column: 2 / -1; grid-row: 3; justify-content: flex-start; }
  .cycle-step:not(:last-child)::after { display: none; }
}
@media (max-width: 719px) {
  .cycle-head { grid-template-columns: auto minmax(0, 1fr); }
  .cycle-head-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; justify-items: stretch; }
  .cycle-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-fact { padding: 0; border-left: 0; }
  .cycle-step { grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.4rem 0.75rem; padding: 0.8rem; }
  .cycle-step-status { grid-column: 2; grid-row: 2; justify-self: start; }
  .cycle-step-metric { grid-column: 2; grid-row: 3; }
  .cycle-step-actions { grid-column: 1 / -1; grid-row: 4; }
  .cycle-step-actions .cycle-action { flex: 1 1 auto; min-width: 0; }
  /* On a phone a finished step only needs its tick; its button would just take room. */
  .cycle-step.is-done .cycle-step-actions { display: none; }
}
html[data-scheme="dark"] .cycle-step, html[data-scheme="dark"] .cycle-switch, html[data-scheme="dark"] .cycle-action, html[data-scheme="dark"] .cycle-summary, html[data-scheme="dark"] .cycle-head-secondary, html[data-scheme="dark"] .cycle-next-section, html[data-scheme="dark"] .cycle-remind-row { border-color: #2c3a33; background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .cycle-step.is-current { background: #14261c; }
html[data-scheme="dark"] .cycle-head h3, html[data-scheme="dark"] .cycle-step-title, html[data-scheme="dark"] .cycle-summary-name, html[data-scheme="dark"] .cycle-fact-value, html[data-scheme="dark"] .cycle-step-journey-name { color: #eee9dc; }
html[data-scheme="dark"] .cycle-step-more, html[data-scheme="dark"] .cycle-step-journey-part { background: #1d2621; color: #c9d4ce; }
html[data-scheme="dark"] .cycle-action.is-primary { background: #167144; color: #fff; }
@media (max-width: 719px) {
  .cycle-head-actions > button { min-width: 0; padding-inline: 0.6rem; white-space: normal; }
  .cycle-step-marker { align-self: start; }
}

/* Order cycle, compact: one line per step, small controls, details on hover or on opening a shipping step. */
.cycle-board { gap: 0.7rem; }
.cycle-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.2rem 0.7rem; }
.cycle-head-icon { width: 2rem; height: 2rem; }
.cycle-head-icon .cycle-icon { width: 1.6rem; height: 1.6rem; }
.cycle-head h3 { font-size: 1.2rem; }
.cycle-head p { font-size: 0.8rem; }
.cycle-head-actions { display: flex; align-items: center; gap: 0.45rem; }
.cycle-head-primary, .cycle-head-secondary { min-height: 2.25rem; padding: 0.3rem 0.9rem; border-radius: 10px; font-size: 0.82rem; }
.cycle-head-primary { box-shadow: none; }
.cycle-head-primary span { margin-right: 0.2rem; font-size: 1rem; }

.cycle-switch { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; }
.cycle-switch strong { font-size: 0.8rem; }
.cycle-switch small { font-size: 0.7rem; }

.cycle-summary { grid-template-columns: minmax(14rem, 1.4fr) repeat(4, minmax(0, 1fr)); padding: 0.55rem 0.85rem; border-radius: 14px; box-shadow: none; }
.cycle-summary-head { gap: 0.6rem; }
.cycle-summary-icon { width: 2.2rem; height: 2.2rem; border-radius: 10px; }
.cycle-summary-icon .cycle-icon { width: 1.1rem; height: 1.1rem; }
.cycle-summary-name { font-size: 0.95rem; }
.cycle-summary-state { padding: 0.1rem 0.55rem; font-size: 0.7rem; }
.cycle-summary-step { font-size: 0.74rem; }
.cycle-fact { gap: 0.5rem; padding: 0 0.8rem; }
.cycle-fact .cycle-icon { width: 1.1rem; height: 1.1rem; }
.cycle-fact-value { font-size: 0.98rem; }
.cycle-fact small { font-size: 0.7rem; }

.cycle-steps { gap: 0.3rem; }
.cycle-step { grid-template-columns: 1.9rem minmax(0, 1.5fr) minmax(0, 1fr) 7rem 16.5rem; gap: 0.7rem; padding: 0.45rem 0.8rem; border-radius: 12px; }
@media (hover: hover) { .cycle-step:hover { box-shadow: none; border-color: #cfe0d6; } }
.cycle-step.is-current { box-shadow: 0 0 0 1px #6fbf93; }
.cycle-step:not(:last-child)::after { top: calc(50% + 0.9rem); bottom: calc(-50% - 0.3rem + 0.9rem); left: calc(0.8rem + 0.95rem - 1px); }
.cycle-step-marker { width: 1.8rem; height: 1.8rem; font-size: 0.78rem; }
.cycle-step-body { gap: 0.05rem; }
.cycle-step-title { font-size: 0.88rem; cursor: help; }
.cycle-step-toggle .cycle-step-title { cursor: pointer; }
.cycle-step-journey { display: block; overflow: hidden; margin: 0; color: #66766e; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.cycle-step-journey-name { color: #3f4f47; font-weight: 700; }
.cycle-step-journey-count { color: #0f6a3d; font-weight: 800; }
.cycle-step-metric { overflow: hidden; color: #3f4f47; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.cycle-step-status { padding: 0.15rem 0.6rem; font-size: 0.7rem; }
.cycle-step-actions { gap: 0.35rem; }
.cycle-action { min-width: 7.8rem; min-height: 2rem; padding: 0.25rem 0.8rem; font-size: 0.78rem; }
.cycle-action.is-primary { box-shadow: none; }
.cycle-step-more { margin-top: 0.3rem; padding: 0.45rem 0.6rem; font-size: 0.76rem; }

@media (max-width: 1199px) {
  .cycle-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0.55rem; }
  .cycle-step { grid-template-columns: 1.9rem minmax(0, 1fr) auto; gap: 0.25rem 0.7rem; }
  .cycle-step-status { grid-column: 3; grid-row: 1; justify-self: end; }
  .cycle-step-metric { grid-column: 2; grid-row: 2; }
  .cycle-step-actions { grid-column: 3; grid-row: 2; justify-content: flex-end; }
}
@media (max-width: 719px) {
  .cycle-head { grid-template-columns: auto minmax(0, 1fr); }
  .cycle-head p { display: none; }
  .cycle-head-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .cycle-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-step { grid-template-columns: 1.8rem minmax(0, 1fr) auto; padding: 0.5rem 0.65rem; }
  .cycle-step-marker { align-self: center; }
  .cycle-step-metric { grid-column: 2 / -1; }
  .cycle-step-actions { grid-column: 2 / -1; grid-row: 3; justify-content: stretch; }
  .cycle-step-actions .cycle-action { flex: 1 1 auto; min-width: 0; }
  .cycle-step.is-done .cycle-step-metric { display: none; }
}
@media (max-width: 719px) {
  /* A step that cannot be used yet shows only its name and status on a phone. */
  .cycle-step.is-locked .cycle-step-actions, .cycle-step-metric.is-empty { display: none; }
}
/* Cycle and step names are plain, not bold. */
.cycle-step-title, .cycle-switch strong, .cycle-summary-name, .cycle-step-journey-name { font-weight: 500; }
.cycle-step-journey-count { font-weight: 600; }

/* Links between records: a name that opens its record, a list row that opens it, and the row it lands on, marked for a moment. */
.go-link { display: inline; padding: 0; border: 0; background: none; color: #0f6a3d; font: inherit; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
@media (hover: hover) { .go-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.go-link:focus-visible, .go-row:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; border-radius: 6px; }
.go-row { position: relative; padding-right: 1.6rem !important; cursor: pointer; transition: background 0.15s ease; }
.go-row::after { content: "\203A"; position: absolute; top: 50%; right: 0.55rem; color: #7d8b84; font-size: 1.3rem; line-height: 1; transform: translateY(-55%); }
@media (hover: hover) { .go-row:hover { background: #f3f8f5; } }
.is-go-target { outline: 3px solid #1f8a52 !important; outline-offset: -3px; background: #eaf6ef !important; transition: outline-color 0.4s ease, background 0.4s ease; }
html[data-scheme="dark"] .go-link { color: #9fe0bd; }
html[data-scheme="dark"] .is-go-target { background: #173023 !important; }
@media (hover: hover) { html[data-scheme="dark"] .go-row:hover { background: #173023 !important; } }

/* My Orders > Missed Orders: the button at the right of the title, and the list it opens (a sheet from the bottom on phones). */
/* The search bar and Missed Orders share one line: the search takes the room that is left, the button sits at its right. */
.my-orders-tools { display: flex; align-items: center; gap: 0.5rem; margin: 0.2rem 0 0.9rem; }
.my-orders-tools .my-orders-search { flex: 1 1 auto; min-width: 0; margin: 0; }
.my-orders-tools .missed-orders-button { flex: 0 0 auto; height: 2.9rem; min-height: 2.9rem; border-radius: 14px; }
.missed-orders-button { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.4rem; padding: 0.35rem 0.8rem; border: 1px solid #e3ddd0; border-radius: 999px; background: #fff; color: #3f4a44; font: inherit; font-size: 0.82rem; font-weight: 750; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease; }
.missed-orders-button[hidden] { display: none; }
.missed-orders-button svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .missed-orders-button:hover { background: #f7f3ea; } }
.missed-orders-button:active { transform: scale(0.97); }
/* The count sits on the top corner of the button, over the icon, like the other unread counts. */
.missed-orders-count { position: absolute; top: -0.4rem; right: -0.4rem; display: grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem; border: 2px solid #fff; border-radius: 999px; background: #c8402f; color: #fff; font-size: 0.68rem; font-weight: 850; line-height: 1; box-sizing: content-box; pointer-events: none; }
html[data-scheme="dark"] .missed-orders-count { border-color: #1a221e; }
.missed-orders-count[hidden] { display: none; }

.missed-orders-dialog { width: min(36rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100dvh - 3rem)); margin: auto; padding: 0; border: 0; border-radius: 22px; background: #fffdf8; color: #24312b; box-shadow: 0 30px 80px -30px rgb(10 25 19 / 60%); }
.missed-orders-dialog[open] { display: flex; flex-direction: column; }
.missed-orders-dialog::backdrop { background: rgb(10 25 19 / 45%); }
.missed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; padding: 1.1rem 1.1rem 0.6rem; }
.missed-head h2 { margin: 0; font-size: 1.25rem; }
.missed-intro { margin: 0.3rem 0 0; color: #66706a; font-size: 0.84rem; line-height: 1.45; }
.missed-orders-list { display: grid; gap: 1rem; overflow-y: auto; padding: 0.4rem 1.1rem 1rem; }
.missed-group-title { margin: 0 0 0.45rem; color: #3f4a44; font-size: 0.82rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.missed-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.missed-item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.4rem 0.75rem; padding: 0.7rem; border: 1px solid #ece5d6; border-radius: 16px; background: #fff; }
.missed-thumb { display: grid; place-items: center; width: 3rem; height: 3rem; overflow: hidden; border-radius: 12px; background: #f2ede2; color: #7a6f5a; font-weight: 850; }
.missed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.missed-text { display: grid; gap: 0.1rem; min-width: 0; }
.missed-name { overflow: hidden; font-size: 0.95rem; text-overflow: ellipsis; white-space: nowrap; }
.missed-meta { color: #4f5a54; font-size: 0.82rem; }
.missed-when { color: #8a8476; font-size: 0.74rem; }
.missed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; grid-column: 2; }
.missed-again { min-height: 2.3rem; padding: 0.3rem 1rem; border: 0; border-radius: 999px; background: #167144; color: #fff; font: inherit; font-size: 0.84rem; font-weight: 800; cursor: pointer; }
@media (hover: hover) { .missed-again:hover { background: #0f5a36; } }
.missed-remove { min-height: 2.3rem; padding: 0.3rem 0.85rem; border: 1px solid #e3ddd0; border-radius: 999px; background: transparent; color: #8a3b2e; font: inherit; font-size: 0.82rem; font-weight: 750; cursor: pointer; }
@media (hover: hover) { .missed-remove:hover { background: #fff3f0; } }
.missed-remove:disabled { opacity: 0.5; }
.missed-unavailable { color: #8a8476; font-size: 0.8rem; }
.missed-actions .back-alert { display: contents; }
.missed-actions .back-alert-button { min-height: 2.3rem; padding: 0.3rem 0.9rem; font-size: 0.82rem; }
.missed-empty { display: grid; gap: 0.3rem; padding: 2rem 0.5rem; text-align: center; }
.missed-empty p { margin: 0; color: #66706a; font-size: 0.86rem; }
.missed-foot { display: flex; justify-content: flex-end; padding: 0.6rem 1.1rem 1rem; border-top: 1px solid #efe8da; }
.missed-foot:has(.missed-empty-all[hidden]) { display: none; }
.missed-empty-all { min-height: 2.4rem; padding: 0.35rem 1rem; border: 1px solid #ecc6c0; border-radius: 999px; background: #fff6f4; color: #9a3b2e; font: inherit; font-size: 0.84rem; font-weight: 800; cursor: pointer; }
.missed-empty-all[hidden] { display: none; }
.missed-orders-button:focus-visible, .missed-again:focus-visible, .missed-remove:focus-visible, .missed-empty-all:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }

@media (max-width: 640px) {
  .missed-orders-dialog { width: 100vw; max-width: none; max-height: 88dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .missed-orders-button { padding: 0.35rem 0.65rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .missed-orders-dialog[open] { animation: missed-in 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .missed-orders-dialog[open] { animation-name: missed-up; }
}
@keyframes missed-in { from { opacity: 0; transform: translateY(0.75rem) scale(0.98); } }
@keyframes missed-up { from { transform: translateY(100%); } }
html[data-scheme="dark"] .missed-orders-dialog { background: #141a17; color: #eee9dc; }
html[data-scheme="dark"] .missed-item, html[data-scheme="dark"] .missed-orders-button { border-color: #2c3731; background: #1a221e; color: #eee9dc; }
html[data-scheme="dark"] .missed-intro, html[data-scheme="dark"] .missed-meta, html[data-scheme="dark"] .missed-when { color: #a9b2ac; }

/* Missed Orders, compact: picture, name and one line; the bell at the top right; Order again and the bin at the bottom right. */
.missed-head { padding: 0.9rem 1rem 0.4rem; }
.missed-head h2 { font-size: 1.12rem; }
.missed-intro { margin-top: 0.15rem; font-size: 0.78rem; }
.missed-orders-list { gap: 0.7rem; padding: 0.3rem 1rem 0.8rem; }
.missed-group-title { margin-bottom: 0.3rem; font-size: 0.72rem; }
.missed-list { gap: 0.4rem; }
.missed-item { position: relative; grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: "thumb text corner" "thumb text actions"; align-items: center; gap: 0.1rem 0.6rem; padding: 0.5rem 0.55rem; border-radius: 14px; }
.missed-thumb { grid-area: thumb; width: 2.6rem; height: 2.6rem; border-radius: 10px; font-size: 0.85rem; }
.missed-text { grid-area: text; }
.missed-name { font-size: 0.88rem; }
.missed-meta { overflow: hidden; color: #6a736d; font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.missed-corner { grid-area: corner; justify-self: end; align-self: start; }
.missed-corner:empty { display: none; }
.missed-actions { grid-area: actions; grid-column: auto; justify-self: end; align-self: end; flex-wrap: nowrap; gap: 0.3rem; }
.missed-again { min-height: 1.9rem; padding: 0.15rem 0.75rem; font-size: 0.76rem; }
.missed-remove { display: grid; place-items: center; width: 1.9rem; min-height: 1.9rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #9a3b2e; }
.missed-remove svg, .missed-corner .back-alert-button svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .missed-remove:hover { background: #fff1ee; } }
/* The "Tell me when it's back" button as a bell only (its words stay as its name for screen readers). */
.missed-corner .back-alert { display: block; }
.missed-corner .back-alert-button { display: grid; place-items: center; width: 1.9rem; min-width: 0; height: 1.9rem; min-height: 0; padding: 0; overflow: hidden; border-radius: 50%; font-size: 0; line-height: 0; }
.missed-corner .back-alert-button.is-asked { background: #e7f5ec; color: #0f6a3d; border-color: #9fd2b5; }
.missed-foot { padding: 0.5rem 1rem 0.8rem; }
.missed-empty-all { min-height: 2.1rem; font-size: 0.78rem; }

/* Missed Orders, one line per product: picture | name + details | controls in a row. */
.missed-item { grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: "thumb text actions"; align-items: center; }
.missed-actions { grid-area: actions; justify-self: end; align-self: center; flex-wrap: nowrap; gap: 0.35rem; }
.missed-actions .back-alert { display: block; }
.missed-actions .back-alert-button { display: grid; place-items: center; width: 1.9rem; min-width: 0; height: 1.9rem; min-height: 0; padding: 0; overflow: hidden; border-radius: 50%; font-size: 0; line-height: 0; }
.missed-actions .back-alert-button svg { width: 1.05rem; height: 1.05rem; }
.missed-actions .back-alert-button.is-asked { border-color: #9fd2b5; background: #e7f5ec; color: #0f6a3d; }

@media (max-width: 640px) {
  /* On a phone the button is just the bin and its count, square like the search bar's height. */
  .my-orders-tools .missed-orders-button { flex-direction: column; justify-content: center; gap: 0.1rem; padding: 0 0.6rem; }
  /* The bin alone is not clear to a new customer, so the word sits under it. */
  .my-orders-tools .missed-orders-button .missed-long { display: block; font-size: 0.62rem; font-weight: 800; line-height: 1; white-space: nowrap; }
}

/* The one-time note beside Missed Orders (shown the first time it has something in it). */
/* The search bar and Missed Orders stay on ONE row at every width: the search bar shrinks (its input may be narrower than its default
   width), and on very small phones both get smaller. The tip is absolutely placed, so the row never needs to wrap. */
.my-orders-tools { position: relative; flex-wrap: nowrap; }
.my-orders-tools .my-orders-search { flex: 1 1 0; }
.my-orders-tools .my-orders-search input { min-width: 0; }
@media (max-width: 380px) {
  .my-orders-tools { gap: 0.35rem; }
  .my-orders-tools .my-orders-search input { min-height: 2.6rem; padding: 0 0.5rem 0 2rem; font-size: 0.92rem; }
  .my-orders-tools .my-orders-search svg { left: 0.6rem; width: 1rem; height: 1rem; }
  .my-orders-tools .missed-orders-button { height: 2.6rem; min-height: 2.6rem; padding: 0 0.4rem; }
  .my-orders-tools .missed-orders-button .missed-long { font-size: 0.56rem; }
}
/* Anywhere a text box sits in a row with something at its right (search + button, field + action), the box may shrink to make room
   instead of pushing that item onto a new line. */
input[type="search"], input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select { min-width: 0; }
.missed-tip { position: absolute; top: calc(100% + 0.45rem); right: 0; z-index: 5; display: flex; align-items: flex-start; gap: 0.5rem; width: min(17rem, 100%); padding: 0.65rem 0.4rem 0.65rem 0.8rem; border-radius: 12px; background: #24312b; color: #fff; font-size: 0.8rem; line-height: 1.4; box-shadow: 0 14px 30px -14px rgb(10 25 19 / 60%); }
.missed-tip::before { content: ""; position: absolute; top: -0.35rem; right: 1.6rem; width: 0.7rem; height: 0.7rem; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.missed-tip-close { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 14%); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .missed-tip { animation: missed-tip-in 0.3s ease-out; } }
@keyframes missed-tip-in { from { opacity: 0; transform: translateY(-0.3rem); } }

/* A group with nothing to tick (everything paid) has no empty column where the boxes would be. */
.my-order-rows:not(:has(.my-order-pick)) li.has-pick { grid-template-columns: minmax(0, 1fr) auto; }
.my-order-rows:not(:has(.my-order-pick)) .my-order-pick-spacer { display: none; }
.my-order-rows:not(:has(.my-order-pick)) li.has-pick > .my-order-again { grid-column: 1 / -1; }

/* My Orders: each month has two tabs, All Orders and Track Orders. */
.my-order-tabs { display: flex; gap: 0.3rem; margin: 0 0 0.75rem; padding: 0.2rem; border-radius: 14px; background: #eef1ee; }
.my-order-tab { flex: 1 1 0; min-height: 1.95rem; padding: 0.15rem 0.6rem; border: 0; border-radius: 11px; background: transparent; color: #55645c; font: inherit; font-size: 0.84rem; font-weight: 750; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.my-order-tab { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; white-space: nowrap; }
.my-order-tab svg { flex: 0 0 auto; }
.my-order-activity-title { display: inline-flex; align-items: center; gap: 0.4rem; }
.my-order-track-cta { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.my-order-tab.is-current { background: #fff; color: #0f5a36; box-shadow: 0 1px 3px rgb(16 37 27 / 14%); }
.my-order-tab:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 1px; }
.my-order-panel[hidden] { display: none; }

/* Track Orders: where the month is now, the steps, and each loading. */
.my-order-track { display: grid; gap: 0.7rem; }
.track-now { padding: 0.85rem 0.95rem; border-radius: 16px; background: #fff7e6; }
.track-now h4 { margin: 0 0 0.2rem; color: #10251b; font-size: 1.02rem; }
.track-note { margin: 0; color: #4b5b53; font-size: 0.88rem; line-height: 1.4; }
.track-next { margin: 0.45rem 0 0; padding-top: 0.45rem; border-top: 1px dashed rgb(0 0 0 / 12%); color: #6a4a00; font-size: 0.82rem; font-weight: 650; line-height: 1.35; }
.track-now.is-step-closed { background: #eef0ee; }
.track-now.is-step-closed .track-next { color: #55645c; }
.track-now.is-step-buying, .track-now.is-step-bought, .track-now.is-step-shipped, .track-now.is-step-arrived, .track-now.is-step-cleared { background: #e8f0fb; }
.track-now.is-step-buying .track-next, .track-now.is-step-bought .track-next, .track-now.is-step-shipped .track-next, .track-now.is-step-arrived .track-next, .track-now.is-step-cleared .track-next { color: #2a5aa6; }
.track-now.is-step-ready, .track-now.is-step-done { background: #e6f5ec; }
.track-now.is-step-ready .track-next, .track-now.is-step-done .track-next { color: #17683f; }
.track-steps { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.track-steps li { flex: 1 1 0; height: 0.4rem; border-radius: 999px; background: #dfe5e1; }
.track-steps li.is-done { background: #1f8a52; }
.track-steps li.is-current { background: #f2b53c; }
.track-caption { margin: -0.35rem 0 0; color: #66766d; font-size: 0.76rem; font-weight: 700; }
.track-loading { display: grid; gap: 0.45rem; padding: 0.75rem 0.8rem; border: 1px solid #e3e9e5; border-radius: 16px; background: #fff; }
.track-loading .my-order-clock { margin: 0; }
.track-loading-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.track-loading-head h4 { margin: 0; color: #10251b; font-size: 1rem; }
.track-view { min-height: 2.1rem; padding: 0.2rem 0.85rem; border: 1px solid #cfe3d8; border-radius: 999px; background: #f3faf6; color: #0f5a36; font: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.track-view[aria-expanded="true"] { background: #e3f4ea; }
.track-orders { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.track-orders[hidden] { display: none; }
.track-orders button { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; padding: 0.5rem 0.65rem; border: 0; border-radius: 10px; background: #f6f8f6; color: inherit; font: inherit; font-size: 0.86rem; font-weight: 650; text-align: left; cursor: pointer; }
@media (hover: hover) { .track-orders button:hover { background: #edf2ee; } }
.my-order-clock-date { margin: -0.3rem 0 0.55rem; color: #123f31; font-size: 1.05rem; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) { .my-order-track .track-now { animation: missed-tip-in 0.25s ease-out; } }
html[data-scheme="dark"] .my-order-tabs { background: #1d2621; }
html[data-scheme="dark"] .my-order-tab { color: #a3ada6; }
html[data-scheme="dark"] .my-order-tab.is-current { background: #2a3530; color: #9fe0bd; box-shadow: none; }
html[data-scheme="dark"] .track-now { background: #2a2618; }
html[data-scheme="dark"] .track-now h4, html[data-scheme="dark"] .track-loading-head h4 { color: #eee9dc; }
html[data-scheme="dark"] .track-note { color: #c9d4ce; }
html[data-scheme="dark"] .track-now.is-step-closed { background: #222a26; }
html[data-scheme="dark"] .track-now.is-step-buying, html[data-scheme="dark"] .track-now.is-step-bought, html[data-scheme="dark"] .track-now.is-step-shipped, html[data-scheme="dark"] .track-now.is-step-arrived, html[data-scheme="dark"] .track-now.is-step-cleared { background: #172337; }
html[data-scheme="dark"] .track-now.is-step-ready, html[data-scheme="dark"] .track-now.is-step-done { background: #15281e; }
html[data-scheme="dark"] .track-steps li { background: #2c3731; }
html[data-scheme="dark"] .track-loading { border-color: #2c3731; background: #18201c; }
html[data-scheme="dark"] .track-orders button { background: #1d2621; }
html[data-scheme="dark"] .my-order-clock-date { color: #eee9dc; }

/* Loadings: busy state, the products header, the sheet draft, and the add-products / view-all drawers. */
#admin-loadings.is-busy { position: relative; pointer-events: none; opacity: 0.75; }
#admin-loadings.is-busy::before { content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 3px; background: linear-gradient(90deg, transparent, #1f8a52, transparent); background-size: 40% 100%; background-repeat: no-repeat; }
@media (prefers-reduced-motion: no-preference) { #admin-loadings.is-busy::before { animation: loading-busy 1s linear infinite; } }
@keyframes loading-busy { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.loading-products-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 0.6rem; }
.loading-products-head h3 { margin: 0; }
.loading-view-all { margin-top: 0.6rem; }
.loading-real-fees > summary { cursor: pointer; list-style: none; }
.loading-real-fees > summary h3 { display: inline; margin: 0; }
.loading-real-fees > summary::before { content: "\25B8 "; color: #167144; }
.loading-real-fees[open] > summary::before { content: "\25BE "; }
.loading-draft { margin: 0 0 0.7rem; padding: 0.8rem 0.9rem; border: 1px solid #f0c46b; border-radius: 14px; background: #fff8e6; }
.loading-draft[hidden] { display: none; }
.loading-draft-title { margin: 0 0 0.2rem; color: #7a4e00; font-weight: 800; }
.loading-draft-problems { margin: 0.4rem 0; padding-left: 1.1rem; color: #9a3b2e; font-size: 0.82rem; }
.loading-drawer { display: grid; gap: 0.7rem; }
.loading-drawer-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.loading-drawer-bar input, .loading-drawer-search { flex: 1 1 12rem; min-height: 2.6rem; padding: 0.35rem 0.8rem; border: 1px solid #cfd9d3; border-radius: 10px; font: inherit; }
.loading-drawer-bar select { min-height: 2.6rem; padding: 0.3rem 0.6rem; border: 1px solid #cfd9d3; border-radius: 10px; background: #fff; font: inherit; }
.loading-drawer-count { color: #55675e; font-size: 0.82rem; font-weight: 700; }
.loading-quick-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.loading-quick { min-height: 2.1rem; padding: 0.2rem 0.85rem; border: 1px solid #cfe3d8; border-radius: 999px; background: #f3faf6; color: #0f5a36; font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: background 0.15s ease; }
@media (hover: hover) { .loading-quick:hover { background: #e3f4ea; } }
.loading-drawer .loading-picks { margin: 0; gap: 0.3rem; }
.loading-drawer .loading-pick { align-items: center; padding: 0.55rem 0.7rem; border: 1px solid #e3e9e5; border-radius: 12px; background: #fff; cursor: pointer; }
.loading-drawer .loading-pick.is-picked { border-color: #6fbf93; background: #eef8f2; }
.loading-drawer .loading-pick input { width: 1.15rem; height: 1.15rem; accent-color: #167144; }
html[data-scheme="dark"] .loading-draft { border-color: #6b5420; background: #2a2618; }
html[data-scheme="dark"] .loading-draft-title { color: #f0c46b; }
html[data-scheme="dark"] .loading-drawer .loading-pick { border-color: #2c3731; background: #18201c; }
html[data-scheme="dark"] .loading-drawer .loading-pick.is-picked { background: #173023; }

/* Preorder Tracker and Shipping & Delivery: one collapsible group per batch, the same bar as the Batches tab. */
.batch-group { margin: 0 0 1rem; border: 1px solid #dfe8e3; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgb(16 37 27 / 4%); }
.batch-group-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.6rem 1.1rem; padding: 0.8rem 0.9rem 0.8rem 0.7rem; border-radius: 18px; background: linear-gradient(180deg, #fbfdfc, #f6faf8); cursor: pointer; list-style: none; }
.batch-group[open] > .batch-group-bar { border-bottom: 1px solid #e6ede9; border-radius: 18px 18px 0 0; }
.batch-group-bar::-webkit-details-marker { display: none; }
.batch-group-bar::after, .batch-group-bar::before { display: none; content: none; }
.batch-group[open] .batch-bar-chevron { transform: none; }
.batch-group-bar .batch-bar-facts { flex: 1 1 auto; }
.tracker-fact { display: inline-grid; gap: 0; padding: 0.1rem 1rem; }
.tracker-fact strong { color: #10251b; font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tracker-fact small { color: #66766e; font-size: 0.72rem; }
.tracker-fact.is-owing strong { color: #b42318; }
.batch-group .ui-host { padding: 0.4rem 0.6rem 0.7rem; }
.tracker-group-download, .tracker-group-csv { min-height: 2.2rem; padding: 0 0.85rem; font-size: 0.8rem; }
.shipping-group-body { display: grid; gap: 0.9rem; padding: 0.9rem 1rem 1rem; }
.shipping-box { display: grid; gap: 0.4rem; padding: 0.75rem 0.85rem; border: 1px solid #e6ede9; border-radius: 14px; background: #fbfdfc; }
.shipping-box h4 { margin: 0; color: #10251b; font-size: 0.92rem; font-weight: 700; }
.shipping-box .help { margin: 0; }
.shipping-box .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
@media (max-width: 719px) {
  .batch-group-bar { gap: 0.55rem; padding: 0.75rem; }
  .batch-group-bar .batch-bar-facts { flex: 1 1 100%; gap: 0.3rem 0; }
  .batch-group-bar .tracker-fact { padding: 0 0.7rem 0 0; }
  .tracker-group-download, .tracker-group-csv { flex: 1 1 100%; justify-content: center; margin-left: 0; }
}
html[data-scheme="dark"] .batch-group, html[data-scheme="dark"] .shipping-box { border-color: #2c3a33; background: #18201c; }
html[data-scheme="dark"] .batch-group-bar { background: #161c19; }
html[data-scheme="dark"] .tracker-fact strong, html[data-scheme="dark"] .shipping-box h4 { color: #eee9dc; }

/* Every button answers the moment it is pressed: a small press-in, so a tap never feels ignored (not for people who ask for less motion).
   It uses the separate `scale` property, so it adds to any transform a button already has instead of replacing it. */
@media (prefers-reduced-motion: no-preference) {
  button:not(:disabled):active, .btn:not(:disabled):active, a.btn:active, [role="button"]:active { scale: 0.97; }
}
button:disabled, .btn:disabled, .btn[disabled] { cursor: not-allowed; }
.shipping-box h4 { text-transform: none; letter-spacing: 0; }
.shipping-box .actions input { width: auto; flex: 1 1 11rem; max-width: 15rem; min-height: 2.5rem; }
.shipping-box .actions .btn { min-height: 2.5rem; }

/* ---- My Invoices: month chips, an invoice card with a Goods | Shipping toggle, and a pay bar ------------------------------------------- */
.inv-page { display: grid; gap: 0.9rem; }
.inv-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.inv-label { color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

/* Month chips: a dot that is green when fully paid and gold while something is due. */
.inv-months { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: none; }
.inv-months::-webkit-scrollbar { display: none; }
.inv-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.4rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.inv-chip.is-on { border-color: var(--green-deep); background: var(--green-deep); color: #fff; }
.inv-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--green); }
.inv-dot.is-due { background: #f0b24a; }
.inv-chip.is-on .inv-dot { box-shadow: 0 0 0 2px rgb(255 255 255 / 35%); }

/* The card */
/* overflow: clip keeps the rounded corners without making the card a scroll box, so the Goods | Shipping tabs can stick inside it. */
.inv-card { overflow: hidden; overflow: clip; border: 1px solid var(--line); border-radius: 20px; background: var(--sheet); box-shadow: var(--shadow-soft); }
.inv-head { position: relative; display: grid; gap: 0.15rem; padding: 1.1rem 1.1rem 1rem; border-bottom: 1px dashed var(--line); }
.inv-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.55rem; padding-right: 8rem; }
.inv-brand b { display: block; color: var(--green-deep); font-size: 0.95rem; }
.inv-brand small { display: block; color: var(--muted); font-size: 0.78rem; }
.inv-logo { display: block; width: 2.25rem; height: 2.25rem; border-radius: 10px; object-fit: cover; }
.inv-badge { position: absolute; top: 1.1rem; right: 1.1rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.inv-badge.is-paid { background: #e3f1ea; color: var(--green-deep); }
.inv-badge.is-part { background: #fdf1dc; color: var(--amber-text); }
.inv-badge.is-unpaid { background: #fbe7e5; color: var(--danger); }
.inv-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.inv-type { color: var(--green-deep); font-size: 0.95rem; font-weight: 800; letter-spacing: -0.005em; text-align: right; }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 0.9rem; margin: 0.6rem 0 0; }
.inv-meta dt { color: var(--muted); font-size: 0.75rem; }
.inv-meta dd { margin: 0.1rem 0 0; font-size: 0.9rem; font-weight: 650; overflow-wrap: anywhere; }

/* Goods | Shipping */
.inv-tabs-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 25; padding: 0.9rem 1rem 0.35rem; background: var(--sheet); box-shadow: 0 8px 10px -12px rgb(14 38 27 / 55%); }
.inv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; padding: 0.35rem; border-radius: 14px; background: #eef1ee; }
html[data-scheme="dark"] .inv-tabs-bar { background: #18201c; }
.inv-action.is-busy { opacity: 0.6; cursor: progress; }
.inv-tab { display: grid; justify-items: center; gap: 0.1rem; min-height: 3.25rem; padding: 0.4rem 0.5rem; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.inv-tab b { font-size: 0.95rem; font-weight: 800; }
.inv-tab small { font-size: 0.76rem; font-weight: 700; }
.inv-tab small.is-due { color: var(--amber-text); }
.inv-tab small.is-ok { color: var(--green); }
.inv-tab.is-on { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgb(16 37 27 / 14%); }
.inv-tab:focus-visible { outline: 3px solid rgb(8 121 87 / 30%); outline-offset: 1px; }
.inv-panel.is-off { display: none; }
@media (prefers-reduced-motion: no-preference) { .inv-panel:not(.is-off) { animation: inv-fade 0.18s ease-out; } }
@keyframes inv-fade { from { opacity: 0; transform: translateY(0.25rem); } }
.inv-body { display: grid; }

/* The amount of the tab */
.inv-amount { display: grid; gap: 0.2rem; margin: 0.9rem 0 0; padding: 1rem 1.1rem; background: #f6f3ea; }
.inv-big { margin: 0; color: var(--green-deep); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.inv-big small { margin-right: 0.2rem; color: var(--header-dark); font-size: 0.95rem; font-weight: 700; }
.inv-big.is-muted { color: var(--muted); font-size: 1.35rem; font-weight: 700; }
.inv-bar { height: 0.4rem; margin-top: 0.4rem; overflow: hidden; border-radius: 6px; background: #e7e2d3; }
.inv-bar-fill { display: block; width: var(--fill, 0%); height: 100%; border-radius: 6px; background: var(--green); }
@media (prefers-reduced-motion: no-preference) { .inv-bar-fill { transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); } }
.inv-paid-of { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

/* Items */
.inv-section { padding: 0.9rem 1.1rem 0.4rem; }
.inv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.3rem; }
.inv-section-head h3 { margin: 0; font-size: 0.95rem; }
.inv-section-head > span { color: var(--muted); font-size: 0.82rem; }
.inv-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.inv-item.is-extra { display: none; }
.inv-item-info { flex: 1; min-width: 0; }
.inv-item-info b { display: block; font-size: 0.95rem; font-weight: 650; line-height: 1.3; }
.inv-item-options { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.82rem; }
.inv-item-calc { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.inv-item-amount { flex: 0 0 auto; text-align: right; }
.inv-item-amount b { display: block; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.inv-tag { display: inline-block; margin-top: 0.25rem; padding: 0.1rem 0.45rem; border-radius: 6px; font-size: 0.7rem; font-weight: 800; }
.inv-tag.is-ok { background: #e3f1ea; color: var(--green-deep); }
.inv-tag.is-no { background: #fbe7e5; color: var(--danger); }
.inv-tag.is-due { background: #fdf1dc; color: var(--amber-text); }
.inv-tag.is-wait { background: #eef0ee; color: var(--muted); }
.inv-thumb { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 3rem; height: 3rem; overflow: hidden; border-radius: 12px; font-weight: 800; }
.inv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inv-thumb.is-tone-0 { background: #e7e3dc; color: #6b5f4f; }
.inv-thumb.is-tone-1 { background: #e6f2e2; color: #3f7a3a; }
.inv-thumb.is-tone-2 { background: #e3ecf6; color: #2f5d8a; }
.inv-thumb.is-tone-3 { background: #fbe9e0; color: #a3561a; }
.inv-thumb.is-tone-4 { background: #efe9f4; color: #5b3d7a; }
.inv-thumb.is-tone-5 { background: #e0f0f2; color: #1f6b74; }
.inv-more { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; min-height: 2.75rem; margin: 0.6rem 0 0.4rem; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--green); font: inherit; font-weight: 700; cursor: pointer; }
.inv-more svg { transition: transform 0.25s ease; }
.inv-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Shipping: fee per piece, then the quantity, then the line total; grouped by arrival. */
.inv-ship-note { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.84rem; }
.inv-ship-meta { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.8rem; }
.inv-pending { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0.4rem 0 0.8rem; padding: 0.9rem; border: 1.5px dashed #cfd6d0; border-radius: 14px; }
.inv-pending-icon { display: grid; flex: 0 0 auto; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: #eef0ee; color: var(--header-dark); }
.inv-pending b { display: block; font-size: 0.9rem; }
.inv-pending span { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.inv-arrival { margin: 0.5rem 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.inv-arrival-head { display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 3.25rem; padding: 0.55rem 0.8rem; border: 0; background: #f8faf8; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.inv-arrival.is-unloaded .inv-arrival-head { cursor: default; }
.inv-arrival-title { display: grid; flex: 1; min-width: 0; }
.inv-arrival-title b { font-size: 0.92rem; }
.inv-arrival-title small { color: var(--muted); font-size: 0.76rem; }
.inv-arrival-sum { display: inline-flex; align-items: center; gap: 0.45rem; }
.inv-arrival-sum b { font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.inv-arrival-sum .inv-tag { margin: 0; }
.inv-arrival-head > svg { transition: transform 0.2s ease; color: var(--muted); }
.inv-arrival.is-open > .inv-arrival-head > svg { transform: rotate(180deg); }
.inv-arrival.is-unloaded > .inv-arrival-head > svg { display: none; }
.inv-arrival-body { display: none; padding: 0 0.8rem; }
.inv-arrival.is-open > .inv-arrival-body { display: block; }
.inv-ship-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.inv-ship-row:first-child { border-top: 0; }
.inv-ship-name { min-width: 0; }
.inv-ship-name b { display: block; font-size: 0.9rem; font-weight: 650; }
.inv-ship-calc { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.inv-per-piece { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 6px; background: #fdf1dc; color: var(--amber-text); font-style: normal; font-weight: 800; }

/* Totals and payments */
.inv-totals { margin: 0.3rem 1.1rem 0; padding: 0.8rem 0 0.9rem; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.inv-total-row { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.inv-total-row b { color: var(--ink); font-weight: 650; }
.inv-total-row.is-paid b { color: var(--green); }
.inv-total-row.is-due { margin-top: 0.3rem; padding-top: 0.55rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.inv-total-row.is-due b { color: var(--danger); font-size: 1.1rem; font-weight: 800; }
.inv-total-row.is-zero { margin-top: 0.3rem; padding-top: 0.55rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.inv-total-row.is-zero b { color: var(--green-deep); font-size: 1.1rem; font-weight: 800; }
.inv-payments { display: grid; gap: 0.2rem; margin: 0 1.1rem 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 14px; }
.inv-payments-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.inv-viewall { min-height: 2.75rem; margin: -0.5rem -0.4rem -0.5rem 0; padding: 0 0.4rem; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.inv-viewall:focus-visible { outline: 3px solid rgb(8 121 87 / 30%); outline-offset: 2px; }
.inv-payment[hidden] { display: none; }
.inv-payment { display: flex; align-items: center; gap: 0.65rem; padding: 0.4rem 0; }
.inv-payment + .inv-payment { border-top: 1px solid var(--line); }
.inv-momo { display: grid; flex: 0 0 auto; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: #ffcb05; color: #1a1a1a; font-size: 0.6rem; font-weight: 900; }
.inv-payment-text { flex: 1; min-width: 0; }
.inv-payment-text b { display: block; font-size: 0.88rem; }
.inv-payment-text small { display: block; color: var(--muted); font-size: 0.76rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.inv-payment-amount { color: var(--green); font-size: 0.88rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.inv-foot { padding: 0.9rem 1.1rem 1.1rem; border-top: 1px solid var(--line); background: #fafbf9; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.inv-foot b { color: var(--ink); }

/* Actions and help */
.inv-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.inv-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; min-height: 4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); color: var(--header-dark); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.inv-help { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 3.5rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.inv-help-text { flex: 1; }
.inv-help-text b { display: block; font-size: 0.9rem; }
.inv-help-text span { color: var(--muted); font-size: 0.82rem; }

/* The pay bar: sticks above the bottom bar while anything is due. */
.inv-paybar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 70; display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem max(1rem, calc((100% - 28rem) / 2)) calc(0.8rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 20px -14px rgb(14 38 27 / 40%); }
.inv-paybar[hidden] { display: none; }
.inv-page:has(.inv-paybar:not([hidden])) { padding-bottom: 6.5rem; }
/* Only on the invoice screen: the bar stays in the page (hidden) after the customer leaves, and must not take the tab bar with it. */
body:not(.page-admin)[data-view="invoices"]:has(.inv-paybar:not([hidden])) .bottom-nav { display: none; }
.inv-paybar-text { flex: 1; min-width: 0; }
.inv-paybar-text span { display: block; color: var(--muted); font-size: 0.8rem; }
.inv-paybar-text b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.inv-paybtn { min-height: 3.4rem; padding: 0 1.6rem; border: 0; border-radius: 12px; background: var(--green-deep); color: #fff; font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; }
.inv-paybtn.is-quiet { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.inv-chip:focus-visible, .inv-more:focus-visible, .inv-arrival-head:focus-visible, .inv-action:focus-visible, .inv-help:focus-visible, .inv-paybtn:focus-visible { outline: 3px solid rgb(8 121 87 / 30%); outline-offset: 2px; }

@media (max-width: 380px) { .inv-brand { padding-right: 0; } .inv-badge { position: static; justify-self: start; margin-bottom: 0.5rem; } }

html[data-scheme="dark"] .inv-card, html[data-scheme="dark"] .inv-chip, html[data-scheme="dark"] .inv-action, html[data-scheme="dark"] .inv-help, html[data-scheme="dark"] .inv-paybar, html[data-scheme="dark"] .inv-arrival { border-color: #2c3731; background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .inv-chip.is-on { background: #167144; border-color: #167144; }
html[data-scheme="dark"] .inv-amount, html[data-scheme="dark"] .inv-arrival-head, html[data-scheme="dark"] .inv-foot { background: #1d2621; }
html[data-scheme="dark"] .inv-tabs { background: #1d2621; }
html[data-scheme="dark"] .inv-tab.is-on { background: #2a3530; color: #eee9dc; box-shadow: none; }
html[data-scheme="dark"] .inv-type, html[data-scheme="dark"] .inv-big, html[data-scheme="dark"] .inv-brand b { color: #eee9dc; }

/* Print: the whole invoice, both sections, without the buttons. */
@media print {
  body.printing-invoice .inv-months, body.printing-invoice .inv-actions, body.printing-invoice .inv-help, body.printing-invoice .inv-paybar, body.printing-invoice .inv-tabs, body.printing-invoice .inv-more { display: none !important; }
  body.printing-invoice .inv-panel.is-off { display: block !important; }
  body.printing-invoice .inv-item.is-extra { display: flex !important; }
  body.printing-invoice .inv-arrival-body { display: block !important; }
  body.printing-invoice .inv-card { border: 0; box-shadow: none; }
}

/* Track Orders tab: the batch summary card, the loading cards with their own journey, and the orders sheet (public/js/loading-track.js) */
.track-summary { display: grid; gap: 0.65rem; padding: 0.95rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.track-summary-top { display: flex; align-items: flex-start; gap: 0.75rem; }
.track-summary-icon { display: grid; flex: none; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 12px; background: #e6f5ec; color: var(--green-deep); }
.track-summary-text h4 { margin: 0 0 0.15rem; color: #10251b; font-size: 1.02rem; }
.track-summary-text .track-note { margin: 0; }
.track-summary-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.track-summary .track-caption, .track-summary .track-counts { margin: 0; color: #66766d; font-size: 0.76rem; font-weight: 700; }
.track-summary .track-next { margin: 0; padding: 0.55rem 0.7rem; border: 0; border-radius: 12px; background: #fff7e6; color: #6a4a00; }
.track-section { margin: 0.5rem 0 -0.1rem; color: #55645c; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.track-foot { margin: 0.3rem 0 0; color: #66766d; font-size: 0.78rem; line-height: 1.4; text-align: center; }
.lt-card { gap: 0.7rem; padding: 0.85rem 0.9rem; }
/* The loading a shipment alert is about, shown for a moment after the page opens on it. */
.lt-card.is-target { box-shadow: 0 0 0 3px rgb(8 121 87 / 45%); transition: box-shadow 0.4s ease; }
.lt-head { display: flex; align-items: center; gap: 0.6rem; }
.lt-title { flex: 1; min-width: 0; margin: 0; color: #10251b; font-size: 1rem; overflow-wrap: anywhere; }
.lt-number { display: grid; flex: none; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: var(--green-deep); color: #fff; font-size: 0.85rem; font-weight: 800; }
.lt-number.is-grey { background: #dfe5e1; color: #66766d; }
.lt-tag { flex: none; padding: 0.2rem 0.6rem; border-radius: 999px; background: #eef0ee; color: #55645c; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.lt-tag.is-go { background: #e8f0fb; color: #2a5aa6; }
.lt-tag.is-ok { background: #e6f5ec; color: #17683f; }
.lt-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.lt-steps li { position: relative; display: grid; justify-items: center; gap: 0.3rem; text-align: center; }
.lt-steps li::before { content: ""; position: absolute; top: 1rem; right: 50%; left: -50%; height: 3px; background: #dfe5e1; transform-origin: left; }
.lt-steps li:first-child::before { display: none; }
.lt-steps li.is-done::before, .lt-steps li.is-current::before { background: #1f8a52; }
/* Each step has an icon in its circle: done = solid green with a white icon, current = white with a green ring and a soft glow, next = grey. */
.lt-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #eef0ee; color: #9aa39e; box-shadow: 0 0 0 1px #dde2dc; }
.lt-steps li.is-done .lt-dot { background: #1f8a52; color: #fff; box-shadow: 0 0 0 1px #1f8a52; }
.lt-steps li.is-current .lt-dot { background: #fff; color: #1f8a52; box-shadow: 0 0 0 2px #1f8a52, 0 0 0 6px rgb(31 138 82 / 18%); }
/* The shipping line's PAID / DUE tag and the note while a fee is due. */
.lt-ship-wrap { display: grid; gap: 0.4rem; }
.lt-paytag { margin-left: 0.4rem; padding: 0.1rem 0.4rem; border-radius: 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; }
.lt-paytag.is-paid { background: #e6f5ec; color: #17683f; }
.lt-paytag.is-due { background: #fdf0c9; color: #8a5a00; }
.lt-lock { margin: 0; padding: 0.5rem 0.7rem; border-radius: 10px; background: #fdf0c9; color: #8a5a00; font-size: 0.8rem; line-height: 1.4; }
/* The gold action banner above the summary while a ready loading has no choice yet. */
.lt-todo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; padding: 0.75rem 0.85rem; border: 1px solid #f1d49b; border-radius: 16px; background: #fdf1dc; }
.lt-todo-icon { display: grid; flex: none; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 12px; background: #fff; color: #8a5410; }
.lt-todo-text { flex: 1; min-width: 0; }
.lt-todo-text b { display: block; color: #5b3a07; font-size: 0.95rem; }
.lt-todo-text span { display: block; margin-top: 0.1rem; color: #8a5410; font-size: 0.82rem; line-height: 1.35; }
.lt-todo-go { flex: none; min-height: 2.75rem; padding: 0 0.9rem; border: 0; border-radius: 10px; background: var(--green-deep); color: #fff; font: inherit; font-size: 0.84rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.lt-card.is-action { border-color: #f1d49b; box-shadow: 0 0 0 3px rgb(240 178 74 / 18%); }
/* How would you like to get this loading? */
.lt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.lt-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; min-height: 4.6rem; padding: 0.7rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: #10251b; font: inherit; text-align: left; cursor: pointer; }
.lt-opt-head { display: flex; align-items: center; gap: 0.55rem; }
.lt-opt-head b { font-size: 0.95rem; }
.lt-opt-icon { display: grid; flex: none; width: 2rem; height: 2rem; place-items: center; border-radius: 10px; background: #eef3ee; color: #123f31; }
.lt-opt-hint { color: #66766d; font-size: 0.8rem; line-height: 1.3; }
.lt-opt.is-on { border-color: #1f8a52; background: #f4faf6; box-shadow: 0 0 0 3px rgb(31 138 82 / 14%); }
.lt-opt.is-on .lt-opt-icon { background: #1f8a52; color: #fff; }
.lt-panel { display: grid; gap: 0.55rem; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; }
.lt-panel-text { margin: 0; color: #10251b; font-size: 0.9rem; line-height: 1.45; white-space: pre-line; }
.lt-note { margin: 0; color: #66766d; font-size: 0.8rem; line-height: 1.45; }
.lt-field label { display: block; margin-bottom: 0.25rem; color: #66766d; font-size: 0.76rem; font-weight: 700; }
.lt-field input { width: 100%; min-height: 2.9rem; padding: 0 0.75rem; border: 1px solid #d6dbd5; border-radius: 12px; background: #fff; color: #10251b; font: inherit; }
.lt-field input:focus-visible { outline: 2px solid #1f8a52; outline-offset: 1px; }
.lt-all { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; color: #10251b; font-size: 0.9rem; cursor: pointer; }
.lt-all input { flex: none; width: 1.35rem; height: 1.35rem; accent-color: #1f8a52; }
.lt-confirm { min-height: 3rem; border: 0; border-radius: 14px; background: var(--green-deep); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.lt-confirm:disabled { background: #c9d0ca; cursor: default; }
.lt-status { margin: 0; color: #b3261e; font-size: 0.82rem; }
.lt-status:empty { display: none; }
html[data-scheme="dark"] .lt-dot { background: #222a26; box-shadow: 0 0 0 1px #2c3731; }
html[data-scheme="dark"] .lt-steps li.is-current .lt-dot { background: #18201c; }
html[data-scheme="dark"] .lt-steps li.is-done .lt-dot { background: #1f8a52; }
.lt-label { color: #66766d; font-size: 0.68rem; font-weight: 600; line-height: 1.2; }
.lt-steps li.is-done .lt-label { color: #3f5148; }
.lt-steps li.is-current .lt-label { color: #10251b; font-weight: 800; }
.lt-clock { padding: 0.7rem 0.75rem 0.75rem; }
.lt-clock .my-order-clock-label { margin-bottom: 0.3rem; font-size: 0.68rem; }
.lt-clock .my-order-clock-date { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0 0 0.45rem; font-size: 0.98rem; }
.lt-estimate { padding: 0.1rem 0.4rem; border-radius: 6px; background: #fdf0c9; color: #8a5a00; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; }
.lt-clock .my-order-clock-digits { gap: 0.35rem; }
.lt-clock .my-order-clock-digits div { padding: 0.3rem 0.1rem 0.25rem; border-radius: 10px; }
.lt-clock .my-order-clock-digits b { font-size: 1.05rem; }
.lt-clock .my-order-clock-digits small { font-size: 0.58rem; }
.lt-arrival { display: grid; gap: 0.25rem; margin-top: 0.6rem; }
.lt-arrival-bar { height: 4px; overflow: hidden; border-radius: 4px; background: rgb(42 90 166 / 18%); }
.lt-arrival-fill { display: block; width: var(--fill, 0%); height: 100%; border-radius: 4px; background: #2a5aa6; }
.lt-arrival-ends { display: flex; justify-content: space-between; color: #55645c; font-size: 0.66rem; font-weight: 700; }
.lt-ship { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.4rem 0.3rem 0.7rem; border-radius: 12px; background: #f6f8f6; color: #3f5148; font-size: 0.85rem; }
.lt-ship.is-none { min-height: 2.75rem; color: #66766d; }
.lt-ship-text { flex: 1; min-width: 0; }
.lt-ship-text b { color: #10251b; }
.lt-link { min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.5rem; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.lt-actions { display: flex; align-items: center; gap: 0.5rem; }
.lt-actions .track-view { flex: 1; min-height: 2.75rem; }
.lt-bell { display: grid; flex: none; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid #cfe3d8; border-radius: 50%; background: #fff; color: #55645c; cursor: pointer; }
.lt-bell.is-on { border-color: #e0a526; background: #fdf0c9; color: #8a5a00; }
.lt-bell:disabled { opacity: 0.6; }
.lt-link:focus-visible, .lt-bell:focus-visible, .track-sheet-btn:focus-visible, .track-sheet-row:focus-visible, .track-sheet-close:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .my-order-track.is-animating .track-summary, .my-order-track.is-animating .lt-card { animation: lt-up 0.35s ease-out both; animation-delay: calc(var(--i, -1) * 70ms + 70ms); }
  .my-order-track.is-animating .lt-steps li::before { animation: lt-grow 0.5s ease-out both; animation-delay: calc(var(--n) * 90ms + 250ms); }
  .my-order-track.is-animating .lt-dot { animation: lt-pop 0.3s ease-out both; animation-delay: calc(var(--n) * 90ms + 250ms); }
  .my-order-track.is-animating .lt-arrival-fill { animation: lt-fill 0.9s ease-out both 0.4s; }
}
@keyframes lt-up { from { opacity: 0; transform: translateY(0.6rem); } }
@keyframes lt-grow { from { transform: scaleX(0); } }
@keyframes lt-pop { from { transform: scale(0); } }
@keyframes lt-fill { from { width: 0; } }

body.track-sheet-open { overflow: hidden; }
dialog.track-sheet { position: fixed; inset: auto 0 0; display: none; width: min(100%, 34rem); max-width: none; max-height: 82vh; margin: 0 auto; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: #fff; color: var(--ink, #172821); overflow: hidden; transition: transform 0.2s ease-out; }
dialog.track-sheet[open] { display: flex; flex-direction: column; }
dialog.track-sheet.is-dragging { transition: none; }
dialog.track-sheet::backdrop { background: rgb(10 25 19 / 48%); }
@media (prefers-reduced-motion: no-preference) { dialog.track-sheet[open] { animation: track-sheet-up 0.26s ease-out; } }
@keyframes track-sheet-up { from { transform: translateY(100%); } }
.track-sheet-grab { display: grid; flex: none; height: 2.75rem; place-items: center; cursor: grab; touch-action: none; }
.track-sheet-grab i { width: 2.6rem; height: 0.3rem; border-radius: 999px; background: #cfd8d3; }
.track-sheet-head { display: flex; flex: none; align-items: center; gap: 0.6rem; padding: 0 0.7rem 0.4rem 1.1rem; }
.track-sheet-titles { flex: 1; min-width: 0; }
.track-sheet-titles h3 { margin: 0; color: #10251b; font-size: 1.15rem; }
.track-sheet-titles p { margin: 0.1rem 0 0; color: #66766d; font-size: 0.8rem; }
.track-sheet-close { display: grid; flex: none; width: 2.75rem; height: 2.75rem; place-items: center; border: 0; border-radius: 50%; background: #eef1ee; color: #3f5148; cursor: pointer; }
.track-sheet-line { flex: none; margin: 0 1.1rem 0.6rem; padding: 0.55rem 0.75rem; border-radius: 12px; background: #f6f8f6; color: #3f5148; font-size: 0.85rem; font-weight: 650; }
.track-sheet-list { display: grid; flex: 1 1 auto; align-content: start; gap: 0.35rem; min-height: 0; margin: 0; padding: 0 1.1rem 0.6rem; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.track-sheet-row { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 3.4rem; padding: 0.45rem 0.6rem; border: 1px solid #e3e9e5; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.track-sheet-initial { display: grid; flex: none; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 10px; background: #e6f5ec; color: var(--green-deep); font-weight: 800; }
.track-sheet-initial.has-picture { width: 2.8rem; height: 2.8rem; overflow: hidden; background: #eef1ee; font-size: 0; }
.track-sheet-initial img { display: block; width: 100%; height: 100%; object-fit: cover; }
.track-sheet-order { flex: 1; min-width: 0; }
.track-sheet-order b, .track-sheet-order small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-sheet-order b { font-size: 0.9rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.track-sheet-order small { color: #66766d; font-size: 0.78rem; }
.track-sheet-side { display: grid; flex: none; justify-items: end; gap: 0.2rem; }
.track-sheet-side b { font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.track-sheet-foot { display: grid; flex: none; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 0.7rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e3e9e5; }
.track-sheet-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 3rem; padding: 0 0.8rem; border: 0; border-radius: 12px; background: var(--green-deep); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.track-sheet-btn.is-quiet { border: 1px solid #cfe3d8; background: #fff; color: var(--green-deep); }
html[data-scheme="dark"] .track-summary, html[data-scheme="dark"] dialog.track-sheet { border-color: #2c3731; background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .track-summary-text h4, html[data-scheme="dark"] .lt-title, html[data-scheme="dark"] .track-sheet-titles h3, html[data-scheme="dark"] .lt-ship-text b { color: #eee9dc; }
html[data-scheme="dark"] .lt-ship, html[data-scheme="dark"] .track-sheet-line { background: #222a26; color: #c9d4ce; }
html[data-scheme="dark"] .track-sheet-row, html[data-scheme="dark"] .lt-bell { border-color: #2c3731; background: #18201c; }

/* Admin: download a customer's invoice as the Goods invoice or the Shipping fee invoice (the same document the customer prints). */
.admin-doc-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed #dfe4de; }
.admin-doc-caption { display: inline-flex; align-items: center; gap: 0.4rem; flex: 1 0 100%; color: #5f6b65; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.admin-doc-caption .batch-icon { width: 1rem; height: 1rem; }
.admin-doc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; flex: 1 1 9rem; min-height: 2.75rem; }
.admin-doc-btn .batch-icon { width: 1.2rem; height: 1.2rem; }
.admin-doc-btn.is-busy { opacity: 0.6; cursor: progress; }
html[data-scheme="dark"] .admin-doc-downloads { border-top-color: #2c3731; }

/* Admin invoice sheet, Items tab: each invoice's items as Item | Qty | Amount. */
.ui-mini-list > li { min-width: 0; }
.admin-items-table { width: 100%; min-width: 0; max-width: 100%; justify-self: stretch; table-layout: fixed; margin: 0.6rem 0 0.4rem; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.admin-items-table th { padding: 0.45rem 0.5rem; border-bottom: 2px solid #dfe4de; color: #5f6b65; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.admin-items-table td { padding: 0.5rem; border-bottom: 1px solid #edf0ec; vertical-align: top; overflow-wrap: anywhere; }
.admin-items-table th:nth-child(2) { width: 3.4rem; }
.admin-items-table th:nth-child(3) { width: 7rem; }
.admin-items-table .num { text-align: right; white-space: nowrap; }
.admin-items-table th.num { text-align: right; }
.admin-items-table td:first-child { font-weight: 650; }
.admin-items-table tr.is-fee td { color: #5f6b65; font-weight: 500; font-style: italic; }
html[data-scheme="dark"] .admin-items-table th { border-bottom-color: #2c3731; color: #9eb0a7; }
html[data-scheme="dark"] .admin-items-table td { border-bottom-color: #26312b; }

/* "Your invoice PDF is ready": one more tap to share it (the browser only starts a share within seconds of a tap). */
.inv-ready-bar { position: fixed; left: 50%; bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px)); z-index: 120; display: flex; align-items: center; gap: 0.6rem; width: min(92vw, 26rem); padding: 0.65rem 0.8rem; transform: translateX(-50%); border: 1px solid #b9d9c7; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -14px rgb(14 38 27 / 50%); font-size: 0.9rem; font-weight: 700; }
.inv-ready-bar span { flex: 1; min-width: 0; }
.inv-ready-bar .btn { min-height: 2.5rem; padding-inline: 0.9rem; }
html[data-scheme="dark"] .inv-ready-bar { border-color: rgb(255 255 255 / 14%); background: #18201c; color: #eee9dc; }

/* Ghana Shop product page: the "Read Product Description" row (icon, words, arrow) where the description text used to be. */
.pd-read-row { border: 1px solid #cfe0d4; background: #f1f8f4; color: #0f5a3c; font-size: 0.95rem; }
.pd-read-row .pd-acc-chevron-right { color: #0f5a3c; }
.pd-read-row:active { transform: scale(0.99); }
html[data-scheme="dark"] .pd-read-row { border-color: #2c3731; background: #18201c; color: #66d6a8; }
html[data-scheme="dark"] .pd-read-row .pd-acc-icon, html[data-scheme="dark"] .pd-read-row .pd-acc-chevron-right { stroke: #66d6a8; color: #66d6a8; }
/* A Ready loading takes almost no room on its card: one slim button (or one line once chosen); the form lives in a pull-up sheet. */
.lt-choice { display: grid; gap: 0.4rem; }
.lt-choose-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; min-height: 2.75rem; padding: 0 0.9rem; border: 1px solid #f1d49b; border-radius: 999px; background: #fdf1dc; color: #6a4a00; font: inherit; font-size: 0.88rem; font-weight: 800; cursor: pointer; }
.lt-chosen { display: flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding: 0.25rem 0.4rem 0.25rem 0.55rem; border: 1px solid #b7dcc6; border-radius: 999px; background: #f1f9f4; }
.lt-chosen-icon { display: grid; flex: none; width: 1.5rem; height: 1.5rem; place-items: center; border-radius: 50%; background: #1f8a52; color: #fff; }
.lt-chosen-text { display: flex; flex: 1; align-items: baseline; gap: 0.4rem; min-width: 0; }
.lt-chosen-text b { flex: none; color: #10251b; font-size: 0.88rem; }
.lt-chosen-text small { min-width: 0; overflow: hidden; color: #55645c; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.lt-chosen-change { flex: none; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.6rem; border: 0; background: none; color: var(--green); font: inherit; font-size: 0.85rem; font-weight: 800; cursor: pointer; }
.lt-chosen-note { margin: 0; color: #55645c; font-size: 0.8rem; }
.lt-sheet-body { overflow-y: auto; padding: 0.2rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
.lt-form { display: grid; gap: 0.7rem; }
/* Call SamDart Now / WhatsApp SamDart Now: two small pills on one line, the numbers inside. */
.lt-contact { display: flex; gap: 0.4rem; }
.lt-pill { display: flex; flex: 1 1 0; align-items: center; gap: 0.4rem; min-width: 0; min-height: 2.5rem; padding: 0.2rem 0.6rem 0.2rem 0.3rem; border-radius: 999px; text-decoration: none; }
.lt-pill.is-call { background: #e6f5ec; color: #0f5a36; }
.lt-pill.is-whatsapp { background: #dff5e8; color: #0f6a3d; }
.lt-pill-icon { display: grid; flex: none; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; background: #1f8a52; color: #fff; }
.lt-pill-text { display: grid; min-width: 0; line-height: 1.15; }
.lt-pill-text b { overflow: hidden; font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.lt-pill-text small { font-size: 0.7rem; opacity: 0.85; }
.lt-opt:focus-visible, .lt-confirm:focus-visible, .lt-todo-go:focus-visible, .lt-chosen-change:focus-visible, .lt-choose-btn:focus-visible, .lt-pill:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }
html[data-scheme="dark"] .lt-chosen { border-color: #1f8a52; background: #1b2620; }
html[data-scheme="dark"] .lt-chosen-text b { color: #eee9dc; }
html[data-scheme="dark"] .lt-choose-btn { border-color: #5b4a1f; background: #3a3017; color: #f0c46b; }
html[data-scheme="dark"] .lt-pill.is-call, html[data-scheme="dark"] .lt-pill.is-whatsapp { background: #1b2620; color: #cfe9dd; }
html[data-scheme="dark"] .lt-opt, html[data-scheme="dark"] .lt-field input { border-color: #2c3731; background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .lt-opt.is-on, html[data-scheme="dark"] .lt-panel { border-color: #2c3731; background: #1b2620; }
html[data-scheme="dark"] .lt-panel-text, html[data-scheme="dark"] .lt-all { color: #eee9dc; }
.lt-pill-text b { overflow: visible; font-size: 0.72rem; line-height: 1.15; text-overflow: clip; white-space: normal; }
.lt-sheet-title { text-transform: none; }
/* On a narrow phone the cards of Track Shipment shrink to the column instead of pushing past its right edge. */
.my-order-track > *, .lt-card, .lt-card > * { min-width: 0; max-width: 100%; }
.lt-choice { grid-template-columns: minmax(0, 1fr); }
.lt-chosen, .lt-chosen-text { min-width: 0; max-width: 100%; }
.lt-chosen-text { flex-wrap: wrap; row-gap: 0; }
/* The Preorders / Ghana Shop switch is outside the scrolling menu, so it stays put at the top of the sidebar. */
.admin-side > .shop-switch { flex: none; margin: 0 0.15rem 0.8rem; }
/* Follow SamDart, drawn the way Control Studio chose (cards or compact rows): the logo, the name, and a button that takes the customer there. Kept small. */
.follow-block { margin: 0.8rem 0 1rem; text-align: center; }
.follow-eyebrow { margin: 0 0 0.15rem; color: var(--green); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.follow-heading { margin: 0; color: var(--green-deep); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; text-transform: none; }
.follow-sub { margin: 0.2rem auto 0.6rem; max-width: 22rem; color: #66766d; font-size: 0.8rem; line-height: 1.4; }
.follow-list { display: grid; gap: 0.4rem; max-width: 32rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.follow-row { display: flex; align-items: center; gap: 0.6rem; min-height: 2.9rem; padding: 0.4rem 0.5rem 0.4rem 0.45rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
.follow-row:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }
.follow-badge { display: grid; flex: none; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 11px; }
.follow-badge svg { width: 1.2rem; height: 1.2rem; }
.follow-copy { display: grid; flex: 1; min-width: 0; gap: 0; }
.follow-copy b { color: #10251b; font-size: 0.9rem; line-height: 1.2; }
.follow-copy span { overflow: hidden; color: #66766d; font-size: 0.74rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.follow-cta { display: inline-flex; flex: none; align-items: center; gap: 0.15rem; min-height: 2.25rem; padding: 0 0.7rem; border-radius: 999px; background: #e3f1ea; color: var(--green-deep); font-size: 0.8rem; font-weight: 800; }
.follow-cta.is-primary { background: var(--green-deep); color: #fff; }
.follow-note { margin: 0.6rem 0 0; color: #66766d; font-size: 0.74rem; line-height: 1.4; }
/* Compact: even smaller rows, no description, two to a line when there is room. */
.follow-block.is-compact .follow-list { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.35rem; }
.follow-block.is-compact .follow-row { min-height: 2.5rem; padding: 0.3rem 0.4rem; border-radius: 12px; }
.follow-block.is-compact .follow-badge { width: 1.8rem; height: 1.8rem; border-radius: 9px; }
.follow-block.is-compact .follow-badge svg { width: 1rem; height: 1rem; }
.follow-block.is-compact .follow-copy b { font-size: 0.85rem; }
.follow-block.is-compact .follow-cta { min-height: 2rem; padding: 0 0.55rem; font-size: 0.74rem; }
@media (max-width: 380px) {
  .follow-row { gap: 0.5rem; }
  .follow-cta { padding: 0 0.6rem; }
}
html[data-scheme="dark"] .follow-row { border-color: #2c3731; background: #18201c; }
html[data-scheme="dark"] .follow-heading, html[data-scheme="dark"] .follow-copy b { color: #eee9dc; }
html[data-scheme="dark"] .follow-sub, html[data-scheme="dark"] .follow-copy span, html[data-scheme="dark"] .follow-note { color: #b8c6be; }
html[data-scheme="dark"] .follow-cta { background: #1b2a22; color: #cfe9dd; }
html[data-scheme="dark"] .follow-cta.is-primary { background: #1f8a52; color: #fff; }
/* Contact SamDart: WhatsApp first, then a call, tips and the support hours. */
.sc-page { display: grid; gap: 0.7rem; }
.sc-page[hidden] { display: none; }
.sc-lead { margin: 0; color: #66766d; font-size: 0.95rem; line-height: 1.5; }
.sc-pill { display: inline-flex; align-items: center; gap: 0.45rem; justify-self: start; margin: 0; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #10251b; font-size: 0.82rem; }
.sc-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #25c36a; box-shadow: 0 0 0 3px rgb(37 195 106 / 22%); }
.sc-pill.is-off .sc-dot { background: #9aa39e; box-shadow: 0 0 0 3px rgb(154 163 158 / 22%); }
.sc-card { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 0.9rem; border-radius: 20px; color: inherit; text-decoration: none; }
.sc-card:focus-visible { outline: 3px solid rgb(22 113 68 / 35%); outline-offset: 2px; }
.sc-tile { display: grid; flex: none; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 16px; background: #e3f1ea; color: var(--green-deep); }
.sc-card-text { display: grid; flex: 1; min-width: 0; gap: 0.1rem; }
.sc-card-text b { font-size: 1.05rem; }
.sc-card-text small { font-size: 0.85rem; line-height: 1.35; }
.sc-whatsapp { background: var(--green-deep); color: #fff; box-shadow: 0 12px 24px -14px rgb(7 61 49 / 70%); }
.sc-whatsapp .sc-tile { background: #25d366; color: #fff; }
.sc-whatsapp .sc-card-text small { color: rgb(255 255 255 / 82%); }
.sc-badge { margin-left: 0.5rem; padding: 0.12rem 0.5rem; border-radius: 6px; background: #f0b24a; color: #3a2705; font-size: 0.66rem; font-style: normal; font-weight: 800; letter-spacing: 0.08em; vertical-align: middle; }
.sc-call { border: 1px solid var(--line); background: #fff; }
.sc-call .sc-card-text small { color: #66766d; }
.sc-call > svg:last-child { color: #55645c; }
.sc-copy { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; justify-self: center; min-height: 2.75rem; padding: 0 0.8rem; border: 0; background: none; color: var(--green); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.sc-tips { display: grid; gap: 0.5rem; padding: 0.85rem 0.9rem; border: 1px solid #ece4cf; border-radius: 20px; background: #f6f3ea; }
.sc-tips-head { display: flex; align-items: center; gap: 0.45rem; margin: 0; color: #8a5410; font-size: 0.9rem; font-weight: 800; }
.sc-tip { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: #24312b; font-size: 0.9rem; line-height: 1.4; }
.sc-tip-icon { display: grid; flex: none; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #fff; color: var(--green-deep); }
.sc-hours { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 0.9rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.sc-hours .sc-card-text small { color: #66766d; }
.sc-offscreen { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
html[data-scheme="dark"] .sc-pill, html[data-scheme="dark"] .sc-call, html[data-scheme="dark"] .sc-hours { border-color: #2c3731; background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .sc-tips { border-color: #3a3017; background: #231d0d; }
html[data-scheme="dark"] .sc-tip { color: #eee9dc; }
html[data-scheme="dark"] .sc-tip-icon { background: #18201c; color: #cfe9dd; }
html[data-scheme="dark"] .sc-tips-head { color: #f0c46b; }
html[data-scheme="dark"] .sc-lead, html[data-scheme="dark"] .sc-call .sc-card-text small, html[data-scheme="dark"] .sc-hours .sc-card-text small { color: #b8c6be; }
html[data-scheme="dark"] .sc-tile { background: #1b2a22; color: #cfe9dd; }
html[data-scheme="dark"] .sc-whatsapp .sc-tile { background: #25d366; color: #fff; }
/* A closed product with no paid orders is not on the buying list: it sits under Previous, styled like Closed. */
.batch-previous { background: #eef0ef; color: #64716b; }
/* My Orders: each month is a card with the colour of its stage, a status chip and what is due, so a month is told apart at a glance. */
.my-order-group { --mo-color: #1f8a52; --mo-bg: #e6f5ec; --mo-ink: #17683f; border-left: 4px solid var(--mo-color); border-radius: 16px; box-shadow: 0 1px 2px rgb(10 30 20 / 4%); }
.my-order-group[data-kind="closed"] { --mo-color: #d99a1d; --mo-bg: #fdf0c9; --mo-ink: #8a5a00; }
.my-order-group[data-kind="buying"] { --mo-color: #6b63d8; --mo-bg: #eceafd; --mo-ink: #4a42b0; }
.my-order-group[data-kind="shipping"] { --mo-color: #2a5aa6; --mo-bg: #e8f0fb; --mo-ink: #214a8a; }
.my-order-group[data-kind="ready"] { --mo-color: #0f8a5f; --mo-bg: #d3f0e1; --mo-ink: #0b5a3c; }
.my-order-group[data-kind="complete"] { --mo-color: #9aa39e; --mo-bg: #eef0ee; --mo-ink: #55645c; }
.my-order-group > summary.mog-head { justify-content: flex-start; gap: 0.75rem; min-height: 4rem; padding: 0.7rem 0.9rem; scroll-margin-top: 4.5rem; }
.my-order-group > summary.mog-head > span.mog-tile { display: inline-grid; width: 2.6rem; border: 0; border-radius: 12px; background: var(--mo-bg); }
.mog-tile small { background: var(--mo-color); font-size: 0.5rem; line-height: 0.95rem; }
.mog-tile b { color: var(--mo-ink); font-size: 1.05rem; line-height: 1.5rem; }
.my-order-group > summary.mog-head > .mog-main { display: grid; flex: 1; min-width: 0; gap: 0.25rem; }
.mog-title { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.mog-title b { color: #10251b; font-size: 1.02rem; }
.mog-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; font-size: 0.78rem; }
.mog-sub .group-status { padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--mo-bg); color: var(--mo-ink); font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.mog-count { color: #66766d; font-weight: 600; }
.mog-due { color: #a65f00; font-weight: 800; }
.mog-paid { color: #17683f; font-weight: 800; }
.my-order-group[open] > summary.mog-head::before { background: var(--mo-color); }
/* The strip of months: tap one to open it and jump to it. */
.mo-strip { display: flex; gap: 0.45rem; margin: 0 0 0.7rem; padding: 0.1rem 0 0.35rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.mo-strip::-webkit-scrollbar { display: none; }
.mo-chip { --mo-color: #1f8a52; --mo-bg: #e6f5ec; --mo-ink: #17683f; position: relative; display: inline-flex; flex: none; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 0.85rem 0 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #10251b; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; scroll-snap-align: start; }
.mo-chip[data-kind="closed"] { --mo-color: #d99a1d; --mo-bg: #fdf0c9; --mo-ink: #8a5a00; }
.mo-chip[data-kind="buying"] { --mo-color: #6b63d8; --mo-bg: #eceafd; --mo-ink: #4a42b0; }
.mo-chip[data-kind="shipping"] { --mo-color: #2a5aa6; --mo-bg: #e8f0fb; --mo-ink: #214a8a; }
.mo-chip[data-kind="ready"] { --mo-color: #0f8a5f; --mo-bg: #d3f0e1; --mo-ink: #0b5a3c; }
.mo-chip[data-kind="complete"] { --mo-color: #9aa39e; --mo-bg: #eef0ee; --mo-ink: #55645c; }
.mo-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--mo-color); }
.mo-chip small { display: grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; border-radius: 999px; background: var(--mo-bg); color: var(--mo-ink); font-size: 0.72rem; font-weight: 800; }
.mo-unpaid { position: absolute; top: 0.3rem; right: 0.35rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #e0a526; box-shadow: 0 0 0 2px #fff; }
.mo-chip.is-on { border-color: var(--mo-color); background: var(--mo-bg); color: var(--mo-ink); box-shadow: 0 0 0 2px var(--mo-color) inset; }
.mo-chip:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }
html[data-scheme="dark"] .my-order-group > summary.mog-head > span.mog-tile { background: #1b2620; }
html[data-scheme="dark"] .mog-title b { color: #eee9dc; }
html[data-scheme="dark"] .mog-count { color: #b8c6be; }
html[data-scheme="dark"] .mog-sub .group-status, html[data-scheme="dark"] .mo-chip small { background: #1b2620; color: #cfe9dd; }
html[data-scheme="dark"] .mo-chip { border-color: #2c3731; background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .mo-chip.is-on { background: #1b2620; color: #eee9dc; }
html[data-scheme="dark"] .mo-unpaid { box-shadow: 0 0 0 2px #18201c; }
/* My Orders, refined from the design note: a sticky month strip, "Current batch / Previous batches" labels, a bordered calendar tile, the stage and closing
   date on one line, "N orders · GHS X to pay", a round chevron and a calm banner once everything is paid. */
.mo-strip { position: sticky; top: 0; z-index: 20; margin: 0.2rem -0.95rem 0.1rem; padding: 0.55rem 0.95rem; background: rgb(242 243 241 / 94%); backdrop-filter: blur(8px); }
.mo-chip.is-on { border-color: var(--green-deep); background: var(--green-deep); color: #fff; box-shadow: none; }
.mo-chip.is-on small { background: rgb(255 255 255 / 18%); color: #fff; }
.mo-current { padding: 0.05rem 0.45rem; border-radius: 999px; background: #e3f1ea; color: #087957; font-size: 0.66rem; font-weight: 800; }
.mo-chip.is-on .mo-current { background: #fff; }
.mo-label { margin: 1rem 0.25rem 0.5rem; color: #66766d; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.my-order-group[open] { box-shadow: 0 10px 26px rgb(10 30 20 / 8%); }
.my-order-group > summary.mog-head > span.mog-tile { width: 3rem; height: 3.2rem; border: 1.5px solid var(--mo-color); border-radius: 12px; background: #fff; }
.mog-tile small { font-size: 0.6rem; line-height: 1.1rem; letter-spacing: 0.08em; }
.mog-tile b { color: #10251b; font-size: 1.25rem; line-height: 2rem; }
.mog-sub .group-status { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mog-by { color: #66766d; font-size: 0.78rem; font-weight: 600; }
.mog-line { color: #66766d; font-size: 0.82rem; }
.mog-line b { color: #10251b; }
.mog-line.is-paid { color: #17683f; font-weight: 700; }
.my-order-group > summary.mog-head::after { content: none; display: none; }
.mog-chev { display: grid; flex: none; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #f2f3f1; color: var(--green-deep); transition: transform 0.25s; }
.my-order-group[open] .mog-chev { transform: rotate(180deg); }
.my-order-all-paid { margin: 0; padding: 0.8rem 1rem; border-radius: 14px; background: #e3f1ea; color: #087957; font-weight: 800; text-align: center; }
html[data-scheme="dark"] .mo-strip { background: rgb(20 26 23 / 94%); }
html[data-scheme="dark"] .my-order-group > summary.mog-head > span.mog-tile { background: #18201c; }
html[data-scheme="dark"] .mog-tile b, html[data-scheme="dark"] .mog-line b { color: #eee9dc; }
html[data-scheme="dark"] .mog-by, html[data-scheme="dark"] .mog-line, html[data-scheme="dark"] .mo-label { color: #b8c6be; }
html[data-scheme="dark"] .mog-chev { background: #1b2620; color: #cfe9dd; }
html[data-scheme="dark"] .mo-current { background: #1b2620; color: #cfe9dd; }
html[data-scheme="dark"] .my-order-all-paid { background: #1b2a22; color: #66d6a8; }
/* One colour for each month (the month in the card's name): the tile, the side bar, the stage pill, the strip's dot and the chosen chip all follow it. */
.my-order-group[data-month], .mo-chip[data-month] { --mo-bg: color-mix(in srgb, var(--mo-color) 14%, #fff); --mo-ink: color-mix(in srgb, var(--mo-color) 72%, #000); }
.my-order-group[data-month="1"], .mo-chip[data-month="1"] { --mo-color: #0891b2; }
.my-order-group[data-month="2"], .mo-chip[data-month="2"] { --mo-color: #7c3aed; }
.my-order-group[data-month="3"], .mo-chip[data-month="3"] { --mo-color: #e11d48; }
.my-order-group[data-month="4"], .mo-chip[data-month="4"] { --mo-color: #16a34a; }
.my-order-group[data-month="5"], .mo-chip[data-month="5"] { --mo-color: #db2777; }
.my-order-group[data-month="6"], .mo-chip[data-month="6"] { --mo-color: #2563eb; }
.my-order-group[data-month="7"], .mo-chip[data-month="7"] { --mo-color: #ca8a04; }
.my-order-group[data-month="8"], .mo-chip[data-month="8"] { --mo-color: #0d9488; }
.my-order-group[data-month="9"], .mo-chip[data-month="9"] { --mo-color: #9333ea; }
.my-order-group[data-month="10"], .mo-chip[data-month="10"] { --mo-color: #ea580c; }
.my-order-group[data-month="11"], .mo-chip[data-month="11"] { --mo-color: #2563eb; }
.my-order-group[data-month="12"], .mo-chip[data-month="12"] { --mo-color: #16a34a; }
.mo-chip.is-on[data-month] { border-color: var(--mo-color); background: var(--mo-color); color: #fff; }
.mo-chip.is-on[data-month] .mo-dot { background: #fff; }
html[data-scheme="dark"] .my-order-group[data-month], html[data-scheme="dark"] .mo-chip[data-month] { --mo-bg: color-mix(in srgb, var(--mo-color) 24%, #18201c); --mo-ink: color-mix(in srgb, var(--mo-color) 55%, #fff); }
html[data-scheme="dark"] .mo-chip.is-on[data-month] { background: var(--mo-color); color: #fff; }
/* The calendar tile: the month on its coloured band, the number centred right under it (for example DEC over 12). */
.my-order-group > summary.mog-head > span.mog-tile { display: inline-flex; flex-direction: column; height: 3rem; }
.mog-tile small { flex: none; height: 1.05rem; font-size: 0.6rem; line-height: 1.05rem; }
.mog-tile b { display: grid; flex: 1; place-items: center; font-size: 1.2rem; line-height: 1; }
/* "Track Your Shipment" after Recent activity is only a small link now (the Track Shipment tab above does the same). */
.my-order-group-footer .my-order-track-cta { display: inline-flex; align-items: center; justify-content: center; justify-self: center; gap: 0.3rem; width: auto; min-height: 2.5rem; margin: 0; padding: 0 0.6rem; border: 0; background: none; box-shadow: none; color: var(--green); font-size: 0.8rem; font-weight: 700; }
.my-order-group-footer .my-order-track-cta svg { width: 0.95rem; height: 0.95rem; }
/* The calendar tile as designed: a coloured band with the month, and the number big and bold under it. */
.my-order-group > summary.mog-head > span.mog-tile { display: inline-flex; flex-direction: column; width: 3.1rem; height: 3.3rem; border: 1.5px solid var(--mo-color); border-radius: 11px; background: #fff; overflow: hidden; }
.mog-tile small { flex: none; height: 1.3rem; background: var(--mo-color); color: #fff; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em; line-height: 1.3rem; text-transform: uppercase; }
.mog-tile b { display: grid; flex: 1; place-items: center; color: #10251b; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.mog-tile small { align-self: stretch; width: 100%; text-align: center; }
.mog-tile b { width: 100%; }
/* Month chips, made cute: soft pastel in the month's colour, a small dot, a tiny count bubble; the chosen one is solid, lifted and glowing. */
.mo-strip { gap: 0.4rem; }
.mo-chip { min-height: 2.5rem; gap: 0.35rem; padding: 0 0.7rem 0 0.6rem; border: 0; background: var(--mo-bg); color: var(--mo-ink); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.01em; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.mo-chip:active { transform: scale(0.95); }
.mo-dot { width: 0.55rem; height: 0.55rem; box-shadow: 0 0 0 3px rgb(255 255 255 / 75%); }
.mo-chip small { min-width: 1.2rem; height: 1.2rem; background: rgb(255 255 255 / 80%); color: var(--mo-ink); font-size: 0.68rem; }
.mo-current { background: rgb(255 255 255 / 85%); color: var(--mo-ink); font-size: 0.6rem; letter-spacing: 0.04em; }
.mo-chip.is-on, .mo-chip.is-on[data-month] { border: 0; background: var(--mo-color); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--mo-color) 55%, transparent); }
.mo-chip.is-on .mo-dot, .mo-chip.is-on[data-month] .mo-dot { background: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / 30%); }
.mo-chip.is-on small { background: rgb(255 255 255 / 24%); color: #fff; }
.mo-chip.is-on .mo-current { background: rgb(255 255 255 / 92%); color: var(--mo-ink); }
.mo-unpaid { top: 0.2rem; right: 0.25rem; box-shadow: 0 0 0 2px var(--mo-bg); }
html[data-scheme="dark"] .mo-chip { background: var(--mo-bg); color: var(--mo-ink); }
html[data-scheme="dark"] .mo-chip small, html[data-scheme="dark"] .mo-current { background: rgb(255 255 255 / 14%); color: var(--mo-ink); }
html[data-scheme="dark"] .mo-chip.is-on, html[data-scheme="dark"] .mo-chip.is-on[data-month] { background: var(--mo-color); color: #fff; }
/* Month chips: outlined in the month's colour (never filled). The chosen one has a stronger outline and a soft glow. */
.mo-chip, .mo-chip[data-month] { border: 1.5px solid var(--mo-color); background: #fff; color: var(--mo-ink); box-shadow: none; transform: none; }
.mo-chip.is-on, .mo-chip.is-on[data-month] { border-width: 2px; background: #fff; color: var(--mo-ink); transform: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--mo-color) 22%, transparent); }
.mo-chip .mo-dot, .mo-chip.is-on .mo-dot, .mo-chip.is-on[data-month] .mo-dot { background: var(--mo-color); box-shadow: none; }
.mo-chip .mo-current, .mo-chip.is-on .mo-current { background: var(--mo-bg); color: var(--mo-ink); }
.mo-unpaid { box-shadow: 0 0 0 2px #fff; }
html[data-scheme="dark"] .mo-chip, html[data-scheme="dark"] .mo-chip[data-month], html[data-scheme="dark"] .mo-chip.is-on, html[data-scheme="dark"] .mo-chip.is-on[data-month] { background: #18201c; color: var(--mo-ink); }
html[data-scheme="dark"] .mo-unpaid { box-shadow: 0 0 0 2px #18201c; }
/* Month chips, as in the design note: plain white with a faint outline in the month's colour and neutral text (only the dot is coloured);
   the chosen chip alone is solid in its month's colour with white text. */
.mo-chip, .mo-chip[data-month] { border: 1px solid color-mix(in srgb, var(--mo-color) 30%, #fff); background: #fff; color: #16211c; box-shadow: none; }
.mo-chip.is-on, .mo-chip.is-on[data-month] { border-width: 1px; border-color: var(--mo-color); background: var(--mo-color); color: #fff; box-shadow: 0 5px 12px -5px color-mix(in srgb, var(--mo-color) 55%, transparent); }
.mo-chip.is-on .mo-dot, .mo-chip.is-on[data-month] .mo-dot { background: #fff; }
.mo-chip .mo-current { background: #e3f1ea; color: #087957; }
.mo-chip.is-on .mo-current { background: rgb(255 255 255 / 92%); color: #087957; }
html[data-scheme="dark"] .mo-chip, html[data-scheme="dark"] .mo-chip[data-month] { border-color: color-mix(in srgb, var(--mo-color) 40%, #18201c); background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .mo-chip.is-on, html[data-scheme="dark"] .mo-chip.is-on[data-month] { border-color: var(--mo-color); background: var(--mo-color); color: #fff; }
html[data-scheme="dark"] .mo-chip .mo-current { background: #1b2a22; color: #66d6a8; }
/* The chosen month chip is the app's dark green, as in the design note (each unselected chip keeps its month's faint outline and dot). */
.mo-chip.is-on, .mo-chip.is-on[data-month] { border-color: var(--green-deep, #073d31); background: var(--green-deep, #073d31); color: #fff; box-shadow: 0 5px 12px -5px rgb(7 61 49 / 55%); }
html[data-scheme="dark"] .mo-chip.is-on, html[data-scheme="dark"] .mo-chip.is-on[data-month] { border-color: #1f8a52; background: #1f8a52; color: #fff; }
/* The first chip lines up with the search bar and the cards: snapping must keep the strip's side padding (it used to pull the chip to the edge). */
.mo-strip { scroll-padding: 0 0.95rem; }
/* Order again: small and fixed, in the slot where the PAID pill was (the pill is hidden on those rows). */
.my-order-rows li.has-again .my-order-state { display: none; }
.my-order-rows li.has-again .my-order-row { padding-right: 6.6rem; }
.my-order-rows li.has-pick > .my-order-again.is-compact, .my-order-again.is-compact { position: absolute; right: 2.7rem; top: 50%; grid-column: auto; min-height: 1.9rem; margin: 0; padding: 0 0.55rem; gap: 0.25rem; border-width: 1px; font-size: 0.7rem; transform: translateY(-50%); white-space: nowrap; }
.my-order-again.is-compact svg { width: 0.8rem; height: 0.8rem; }
/* The countdown and the closing date of an open month take turns: one comes in as the other leaves. */
.mog-sub .cutoff-rotator { display: inline-grid; justify-items: start; min-height: 1.5rem; text-align: left; align-items: center; }
.mog-sub .cutoff-rotator-item { font-size: 0.74rem; }
.mog-sub .cutoff-rotator-date { color: #55645c; font-weight: 700; }
html[data-scheme="dark"] .mog-sub .cutoff-rotator-date { color: #b8c6be; }

/* ---- View & Order, advanced: Popular with customers + the orders, a calmer order form, one reviews card, a sturdier order bar ---- */
dialog.batch-dialog[id^="panel-"] .current-orders { padding: 0; overflow: hidden; }
dialog.batch-dialog[id^="panel-"] .earlier-orders-note.pop-card-top { display: block; margin: 0; padding: 0.95rem 1rem 0.85rem; border: 0; border-bottom: 1px solid var(--line); }
dialog.batch-dialog[id^="panel-"] .earlier-orders-note.pop-card-top[hidden] { display: none; }
dialog.batch-dialog[id^="panel-"] .current-orders-heading { padding: 0.85rem 1rem 0; }
dialog.batch-dialog[id^="panel-"] .current-orders .order-list { padding: 0.4rem 0.7rem 0.8rem; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pop-title { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--green); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pop-title svg { width: 1.1rem; height: 1.1rem; }
.pop-reveal { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0; border: 0; background: none; color: #10251b; font: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer; }
.pop-reveal svg { box-sizing: content-box; width: 0.95rem; height: 0.95rem; padding: 0.4rem; border-radius: 9px; background: var(--green-deep); color: #fff; }
.pop-reveal[hidden] { display: none; }
.pop-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0.8rem; }
.pop-stat { display: grid; align-content: start; gap: 0.1rem; padding: 0 0.7rem; border-left: 1px solid var(--line); }
.pop-stat:first-child { padding-left: 0; border-left: 0; }
.pop-stat strong { color: var(--green-deep); font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.pop-stat:last-child strong { color: var(--green); }
.pop-stat span { color: #66766d; font-size: 0.78rem; line-height: 1.25; }
/* your own order first, tagged You, with Edit and Pay Now; the others show only a name and a quantity */
dialog.batch-dialog[id^="panel-"] .order-row.is-mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 0.6rem; margin: 0 -0.3rem; padding: 0.55rem 0.7rem; border: 0; border-radius: 14px; background: #eef7f1; }
.order-you { margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #dff0e6; color: #0f6a3d; font-size: 0.7rem; font-weight: 800; }
.order-row.is-mine .order-actions { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.order-row.is-mine .order-actions .help { flex-basis: 100%; margin: 0; font-size: 0.76rem; }
/* Place your order */
dialog.batch-dialog[id^="panel-"] .preorder-shipping-row { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.7rem 0 0; padding: 0.75rem 0.85rem; border: 0; border-radius: 14px; background: #fdf3df; color: #6a4a00; }
dialog.batch-dialog[id^="panel-"] .preorder-shipping-row .preorder-shipping-disclosure { flex: 1; margin: 0; padding: 0; border: 0; background: none; color: inherit; font-size: 0.86rem; font-weight: 500; line-height: 1.4; }
.preorder-shipping-icon { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.1rem; color: #a06a00; }
.qty-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.qty-each { color: #66766d; font-size: 0.84rem; font-weight: 600; }
.batch-dialog .single-quantity-field .quantity-control { min-height: 3.5rem; border-radius: 16px; }
.batch-dialog .single-quantity-field .quantity-control input { font-size: 1.5rem; font-weight: 800; }
.batch-dialog .single-quantity-field .quantity-step { font-size: 1.4rem; }
/* the order bar: the total with what it is made of, both buttons greyed until a quantity is chosen */
.order-total-left { display: grid; gap: 0.05rem; }
.order-total-detail { color: #66766d; font-size: 0.78rem; font-weight: 600; }
.order-total-detail:empty { display: none; }
.order-form[data-empty="1"] .order-submit { background: #d5dbd7; color: #8a958f; box-shadow: none; cursor: default; }
.legal-order-acknowledgement { font-size: 0.74rem; }
/* reviews: the big average, the stars and Edit your review on top */
.rv-big { color: var(--green-deep); font-size: 2.7rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.related-products > h3 { text-transform: none; }
/* Reveal: the month-by-month bars */
.pop-sheet-body { overflow-y: auto; padding: 0.4rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
.pop-sheet-sub { margin: 0.15rem 0 0; color: #66766d; font-size: 0.95rem; }
.pop-sheet-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0.3rem 0 1rem; }
.pop-tile { display: grid; gap: 0.15rem; padding: 0.9rem 1rem; border-radius: 18px; background: #e4efe9; }
.pop-tile strong { color: #0b3d2c; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.pop-tile span { color: #5a6b62; font-size: 0.92rem; line-height: 1.3; }
.pop-bars { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pop-bar { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid #e3e9e5; }
.pop-bar:last-child { border-bottom: 0; }
.pop-bar-when { display: grid; gap: 0.1rem; }
.pop-bar-when b { color: #10251b; font-size: 1.05rem; font-weight: 800; }
.pop-bar-when span { color: #0b7a4a; font-size: 0.86rem; font-weight: 700; }
.pop-bar-figures { display: grid; justify-items: end; gap: 0.1rem; text-align: right; }
.pop-bar-figures b { color: #10251b; font-size: 1.05rem; font-weight: 800; }
.pop-bar-figures span { color: #66766d; font-size: 0.86rem; }
.pop-bar-track { height: 0.75rem; overflow: hidden; border-radius: 999px; background: #e1eee7; }
.pop-bar-fill { display: block; height: 100%; border-radius: 999px; background: #0b7a55; }
.pop-bar.is-open .pop-bar-fill { background: #f0b43c; }
.pop-bar-fill.w1 { width: 10%; } .pop-bar-fill.w2 { width: 20%; } .pop-bar-fill.w3 { width: 30%; } .pop-bar-fill.w4 { width: 40%; } .pop-bar-fill.w5 { width: 50%; }
.pop-bar-fill.w6 { width: 60%; } .pop-bar-fill.w7 { width: 70%; } .pop-bar-fill.w8 { width: 80%; } .pop-bar-fill.w9 { width: 90%; } .pop-bar-fill.w10 { width: 100%; }
html[data-scheme="dark"] .pop-reveal, html[data-scheme="dark"] .pop-bar-label b { color: #eee9dc; }
html[data-scheme="dark"] .pop-stat strong, html[data-scheme="dark"] .rv-big { color: #cfe9dd; }
html[data-scheme="dark"] .pop-stat:last-child strong { color: #66d6a8; }
html[data-scheme="dark"] .pop-bar-track { background: #25302a; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-row.is-mine { background: #1b2a22; }
html[data-scheme="dark"] .order-you { background: #223a2d; color: #cfe9dd; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .preorder-shipping-row { background: #3a3017; color: #f0c46b; }
html[data-scheme="dark"] .order-form[data-empty="1"] .order-submit { background: #2a332e; color: #7d8a83; }
/* fixes found in the browser: the orders card must not shrink in the scrolling grid, the shipping note wraps, headings keep sentence case, a greyed Add order */
dialog.batch-dialog[id^="panel-"] .current-orders { overflow: visible; height: max-content; }
dialog.batch-dialog[id^="panel-"] .order-intro > .preorder-shipping-disclosure, dialog.batch-dialog[id^="panel-"] .preorder-shipping-row .preorder-shipping-disclosure { white-space: normal; overflow: visible; text-overflow: clip; font-size: 0.86rem; }
.batch-dialog .order-form h3 { text-transform: none; }
.order-form[data-empty="1"] .order-submit-later { background: #d5dbd7; color: #8a958f; box-shadow: none; }
.order-form[data-empty="1"] .order-submit-later small, .order-form[data-empty="1"] .order-submit-now small { color: inherit; }
html[data-scheme="dark"] .order-form[data-empty="1"] .order-submit-later { background: #2a332e; color: #7d8a83; }
dialog.batch-dialog[id^="panel-"] .order-bar .order-form[data-empty="1"] .order-submit-later, dialog.batch-dialog[id^="panel-"] .order-form[data-empty="1"] .order-bar .order-submit-later { background: #d5dbd7; color: #8a958f; box-shadow: none; }
dialog.batch-dialog[id^="panel-"] .order-form[data-empty="1"] .order-bar .order-submit-later .order-submit-help { color: #8a958f; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-form[data-empty="1"] .order-bar .order-submit-later { background: #2a332e; color: #7d8a83; }
.pop-title { letter-spacing: 0.06em; font-size: 0.7rem; }
dialog.batch-dialog[id^="panel-"] .current-orders-title { white-space: nowrap; }
.rv-summary-cta { max-width: none; white-space: nowrap; }
.rv-big[hidden] { display: none; }

/* ---- Calmer My Orders: lighter bolds, the stage and "Order by" in one quiet style, plain white month tabs ---- */
.mog-sub .group-status, .mog-sub .mog-by, .mog-sub .cutoff-rotator-date, .mog-sub .cutoff-rotator-item { padding: 0; border-radius: 0; background: none; color: #5d6d64; font-size: 0.78rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.mog-sub .group-status::before { content: none; }
.mog-title b { font-weight: 650; }
.mog-line b, .mog-due, .mog-paid, .mog-line.is-paid { font-weight: 600; }
.mog-tile small, .mog-tile b { font-weight: 700; }
.my-order-group .my-order-row-name, .my-order-group .my-order-row-copy strong { font-weight: 600; }
.my-order-group .my-order-state { font-weight: 700; }
.my-order-group .my-order-total, .my-order-group .customer-group-total strong, .my-order-group .customer-group-total b { font-weight: 650; }
.my-order-group .btn, .my-order-group .btn-primary { font-weight: 650; }
.mo-label { font-weight: 700; }
html[data-scheme="dark"] .mog-sub .group-status, html[data-scheme="dark"] .mog-sub .mog-by, html[data-scheme="dark"] .mog-sub .cutoff-rotator-date, html[data-scheme="dark"] .mog-sub .cutoff-rotator-item { background: none; color: #b8c6be; }
/* the month tabs: white with a soft shadow, a rounded rectangle like the batch cards; only the chosen one is dark green */
.mo-strip { gap: 0.5rem; padding-block: 0.5rem 0.65rem; }
.mo-chip, .mo-chip[data-month] { min-height: 2.5rem; padding: 0 0.8rem 0 0.7rem; border: 0; border-radius: 12px; background: #fff; color: #16211c; font-size: 0.86rem; font-weight: 650; box-shadow: 0 2px 8px -2px rgb(14 38 27 / 22%); }
.mo-chip.is-on, .mo-chip.is-on[data-month] { border: 0; background: var(--green-deep, #073d31); color: #fff; box-shadow: 0 4px 12px -4px rgb(7 61 49 / 55%); }
.mo-chip small { background: #f1f3f1; color: #3d4c44; font-weight: 700; }
.mo-chip .mo-current { font-weight: 700; }
html[data-scheme="dark"] .mo-chip, html[data-scheme="dark"] .mo-chip[data-month] { border: 0; background: #18201c; color: #eee9dc; box-shadow: 0 2px 8px -2px rgb(0 0 0 / 55%); }
html[data-scheme="dark"] .mo-chip.is-on, html[data-scheme="dark"] .mo-chip.is-on[data-month] { background: #1f8a52; color: #fff; }
html[data-scheme="dark"] .mo-chip small { background: #232d28; color: #cfe9dd; }
.my-order-group > summary.mog-head { gap: 0.6rem; min-height: 0; padding: 0.6rem 0.8rem; }
.my-order-group > summary.mog-head > .mog-main { gap: 0.15rem; }
.mo-label { margin: 0.6rem 0.25rem 0.35rem; }

/* ---- View & Order: Place your order comes before the orders; a thin line between the help rows; tighter gaps ---- */
dialog.batch-dialog[id^="panel-"] .order-form-scroll { gap: 0.55rem; padding-block: 0.4rem 1rem; }
dialog.batch-dialog[id^="panel-"] .order-form-scroll > .current-orders { order: 1; }
dialog.batch-dialog[id^="panel-"] .order-form-scroll > .pd-reviews, dialog.batch-dialog[id^="panel-"] .order-form-scroll > .related-products { order: 2; }
dialog.batch-dialog[id^="panel-"] .pd-link-stack { gap: 0; margin: 0; overflow: hidden; }
dialog.batch-dialog[id^="panel-"] .pd-link-stack > * { border-radius: 0; }
dialog.batch-dialog[id^="panel-"] .pd-link-stack > * + * { border-top: 1px solid var(--line); }
dialog.batch-dialog[id^="panel-"] .order-intro { gap: 0.2rem; }
dialog.batch-dialog[id^="panel-"] .preorder-shipping-row { margin-top: 0.45rem; padding: 0.55rem 0.75rem; }
dialog.batch-dialog[id^="panel-"] .earlier-orders-note.pop-card-top { padding: 0.75rem 0.9rem 0.65rem; }
dialog.batch-dialog[id^="panel-"] .pop-stats { margin-top: 0.55rem; }
dialog.batch-dialog[id^="panel-"] .current-orders-heading { padding: 0.6rem 0.9rem 0; }
dialog.batch-dialog[id^="panel-"] .current-orders .order-list { padding: 0.25rem 0.6rem 0.55rem; }
dialog.batch-dialog[id^="panel-"] .related-products > h3 { margin-bottom: 0.4rem; }
/* the help card: one rounded card, its rows divided by a thin line */
dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack { gap: 0; margin: 0; border: 1px solid #dbe7e0; border-radius: 14px; background: #f8fbf9; overflow: hidden; }
dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack .pd-description-button, dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack .pd-link-row { min-height: 2.6rem; border: 0; border-radius: 0; background: none; }
dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack > * + * { border-top: 1px solid #dbe7e0; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack { border-color: #2c3a33; background: #17201c; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack > * + * { border-top-color: #2c3a33; }
dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack { height: max-content; }
dialog.batch-dialog[id^="panel-"] .order-form-scroll .order-intro > h3 { text-transform: none; }
dialog.batch-dialog[id^="panel-"] .current-orders-title { font-size: 1rem; }
dialog.batch-dialog[id^="panel-"] .current-orders-heading .view-orders { min-height: 2.2rem; padding-inline: 0.6rem; font-size: 0.8rem; white-space: nowrap; }
dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack > :is(.pd-link-row, .pd-description-button) + :is(.pd-link-row, .pd-description-button) { border-top: 1px solid #dbe7e0; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack > :is(.pd-link-row, .pd-description-button) + :is(.pd-link-row, .pd-description-button) { border-top-color: #2c3a33; }

/* ---- as in the design: Place your order is one white card, the help rows have icon tiles, reviews are one card ---- */
dialog.batch-dialog[id^="panel-"] .place-card { display: grid; gap: 0.55rem; padding: 0.9rem 1rem 1rem; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); }
dialog.batch-dialog[id^="panel-"] .place-card .order-intro > h3 { color: #10251b; font-size: 1.2rem; font-weight: 700; }
dialog.batch-dialog[id^="panel-"] .place-card .qty-head label, dialog.batch-dialog[id^="panel-"] .place-card .qty-head > :first-child { color: #10251b; font-weight: 700; }
dialog.batch-dialog[id^="panel-"] .place-card .single-quantity-field { gap: 0.35rem; }
dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack { 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 .pd-link-stack .pd-description-button, dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack .pd-link-row { min-height: 3.4rem; padding: 0.35rem 0.9rem; gap: 0.8rem; color: #0b3d2e; font-size: 0.92rem; font-weight: 650; }
dialog.batch-dialog[id^="panel-"] .pd-link-stack .pd-acc-icon, dialog.batch-dialog[id^="panel-"] .pd-link-stack .pd-link-icon { box-sizing: content-box; width: 1.15rem; height: 1.15rem; padding: 0.5rem; border-radius: 12px; background: #e1f0e8; color: #167144; }
dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack > :is(.pd-link-row, .pd-description-button) + :is(.pd-link-row, .pd-description-button) { border-top-color: #e6ece8; }
.pd-reviews .rv-card-wrap { gap: 0; padding: 0.9rem 1rem; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); }
.pd-reviews .rv-summary-card { padding: 0 0 0.8rem; border-bottom: 1px solid #e6ece8; border-radius: 0; background: none; box-shadow: none; }
.pd-reviews .rv-summary-cta { padding: 0.55rem 1rem; border: 1.5px solid #167144; border-radius: 999px; background: none; color: #0b6a3d; font-weight: 700; }
.pd-reviews .rv-preview { padding-top: 0.8rem; }
.pd-reviews .rv-preview .rv-card { padding: 0; border: 0; background: none; box-shadow: none; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .place-card, html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .order-form .pd-link-stack, html[data-scheme="dark"] .pd-reviews .rv-card-wrap { background: #161c19; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .place-card .order-intro > h3, html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .place-card .qty-head > :first-child { color: #eee9dc; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .pd-link-stack .pd-acc-icon, html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .pd-link-stack .pd-link-icon { background: #1f3329; color: #66d6a8; }

/* The shipping note under Place your order: a quiet grey box; with an estimate it is only the estimated fee. */
dialog.batch-dialog[id^="panel-"] .preorder-shipping-row { align-items: center; background: #eceeed; color: #55645c; }
dialog.batch-dialog[id^="panel-"] .preorder-shipping-row .preorder-shipping-disclosure, dialog.batch-dialog[id^="panel-"] .preorder-shipping-row > .preorder-shipping-estimate { flex: 1; margin: 0; padding: 0; border-radius: 0; background: none; color: inherit; font-size: 0.78rem; font-weight: 500; line-height: 1.4; white-space: normal; }
dialog.batch-dialog[id^="panel-"] .preorder-shipping-row > .preorder-shipping-estimate { font-weight: 600; }
dialog.batch-dialog[id^="panel-"] .preorder-shipping-row .preorder-shipping-disclosure[hidden], dialog.batch-dialog[id^="panel-"] .preorder-shipping-row > .preorder-shipping-estimate[hidden] { display: none; }
dialog.batch-dialog[id^="panel-"] .preorder-shipping-icon { width: 1.05rem; height: 1.05rem; margin-top: 0; color: #7b8982; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .preorder-shipping-row { background: #222a26; color: #b8c6be; }
html[data-scheme="dark"] dialog.batch-dialog[id^="panel-"] .preorder-shipping-icon { color: #8a9a92; }

/* Current Orders: five numbered lines (empty ones are very thin placeholders); Edit | Pay Now with a line between them */
dialog.batch-dialog[id^="panel-"] .order-row.is-placeholder { min-height: 2.3rem; color: #9aa59f; font-size: 0.86rem; }
.order-row.is-placeholder, .order-row.is-extra { display: flex; align-items: center; }
.order-row[hidden] { display: none; }
.order-more { padding: 0.3rem 0 0; text-align: center; }
.order-more-button { min-height: 2.2rem; padding: 0 0.8rem; border: 0; background: none; color: var(--green-action, #167144); font: inherit; font-size: 0.84rem; font-weight: 650; }
.order-row.is-mine .order-actions { gap: 0; }
.order-row.is-mine .order-inline-action, .order-row.is-mine .order-inline-action:last-child { padding: 0 0.75rem; border-radius: 0; background: none; }
.order-row.is-mine .order-inline-action + .order-inline-action { border-left: 1px solid #b8c6be; }
.order-row.is-mine .order-inline-action:last-child { padding-right: 0; }
html[data-scheme="dark"] .order-row.is-placeholder { color: #66726b; }
html[data-scheme="dark"] .order-row.is-mine .order-inline-action + .order-inline-action { border-left-color: #3a4a41; }
html[data-scheme="dark"] .order-row.is-mine .order-inline-action:last-child { background: none; }

/* Popular with customers, small size (the Control Studio default while orders are few): one slim row, so the order list is what stands out. */
dialog.batch-dialog[id^="panel-"] .earlier-orders-note.pop-card-top.is-small { padding: 0.5rem 0.9rem; }
.pop-card-top.is-small .pop-head { gap: 0.4rem; }
.pop-card-top.is-small .pop-title { font-size: 0.66rem; }
.pop-card-top.is-small .pop-title svg { width: 0.95rem; height: 0.95rem; }
.pop-card-top.is-small .pop-reveal { min-height: 2rem; font-size: 0.8rem; font-weight: 650; }
.pop-card-top.is-small .pop-reveal svg { width: 0.75rem; height: 0.75rem; padding: 0.3rem; border-radius: 8px; }
.pop-card-top.is-small .pop-stats { margin-top: 0.15rem; }
.pop-card-top.is-small .pop-stat { display: flex; align-items: baseline; gap: 0.3rem; padding: 0 0.5rem; }
.pop-card-top.is-small .pop-stat strong { font-size: 0.95rem; font-weight: 700; }
.pop-card-top.is-small .pop-stat span { font-size: 0.68rem; line-height: 1.2; }

/* My Orders cards: no "N orders · GHS x to pay" line; the year sits at the right, centred, beside the chevron. */
.my-order-group > summary.mog-head > .mog-year { flex: none; align-self: center; padding: 0; background: none; color: #66766d; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
html[data-scheme="dark"] .my-order-group > summary.mog-head > .mog-year { color: #b8c6be; }

/* ---- Operations Admin: This month's products. A count with a bar and the cut-off date, a sticky search + All/On/Off bar, big rows with real switches. ---- */
.cycle-products { gap: 0.7rem; align-content: start; }
.cycle-sum { display: grid; gap: 0.55rem; padding: 0.9rem 1rem; border: 1px solid #dbe7e0; border-radius: 16px; background: linear-gradient(180deg, #f6fbf8, #fff); }
.cycle-sum-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.7rem 1rem; }
.cycle-sum-text { display: grid; gap: 0.1rem; min-width: 0; }
.cycle-sum-count { color: #0b3d2e; font-size: 1.25rem; font-weight: 750; line-height: 1.2; }
.cycle-sum-month { color: #5f6f67; font-size: 0.84rem; font-weight: 600; }
.cycle-date input { min-width: 11rem; }
.cycle-bar { height: 0.5rem; overflow: hidden; border-radius: 999px; background: #e3ebe6; }
.cycle-bar-fill { display: block; height: 100%; border-radius: 999px; background: #167144; transition: width 0.3s; }
.cycle-bar-fill.w0 { width: 0; } .cycle-bar-fill.w1 { width: 10%; } .cycle-bar-fill.w2 { width: 20%; } .cycle-bar-fill.w3 { width: 30%; } .cycle-bar-fill.w4 { width: 40%; } .cycle-bar-fill.w5 { width: 50%; }
.cycle-bar-fill.w6 { width: 60%; } .cycle-bar-fill.w7 { width: 70%; } .cycle-bar-fill.w8 { width: 80%; } .cycle-bar-fill.w9 { width: 90%; } .cycle-bar-fill.w10 { width: 100%; }
.cycle-hint { color: #5f6f67; font-size: 0.8rem; line-height: 1.4; }
.cycle-hint.is-warn { color: #9a5b00; font-weight: 650; }
.cycle-toolbar { position: sticky; top: -1px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 -0.2rem; padding: 0.5rem 0.2rem; background: #fff; box-shadow: 0 8px 10px -10px rgb(14 38 27 / 40%); }
.cycle-toolbar .cycle-search { flex: 1 1 12rem; min-width: 0; border-radius: 12px; }
.cycle-filter { display: inline-flex; flex: none; padding: 0.2rem; border-radius: 12px; background: #eef2ef; }
.cycle-filter-btn { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.2rem; padding: 0 0.7rem; border: 0; border-radius: 9px; background: none; color: #3f4f47; font: inherit; font-size: 0.86rem; font-weight: 650; cursor: pointer; }
.cycle-filter-btn small { min-width: 1.3rem; padding: 0.05rem 0.3rem; border-radius: 999px; background: #fff; color: #3f4f47; font-size: 0.72rem; font-weight: 700; text-align: center; }
.cycle-filter-btn.is-on { background: #0b3d2e; color: #fff; }
.cycle-filter-btn.is-on small { background: rgb(255 255 255 / 20%); color: #fff; }
.cycle-all-on { flex: none; min-height: 2.6rem; border-radius: 12px; font-size: 0.86rem; }
.cycle-product-list { max-height: none; overflow: visible; gap: 0.45rem; }
.cycle-product-row { grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 0.8rem; padding: 0.6rem 0.8rem; border-radius: 14px; transition: background 0.15s, border-color 0.15s; }
@media (hover: hover) { .cycle-product-row:hover { border-color: #a9cdb9; } }
.cycle-product-thumb { width: 3.2rem; height: 3.2rem; border-radius: 10px; }
.cycle-product-text { gap: 0.25rem; }
.cycle-product-text strong { font-size: 0.95rem; font-weight: 650; }
.cycle-product-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.cycle-product-facts small { color: #5f6f67; font-size: 0.78rem; }
.cycle-chip { padding: 0.1rem 0.55rem; border-radius: 999px; background: #eceeed; color: #55645c; font-size: 0.72rem; font-weight: 700; }
.cycle-chip.is-on { background: #dcf1e5; color: #0f6a3d; }
.cycle-chip.is-waiting { background: #fdf0c9; color: #8a5a00; }
.cycle-empty { margin: 1.5rem 0; color: #5f6f67; text-align: center; }
/* a real switch, not a tick box */
.cycle-product-row input.cycle-switch { appearance: none; -webkit-appearance: none; position: relative; width: 2.9rem; height: 1.7rem; margin: 0; border-radius: 999px; background: #c9d3cd; cursor: pointer; transition: background 0.2s; }
.cycle-product-row input.cycle-switch::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 30%); transition: transform 0.2s; }
.cycle-product-row input.cycle-switch:checked { background: #167144; }
.cycle-product-row input.cycle-switch:checked::after { transform: translateX(1.2rem); }
.cycle-product-row input.cycle-switch:disabled { opacity: 0.5; cursor: not-allowed; }
.cycle-product-row input.cycle-switch:focus-visible { outline: 3px solid rgb(22 113 68 / 35%); outline-offset: 2px; }
html[data-scheme="dark"] .cycle-sum { border-color: #2c3a33; background: #17201c; }
html[data-scheme="dark"] .cycle-sum-count { color: #eee9dc; }
html[data-scheme="dark"] .cycle-bar, html[data-scheme="dark"] .cycle-filter { background: #25302a; }
html[data-scheme="dark"] .cycle-toolbar { background: #121815; }
html[data-scheme="dark"] .cycle-filter-btn, html[data-scheme="dark"] .cycle-filter-btn small { color: #cfe9dd; }
html[data-scheme="dark"] .cycle-filter-btn small { background: #1b2620; }
html[data-scheme="dark"] .cycle-filter-btn.is-on { background: #1f8a52; color: #fff; }
html[data-scheme="dark"] .cycle-chip { background: #25302a; color: #b8c6be; }
html[data-scheme="dark"] .cycle-chip.is-on { background: #1f3329; color: #66d6a8; }
html[data-scheme="dark"] .cycle-chip.is-waiting { background: #3a3017; color: #f0c46b; }
.cycle-product-row input.cycle-switch { box-sizing: border-box; flex: none; width: 2.9rem; min-width: 2.9rem; height: 1.7rem; min-height: 0; padding: 0; border: 0; box-shadow: none; }
/* This month's products, tighter: smaller rows in two columns (one column on a phone). */
.cycle-product-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 0.35rem 0.5rem; }
.cycle-product-row { grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0.6rem; padding: 0.4rem 0.6rem; border-radius: 12px; }
.cycle-product-thumb { width: 2.6rem; height: 2.6rem; border-radius: 8px; }
.cycle-product-text { gap: 0.1rem; }
.cycle-product-text strong { font-size: 0.88rem; }
.cycle-product-facts { gap: 0.15rem 0.4rem; }
.cycle-product-facts small { font-size: 0.72rem; }
.cycle-chip { padding: 0.05rem 0.45rem; font-size: 0.68rem; }
.cycle-empty { grid-column: 1 / -1; }
.cycle-product-row input.cycle-switch { width: 2.5rem; min-width: 2.5rem; height: 1.45rem; }
.cycle-product-row input.cycle-switch::after { top: 0.17rem; left: 0.17rem; width: 1.11rem; height: 1.11rem; }
.cycle-product-row input.cycle-switch:checked::after { transform: translateX(1.05rem); }

/* ---- Follow SamDart, the home-community looks: Green band, Slim bar and Pills (Control Studio picks one for each place) ---- */
.follow-band { margin: 1.2rem 0 1rem; padding: 1.3rem 1rem 1rem; border-radius: 26px; background: var(--green-deep, #073d31); color: #fff; text-align: left; }
.follow-band .follow-eyebrow { color: #f0b24a; }
.follow-band .follow-heading { margin-top: 0.3rem; color: #fff; font-size: 1.3rem; line-height: 1.2; }
.follow-band .follow-sub { max-width: none; margin: 0.35rem 0 0; color: #bcd9cd; font-size: 0.86rem; }
.follow-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr)); gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.follow-tile { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; height: 100%; padding: 0.85rem 0.4rem 0.75rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 18px; background: rgb(255 255 255 / 8%); color: #fff; text-align: center; text-decoration: none; transition: transform 0.15s; }
.follow-tile:active { transform: scale(0.97); }
.follow-tile:focus-visible { outline: 3px solid rgb(255 255 255 / 55%); outline-offset: 2px; }
.follow-tile .follow-badge { width: 2.9rem; height: 2.9rem; border-radius: 50%; }
.follow-tile .follow-badge svg { width: 1.5rem; height: 1.5rem; }
.follow-tile b { font-size: 0.92rem; }
.follow-tile span { color: #bcd9cd; font-size: 0.72rem; line-height: 1.25; }
.follow-tile.is-primary { border-color: #fff; background: #fff; color: var(--green-deep, #073d31); }
.follow-tile.is-primary span { color: #5f6b65; }
.follow-band .follow-note { color: #bcd9cd; text-align: center; }
.follow-slim { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0 1rem; padding: 0.85rem 0.9rem 0.85rem 1rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 1px 3px rgb(10 30 20 / 5%); text-align: left; }
.follow-slim-text { display: grid; flex: 1; gap: 0.15rem; min-width: 0; }
.follow-slim-text b { color: var(--green-deep, #073d31); font-size: 1rem; line-height: 1.2; }
.follow-slim-text span { color: #5f6b65; font-size: 0.8rem; line-height: 1.35; }
.follow-slim-text small { color: #66766d; font-size: 0.72rem; }
.follow-slim-icons { display: flex; flex: none; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.follow-ib { display: block; text-decoration: none; }
.follow-ib .follow-badge { width: 2.7rem; height: 2.7rem; border-radius: 50%; box-shadow: 0 3px 8px rgb(10 30 20 / 15%); transition: transform 0.15s; }
.follow-ib:active .follow-badge { transform: scale(0.94); }
.follow-ib:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 3px; border-radius: 50%; }
.follow-pills { margin: 1rem 0; text-align: center; }
.follow-pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.follow-pill { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.6rem; padding: 0.25rem 0.9rem 0.25rem 0.3rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #10251b; font-size: 0.86rem; font-weight: 650; text-decoration: none; box-shadow: 0 1px 3px rgb(10 30 20 / 6%); }
.follow-pill .follow-badge { width: 2rem; height: 2rem; border-radius: 50%; }
.follow-pill .follow-badge svg { width: 1.1rem; height: 1.1rem; }
.follow-pill:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }
@media (max-width: 22rem) { .follow-slim { flex-direction: column; align-items: flex-start; } }
html[data-scheme="dark"] .follow-slim, html[data-scheme="dark"] .follow-pill { border-color: #2c3731; background: #18201c; }
html[data-scheme="dark"] .follow-slim-text b, html[data-scheme="dark"] .follow-pill { color: #eee9dc; }
html[data-scheme="dark"] .follow-slim-text span, html[data-scheme="dark"] .follow-slim-text small { color: #b8c6be; }
html[data-scheme="dark"] .follow-band { background: #0d2a22; }

/* Operations Admin: the product count under the Batches / Products headings. */
.product-totals { margin: 0.25rem 0 0; color: #5f6f67; font-size: 0.82rem; }
.product-totals strong { color: #0b3d2e; font-weight: 700; }
.product-totals:empty { display: none; }
html[data-scheme="dark"] .product-totals strong { color: #cfe9dd; }

/* ---- Products SamDart could not buy: the My Orders cards, the choice sheet, the Credits groups, and the admin panel ---- */
.nb-host { display: grid; gap: 0.6rem; margin: 0 0 0.8rem; }
.nb-host[hidden] { display: none; }
.nb-card { display: grid; gap: 0.5rem; padding: 0.9rem 1rem; border: 1px solid #ead8a6; border-radius: 18px; background: #fffaf0; box-shadow: 0 6px 18px -16px rgb(14 38 27 / 55%); }
.nb-card:not(.is-action) { border-color: #cfe3d6; background: #f4faf6; }
.nb-head { display: flex; align-items: center; gap: 0.7rem; }
.nb-mark { display: grid; flex: none; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #f5d98a; color: #6a4a00; font-weight: 800; }
.nb-card:not(.is-action) .nb-mark { background: #cfe9dd; color: #0f6a3d; }
.nb-title { display: grid; gap: 0.1rem; min-width: 0; }
.nb-title b { color: #10251b; font-size: 0.95rem; font-weight: 650; line-height: 1.25; }
.nb-title small { color: #66766d; font-size: 0.78rem; }
.nb-text { margin: 0; color: #3f4f47; font-size: 0.86rem; line-height: 1.45; }
.nb-note { margin: 0; color: #66766d; font-size: 0.78rem; line-height: 1.4; }
.nb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.2rem; }
.nb-btn { display: grid; gap: 0.1rem; justify-items: start; min-height: 3.2rem; padding: 0.5rem 0.8rem; border: 1.5px solid #cfd9d3; border-radius: 14px; background: #fff; color: #10251b; font: inherit; text-align: left; cursor: pointer; }
.nb-btn b { font-size: 0.92rem; font-weight: 700; }
.nb-btn span { color: #66766d; font-size: 0.74rem; line-height: 1.3; }
.nb-btn.is-primary { border-color: var(--green-deep, #073d31); background: var(--green-deep, #073d31); color: #fff; }
.nb-btn.is-primary span { color: #cfe9dd; }
.nb-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nb-btn:focus-visible { outline: 3px solid rgb(22 113 68 / 35%); outline-offset: 2px; }
.nb-sheet-body { display: grid; gap: 0.8rem; padding: 0.4rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
.nb-field { display: grid; gap: 0.3rem; color: #3f4f47; font-size: 0.82rem; font-weight: 700; }
.nb-field input { min-height: 3rem; padding: 0.4rem 0.8rem; border: 1px solid #cfd9d3; border-radius: 12px; font: inherit; font-size: 1rem; }
.nb-confirm { min-height: 3rem; border-radius: 14px; font-weight: 700; }
.credit-groups { display: flex; gap: 0.3rem; margin: 0.3rem 0 0.7rem; padding: 0.2rem; border-radius: 14px; background: #eef2ef; }
.credit-groups button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 0.3rem; min-height: 2.4rem; padding: 0 0.4rem; border: 0; border-radius: 11px; background: none; color: #3f4f47; font: inherit; font-size: 0.84rem; font-weight: 650; cursor: pointer; }
.credit-groups button span { min-width: 1.2rem; padding: 0.05rem 0.3rem; border-radius: 999px; background: #fff; font-size: 0.7rem; font-weight: 700; text-align: center; }
.credit-groups button.is-active { background: var(--green-deep, #073d31); color: #fff; }
.credit-groups button.is-active span { background: rgb(255 255 255 / 20%); color: #fff; }
.nb-row-copy { display: grid; gap: 0.1rem; }
.nb-row-copy small { color: #66766d; font-size: 0.76rem; }
.nb-row.is-refunded .nb-row-copy small { color: #0f6a3d; }
html[data-scheme="dark"] .nb-card { border-color: #4a4020; background: #2a2616; }
html[data-scheme="dark"] .nb-card:not(.is-action) { border-color: #2c3a33; background: #17201c; }
html[data-scheme="dark"] .nb-title b, html[data-scheme="dark"] .nb-btn { color: #eee9dc; }
html[data-scheme="dark"] .nb-btn { border-color: #2c3a33; background: #18201c; }
html[data-scheme="dark"] .nb-btn.is-primary { border-color: #1f8a52; background: #1f8a52; color: #fff; }
html[data-scheme="dark"] .nb-text { color: #cfd9d3; }
html[data-scheme="dark"] .credit-groups { background: #25302a; }
html[data-scheme="dark"] .credit-groups button { color: #cfe9dd; }
html[data-scheme="dark"] .credit-groups button span { background: #1b2620; }
html[data-scheme="dark"] .credit-groups button.is-active { background: #1f8a52; color: #fff; }
/* Operations Admin: Not bought and refunds */
.nbs { gap: 0.7rem; align-content: start; }
.nbs-sum { display: grid; gap: 0.15rem; padding: 0.8rem 1rem; border: 1px solid #dbe7e0; border-radius: 14px; background: #f6fbf8; }
.nbs-sum strong { color: #0b3d2e; font-size: 1rem; }
.nbs-sum small { color: #5f6f67; font-size: 0.8rem; }
.nbs-tabs { align-self: start; }
.nbs-list { display: grid; gap: 0.5rem; }
.nbs-row { display: grid; gap: 0.6rem; padding: 0.7rem 0.8rem; border: 1px solid #dbe7e0; border-radius: 14px; background: #fff; }
.nbs-row.is-awaiting { border-color: #ead8a6; background: #fffaf0; }
.nbs-row.is-refund_requested { border-color: #b9d9c7; background: #f4faf6; }
.nbs-copy { display: grid; gap: 0.2rem; min-width: 0; }
.nbs-copy b { color: #10251b; font-size: 0.92rem; font-weight: 650; }
.nbs-copy small { color: #5f6f67; font-size: 0.78rem; }
.nbs-send { color: #0b3d2e; font-weight: 700; }
.nbs-chip { justify-self: start; }
.nbs-chip.is-awaiting { background: #fdf0c9; color: #8a5a00; }
.nbs-chip.is-refund_requested { background: #dcf1e5; color: #0f6a3d; }
.nbs-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nbs-actions .btn { min-height: 2.4rem; padding: 0 0.8rem; font-size: 0.84rem; }
@media (min-width: 40rem) { .nbs-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
html[data-scheme="dark"] .nbs-sum, html[data-scheme="dark"] .nbs-row { border-color: #2c3a33; background: #17201c; }
html[data-scheme="dark"] .nbs-copy b, html[data-scheme="dark"] .nbs-sum strong, html[data-scheme="dark"] .nbs-send { color: #eee9dc; }
.nbs-ask .cycle-field { margin: 0.6rem 0 0; }
.nbs-ask .cycle-field input, .nbs-ask .cycle-field textarea { width: 100%; font: inherit; }
.nbs-actions a.btn { text-decoration: none; }
.nb-link { justify-self: start; min-height: 2.2rem; padding: 0; border: 0; background: none; color: var(--green-action, #167144); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.nb-link:focus-visible { outline: 3px solid rgb(22 113 68 / 35%); outline-offset: 2px; border-radius: 6px; }

/* Account: a small card of its own for Refunds, under Pending payment and Reward credits. */
.acct-refunds { display: flex; align-items: center; gap: 0.7rem; width: 100%; margin: -0.8rem 0 1.4rem; padding: 0.6rem 0.8rem; border: 0; border-radius: 16px; 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); }
.acct-refunds-copy { display: grid; flex: 1; min-width: 0; gap: 0.05rem; }
.acct-refunds-copy strong { font-size: 0.92rem; font-weight: 650; }
.acct-refunds-copy span { color: var(--sx-secondary); font-size: 0.78rem; }
.acct-refunds-go { color: var(--sx-secondary); font-size: 1.4rem; line-height: 1; }
.acct-refunds:focus-visible { outline: 2px solid var(--sx-tint); outline-offset: 2px; }

/* Reward Credits: the amount is the big thing on each row. */
.sx-row-value.is-big { max-width: 9rem; color: var(--sx-label); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }

/* Refunds and Carry-overs: the product's picture, and the amount big. */
.invite-earn-history-list.nb-rows .nb-row, .nb-rows .nb-row, #credit-carryover-list .nb-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.6rem 0; }
.nb-thumb { display: block; width: 3rem; height: 3rem; overflow: hidden; border-radius: 12px; background: #eef2ef; }
.nb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nb-row .nb-row-copy { grid-column: auto; grid-row: auto; min-width: 0; }
.nb-row .nb-row-copy b { color: #10251b; font-size: 0.92rem; font-weight: 650; line-height: 1.25; }
.nb-row-figures { display: grid; justify-items: end; gap: 0.1rem; }
.nb-row .nb-row-figures strong { grid-column: auto; grid-row: auto; justify-self: auto; color: #10251b; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.nb-row.is-used .nb-row-figures strong { color: #8a5a00; }
.nb-row .nb-row-figures time { grid-column: auto; grid-row: auto; justify-self: auto; color: #66766d; font-size: 0.72rem; }
html[data-scheme="dark"] .nb-thumb { background: #1a211e; }
html[data-scheme="dark"] .nb-row .nb-row-copy b, html[data-scheme="dark"] .nb-row .nb-row-figures strong { color: #eee9dc; }

/* Operations Admin > Products: one card per product, with a small button for each month it ran. */
.product-months { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.product-month { min-height: 1.9rem; padding: 0 0.6rem; border: 1px solid #cfd9d3; border-radius: 999px; background: #fff; color: #3f4f47; font: inherit; font-size: 0.74rem; font-weight: 650; cursor: pointer; }
.product-month.is-current { border-color: #167144; background: #e6f5ec; color: #0f6a3d; }
.product-month.is-closed:not(.is-current) { color: #66766d; }
.product-month:focus-visible { outline: 3px solid rgb(22 113 68 / 35%); outline-offset: 2px; }
html[data-scheme="dark"] .product-month { border-color: #2c3a33; background: #18201c; color: #cfe9dd; }
html[data-scheme="dark"] .product-month.is-current { border-color: #1f8a52; background: #1b2a22; color: #66d6a8; }

/* My Invoice: a month whose invoice is not issued yet (it is made when the month's orders close). */
.inv-pending { display: grid; gap: 0.4rem; margin: 0 0 0.8rem; padding: 0.85rem 1rem; border: 1px dashed #cfd9d3; border-radius: 18px; background: #fff; }
.inv-pending-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; }
.inv-pending-head strong { color: #10251b; font-size: 0.98rem; font-weight: 650; }
.inv-pending-chip { padding: 0.1rem 0.6rem; border-radius: 999px; background: #eceeed; color: #55645c; font-size: 0.72rem; font-weight: 700; }
.inv-pending p { margin: 0; color: #55645c; font-size: 0.84rem; line-height: 1.45; }
.inv-pending-link { justify-self: start; min-height: 2.2rem; padding: 0; border: 0; background: none; color: var(--green-action, #167144); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
html[data-scheme="dark"] .inv-pending { border-color: #2c3a33; background: #17201c; }
html[data-scheme="dark"] .inv-pending-head strong { color: #eee9dc; }
html[data-scheme="dark"] .inv-pending-chip { background: #25302a; color: #b8c6be; }

/* Paying with credit that covers the whole product: the amount, the credit, what is left. */
.cc-body { display: grid; gap: 0.8rem; padding: 0.4rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
.cc-lines { display: grid; gap: 0.1rem; padding: 0.3rem 0.9rem; border: 1px solid #dbe7e0; border-radius: 16px; background: #f8fbf9; }
.cc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid #e6ece8; color: #3f4f47; font-size: 0.92rem; }
.cc-line:last-child { border-bottom: 0; }
.cc-line strong { color: #10251b; font-size: 1rem; font-weight: 700; }
.cc-line.is-minus strong { color: #8a5a00; }
.cc-line.is-total { padding-top: 0.75rem; color: #10251b; font-weight: 700; }
.cc-line.is-total strong { color: var(--green-deep, #073d31); font-size: 1.5rem; font-weight: 800; }
.cc-note { margin: 0; color: #55645c; font-size: 0.84rem; line-height: 1.5; }
.cc-primary { min-height: 3.2rem; border-radius: 14px; font-weight: 700; }
.cc-secondary { min-height: 2.8rem; border-radius: 14px; }
html[data-scheme="dark"] .cc-lines { border-color: #2c3a33; background: #17201c; }
html[data-scheme="dark"] .cc-line { border-bottom-color: #2c3a33; color: #cfd9d3; }
html[data-scheme="dark"] .cc-line strong, html[data-scheme="dark"] .cc-line.is-total { color: #eee9dc; }
html[data-scheme="dark"] .cc-line.is-total strong { color: #66d6a8; }

/* A clear (x) button in every search box: phones do not draw the browser's own, and desktop's own is hidden so there is never two. */
.sc-wrap { position: relative; display: block; min-width: 0; }
.sc-wrap.in-flex { flex: 1 1 0; }
.sc-wrap > .sc-input { width: 100%; padding-right: 2.6rem; box-sizing: border-box; }
.sc-wrap input[type="search"]::-webkit-search-cancel-button, .sc-wrap input[type="search"]::-webkit-search-decoration { display: none; -webkit-appearance: none; appearance: none; }
.sc-clear { position: absolute; top: 50%; right: 0.45rem; display: none; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 6%); color: #55645c; transform: translateY(-50%); cursor: pointer; }
.sc-wrap.has-value > .sc-clear { display: grid; }
.sc-clear:active { background: rgb(0 0 0 / 12%); }
html[data-scheme="dark"] .sc-clear { background: rgb(255 255 255 / 12%); color: #cfd9d3; }
.sc-above { z-index: 1; }

/* Credit statement rows (a friend's avatar or the product's picture, what happened, the amount big with its sign) and the recent activity log. */
.nb-thumb.is-person { display: grid; place-items: center; border-radius: 50%; }
.nb-thumb.is-person .avatar-face, .nb-thumb.is-person > * { max-width: 100%; max-height: 100%; }
.nb-row.is-used .nb-row-figures strong, .nb-row.is-held .nb-row-figures strong, .nb-row.is-reversed .nb-row-figures strong { color: #a13d2f; }
.nb-row.is-earned .nb-row-figures strong { color: #167144; }
.nb-pending { justify-self: start; padding: 0.05rem 0.5rem; border-radius: 999px; background: #fdf0c9; color: #8a5a00; font-size: 0.68rem; font-weight: 700; }
.credit-activity-title { margin: 1.2rem 0 0.4rem; color: #3f4f47; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.credit-activity { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.credit-activity li { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid #e6ece8; color: #3f4f47; font-size: 0.82rem; line-height: 1.4; }
.credit-activity li:last-child { border-bottom: 0; }
.credit-activity time { flex: none; color: #66766d; font-size: 0.72rem; white-space: nowrap; }
html[data-scheme="dark"] .nb-row.is-used .nb-row-figures strong, html[data-scheme="dark"] .nb-row.is-held .nb-row-figures strong { color: #f0a090; }
html[data-scheme="dark"] .nb-row.is-earned .nb-row-figures strong { color: #66d6a8; }
html[data-scheme="dark"] .credit-activity li { border-bottom-color: #2c3a33; color: #cfd9d3; }
html[data-scheme="dark"] .pop-tile { background: #1f2e27; }
html[data-scheme="dark"] .pop-tile strong, html[data-scheme="dark"] .pop-bar-when b, html[data-scheme="dark"] .pop-bar-figures b { color: #eee9dc; }
html[data-scheme="dark"] .pop-bar { border-bottom-color: #2c3a33; }
html[data-scheme="dark"] .pop-bar-when span { color: #66d6a8; }
.pop-year { margin-left: 0.2rem; color: #66766d; font-size: 0.6em; font-weight: 700; line-height: 0; vertical-align: super; font-variant-numeric: tabular-nums; }
html[data-scheme="dark"] .pop-year { color: #a9b8b0; }

/* Pay the shipping estimate upfront: the row on a loading card, each product's figure in the sheet, and the sheet's total. */
.loading-field input[type="checkbox"] { width: 1.2rem; height: 1.2rem; }
.lt-upfront { margin-top: 0.4rem; }
.lt-upfront .lt-sub { color: #66766d; font-size: 0.8rem; }
.lt-upfront-pay { font-weight: 800; }
.track-sheet-estimate { color: #0b7a4a; font-weight: 700; }
.track-sheet-upfront { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.8rem; margin: 0.6rem 1.1rem 0; padding: 0.8rem 0.9rem; border-radius: 16px; background: #e4efe9; color: #0b3d2c; }
.track-sheet-upfront b { font-size: 1.15rem; font-weight: 800; }
.track-sheet-upfront small { flex-basis: 100%; color: #5a6b62; }
html[data-scheme="dark"] .track-sheet-upfront { background: #1f2e27; color: #eee9dc; }
html[data-scheme="dark"] .track-sheet-estimate { color: #66d6a8; }
/* A settled upfront shipping payment: the final fee first, then what was paid and what is left (a balance or a refund). */
.lt-upfront.is-settled .lt-ship-text { display: grid; gap: 0.1rem; }
.lt-settle-detail { color: #5a6b62; font-size: 0.8rem; font-weight: 500; line-height: 1.35; }
html[data-scheme="dark"] .lt-settle-detail { color: #a9b8b0; }
.lt-settle-note { margin: 0.35rem 0.2rem 0; color: #5a6b62; font-size: 0.8rem; line-height: 1.35; }
html[data-scheme="dark"] .lt-settle-note { color: #a9b8b0; }
/* The batch dialog is either one month (orders, status, cutoff) or the product itself (information, pictures, settings, months). */
.admin-batch-edit-product { margin-left: auto; white-space: nowrap; }
.admin-product-reach { margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: #eef7f1; color: #1f4a35; }
.admin-month-panel { display: grid; gap: 1rem; }
.admin-month-form { display: grid; gap: 0.5rem; max-width: 28rem; }
.admin-product-months li { display: grid; gap: 0.35rem; padding: 0.7rem 0; }
.admin-product-months .btn { justify-self: start; }
html[data-scheme="dark"] .admin-product-reach { background: #1c2b24; color: #cfe9dd; }

/* The orders sheet of Track Shipment: one block per product (picture, name, the fee label and the rate x quantity, then the amount and its tag, all
   lined up on the right), then the arrival's total with the button under its label. Nothing in it opens an order. */
.track-sheet-shipping { gap: 0.6rem; }
.track-sheet-ship { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0 0.8rem; padding: 0.8rem 0.9rem; border: 1px solid #dde6e0; border-radius: 16px; background: #fff; }
.track-sheet-ship .track-sheet-initial { grid-row: 1 / span 3; }
.track-sheet-ship-body { display: grid; gap: 0.15rem; min-width: 0; }
.track-sheet-ship-body > b { color: #10251b; font-size: 1rem; font-weight: 800; line-height: 1.25; }
.track-sheet-ship-label { color: #5a6b62; font-size: 0.8rem; font-weight: 600; }
.track-sheet-ship-calc { color: #10251b; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.track-sheet-ship-side { display: grid; justify-items: end; align-content: start; gap: 0.4rem; text-align: right; }
.track-sheet-ship-side b { color: #10251b; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.track-sheet-tag { padding: 0.12rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; }
.track-sheet-tag.is-paid { background: #dff0e6; color: #0f6a3d; }
.track-sheet-tag.is-unpaid { background: #fbe7e2; color: #a13d2f; }
.track-sheet-upfront { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 0.6rem 0.8rem; margin: 0.6rem 1.1rem 0; padding: 0.8rem 0.9rem; border-top: 1px solid #d9e3dd; border-bottom: 1px solid #d9e3dd; border-radius: 0; background: none; }
.track-sheet-upfront-total { display: contents; }
.track-sheet-upfront-total span { color: #0b3d2c; font-size: 0.95rem; font-weight: 800; }
.track-sheet-upfront-total b { justify-self: end; color: #0b3d2c; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.track-sheet-upfront .track-sheet-arrival-name { font-style: normal; }
.track-sheet-pay { grid-column: 1; justify-self: stretch; width: 100%; min-height: 0; padding: 0.45rem 0.8rem; font-size: 0.9rem; }
.track-sheet-upfront-note { grid-column: 1 / -1; color: #5a6b62; }
html[data-scheme="dark"] .track-sheet-ship { border-color: #2c3a33; background: #16201b; }
html[data-scheme="dark"] .track-sheet-ship-body > b, html[data-scheme="dark"] .track-sheet-ship-calc, html[data-scheme="dark"] .track-sheet-ship-side b { color: #eee9dc; }
html[data-scheme="dark"] .track-sheet-upfront { border-color: #2c3a33; }
html[data-scheme="dark"] .track-sheet-upfront-total span, html[data-scheme="dark"] .track-sheet-upfront-total b { color: #cfe9dd; }

/* Track Shipment, one calm card per arrival: header (name, status, bell), the journey, one status line, one shipping line, one button. */
.lt-status-line { display: grid; gap: 0.25rem; margin-top: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 14px; background: #eef4f0; color: #1f3a2d; font-size: 0.9rem; line-height: 1.4; }
.lt-status-line b { font-weight: 700; }
.lt-status-line.is-ready { background: #e2f1e8; }
.lt-line-note { color: #6a4a00; font-size: 0.82rem; }
.lt-head .lt-bell { margin-left: 0.2rem; }
.lt-ship-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; }
.lt-ship-text { display: grid; gap: 0.15rem; }
.lt-ship-detail { color: #5a6b62; font-size: 0.8rem; line-height: 1.35; }
.lt-actions .track-view { width: 100%; }
html[data-scheme="dark"] .lt-status-line { background: #1c2b24; color: #cfe9dd; }
html[data-scheme="dark"] .lt-status-line.is-ready { background: #1f3629; }
html[data-scheme="dark"] .lt-ship-detail { color: #a9b8b0; }
.lt-ship-amount { white-space: nowrap; }

/* Track Shipment, the quiet version: one accent (the journey and the main button), plain text for information, the header bar underlined, a light bell. */
.lt-card { gap: 0.85rem; }
.lt-head { padding-bottom: 0.7rem; border-bottom: 1px solid #dde4df; }
.lt-tag, .lt-tag.is-go, .lt-tag.is-ok { border: 1px solid #d6dcd8; background: transparent; color: #3f4f47; }
.lt-card .lt-bell, .lt-card .lt-bell.is-on { width: 2.75rem; height: 2.75rem; margin-right: -0.5rem; border: 0; background: transparent; color: #7b8780; }
.lt-card .lt-bell svg { width: 1rem; height: 1rem; }
.lt-card .lt-bell.is-on { color: #1f8a52; }
.lt-card.is-action { border-color: var(--line); box-shadow: none; }
.lt-info { display: grid; gap: 0.3rem; margin: 0; padding: 0 0 0 1.15rem; color: #3f4f47; font-size: 0.88rem; line-height: 1.45; list-style: disc; }
.lt-info li::marker { color: #9aa39e; }
.lt-delivery { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid #dde4df; border-bottom: 1px solid #dde4df; }
.lt-delivery-text { display: grid; gap: 0.1rem; min-width: 0; }
.lt-delivery-text b { color: #10251b; font-size: 0.95rem; font-weight: 800; }
.lt-delivery-text small { color: #5a6b62; font-size: 0.82rem; }
.lt-delivery.is-waiting .lt-delivery-text b { color: #66766d; }
.lt-delivery .lt-choose-btn { display: inline-flex; flex: none; width: auto; min-height: 2.5rem; padding: 0 1.2rem; border: 1px solid var(--green-deep); border-radius: 10px; background: var(--green-deep); color: #fff; font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
.lt-delivery .lt-chosen-change { color: var(--green-deep); }
.lt-chosen-note { margin: 0.4rem 0 0; }
.lt-card .lt-actions .track-view { border: 1px solid #cdd6d0; background: #fff; color: #10251b; }
.lt-pill.is-call, .lt-pill.is-whatsapp { background: #f1f3f2; color: #10251b; }
.lt-pill-icon { background: #3f4f47; }
.track-steps li.is-current { background: #1f8a52; }
.track-summary-icon { background: #f1f3f2; color: #3f4f47; }
.track-summary .track-next { padding: 0; background: none; color: #5a6b62; font-weight: 600; }
.lt-todo { border-color: var(--line); background: #fff; }
.lt-todo-icon { background: #f1f3f2; color: #3f4f47; }
.lt-todo-text b { color: #10251b; }
.lt-todo-text span { color: #5a6b62; }
.lt-steps li.is-current .lt-dot { box-shadow: 0 0 0 2px #1f8a52; }
html[data-scheme="dark"] .lt-head, html[data-scheme="dark"] .lt-delivery { border-color: #2c3a33; }
html[data-scheme="dark"] .lt-info, html[data-scheme="dark"] .lt-delivery-text small { color: #cfd9d3; }
html[data-scheme="dark"] .lt-delivery-text b { color: #eee9dc; }
html[data-scheme="dark"] .lt-card .lt-actions .track-view { border-color: #35433b; background: transparent; color: #eee9dc; }
html[data-scheme="dark"] .lt-tag { border-color: #35433b; color: #cfd9d3; }
/* Track Shipment: the arrival's name leads (bigger, bolder); the information under the journey is smaller, plain text. */
.lt-card .lt-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.lt-card .lt-number { width: 2rem; height: 2rem; font-size: 0.95rem; }
.lt-info { font-size: 0.78rem; line-height: 1.4; gap: 0.25rem; }
.lt-delivery-text small { font-size: 0.78rem; }
/* The thick straight line between one arrival card and the next. */
.lt-divider { width: 100%; height: 5px; margin: 0.5rem 0; border: 0; border-radius: 3px; background: #b9c5bd; }
html[data-scheme="dark"] .lt-divider { background: #3c4a42; }

/* The shipping sheet: the title as big as the card's, a receipt-style stack for each product (rate, quantity, line, result), one long button, and the support line. */
.track-sheet-titles .track-sheet-arrival { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.track-sheet-ship { grid-template-columns: auto minmax(0, 1fr) auto; }
.track-sheet-ship .track-sheet-initial { grid-row: auto; align-self: start; }
.track-sheet-ship-body { align-content: start; justify-items: start; }
.track-sheet-ship-figures { display: grid; justify-items: end; align-content: start; gap: 0.1rem; min-width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.track-sheet-ship-rate { color: #10251b; font-size: 1.15rem; font-weight: 800; }
.track-sheet-ship-times { color: #5a6b62; font-size: 0.9rem; font-weight: 600; }
.track-sheet-ship-rule { display: block; align-self: stretch; height: 0; margin: 0.15rem 0; border-top: 1px solid #b9c5bd; }
.track-sheet-ship-sum { color: #10251b; font-size: 1.05rem; font-weight: 800; }
.track-sheet-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
.track-sheet-main { width: 100%; min-height: 3rem; border-radius: 12px; font-size: 1rem; }
.track-sheet-main:disabled { background: #c9d0ca; color: #5a6b62; cursor: default; }
.track-sheet-support { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.2rem 0.4rem; color: #5a6b62; font-size: 0.85rem; }
.track-sheet-ask { display: inline-flex; align-items: center; gap: 0.2rem; min-height: 2.75rem; padding: 0 0.4rem; border: 0; background: none; color: var(--green-deep); font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
.lt-card .lt-actions .track-view { border: 0; background: var(--green-deep); color: #fff; }
html[data-scheme="dark"] .track-sheet-ship-rate, html[data-scheme="dark"] .track-sheet-ship-sum { color: #eee9dc; }
html[data-scheme="dark"] .track-sheet-ship-times, html[data-scheme="dark"] .track-sheet-support { color: #a9b8b0; }
html[data-scheme="dark"] .track-sheet-ask { color: #8fe0bb; }
.track-sheet-ship-rule { justify-self: stretch; width: 100%; }

/* The shipping sheet, compact: the products take little room, the figures are modest and not bold, and a product that can be paid is tappable. */
.track-sheet-shipping { gap: 0.4rem; }
.track-sheet-ship { gap: 0 0.6rem; padding: 0.5rem 0.7rem; border-radius: 12px; }
.track-sheet-ship .track-sheet-initial, .track-sheet-ship .track-sheet-initial.has-picture { width: 2.1rem; height: 2.1rem; border-radius: 8px; }
.track-sheet-ship-body { gap: 0.1rem; }
.track-sheet-ship-body > b { font-size: 0.9rem; font-weight: 700; }
.track-sheet-ship-label { font-size: 0.76rem; }
.track-sheet-ship-figures { gap: 0; min-width: 5.5rem; line-height: 1.2; }
.track-sheet-ship-rate { font-size: 0.95rem; font-weight: 600; }
.track-sheet-ship-times { font-size: 0.78rem; font-weight: 500; }
.track-sheet-ship-rule { margin: 0.1rem 0; }
.track-sheet-ship-sum { font-size: 0.9rem; font-weight: 500; }
.track-sheet-tag { padding: 0.08rem 0.5rem; font-size: 0.66rem; }
.track-sheet-tag.is-wait { background: #eef0ee; color: #55645c; }
.track-sheet-upfront-total b { font-size: 1.05rem; font-weight: 600; }
.track-sheet-ship.is-payable { cursor: pointer; }
@media (hover: hover) { .track-sheet-ship.is-payable:hover { border-color: #9fb3a6; } }
.track-sheet-ship.is-payable:focus-visible { outline: 3px solid rgb(22 113 68 / 30%); outline-offset: 2px; }
.track-sheet-hint { margin: 0.2rem 1.1rem 0; color: #5a6b62; font-size: 0.78rem; line-height: 1.35; }
dialog.track-confirm { width: min(92vw, 22rem); padding: 0; border: 0; border-radius: 18px; background: #fff; color: #10251b; box-shadow: 0 20px 50px rgb(0 0 0 / 30%); }
dialog.track-confirm::backdrop { background: rgb(10 25 19 / 52%); }
.track-confirm-box { display: grid; gap: 0.7rem; padding: 1.1rem; }
.track-confirm-box h4 { margin: 0; font-size: 1.05rem; }
.track-confirm-box p { margin: 0; color: #3f4f47; font-size: 0.9rem; line-height: 1.45; }
.track-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.2rem; }
html[data-scheme="dark"] dialog.track-confirm { background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .track-confirm-box p, html[data-scheme="dark"] .track-sheet-hint { color: #cfd9d3; }
/* The reference of a refund is plain grey, so "Refunded to <number>" stands out from it. */
.nb-row.is-refunded .nb-row-copy small.nb-ref, .nb-row .nb-row-copy small.nb-ref { color: #6b7570; word-break: break-all; }
html[data-scheme="dark"] .nb-row .nb-row-copy small.nb-ref { color: #a3ada6; }

/* ---- The order page: one "Where is it now" card, the order as a receipt, one note with an icon and buttons that stay in reach ---- */
.my-order-dialog .my-order-where { display: grid; gap: 0.7rem; margin-top: 0.8rem; padding: 0.85rem; border-radius: 22px; background: #e3f0e8; }
.my-order-dialog .my-order-where .my-order-progress { display: grid; grid-template-columns: 1fr; gap: 0.75rem; width: 100%; margin: 0; padding: 0; border-radius: 0; background: none; color: #173d31; }
.wh-top { display: flex; align-items: center; gap: 0.75rem; }
.wh-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #167144; color: #fff; }
.wh-text { display: grid; min-width: 0; gap: 0.1rem; }
.wh-text small { color: #17683f; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.wh-text strong { color: #0f3b2a; font-size: 1.2rem; line-height: 1.2; white-space: normal; }
.my-order-dialog .my-order-where .my-order-progress-bar { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.my-order-dialog .my-order-where .my-order-progress-bar i { height: 6px; background: rgb(23 113 68 / 20%); }
.my-order-dialog .my-order-where .my-order-progress-bar i.is-done { background: #167144; }
.my-order-dialog .my-order-where .my-order-progress-bar i.is-current { background: #e0a13a; }
.wh-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.wh-step { color: #4b5b53; font-size: 0.8rem; font-weight: 600; }
.my-order-dialog .my-order-where .my-order-handover { margin: 0; padding: 0.8rem; border-radius: 16px; background: #fff; }
.wh-row { display: flex; align-items: center; gap: 0.75rem; }
.wh-chip { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: #e3f0e8; color: #167144; }
.wh-where { display: grid; min-width: 0; gap: 0.05rem; }
.wh-where small { color: #6b7570; font-size: 0.78rem; }
.wh-where strong { color: #173d31; font-size: 1rem; line-height: 1.25; }
.wh-where em { color: #5a655f; font-size: 0.78rem; font-style: normal; line-height: 1.35; }
.wh-note { margin: 0.6rem 0 0; padding: 0.5rem 0.65rem; border-radius: 10px; background: #f3f8f5; color: #1b3d2d; font-size: 0.82rem; line-height: 1.4; }
.my-order-handover .my-order-handover-save { display: flex; align-items: center; justify-content: center; gap: 0.3rem; width: 100%; min-height: 3rem; margin-top: 0.7rem; border: 0; border-radius: 14px; background: #167144; color: #fff; font: inherit; font-size: 0.95rem; font-weight: 800; cursor: pointer; }
.my-order-section-label { margin: 1.1rem 0 0.4rem; color: #5a655f; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.my-order-dialog .my-order-dialog-details { margin-top: 0; }
.my-order-dialog .my-order-dialog-details dt.is-total, .my-order-dialog .my-order-dialog-details dd.is-total { background: #f3f8f5; }
.my-order-dialog .my-order-dialog-details dd.is-total { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; }
.my-order-dialog .my-order-dialog-details dd.is-total strong { color: #0f3b2a; font-size: 1.2rem; }
.my-order-row-link { display: inline-flex; align-items: center; gap: 0.15rem; padding: 0; border: 0; background: none; color: #167144; font: inherit; font-weight: 800; cursor: pointer; text-align: right; }
.my-order-note { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.9rem; padding: 0.8rem 0.9rem; border-radius: 14px; background: #fff4dc; color: #5c3a00; font-size: 0.86rem; line-height: 1.45; }
.my-order-note[hidden] { display: none; }
.my-order-note-icon { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #fbe4a8; color: #8a5a00; }
.my-order-dialog .my-order-foot { position: sticky; bottom: 0; z-index: 8; display: flex; gap: 0.6rem; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line, #e3e8e5); background: #fff; }
.my-order-foot-main { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; border: 0; border-radius: 14px; background: #167144; color: #fff; font: inherit; font-size: 0.95rem; font-weight: 800; cursor: pointer; }
.my-order-foot-main[hidden] { display: none; }
.my-order-foot-icon { display: inline-flex; }
.my-order-foot .my-order-dialog-quick { display: flex; flex: none; gap: 0.5rem; margin: 0; }
.my-order-foot .my-order-quick-button { flex: none; min-height: 3rem; padding: 0 1.1rem; border-radius: 14px; }
.my-order-foot .my-order-quick-button.is-icon { width: 3rem; padding: 0; }
html[data-scheme="dark"] .my-order-dialog .my-order-where { background: #15281e; }
html[data-scheme="dark"] .my-order-dialog .my-order-where .my-order-progress { color: #e8efeb; background: none; }
html[data-scheme="dark"] .wh-text small { color: #8fd8ad; }
html[data-scheme="dark"] .wh-text strong, html[data-scheme="dark"] .wh-where strong { color: #eef6f1; }
html[data-scheme="dark"] .wh-step, html[data-scheme="dark"] .wh-where em, html[data-scheme="dark"] .wh-where small, html[data-scheme="dark"] .my-order-section-label { color: #a3ada6; }
html[data-scheme="dark"] .my-order-dialog .my-order-where .my-order-handover { background: #18201c; }
html[data-scheme="dark"] .wh-chip { background: #15281e; color: #66d6a8; }
html[data-scheme="dark"] .wh-note { background: #15281e; color: #d6eadd; }
html[data-scheme="dark"] .my-order-dialog .my-order-dialog-details dt.is-total, html[data-scheme="dark"] .my-order-dialog .my-order-dialog-details dd.is-total { background: #15281e; }
html[data-scheme="dark"] .my-order-dialog .my-order-dialog-details dd.is-total strong { color: #eef6f1; }
html[data-scheme="dark"] .my-order-row-link { color: #66d6a8; }
html[data-scheme="dark"] .my-order-note { background: #2f2812; color: #f1d58a; }
html[data-scheme="dark"] .my-order-note-icon { background: #45391a; color: #f0c077; }
html[data-scheme="dark"] .my-order-dialog .my-order-foot { background: #161d1a; border-top-color: rgb(255 255 255 / 12%); }
/* Unpaid orders: the payment button takes the bottom bar; the order table is compact. */
.my-order-dialog .my-order-foot[hidden] { display: none; }
.my-order-foot.is-pay .my-order-foot-main, .my-order-foot.is-pay .my-order-dialog-quick { display: none; }
.my-order-foot .my-order-dialog-pay { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 3rem; margin: 0; border: 0; border-radius: 14px; background: #167144; color: #fff; font: inherit; font-size: 0.98rem; font-weight: 800; cursor: pointer; }
.my-order-foot .my-order-dialog-pay svg { width: 1.1rem; height: 1.1rem; }
.my-order-foot .my-order-dialog-pay:disabled { opacity: 0.7; }
.my-order-dialog .my-order-dialog-details dt, .my-order-dialog .my-order-dialog-details dd { padding: 0.42rem 0.85rem; font-size: 0.84rem; line-height: 1.3; }
.my-order-dialog .my-order-dialog-details dd.is-total strong { font-size: 1.05rem; }
.my-order-dialog .my-order-dialog-details dd.is-total { gap: 0.45rem; }
.my-order-section-label { margin: 0.8rem 0 0.3rem; }
.my-order-note { margin-top: 0.7rem; padding: 0.65rem 0.8rem; font-size: 0.82rem; }
/* An order still to pay: the bar holds the payment button with its safety line right under it, no gaps. */
.my-order-dialog .my-order-foot.is-pay { flex-direction: column; align-items: stretch; gap: 0.3rem; padding-top: 0.6rem; padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px)); }
.my-order-foot .my-order-safe { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 0; padding: 0; background: none; color: #5a655f; font-size: 0.76rem; line-height: 1.2; }
.my-order-foot .my-order-safe svg { width: 0.85rem; height: 0.85rem; flex: none; }
html[data-scheme="dark"] .my-order-foot .my-order-safe { color: #a3ada6; }
/* A month's total outstanding, split: this batch, and what else is on the same invoice. */
.my-order-outstanding.my-order-part { color: #5a655f; font-size: 0.85rem; font-weight: 600; }
.my-order-outstanding.my-order-part strong { color: inherit; }
html[data-scheme="dark"] .my-order-outstanding.my-order-part { color: #a3ada6; }

/* ---- Operations Admin > Statistics > Handover ---- */
.ho { display: grid; gap: 0.9rem; }
.ho-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr)); gap: 0.6rem; }
.ho-stat { display: grid; gap: 0.1rem; padding: 0.75rem 0.9rem; border: 1px solid #e3e8e5; border-radius: 14px; background: #fff; }
.ho-stat strong { font-size: 1.6rem; line-height: 1.1; color: #173d31; }
.ho-stat span { color: #5a655f; font-size: 0.78rem; font-weight: 700; }
.ho-stat.is-main { border-color: #167144; background: #167144; }
.ho-stat.is-main strong, .ho-stat.is-main span { color: #fff; }
.ho-stat.is-delivery { background: #fff4dc; border-color: #f0d79a; }
.ho-stat.is-delivery strong { color: #8a5a00; }
.ho-stat.is-none { background: #fdeeee; border-color: #f2c4c4; }
.ho-stat.is-none strong { color: #a13030; }
.ho-stat.is-done strong { color: #167144; }
.ho-picker, .ho-filters { display: flex; flex-wrap: nowrap; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: thin; }
.ho-chip, .ho-filter { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.3rem; padding: 0 0.85rem; border: 1px solid #d5ddd8; border-radius: 999px; background: #fff; color: #173d31; font: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; }
.ho-chip.is-active, .ho-filter.is-active { border-color: #167144; background: #167144; color: #fff; }
.ho-chip-count { min-width: 1.35rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgb(23 113 68 / 12%); font-size: 0.74rem; text-align: center; }
.is-active > .ho-chip-count { background: rgb(255 255 255 / 25%); }
.ho-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.ho-search { flex: 1 1 14rem; min-height: 2.5rem; max-width: 24rem; padding: 0 0.8rem; border: 1px solid #d5ddd8; border-radius: 12px; font: inherit; }
.ho-hint { margin: 0; color: #5a655f; font-size: 0.8rem; }
.ho-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.8rem; align-items: start; }
.ho-card { display: grid; gap: 0.6rem; padding: 0.9rem; border: 1px solid #e3e8e5; border-left: 4px solid #c4cdc8; border-radius: 14px; background: #fff; }
.ho-card.is-delivery { border-left-color: #e0a13a; }
.ho-card.is-pickup { border-left-color: #167144; }
.ho-card.is-none { border-left-color: #d46a6a; }
.ho-card.is-done { border-left-color: #8fb9a2; background: #f6faf8; }
.ho-card-head { display: flex; align-items: center; gap: 0.7rem; }
.ho-avatar { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #e3f0e8; color: #167144; font-size: 0.85rem; font-weight: 800; }
.ho-who { flex: 1; min-width: 0; }
.ho-name { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: #0f3b2a; font: inherit; font-size: 1rem; font-weight: 800; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-contact { margin: 0.1rem 0 0; color: #5a655f; font-size: 0.8rem; }
.ho-contact a { color: #167144; font-weight: 700; text-decoration: none; }
.ho-badge { flex: none; padding: 0.2rem 0.6rem; border-radius: 999px; background: #eef2f0; color: #43524a; font-size: 0.74rem; font-weight: 800; }
.ho-badge.is-delivery { background: #fff1d6; color: #8a5a00; }
.ho-badge.is-pickup { background: #e3f0e8; color: #167144; }
.ho-badge.is-none { background: #fdeeee; color: #a13030; }
.ho-badge.is-done { background: #e3f0e8; color: #17683f; }
.ho-address { display: grid; gap: 0.1rem; margin: 0; padding: 0.55rem 0.7rem; border-radius: 10px; background: #fff8e8; color: #5c3a00; font-size: 0.86rem; font-weight: 700; }
.ho-address-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.ho-items { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.ho-items li { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.86rem; }
.ho-items li.is-done { color: #7a867f; text-decoration: line-through; }
.ho-qty { color: #5a655f; font-weight: 700; white-space: nowrap; }
.ho-loading { margin: 0; color: #7a867f; font-size: 0.76rem; font-weight: 700; }
.ho-note { display: flex; gap: 0.4rem; }
.ho-note input { flex: 1; min-width: 0; min-height: 2.4rem; padding: 0 0.7rem; border: 1px solid #d5ddd8; border-radius: 10px; font: inherit; font-size: 0.84rem; }
.ho-save { min-height: 2.4rem; white-space: nowrap; }
.ho-empty { display: grid; gap: 0.3rem; padding: 2rem 1rem; border: 1px dashed #c9d3ce; border-radius: 14px; background: #f9fbfa; color: #5a655f; text-align: center; grid-column: 1 / -1; }
.ho-empty strong { color: #173d31; font-size: 1rem; }
.ho-empty p { margin: 0; font-size: 0.86rem; }
@media (max-width: 560px) { .ho-list { grid-template-columns: 1fr; } .ho-note { flex-direction: column; } }
html[data-scheme="dark"] .ho-stat, html[data-scheme="dark"] .ho-card, html[data-scheme="dark"] .ho-chip, html[data-scheme="dark"] .ho-filter { border-color: rgb(255 255 255 / 12%); background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .ho-stat strong, html[data-scheme="dark"] .ho-name, html[data-scheme="dark"] .ho-empty strong { color: #eef6f1; }
html[data-scheme="dark"] .ho-chip.is-active, html[data-scheme="dark"] .ho-filter.is-active, html[data-scheme="dark"] .ho-stat.is-main { border-color: #2a6b49; background: #2a6b49; color: #fff; }
html[data-scheme="dark"] .ho-card.is-done { background: #141b17; }
html[data-scheme="dark"] .ho-address { background: #2f2812; color: #f1d58a; }
html[data-scheme="dark"] .ho-note input, html[data-scheme="dark"] .ho-search { border-color: rgb(255 255 255 / 14%); background: #111814; color: #eee9dc; }
/* The Rider call button on a delivery, and the labelled fields on a Handover card. */
.wh-call { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.6rem; padding: 0 0.9rem; border: 1.5px solid #167144; border-radius: 999px; background: #fff; color: #167144; font-size: 0.92rem; font-weight: 800; text-decoration: none; }
.wh-call:active { transform: scale(0.97); }
html[data-scheme="dark"] .wh-call { border-color: #66d6a8; background: #18201c; color: #66d6a8; }
.ho-field { display: grid; gap: 0.2rem; flex: 1; min-width: 0; }
.ho-field > span { color: #5a655f; font-size: 0.74rem; font-weight: 700; }
.ho-note { flex-direction: column; align-items: stretch; }
.ho-note .ho-save { align-self: flex-start; }
html[data-scheme="dark"] .ho-field > span { color: #a3ada6; }

/* My Invoice, calmer: plain figures and quiet labels, so the arrivals read as a list of equals (1st, 2nd, 3rd) instead of a wall of colour. */
.inv-tag { padding: 0; border-radius: 0; background: none !important; font-size: 0.74rem; font-weight: 600; }
.inv-tag.is-ok { color: var(--green); }
.inv-tag.is-no, .inv-tag.is-due { color: #5a655f; }
.inv-tag.is-wait { color: var(--muted); }
.inv-per-piece { padding: 0; background: none; color: inherit; font-weight: 500; }
.inv-tab small.is-due { color: var(--muted); font-weight: 600; }
.inv-big { font-size: 1.55rem; font-weight: 700; }
.inv-big small { font-size: 0.85rem; font-weight: 600; }
.inv-section-head h3 { font-weight: 650; }
.inv-arrival { margin: 0.5rem 0; border-color: #e3e8e5; border-radius: 12px; background: #fff; }
.inv-arrival-head { gap: 0.7rem; min-height: 3.5rem; background: #fff; }
.inv-arrival.is-open > .inv-arrival-head { border-bottom: 1px solid #eef1ef; }
.inv-arrival-num { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #eef1ef; color: #43524a; font-size: 0.85rem; font-weight: 700; }
.inv-arrival-title b { font-size: 0.95rem; font-weight: 650; }
.inv-arrival-sum { flex-direction: column; align-items: flex-end; gap: 0.05rem; }
.inv-arrival-sum b { font-size: 0.92rem; font-weight: 650; }
.inv-ship-name b, .inv-item-info b { font-weight: 550; }
.inv-item-amount b { font-weight: 600; }
.inv-total-row.is-due b, .inv-total-row.is-zero b { color: var(--ink); font-size: 1rem; font-weight: 700; }
.inv-total-row.is-paid b { color: var(--ink); font-weight: 600; }
.inv-total-row.is-due, .inv-total-row.is-zero { font-weight: 650; }
html[data-scheme="dark"] .inv-arrival, html[data-scheme="dark"] .inv-arrival-head { background: #18201c; }
html[data-scheme="dark"] .inv-arrival-num { background: #26322c; color: #d6eadd; }
html[data-scheme="dark"] .inv-tag.is-no, html[data-scheme="dark"] .inv-tag.is-due { color: #a3ada6; }
html[data-scheme="dark"] .inv-total-row.is-due b, html[data-scheme="dark"] .inv-total-row.is-zero b, html[data-scheme="dark"] .inv-total-row.is-paid b { color: #eef6f1; }
/* A small picture beside each shipping fee, to tell the products apart. */
.inv-ship-row { gap: 0.7rem; }
.inv-ship-row .inv-thumb.is-small { width: 2.4rem; height: 2.4rem; border-radius: 10px; font-size: 0.85rem; }
.inv-ship-row .inv-ship-name { flex: 1; }

/* My Invoice shipping, one box less: an arrival is a tinted title bar with its products straight under it (no card around them), and a clear line between the two. */
.inv-arrival { margin: 0.85rem 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.inv-arrival-head { min-height: 3.4rem; padding: 0.55rem 0.8rem; border-radius: 12px; background: #edf3ef; }
.inv-arrival.is-open > .inv-arrival-head { border-radius: 12px 12px 0 0; border-bottom: 2px solid #a8c9b6; }
.inv-arrival-num { background: #fff; color: #2f5d46; }
.inv-arrival-body { padding: 0 0.1rem; }
.inv-ship-row { padding: 0.7rem 0.1rem; border-top: 1px solid #e3e8e5; }
.inv-ship-row:first-child { border-top: 0; }
.inv-arrival.is-open { padding-bottom: 0.2rem; border-bottom: 1px solid #e3e8e5; }
html[data-scheme="dark"] .inv-arrival, html[data-scheme="dark"] .inv-arrival-head { background: transparent; }
html[data-scheme="dark"] .inv-arrival-head { background: #1d2621; }
html[data-scheme="dark"] .inv-arrival.is-open > .inv-arrival-head { border-bottom-color: #3d6b52; }
html[data-scheme="dark"] .inv-arrival-num { background: #26322c; color: #d6eadd; }
html[data-scheme="dark"] .inv-ship-row, html[data-scheme="dark"] .inv-arrival.is-open { border-color: #2c3731; }

/* My Invoice: the tab of a month whose invoice is not made yet (it is made when the month's orders close). */
.inv-chip.is-pending { border-style: dashed; }
.inv-dot.is-wait { background: #c4cdc8; }
.inv-badge.is-wait { background: #eceeed; color: #55645c; }
.inv-pending-card .inv-head { padding-bottom: 0.6rem; }
.inv-pending-note { display: grid; gap: 0.35rem; padding: 0.4rem 1.1rem 0.9rem; }
.inv-pending-note b { color: var(--ink); font-size: 1rem; font-weight: 650; }
.inv-pending-note p { margin: 0; color: #55645c; font-size: 0.9rem; line-height: 1.5; }
.inv-pending-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 1.1rem 0.9rem; padding: 0.8rem 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.inv-pending-card .inv-more { width: calc(100% - 2.2rem); margin: 0 1.1rem 1.1rem; }
html[data-scheme="dark"] .inv-badge.is-wait { background: #26322c; color: #a3ada6; }
html[data-scheme="dark"] .inv-pending-note p { color: #a3ada6; }
html[data-scheme="dark"] .inv-pending-note b { color: #eef6f1; }

/* The arrival sheet: its products as a small receipt (Item, Qty, Rate, Amount), then the arrival's total and state. */
.lt-table { display: grid; flex: 1 1 auto; align-content: start; min-height: 0; margin: 0; padding: 0 1.1rem 0.4rem; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.lt-row { display: grid; grid-template-columns: minmax(0, 1fr) 1.8rem 3.7rem 4.4rem; align-items: center; gap: 0.5rem; padding: 0.7rem 0; border-top: 1px solid #e3e8e5; }
.lt-thead { position: sticky; top: 0; z-index: 1; padding: 0.45rem 0; border-top: 0; border-bottom: 2px solid #cfdad3; background: #fff; color: #5a655f; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lt-thead + .lt-row { border-top: 0; }
.lt-item { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.lt-item .track-sheet-initial, .lt-item .track-sheet-initial.has-picture { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 9px; }
.lt-label { display: grid; gap: 0.15rem; min-width: 0; }
.lt-name { color: #10251b; font-size: 0.92rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.lt-num { text-align: right; color: #2c3b33; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lt-thead .lt-num { font-size: 0.72rem; }
.lt-amount { color: #10251b; font-weight: 650; }
.lt-note { color: #7a867f; font-size: 0.76rem; }
.lt-row.is-payable { cursor: pointer; }
.lt-row.is-payable:focus-visible { background: #f4f8f5; }
@media (hover: hover) { .lt-row.is-payable:hover { background: #f4f8f5; } }
.lt-summary { display: grid; flex: none; gap: 0.3rem; margin: 0.2rem 1.1rem 0.3rem; padding: 0.7rem 0 0.3rem; border-top: 2px solid #cfdad3; }
.lt-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; color: #43524a; font-size: 0.9rem; }
.lt-sum-row b { color: #10251b; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lt-status { font-weight: 600; }
.lt-status.is-paid { color: #167144; }
.lt-status.is-unpaid, .lt-status.is-part, .lt-status.is-wait { color: #5a655f; }
.track-sheet-when { margin: 0.15rem 0 0; color: #3f5148; font-size: 0.85rem; font-weight: 600; }
.lt-row .track-sheet-tag { justify-self: start; }
html[data-scheme="dark"] .lt-row { border-top-color: #2c3731; }
html[data-scheme="dark"] .lt-thead { border-bottom-color: #3a4a41; background: #18201c; color: #a3ada6; }
html[data-scheme="dark"] .lt-name, html[data-scheme="dark"] .lt-amount, html[data-scheme="dark"] .lt-sum-row b { color: #eef6f1; }
html[data-scheme="dark"] .lt-num, html[data-scheme="dark"] .lt-sum-row { color: #cfd9d3; }
html[data-scheme="dark"] .lt-summary { border-top-color: #3a4a41; }
html[data-scheme="dark"] .track-sheet-when { color: #a9b8b0; }
html[data-scheme="dark"] .lt-row.is-payable:focus-visible { background: #1d2621; }
@media (hover: hover) { html[data-scheme="dark"] .lt-row.is-payable:hover { background: #1d2621; } }

/* The arrival sheet table, compact: Qty, Rate and Amount share one colour and weight; tighter rows, picture and totals. */
.lt-table { padding-bottom: 0.2rem; }
.lt-row { grid-template-columns: minmax(0, 1fr) 1.6rem 3.4rem 4rem; gap: 0.4rem; padding: 0.45rem 0; }
.lt-thead { padding: 0.3rem 0; }
.lt-item { gap: 0.5rem; }
.lt-item .track-sheet-initial, .lt-item .track-sheet-initial.has-picture { width: 2rem; height: 2rem; border-radius: 7px; }
.lt-name { font-size: 0.86rem; line-height: 1.2; }
.lt-num, .lt-amount { color: #2c3b33; font-size: 0.86rem; font-weight: 500; }
.lt-thead .lt-num { font-size: 0.7rem; font-weight: 700; }
.lt-summary { gap: 0.15rem; margin: 0.1rem 1.1rem 0.2rem; padding: 0.45rem 0 0.1rem; }
.lt-sum-row { font-size: 0.84rem; }
.lt-sum-row b { font-size: 0.95rem; font-weight: 600; }
.track-sheet-when { margin-top: 0.1rem; font-size: 0.8rem; }
html[data-scheme="dark"] .lt-num, html[data-scheme="dark"] .lt-amount { color: #cfd9d3; }
/* The shipping fee line of an arrival's notes: bold, in the colour of the View Shipping Fee button. */
.lt-info li.is-fee { color: var(--green-deep); font-weight: 800; }
.lt-info li.is-fee::marker { color: var(--green-deep); }
html[data-scheme="dark"] .lt-info li.is-fee { color: #8fd8ad; }

/* A loading card's title row on a small phone: the title never breaks letter by letter; the status and the bell drop to their own line when there is no room. */
.lt-card .lt-head { flex-wrap: wrap; row-gap: 0.45rem; column-gap: 0.6rem; }
.lt-card .lt-title { flex: 1 1 auto; min-width: max-content; overflow-wrap: normal; word-break: normal; white-space: nowrap; hyphens: none; }
.lt-head-side { display: flex; flex: 1 1 11rem; align-items: center; justify-content: space-between; gap: 0.4rem; }
.lt-card .lt-head .lt-bell { margin-left: 0; }
@media (max-width: 400px) {
  .lt-card .lt-title { font-size: 1.15rem; }
  .lt-card .lt-head .track-tag, .lt-card .lt-head .lt-tag, .lt-card .lt-head .lt-status-tag { font-size: 0.66rem; letter-spacing: 0.04em; padding-inline: 0.55rem; }
}
@media (max-width: 480px) {
  .lt-card .lt-title { font-size: 1.2rem; }
  .lt-card .lt-head .lt-tag { padding-inline: 0.6rem; font-size: 0.68rem; letter-spacing: 0.02em; }
  .lt-card .lt-head { column-gap: 0.5rem; }
}

/* A loading card's title row: [number] Title  Status  [bell], always on one line. On a narrow phone the status wraps onto two lines
   (Awaiting / Shipment) instead of dropping to another row. A bell that is on has a round ring around it. */
.lt-card .lt-head { flex-wrap: nowrap; align-items: center; gap: 0.5rem; }
.lt-head-side { display: contents; }
.lt-card .lt-title { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
.lt-card .lt-head .lt-tag { flex: 0 1 auto; min-width: min-content; padding: 0.25rem 0.65rem; border-radius: 14px; font-size: 0.7rem; line-height: 1.15; text-align: center; white-space: normal; }
.lt-card .lt-head .lt-bell, .lt-card .lt-head .lt-bell.is-on { flex: none; width: 2.4rem; height: 2.4rem; margin: 0 0 0 auto; border: 1.5px solid transparent; border-radius: 50%; background: transparent; }
.lt-card .lt-head .lt-bell.is-on { border-color: #1f8a52; background: #e6f5ec; color: #1f8a52; }
html[data-scheme="dark"] .lt-card .lt-head .lt-bell.is-on { border-color: #66d6a8; background: #15281e; color: #66d6a8; }
@media (max-width: 380px) {
  .lt-card .lt-head { gap: 0.35rem; }
  .lt-card .lt-title { flex: 0 0 auto; font-size: 1.05rem; white-space: nowrap; line-height: 1.15; }
  .lt-card .lt-number { width: 1.8rem; height: 1.8rem; font-size: 0.8rem; }
  .lt-card .lt-head .lt-tag { padding: 0.22rem 0.4rem; font-size: 0.6rem; letter-spacing: 0; }
  .lt-card .lt-title { font-size: 1rem; }
  .lt-card .lt-head .lt-bell, .lt-card .lt-head .lt-bell.is-on { width: 2.1rem; height: 2.1rem; }
}
/* On the very smallest phones the number circle is dropped (the title already says 1st, 2nd, 3rd), so title, status and bell fit on one line. */
@media (max-width: 340px) { .lt-card .lt-number { display: none; } }

/* ---- Help & Support page (Account > Help & Support) ---- */
.hs { display: grid; gap: 0; padding-bottom: 1rem; }
.hs-lead { margin: 0.1rem 0 0; color: var(--muted, #5f6b65); font-size: 0.95rem; line-height: 1.45; }
.hs-search { display: flex; align-items: center; gap: 0.6rem; min-height: 3.3rem; margin-top: 0.9rem; padding: 0 0.9rem; border: 1px solid #e4e8e3; border-radius: 16px; background: #fff; color: #5f6b65; }
.hs-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; color: var(--ink, #16211c); font: inherit; font-size: 1rem; }
.hs-label { margin: 1.4rem 0.25rem 0.6rem; color: #5f6b65; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hs-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hs-tile { display: flex; align-items: center; gap: 0.7rem; min-height: 4rem; padding: 0.7rem; border: 1px solid #e4e8e3; border-radius: 18px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.hs-tile b { font-size: 0.92rem; line-height: 1.2; }
.hs-tile-icon { display: grid; flex: none; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: #e3f1ea; color: var(--green, #087957); }
.hs-tile.is-on { border-color: var(--green, #087957); background: #f3faf6; }
.hs-tile.is-on .hs-tile-icon { background: var(--green, #087957); color: #fff; }
.hs-card { border: 1px solid #e4e8e3; border-radius: 20px; background: #fff; }
.hs-steps { padding: 1rem; }
.hs-step { position: relative; display: grid; grid-template-columns: 2.1rem 1fr; column-gap: 0.75rem; padding-bottom: 1rem; }
.hs-step:last-child { padding-bottom: 0; }
.hs-step::before { content: ""; position: absolute; top: 2.1rem; bottom: 0.1rem; left: 1rem; width: 2px; background: #dbe3de; }
.hs-step:last-child::before { display: none; }
.hs-step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--green-deep, #073d31); color: #fff; font-weight: 800; }
.hs-step b { display: block; margin-top: 0.3rem; font-size: 1rem; }
.hs-step span { display: block; margin-top: 0.1rem; color: #5f6b65; font-size: 0.9rem; line-height: 1.45; }
.hs-pay { padding: 1rem; }
.hs-pay-head { display: flex; align-items: center; gap: 0.75rem; }
.hs-momo { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: #ffcc00; color: #1a1a1a; font-size: 0.75rem; font-weight: 900; }
.hs-pay-head b { display: block; font-size: 1.05rem; }
.hs-pay-head span { color: #5f6b65; font-size: 0.84rem; }
.hs-num { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.9rem; padding: 0.6rem 0.6rem 0.6rem 0.9rem; border-radius: 14px; background: #f2f3f1; }
.hs-num small { display: block; color: #5f6b65; font-size: 0.75rem; }
.hs-num b { display: block; margin-top: 0.1rem; color: var(--green-deep, #073d31); font-size: 1.35rem; letter-spacing: 0.02em; }
.hs-copy { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--green, #087957); color: #fff; font: inherit; font-size: 0.88rem; font-weight: 800; cursor: pointer; }
.hs-pay-steps { display: grid; gap: 0.6rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.hs-pay-steps li { display: flex; gap: 0.6rem; font-size: 0.9rem; line-height: 1.45; }
.hs-pay-steps i { display: grid; flex: none; place-items: center; width: 1.4rem; height: 1.4rem; margin-top: 0.05rem; border-radius: 50%; background: #e3f1ea; color: var(--green, #087957); font-size: 0.75rem; font-style: normal; font-weight: 800; }
.hs-note { margin: 0; color: #5f6b65; font-size: 0.9rem; line-height: 1.5; }
.hs-trust { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid #e4e8e3; color: #5f6b65; font-size: 0.82rem; line-height: 1.45; }
.hs-trust svg { margin-top: 0.05rem; color: var(--green, #087957); }
.hs-video { display: flex; align-items: center; gap: 0.85rem; margin-top: 0.8rem; padding: 0.85rem; border-radius: 20px; background: var(--green-deep, #073d31); color: #fff; text-decoration: none; }
.hs-play { display: grid; flex: none; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #f0b24a; color: #2b1c03; }
.hs-video b { display: block; font-size: 1rem; }
.hs-video span span { display: block; margin-top: 0.1rem; color: #bcd9cd; font-size: 0.85rem; }
.hs-faq-head { display: flex; align-items: center; justify-content: space-between; min-height: 1.75rem; margin-top: 0.3rem; }
.hs-faq-head .hs-label { margin: 1.1rem 0.25rem 0.6rem; }
.hs-filter { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.1rem; padding: 0 0.4rem 0 0.8rem; border: 0; border-radius: 999px; background: #e3f1ea; color: var(--green, #087957); font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.hs-filter span { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; }
.hs-faq { overflow: hidden; }
.hs-q { display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3.6rem; padding: 0.5rem 1rem; border: 0; border-bottom: 1px solid #e4e8e3; background: none; color: inherit; font: inherit; font-size: 0.98rem; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; }
.hs-q span { flex: 1; }
.hs-q svg { color: #8a968f; transition: transform 0.25s; }
.hs-item.is-open .hs-q svg { transform: rotate(180deg); }
.hs-item:last-child .hs-q { border-bottom: 0; }
.hs-a { display: none; padding: 0.15rem 1rem 0.9rem; border-bottom: 1px solid #e4e8e3; color: #5f6b65; font-size: 0.92rem; line-height: 1.55; }
.hs-a p { margin: 0; white-space: pre-line; }
.hs-item:last-child .hs-a { border-bottom: 0; }
.hs-item.is-open .hs-a { display: block; }
.hs-ask { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.25rem; margin-top: 0.4rem; color: var(--green, #087957); font-weight: 800; text-decoration: none; }
.hs-empty { padding: 1.7rem 1.2rem; color: #5f6b65; font-size: 0.95rem; text-align: center; }
.hs-empty b { display: block; margin-bottom: 0.3rem; color: var(--ink, #16211c); font-size: 1.05rem; }
.hs-contact { margin-top: 1.5rem; padding: 1.1rem 1rem 1rem; border: 1px solid #e4e8e3; border-radius: 22px; background: #fff; }
.hs-contact h3 { margin: 0; color: var(--green-deep, #073d31); font-size: 1.25rem; }
.hs-contact p { margin: 0.3rem 0 0; color: #5f6b65; font-size: 0.9rem; line-height: 1.45; }
.hs-contact p.hs-online { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: #f2f3f1; color: var(--green-deep, #073d31); font-size: 0.8rem; font-weight: 700; }
.hs-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 4px rgb(37 211 102 / 22%); }
.hs-online.is-off .hs-dot { background: #b7c0ba; box-shadow: 0 0 0 4px rgb(183 192 186 / 30%); }
.hs-btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.6rem; margin-top: 0.9rem; }
.hs-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.3rem; border-radius: 16px; font-size: 0.98rem; font-weight: 800; text-decoration: none; }
.hs-wa { background: var(--green-deep, #073d31); color: #fff; }
.hs-wa-mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #25d366; color: #fff; }
.hs-call { border: 1.5px solid #cfd8d3; background: #fff; color: var(--green-deep, #073d31); }
.hs-more { display: flex; align-items: center; justify-content: center; gap: 0.25rem; width: 100%; min-height: 2.75rem; margin-top: 0.4rem; border: 0; background: none; color: var(--green, #087957); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.hs-footer { display: grid; justify-items: center; gap: 0.3rem; margin-top: 1.4rem; }
.hs-policies { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1rem 1rem; }
.hs-policies a { display: flex; align-items: center; min-height: 2.25rem; color: #5f6b65; font-size: 0.84rem; text-decoration: underline; text-underline-offset: 3px; }
.hs-credit { margin: 0; color: #8a968f; font-size: 0.8rem; text-align: center; }
@media (max-width: 340px) { .hs-tiles { grid-template-columns: 1fr; } .hs-btns { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hs *, .hs *::before { transition: none !important; } }
html[data-scheme="dark"] .hs-search, html[data-scheme="dark"] .hs-tile, html[data-scheme="dark"] .hs-card, html[data-scheme="dark"] .hs-contact, html[data-scheme="dark"] .hs-call { border-color: rgb(255 255 255 / 12%); background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .hs-tile.is-on { border-color: #2a6b49; background: #15281e; }
html[data-scheme="dark"] .hs-tile-icon, html[data-scheme="dark"] .hs-pay-steps i, html[data-scheme="dark"] .hs-filter { background: #26322c; color: #66d6a8; }
html[data-scheme="dark"] .hs-num { background: #111814; }
html[data-scheme="dark"] .hs-num b, html[data-scheme="dark"] .hs-contact h3, html[data-scheme="dark"] .hs-call { color: #eef6f1; }
html[data-scheme="dark"] .hs-step span, html[data-scheme="dark"] .hs-a, html[data-scheme="dark"] .hs-lead, html[data-scheme="dark"] .hs-contact p, html[data-scheme="dark"] .hs-trust, html[data-scheme="dark"] .hs-label, html[data-scheme="dark"] .hs-policies a, html[data-scheme="dark"] .hs-note { color: #a3ada6; }
html[data-scheme="dark"] .hs-q, html[data-scheme="dark"] .hs-a, html[data-scheme="dark"] .hs-trust { border-color: rgb(255 255 255 / 12%); }
html[data-scheme="dark"] .hs-step::before { background: #35433b; }
html[data-scheme="dark"] .hs-contact p.hs-online { background: #26322c; color: #eef6f1; }

/* Watch: the short how-to videos (several cards, one under another). */
.hs-watch { display: grid; gap: 0.55rem; }
.hs-video { margin-top: 0; padding: 0.7rem 0.8rem; gap: 0.75rem; }
.hs-play { width: 2.75rem; height: 2.75rem; }
.hs-video-text { display: grid; flex: 1; min-width: 0; gap: 0.1rem; }
.hs-video-text b { overflow-wrap: anywhere; font-size: 0.98rem; line-height: 1.25; }
.hs-video > svg { flex: none; color: #bcd9cd; }

/* Watch: a video plays in a popup over the page, with a Close button. */
button.hs-video { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
button.hs-video:focus-visible, .hs-player-close:focus-visible { outline: 3px solid rgb(240 178 74 / 70%); outline-offset: 2px; }
body.hs-player-open { overflow: hidden; }
dialog.hs-player { width: min(94vw, 30rem); max-width: 94vw; max-height: 96dvh; margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: #0b1f19; color: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / 55%); }
dialog.hs-player::backdrop { background: rgb(4 14 10 / 78%); }
.hs-player-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.7rem 0.6rem 1.1rem; }
.hs-player-head h3 { margin: 0; overflow: hidden; font-size: 1rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.hs-player-close { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 14%); color: #fff; cursor: pointer; }
@media (hover: hover) { .hs-player-close:hover { background: rgb(255 255 255 / 24%); } }
.hs-player-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.hs-player-stage.is-tall { width: auto; height: min(76dvh, 44rem); margin: 0 auto; aspect-ratio: 9 / 16; max-width: 100%; }
.hs-player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hs-player-note { display: grid; place-items: center; gap: 0.8rem; height: 100%; padding: 1.5rem; text-align: center; }
.hs-player-note p { margin: 0; color: #cfe3d9; }
.hs-player-caption { margin: 0; padding: 0.7rem 1.1rem 0.9rem; color: #bcd9cd; font-size: 0.85rem; }
@media (prefers-reduced-motion: no-preference) { dialog.hs-player[open] { animation: hs-player-in 0.22s ease-out; } }
@keyframes hs-player-in { from { opacity: 0; transform: translateY(0.75rem) scale(0.98); } }

/* "Watch how to ..." buttons on the pages staff chose: a quiet card with a gold play button, opening the video popup. */
.watch-how { display: grid; gap: 0.5rem; margin: 0.75rem 0 0.9rem; }
.watch-how[hidden] { display: none; }
.watch-how-btn { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 3.4rem; padding: 0.5rem 0.8rem 0.5rem 0.55rem; border: 1px solid #dbe6df; border-radius: 16px; background: #f3faf6; color: var(--green-deep, #073d31); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .watch-how-btn:hover { background: #e8f5ee; } }
.watch-how-btn:focus-visible { outline: 3px solid rgb(8 121 87 / 40%); outline-offset: 2px; }
.watch-how-play { display: grid; flex: none; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #f0b24a; color: #2b1c03; }
.watch-how-text { display: grid; min-width: 0; gap: 0.05rem; }
.watch-how-text b { font-size: 0.95rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.watch-how-text small { color: #5f6b65; font-size: 0.78rem; font-weight: 600; }
html[data-scheme="dark"] .watch-how-btn { border-color: rgb(255 255 255 / 14%); background: #15281e; color: #eef6f1; }
@media (hover: hover) { html[data-scheme="dark"] .watch-how-btn:hover { background: #1b3226; } }
html[data-scheme="dark"] .watch-how-text small { color: #a3ada6; }

/* ---- China shipment: the customer's line and popup, and the staff panel ---- */
.my-order-china { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 3.3rem; padding: 0.5rem 0.8rem 0.5rem 0.55rem; border: 0; border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.my-order-china[hidden] { display: none; }
.my-order-china-icon { display: grid; flex: none; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: #e3f0e8; color: #167144; }
.my-order-china-text { display: grid; flex: 1; min-width: 0; gap: 0.05rem; }
.my-order-china-text small { color: #6b7570; font-size: 0.74rem; }
.my-order-china-text b { color: #173d31; font-size: 0.92rem; line-height: 1.25; }
.my-order-china > svg { flex: none; color: #8a968f; }
.cs-month { display: flex; align-items: center; gap: 0.7rem; width: 100%; margin: 0.6rem 0; padding: 0.7rem 0.8rem; border: 1px solid #dbe6df; border-radius: 16px; background: #f3faf6; color: var(--green-deep, #073d31); font: inherit; text-align: left; cursor: pointer; }
.cs-month-icon { display: grid; flex: none; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: #167144; color: #fff; }
.cs-month-text { display: grid; flex: 1; min-width: 0; }
.cs-month-text b { font-size: 0.95rem; }
.cs-month-text small { color: #5f6b65; font-size: 0.78rem; font-weight: 600; }
.cs-month > svg { flex: none; color: #8a968f; }
body.cs-open { overflow: hidden; }
dialog.cs-sheet { width: min(100%, 30rem); max-width: 100%; max-height: 90dvh; margin: auto 0 0; padding: 0; overflow: hidden; border: 0; border-radius: 24px 24px 0 0; background: #fff; color: #173d31; display: flex; flex-direction: column; }
@media (min-width: 560px) { dialog.cs-sheet { margin: auto; border-radius: 22px; } }
dialog.cs-sheet::backdrop { background: rgb(4 14 10 / 55%); }
.cs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 1rem 0.8rem 0.6rem 1.2rem; }
.cs-head small { color: #6b7570; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.cs-head h3 { margin: 0.1rem 0 0; font-size: 1.2rem; line-height: 1.25; }
.cs-close { display: grid; flex: none; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: #eef1ef; color: #173d31; cursor: pointer; }
.cs-body { overflow-y: auto; padding: 0.2rem 1.2rem 1.3rem; overscroll-behavior: contain; }
.cs-loading, .cs-note, .cs-error { margin: 0.6rem 0 0; color: #5f6b65; font-size: 0.86rem; line-height: 1.5; }
.cs-error { color: #a13030; }
.cs-steps { display: grid; gap: 0; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.cs-step { position: relative; display: flex; align-items: flex-start; gap: 0.8rem; padding: 0 0 1rem; }
.cs-step:last-child { padding-bottom: 0; }
.cs-step::before { content: ""; position: absolute; top: 2.1rem; bottom: 0.1rem; left: 1rem; width: 2px; background: #dbe3de; }
.cs-step:last-child::before { display: none; }
.cs-step.is-done::before { background: #167144; }
.cs-mark { position: relative; z-index: 1; display: grid; flex: none; place-items: center; width: 2.1rem; height: 2.1rem; border: 2px solid #cfd8d3; border-radius: 50%; background: #fff; color: #a9b4ad; }
.cs-mark svg { width: 1rem; height: 1rem; }
.cs-step.is-done .cs-mark { color: #fff; }
.cs-step.is-current .cs-mark { color: #b27a12; }
.cs-step.is-done .cs-mark { border-color: #167144; background: #167144; }
.cs-step.is-current .cs-mark { border-color: #e0a13a; box-shadow: 0 0 0 4px rgb(224 161 58 / 22%); }
.cs-step-text { display: grid; gap: 0.05rem; padding-top: 0.15rem; }
.cs-step-text b { font-size: 0.95rem; font-weight: 650; color: #8a968f; }
.cs-step.is-done .cs-step-text b, .cs-step.is-current .cs-step-text b { color: #173d31; }
.cs-step-text small { color: #6b7570; font-size: 0.78rem; font-weight: 600; }
.cs-label { margin: 1.3rem 0 0.4rem; color: #5f6b65; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.cs-log { display: grid; gap: 0; padding: 0.2rem 0.85rem 0.5rem; border: 1px solid #e3e8e5; border-radius: 14px; background: #f8faf8; }
.cs-day { margin: 0.7rem 0 0.2rem; color: #173d31; font-size: 0.86rem; font-weight: 800; }
.cs-update { padding: 0.4rem 0 0.4rem 0.8rem; border-left: 2px solid #d9e3dd; }
.cs-update-meta { display: flex; flex-wrap: wrap; gap: 0.1rem 0.5rem; color: #8a968f; font-size: 0.76rem; font-weight: 700; }
.cs-time { font-variant-numeric: tabular-nums; }
.cs-place::before { content: "["; } .cs-place::after { content: "]"; }
.cs-update p { margin: 0.05rem 0 0; color: #7a867f; font-size: 0.88rem; line-height: 1.4; }
.cs-update.is-newest { border-left-color: #167144; }
.cs-update.is-newest p, .cs-update.is-newest .cs-update-meta { color: #173d31; }
.cs-update.is-newest p { font-weight: 700; }
.cs-products { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.cs-product { display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #e3e8e5; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cs-product-text { display: grid; flex: 1; min-width: 0; gap: 0.05rem; }
.cs-product-text b { font-size: 0.95rem; }
.cs-product-text small { color: #5f6b65; font-size: 0.8rem; }
.cs-product > svg { flex: none; color: #8a968f; }
html[data-scheme="dark"] dialog.cs-sheet { background: #18201c; color: #eee9dc; }
html[data-scheme="dark"] .cs-close { background: #26322c; color: #eee9dc; }
html[data-scheme="dark"] .cs-step-text b { color: #6f7b74; }
html[data-scheme="dark"] .cs-step.is-done .cs-step-text b, html[data-scheme="dark"] .cs-step.is-current .cs-step-text b, html[data-scheme="dark"] .cs-product-text b { color: #eef6f1; }
html[data-scheme="dark"] .cs-mark { background: #18201c; border-color: #3a4a41; }
html[data-scheme="dark"] .cs-step.is-done .cs-mark { background: #2a6b49; border-color: #2a6b49; }
html[data-scheme="dark"] .cs-log, html[data-scheme="dark"] .cs-product { border-color: rgb(255 255 255 / 12%); background: #18201c; }
html[data-scheme="dark"] .cs-day, html[data-scheme="dark"] .cs-update.is-newest p, html[data-scheme="dark"] .cs-update.is-newest .cs-update-meta { color: #eef6f1; }
html[data-scheme="dark"] .cs-update { border-left-color: #35433b; }
html[data-scheme="dark"] .cs-update p, html[data-scheme="dark"] .cs-update-meta { color: #8f9a93; }
html[data-scheme="dark"] .cs-month { border-color: rgb(255 255 255 / 14%); background: #15281e; color: #eef6f1; }
html[data-scheme="dark"] .my-order-china { background: #18201c; }
html[data-scheme="dark"] .my-order-china-text b { color: #eef6f1; }
/* Operations Admin: the China shipment tab of a product's month */
.cn { display: grid; gap: 0.9rem; padding: 0.4rem 0 0.8rem; }
.cn-intro, .cn-help { margin: 0; color: #5f6b65; font-size: 0.86rem; line-height: 1.5; }
.cn-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.7rem; padding: 0.9rem; border: 1px solid #e3e8e5; border-radius: 14px; background: #fff; }
.cn-form h4, .cn-list-title { margin: 0; grid-column: 1 / -1; font-size: 0.95rem; }
.cn-field { display: grid; gap: 0.25rem; }
.cn-field > span { color: #5a655f; font-size: 0.76rem; font-weight: 700; }
.cn-field input, .cn-field select, .cn-field textarea, .cn-paste-box, .cn-preview-note { width: 100%; box-sizing: border-box; min-height: 2.5rem; padding: 0.4rem 0.6rem; border: 1px solid #d5ddd8; border-radius: 10px; font: inherit; font-size: 0.9rem; }
.cn-wide, .cn-tell { grid-column: 1 / -1; }
.cn-tell { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 10px; background: #f6f8f6; cursor: pointer; }
.cn-tell input { margin-top: 0.2rem; }
.cn-tell b { display: block; font-size: 0.88rem; }
.cn-tell small { color: #5f6b65; font-size: 0.78rem; }
.cn-form .btn { grid-column: 1 / -1; justify-self: start; }
.cn-paste { padding: 0.7rem 0.9rem; border: 1px dashed #c9d3ce; border-radius: 14px; }
.cn-paste > summary { cursor: pointer; font-weight: 700; }
.cn-paste > * + * { margin-top: 0.6rem; }
.cn-preview { display: grid; gap: 0.4rem; }
.cn-preview-row { display: grid; grid-template-columns: auto minmax(0, 11rem) 1fr; align-items: center; gap: 0.5rem; }
.cn-time { color: #5a655f; font-size: 0.78rem; font-weight: 600; }
.cn-status { min-height: 1.2rem; margin: 0; color: #167144; font-size: 0.86rem; font-weight: 600; }
.cn-list { display: grid; gap: 0.5rem; }
.cn-row { display: grid; gap: 0.15rem; padding: 0.7rem 0.85rem; border: 1px solid #e3e8e5; border-radius: 12px; background: #fff; }
.cn-row-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem; }
.cn-note { margin: 0; font-size: 0.88rem; line-height: 1.4; }
.cn-delete { justify-self: start; padding: 0; border: 0; background: none; color: #a13030; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.cn-empty, .cn-error { margin: 0; padding: 1rem; border: 1px dashed #c9d3ce; border-radius: 12px; color: #5f6b65; font-size: 0.86rem; text-align: center; }
@media (max-width: 560px) { .cn-preview-row { grid-template-columns: auto 1fr; } .cn-preview-note { grid-column: 1 / -1; } }

/* China shipment: a pasted line arranged for checking (time, stage, place, sentence), and an update opened for correction. */
.cn-preview-row { display: grid; grid-template-columns: 1fr; gap: 0.35rem; padding: 0.6rem 0.7rem; border: 1px solid #e3e8e5; border-radius: 12px; background: #fff; }
.cn-preview-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.cn-preview-top select, .cn-preview-place { min-height: 2.25rem; padding: 0.3rem 0.5rem; border: 1px solid #d5ddd8; border-radius: 10px; font: inherit; font-size: 0.85rem; }
.cn-preview-place { flex: 1 1 8rem; min-width: 0; }
.cn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.cn-edit { padding: 0; border: 0; background: none; color: #1f6b43; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.cn-edit-form { gap: 0.5rem; border-color: #b9d8c6; }
@media (prefers-color-scheme: dark) {
  .cn-preview-row, .cn-edit-form { background: #1b211e; border-color: #2f3a34; }
  .cn-preview-top select, .cn-preview-place { background: #151a17; color: inherit; border-color: #34413a; }
  .cn-edit { color: #7fd0a0; }
}

/* China shipment: a problem (rejected by the warehouse, returned to the supplier) stands out above the steps and on the order page line. */
.cs-issue { display: grid; gap: 0.25rem; margin-bottom: 1rem; padding: 0.8rem 0.9rem; border: 1px solid #e3b4b4; border-left: 4px solid #c0392b; border-radius: 12px; background: #fdf2f1; color: #7a1f17; }
.cs-issue-head { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.cs-issue small { color: #8a4a44; }
.cs-issue p { margin: 0.2rem 0 0; font-size: 0.92rem; }
.cs-issue-next { font-weight: 700; }
.my-order-china.is-issue { background: #fdf2f1; }
.my-order-china.is-issue .my-order-china-icon { color: #c0392b; }
@media (prefers-color-scheme: dark) {
  .cs-issue { background: #2a1917; border-color: #6b3530; border-left-color: #e0594a; color: #f3c9c4; }
  .cs-issue small { color: #d9a39d; }
  .my-order-china.is-issue { background: #2a1917; }
  .my-order-china.is-issue .my-order-china-icon { color: #e0594a; }
}

/* China shipment: a product's own page (it slides up from the bottom, taller than the list), the list with product pictures, and the package pictures. */
dialog.cs-product-page { max-height: 94dvh; min-height: min(70dvh, 34rem); animation: cs-rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes cs-rise { from { transform: translateY(2.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.cs-product-page { animation: none; } }
.cs-head-text { flex: 1; min-width: 0; }
.cs-head-text h3 { overflow-wrap: anywhere; }
.cs-product-page .cs-head { align-items: center; padding-bottom: 0.8rem; }
.cs-hero, .cs-thumb { display: grid; flex: none; place-items: center; overflow: hidden; border-radius: 14px; background: #eef3f0; color: #2d7a52; }
.cs-hero { width: 3.8rem; height: 3.8rem; }
.cs-thumb { width: 3.2rem; height: 3.2rem; border-radius: 12px; }
.cs-hero img, .cs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-photos { margin-bottom: 0.6rem; }
.cs-photo-strip { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.1rem 0 0.5rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.cs-photo-tile { position: relative; display: grid; flex: none; width: 8.2rem; gap: 0.25rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; scroll-snap-align: start; }
.cs-photo-tile img, .cs-photo-wait { display: grid; place-items: center; width: 8.2rem; height: 8.2rem; border-radius: 14px; object-fit: cover; background: #eef3f0; color: #6b7570; box-shadow: 0 1px 4px rgb(23 61 49 / 18%); }
.cs-photo-cap { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #5f6b65; font-size: 0.76rem; line-height: 1.3; }
dialog.cs-photo { width: min(96vw, 40rem); max-height: 94dvh; margin: auto; padding: 0.6rem; overflow: hidden; border: 0; border-radius: 18px; background: #0d1512; color: #fff; }
dialog.cs-photo::backdrop { background: rgb(0 0 0 / 78%); }
dialog.cs-photo img { display: block; width: 100%; max-height: 74dvh; object-fit: contain; border-radius: 12px; }
.cs-photo-close { position: absolute; top: 0.8rem; right: 0.8rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgb(0 0 0 / 55%); color: #fff; cursor: pointer; }
.cs-photo-caption { display: grid; gap: 0.1rem; margin: 0.6rem 0.4rem 0.3rem; }
.cs-photo-caption small { color: #b7c4bd; }
@media (prefers-color-scheme: dark) {
  .cs-hero, .cs-thumb, .cs-photo-tile img, .cs-photo-wait { background: #1f2a25; color: #9fd8b8; }
  .cs-photo-cap { color: #b7c4bd; }
}

/* Staff: package pictures of a product's China shipment. */
.cn-photos { display: grid; gap: 0.6rem; padding: 0.9rem; border: 1px solid #e3e8e5; border-radius: 14px; background: #fff; }
.cn-photos h4 { margin: 0; }
.cn-photo-form { display: grid; gap: 0.6rem; }
.cn-photo-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cn-photo { display: grid; gap: 0.25rem; width: 7.2rem; }
.cn-photo img { display: block; width: 7.2rem; height: 7.2rem; border-radius: 12px; object-fit: cover; background: #eef3f0; }
.cn-photo small { color: #5f6b65; font-size: 0.75rem; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { .cn-photos { background: #1b211e; border-color: #2f3a34; } .cn-photo img { background: #1f2a25; } .cn-photo small { color: #b7c4bd; } }

/* Supplier showcase: a slideshow of suppliers and their products right after the welcome banner (Control Studio > PreOrder home > Supplier showcase). */
.supplier-showcase { margin: 1.1rem 0 1.4rem; }
.showcase-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; outline-offset: 3px; -webkit-overflow-scrolling: touch; }
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-slide { display: grid; flex: 0 0 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.2rem; align-items: center; min-height: 19rem; padding: 1.4rem; overflow: hidden; border-radius: 22px; background: radial-gradient(circle at 85% 15%, rgb(255 255 255 / 16%), transparent 45%), linear-gradient(135deg, #0b4a38, #087957 60%, #16a37a); color: #fff; scroll-snap-align: start; }
.showcase-copy { display: grid; justify-items: start; gap: 0.3rem; min-width: 0; }
.showcase-supplier { margin: 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.85; }
.showcase-title { margin: 0; text-transform: none; letter-spacing: normal; font-size: clamp(1.3rem, 4.8vw, 1.9rem); line-height: 1.15; overflow-wrap: anywhere; }
.showcase-text { margin: 0.2rem 0 0.6rem; font-size: 0.95rem; line-height: 1.4; opacity: 0.93; }
.showcase-visit { min-height: 2.75rem; padding: 0.55rem 1.1rem; border: 0; border-radius: 999px; background: #fff; color: #0b5a43; font: inherit; font-weight: 800; cursor: pointer; }
.showcase-products { min-width: 0; }
.showcase-product { display: grid; gap: 0.2rem; width: 100%; padding: 0.4rem; border: 0; border-radius: 14px; background: #fff; color: #173d31; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 6px 16px rgb(0 0 0 / 22%); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.showcase-picture { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #eef3f0; }
.showcase-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.15em; font-size: 0.78rem; font-weight: 700; line-height: 1.25; }
.showcase-price { color: #087957; font-size: 0.82rem; font-weight: 800; }
.showcase-products.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.showcase-products.is-cascade { --card: 8rem; position: relative; height: 14.4rem; }
.is-cascade .showcase-product { position: absolute; top: calc(var(--pos) * 0.9rem); left: calc((100% - var(--card)) * var(--pos)); width: var(--card); z-index: calc(var(--i) + 1); transform: rotate(calc((var(--pos) - 0.5) * 12deg)); }
.is-cascade .showcase-product:focus-visible { z-index: 20; transform: translateY(-8px) rotate(0deg); }
@media (hover: hover) { .is-cascade .showcase-product:hover { z-index: 20; transform: translateY(-8px) rotate(0deg); } }
.is-grid .showcase-product:focus-visible { transform: translateY(-3px); }
@media (hover: hover) { .is-grid .showcase-product:hover { transform: translateY(-3px); } }
.showcase-controls { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin-top: 0.7rem; }
.showcase-controls[hidden] { display: none; }
.showcase-previous, .showcase-next { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #d5ddd8; border-radius: 50%; background: #fff; color: #173d31; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.showcase-dots { display: flex; gap: 0.5rem; }
.showcase-dot { width: 0.7rem; height: 0.7rem; padding: 0; border: 0; border-radius: 999px; background: #c5d0ca; cursor: pointer; box-shadow: 0 0 0 0.45rem transparent; transition: width 0.2s ease, background 0.2s ease; }
.showcase-dot.is-current { width: 1.6rem; background: #087957; }
@media (max-width: 640px) {
  .showcase-slide { grid-template-columns: 1fr; gap: 0.9rem; min-height: 0; padding: 1.1rem; }
  .showcase-products.is-cascade { --card: 6.8rem; height: 12.4rem; }
  .showcase-products.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
  .showcase-name { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) { .showcase-product, .showcase-dot { transition: none; } }
@media (prefers-color-scheme: dark) {
  .showcase-previous, .showcase-next { background: #1b211e; border-color: #34413a; color: #e8f2ec; }
  .showcase-dot { background: #3b4a42; }
  .showcase-dot.is-current { background: #3fc796; }
}

/* Supplier showcase, automatic mode: a picture of the supplier's world (a warehouse, a factory) behind the words. */
.showcase-slide { position: relative; isolation: isolate; }
.showcase-slide > .showcase-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.showcase-slide.has-background::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(4 40 30 / 90%) 0%, rgb(4 40 30 / 68%) 55%, rgb(4 40 30 / 38%) 100%); }
@media (max-width: 640px) { .showcase-slide.has-background::before { background: linear-gradient(180deg, rgb(4 40 30 / 82%) 0%, rgb(4 40 30 / 62%) 100%); } }

/* Supplier showcase on phones: a slim banner about 4 cm tall (the words on the left, a few small product pictures on the right). */
@media (max-width: 640px) {
  .showcase-slide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.55rem; align-items: center; height: 4cm; min-height: 0; padding: 0.6rem 0.75rem; }
  .showcase-copy { gap: 0.15rem; }
  .showcase-supplier { overflow: hidden; font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .showcase-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 0.98rem; line-height: 1.15; }
  .showcase-text { display: none; }
  .showcase-visit { min-height: 2.1rem; margin-top: 0.15rem; padding: 0.25rem 0.8rem; font-size: 0.74rem; }
  .showcase-name { display: none; }
  .showcase-product { padding: 0.25rem; border-radius: 10px; gap: 0.1rem; }
  .showcase-picture { border-radius: 8px; }
  .showcase-price { font-size: 0.68rem; line-height: 1.1; }
  .showcase-products.is-cascade { --card: 4.3rem; height: 100%; }
  .is-cascade .showcase-product { top: calc(var(--pos) * 0.5rem); }
  .showcase-products.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem; align-content: center; height: 100%; }
  .is-grid .showcase-product:nth-child(n + 5) { display: none; }
  .is-grid .showcase-price { display: none; }
}
@media (max-width: 640px) {
  .is-cascade .showcase-price { display: none; }
  .showcase-products.is-cascade { --card: 4.4rem; }
  .is-cascade .showcase-product { top: calc(50% - (var(--card) + 0.5rem) / 2 + (var(--pos) - 0.5) * 0.5rem); }
  .showcase-products.is-grid { grid-template-columns: repeat(2, 3.2rem); justify-content: center; gap: 0.25rem; }
}

/* Supplier showcase: the arrows and dots sit inside the banner (no strip under it), and Studio sets how tall the banner is. */
.supplier-showcase .showcase-frame { position: relative; }
.supplier-showcase .showcase-controls { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
.supplier-showcase .showcase-controls[hidden] { display: none; }
.showcase-previous, .showcase-next { position: absolute; top: 50%; width: 2.4rem; height: 2.4rem; transform: translateY(-50%); border: 0; background: rgb(0 0 0 / 38%); color: #fff; pointer-events: auto; }
.showcase-previous { left: 0.4rem; }
.showcase-next { right: 0.4rem; }
.showcase-dots { position: absolute; left: 50%; bottom: 0.55rem; transform: translateX(-50%); display: flex; gap: 0.4rem; pointer-events: auto; }
.showcase-dot { width: 0.5rem; height: 0.5rem; background: rgb(255 255 255 / 55%); box-shadow: 0 0 0 0.3rem transparent; }
.showcase-dot.is-current { width: 1.2rem; background: #fff; }
.supplier-showcase .available-featured-heading[hidden] { display: none; }
.showcase-slide { min-height: var(--sc-desk, 8cm); padding-inline: 3.4rem; }
.showcase-products.is-cascade { --card: calc(var(--sc-desk, 8cm) * 0.42); height: calc(var(--sc-desk, 8cm) - 3rem); }
@media (max-width: 640px) {
  .showcase-slide { height: var(--sc-phone, 4cm); min-height: 0; padding-inline: 1.8rem; }
  .showcase-previous, .showcase-next { width: 1.7rem; height: 1.7rem; font-size: 1.05rem; }
  .showcase-previous { left: 0.2rem; }
  .showcase-next { right: 0.2rem; }
  .showcase-dots { bottom: 0.3rem; gap: 0.3rem; }
  .showcase-products.is-cascade { --card: calc(var(--sc-phone, 4cm) * 0.46); height: 100%; }
  .showcase-products.is-grid { grid-template-columns: repeat(2, calc(var(--sc-phone, 4cm) * 0.34)); }
}

/* Supplier showcase: a picture banner is finished artwork shown edge to edge, with a small heading and description at the bottom. */
.showcase-slide.is-picture { display: block; padding: 0; background: #0b4a38; }
.showcase-slide.is-picture picture { position: absolute; inset: 0; z-index: -2; display: block; }
.showcase-slide.is-picture .showcase-bg { position: static; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* No shade over the picture: it is shown exactly as designed. A small heading or description takes its colour from the page's text colour (Studio: dark green or white). */
.showcase-slide.is-picture .showcase-caption { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 55%); }
.showcase-slide.is-picture.tone-dark .showcase-caption { color: #0b3d2e; text-shadow: 0 1px 2px rgb(255 255 255 / 75%); }
.showcase-caption { position: absolute; left: 3.4rem; right: 3.4rem; bottom: 1.1rem; display: grid; gap: 0.1rem; pointer-events: none; }
.showcase-caption-title { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.2; text-transform: none; letter-spacing: normal; }
.showcase-caption-text { margin: 0; max-width: 40rem; font-size: 0.86rem; line-height: 1.35; opacity: 0.95; }
.showcase-picture-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.showcase-picture-link:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.supplier-showcase .showcase-controls { z-index: 2; }
@media (max-width: 640px) {
  .showcase-slide.is-picture { padding: 0; }
  .showcase-caption { left: 2rem; right: 2rem; bottom: 1.2rem; }
  .showcase-caption-title { font-size: 0.86rem; }
  .showcase-caption-text { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.7rem; }
}

/* The banners (one slideshow of picture banners and supplier showcase slides) show on the PreOrder home only; the welcome banner is for announcements. */
.home-banners[hidden] { display: none !important; }
body:not([data-welcome-mode="always"]) .preorder-welcome-hero[data-announcement-empty] { display: none !important; }
.showcase-grid { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 1), minmax(0, 1fr)); }
.showcase-cell { padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.showcase-cell.is-empty { pointer-events: none; }
.showcase-cell:focus-visible { background: rgb(255 255 255 / 14%); outline: 2px solid #fff; outline-offset: -2px; }
@media (hover: hover) { .showcase-cell:hover { background: rgb(255 255 255 / 14%); outline: 2px solid #fff; outline-offset: -2px; } }

a.showcase-cell { display: block; }

/* The "Jump to products" link under the banners, and the sticky search bar with its search panel (PreOrder home). */
.jump-to-products-wrap { margin: 0.3rem 0 0.6rem; text-align: center; }
.jump-to-products-wrap[hidden] { display: none; }
.jump-to-products { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.5rem; padding: 0.35rem 1rem; border-radius: 999px; background: #e9f3ee; color: #0b5a43; font-weight: 800; font-size: 0.9rem; text-decoration: none; }
.jump-to-products:focus-visible { background: #d9ebe2; }
@media (hover: hover) { .jump-to-products:hover { background: #d9ebe2; } }
.sticky-search { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: calc(0.45rem + env(safe-area-inset-top)) 0.75rem 0.45rem; background: linear-gradient(180deg, rgb(7 61 49 / 96%), rgb(7 61 49 / 88%)); box-shadow: 0 6px 14px -8px rgb(0 0 0 / 55%); transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform 0.22s ease, opacity 0.22s ease; }
.sticky-search.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.sticky-search-button { display: flex; align-items: center; gap: 0.55rem; width: min(100%, 34rem); min-height: 2.75rem; padding: 0.4rem 1rem; border: 0; border-radius: 999px; background: #fff; color: #5f6b65; font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer; }
.sticky-search-button svg { flex: none; color: #0b5a43; }
dialog.sticky-search-panel { position: fixed; top: var(--ssp-top, 0px); bottom: auto; width: min(100%, 34rem); max-width: 100%; height: auto; max-height: min(var(--ssp-max, 100dvh), 40rem); min-height: min(14rem, var(--ssp-max, 14rem)); margin: 0 auto auto; padding: 0; border: 0; border-radius: 0 0 22px 22px; background: #fff; color: #173d31; flex-direction: column; overflow: hidden; }
/* Only an open panel is shown: a closed one must leave the screen completely (a display set on the dialog itself would keep it there). */
dialog.sticky-search-panel[open] { display: flex; }
dialog.sticky-search-panel:not([open]) { display: none; }
dialog.sticky-search-panel::backdrop { background: rgb(4 14 10 / 55%); }
.ssp-head { display: flex; align-items: center; gap: 0.5rem; padding: calc(0.6rem + env(safe-area-inset-top)) 0.75rem 0.6rem; border-bottom: 1px solid #e3e8e5; }
.ssp-field { display: flex; flex: 1; align-items: center; gap: 0.5rem; min-width: 0; padding: 0 0.8rem; border: 1px solid #cfd8d3; border-radius: 999px; background: #f6f8f7; color: #0b5a43; }
.ssp-field input { flex: 1; min-width: 0; min-height: 2.75rem; border: 0; background: transparent; color: #173d31; font: inherit; font-size: 1rem; outline: none; }
.ssp-close { padding: 0.5rem 0.4rem; border: 0; background: none; color: #0b5a43; font: inherit; font-weight: 800; cursor: pointer; }
.ssp-body { flex: 1; overflow-y: auto; padding: 0.4rem 0.9rem 1.1rem; overscroll-behavior: contain; }
.ssp-title { display: flex; align-items: center; justify-content: space-between; margin: 0.9rem 0 0.4rem; color: #6b7570; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ssp-clear { border: 0; background: none; color: #0b5a43; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.ssp-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ssp-chip { min-height: 2.4rem; padding: 0.3rem 0.9rem; border: 1px solid #cfd8d3; border-radius: 999px; background: #fff; color: #173d31; font: inherit; font-size: 0.88rem; cursor: pointer; }
.ssp-chip.is-category { background: #e9f3ee; border-color: #cfe3d8; font-weight: 700; }
.ssp-results { display: grid; gap: 0.2rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.ssp-result { display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.4rem; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ssp-result:focus-visible { background: #f1f6f3; }
@media (hover: hover) { .ssp-result:hover { background: #f1f6f3; } }
.ssp-thumb { display: grid; flex: none; place-items: center; width: 3rem; height: 3rem; overflow: hidden; border-radius: 10px; background: #eef3f0; }
.ssp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ssp-result-text { display: grid; min-width: 0; gap: 0.05rem; }
.ssp-result-text b { overflow: hidden; font-size: 0.95rem; text-overflow: ellipsis; white-space: nowrap; }
.ssp-result-text small { color: #5f6b65; font-size: 0.8rem; }
.ssp-all { width: 100%; min-height: 2.75rem; margin-top: 0.6rem; border: 0; border-radius: 12px; background: #0b5a43; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ssp-empty { margin: 0.8rem 0 0.2rem; color: #5f6b65; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .sticky-search { transition: none; } }
@media (prefers-color-scheme: dark) {
  .jump-to-products { background: #1f2a25; color: #9fd8b8; }
  dialog.sticky-search-panel { background: #151a17; color: #e8f2ec; }
  .ssp-head { border-color: #2f3a34; }
  .ssp-field { background: #1b211e; border-color: #34413a; color: #9fd8b8; }
  .ssp-field input { color: #e8f2ec; }
  .ssp-chip { background: #1b211e; border-color: #34413a; color: #e8f2ec; }
  .ssp-chip.is-category { background: #1f2a25; }
  .ssp-result:focus-visible { background: #1f2a25; }
@media (hover: hover) { .ssp-result:hover { background: #1f2a25; } }
  .ssp-thumb { background: #1f2a25; }
}

/* The banners and the Jump to products link belong to the PreOrder home only: hidden on every other screen (My Orders, My Invoice, the account, the Ghana Shop...).
   This is stated here as well as in styles.css, so an older cached copy of one of the two files can never show them elsewhere. */
body:not([data-view="preorders"]) #preorder-banners,
body:not([data-view="preorders"]) .jump-to-products-wrap { display: none !important; }
.cn-together { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 0.5rem 0.75rem; margin: 0.6rem 0; }
.cn-together summary { cursor: pointer; font-weight: 600; }
.cn-together-line { display: flex; gap: 0.5rem; align-items: center; padding: 0.25rem 0; }
.cn-together-search { width: 100%; margin: 0.4rem 0; }
.cn-together-list { max-height: 14rem; overflow-y: auto; }
.cn-together-line[hidden] { display: none; }
.auth-forgot-pin { display: block; margin: 0 0 0.6rem auto; padding: 0.25rem 0; background: none; border: 0; color: var(--green, #0a6b4b); font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.new-pin-dialog { width: min(92vw, 26rem); padding: 1.25rem; border: 0; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
.new-pin-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.new-pin-dialog h2 { margin: 0 0 0.5rem; }
.new-pin-dialog label { display: block; margin: 0.8rem 0 0.25rem; font-weight: 600; }
.new-pin-dialog input { width: 100%; font-size: 1.4rem; letter-spacing: 0.4em; text-align: center; padding: 0.6rem; }
.new-pin-dialog .btn { width: 100%; margin-top: 1rem; }
.new-pin-later { display: block; margin: 0.8rem auto 0; background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.pin-reset-dialog { width: min(94vw, 34rem); }
.pin-reset-pin { margin: 0.2rem 0 0.6rem; font-size: 2rem; font-weight: 800; letter-spacing: 0.3em; text-align: center; }
.pin-reset-message { width: 100%; box-sizing: border-box; font: inherit; line-height: 1.45; padding: 0.7rem; border: 1px solid var(--line, #ddd); border-radius: 10px; resize: vertical; }
.pin-eye-wrap { position: relative; display: block; }
.pin-eye-wrap input { padding-right: 2.9rem; }
.pin-eye { position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; background: none; border: 0; color: inherit; opacity: 0.7; cursor: pointer; }
.pin-eye[aria-pressed="true"] { opacity: 1; }
.pin-eye svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin-paste-chip { display: block; margin: 0 0 0.6rem; padding: 0.4rem 0.9rem; border: 1px solid currentColor; border-radius: 999px; background: none; color: var(--green, #0a6b4b); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; animation: pin-chip-in 0.25s ease-out; }
@keyframes pin-chip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pin-paste-chip { animation: none; } }
/* Show/hide PIN eye: open eye while the PIN is hidden, a slash across it while the PIN is showing. */
.eye-slash { display: none; }
button[aria-pressed="true"] .eye-slash { display: block; }
/* A tap answers at once on a phone: no waiting for a possible double-tap zoom, and hover effects only on devices that really hover (see the
   @media (hover: hover) wrappers around every :hover rule). */
a, button, summary, label, select, input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"], [role="button"], [role="tab"] { touch-action: manipulation; }
.admin-option-rename { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 0.5rem 0.75rem; margin: 0.6rem 0; }
.admin-option-rename summary { cursor: pointer; font-weight: 600; }
.admin-option-rename-list { display: grid; gap: 0.5rem; margin: 0.5rem 0; }
.admin-option-rename-row { display: grid; gap: 0.15rem; }
.admin-option-rename-row span { font-size: 0.85rem; opacity: 0.75; }
.admin-option-rename-row input { width: 100%; }
/* A product's Pictures tab: the main picture first, a card for each picture, one place to add. */
.admin-pictures-header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.25rem; }
.admin-pictures-header h3 { margin: 0; }
.admin-pictures-count { font-size: 0.85rem; opacity: 0.7; }
.admin-pictures-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.75rem; margin: 0.75rem 0; }
.admin-picture-card { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; padding: 0.5rem; border: 1px solid var(--line, #dde5e0); border-radius: 12px; background: var(--surface, #fff); }
.admin-picture-card.is-main { border: 2px solid var(--green, #0a6b4b); }
.admin-picture-badge { align-self: flex-start; padding: 0.1rem 0.55rem; border-radius: 999px; background: rgb(0 0 0 / 7%); font-size: 0.75rem; font-weight: 700; }
.is-main .admin-picture-badge { background: var(--green, #0a6b4b); color: #fff; }
.admin-picture-card .admin-picture-preview { width: 100%; height: 8rem; object-fit: cover; border-radius: 8px; border: 0; background: rgb(0 0 0 / 4%); }
.admin-picture-card small { opacity: 0.7; }
.admin-picture-actions { display: grid; gap: 0.35rem; }
.admin-picture-actions .btn { width: 100%; padding: 0.4rem 0.5rem; font-size: 0.85rem; }
.admin-picture-add { align-items: center; justify-content: center; text-align: center; min-height: 11rem; border-style: dashed; }
.admin-picture-add .btn { width: auto; }
.admin-pictures-message { min-height: 1.2rem; }
.admin-pictures-link { margin: 0.75rem 0; border: 1px solid var(--line, #dde5e0); border-radius: 12px; padding: 0.5rem 0.75rem; }
.admin-pictures-link summary { cursor: pointer; font-weight: 600; }
.admin-pictures-link select, .admin-pictures-link input { width: 100%; margin-top: 0.5rem; }
.admin-option-rename h5 { margin: 0.9rem 0 0.2rem; font-size: 0.95rem; }
.admin-option-rename-new-option { display: grid; gap: 0.5rem; padding: 0.6rem; border: 1px dashed var(--line, #dde5e0); border-radius: 10px; }
/* An order that could not be bought or was cancelled: its journey stops where buying would have started. */
.order-timeline-step.is-issue .order-timeline-state { color: #b3261e; font-weight: 700; }
.my-order-journey-dialog .order-timeline-step.is-issue::before { background: #b3261e; color: #fff; }
.my-order-progress-bar i.is-issue { background: #b3261e; }
/* While the search panel is open the page behind it does not scroll, so a phone keeps the panel where it is when the keyboard opens. */
html:has(dialog.sticky-search-panel[open]) { overflow: hidden; overscroll-behavior: none; }
