/* /compare — the redesign (WEB TASK 20, palette A, app integration-2 b94d037 src/theme.ts): the app's screens on phones
   (≤ 30rem, body.m-on) and the same screens under a sticky header with the cart beside them on wider screens
   (body.d-on). 1 pt = 1 CSS px. */

body.m-on > .skip, body.m-on .site-header, body.m-on .site-footer, body.m-on main > .cmp, body.m-on .bar, body.m-on .app-band,
body.d-on .site-header, body.d-on .site-footer, body.d-on main > .cmp, body.d-on .bar, body.d-on .app-band { display: none !important; }
body.m-on, body.d-on { padding-bottom: 0 !important; background: #F7F9FC; }

.m-root, body .sheet, #personal, .p-alert-wrap {
  /* theme.ts colors (palette A) */
  --primary: #1467F5; --primaryDark: #0F55D0; --primarySoft: #E3EDFE; --primaryTint: #F0F5FF;
  --accent: #168540; --accentStrong: #168540; --accentSoft: #E4F4EA; --mint: #CFE0FC; --badge: #D92D20;
  --background: #F7F9FC; --surface: #FFFFFF; --surfaceMuted: #F2F4F7; --text: #111827; --textMuted: #5F6B76; --textFaint: #66717A;
  --border: #E5E9EF; --disabled: #C9CED6; --danger: #B3261E; --dangerSoft: #FBEAE8; --promo: #B42318; --warning: #8A5A00;
  --warningSoft: #FFF3D9; --white: #FFFFFF; --oldBg: #EEF1F5; --tile: #F2F4F7; --darkTile: #1F2A26;
  --line-strong: #E5E9EF; --blue-soft: #E3EDFE;
  /* cardShadow */
  --card: 0 3px 10px rgb(17 24 39 / .07);
  --shadow: 0 2px 8px rgb(17 24 39 / .06);
}
.m-root {
  --tabbar: 56px;
  color-scheme: light;
  position: relative; min-height: 100dvh; background: var(--background); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "SF Hebrew", Roboto, "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.35; direction: rtl; text-align: start; -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
.m-root[hidden] { display: none; }
:where(.m-root) *, :where(.m-root) *::before, :where(.m-root) *::after { box-sizing: border-box; }
.m-root :where(h1, h2, h3, p, ul, figure, pre) { margin: 0; }
.m-root :where(ul) { list-style: none; padding: 0; }
.m-root :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.m-root :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.m-root :where(a) { color: var(--primary); }
.m-root img { max-width: 100%; }

/* Icons (MaterialCommunityIcons masks, coloured by currentColor) */
.mi { display: inline-block; flex: none; width: var(--s); height: var(--s); background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* --- Frame --------------------------------------------------------------------------------------------------- */
body.m-on .m-root { display: flex; flex-direction: column; height: 100dvh; }
.m-screen { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.m-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.m-pad { padding: 12px 16px 24px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.m-pad0 { padding: 0 16px; }
.m-phone-only { display: contents; }
body.d-on .m-phone-only { display: none; }

/* Wordmark: bold blue "ClickACart" (the app's header since a283598) */
.m-wordmark { font-size: 30px; font-weight: 900; color: var(--primary); letter-spacing: -.5px; line-height: 1.1; text-decoration: none; white-space: nowrap; direction: ltr; }
.m-brandrow { display: flex; justify-content: flex-start; padding: 4px 0 2px; }
.m-brandrow .m-wordmark { font-size: 26px; }

/* Headers */
.m-header { background: var(--background); padding: 8px 16px 8px; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); flex: none; }
.m-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; }
.m-topend { display: flex; align-items: center; gap: 4px; min-width: 0; }
.m-hrow { display: flex; align-items: center; gap: 4px; min-height: 52px; }
.m-hcenter { flex: 1; min-width: 0; text-align: center; display: grid; gap: 2px; }
.m-hcenter h1 { font-size: 24px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.m-hcenter h1:focus, .m-center-title:focus, .m-cart-h1:focus, .m-pname:focus { outline: none; }
.m-hsub { font-size: 15px; color: var(--textMuted); line-height: 1.35; }
.m-hend { display: flex; align-items: center; min-width: 44px; justify-content: flex-end; }
.m-slot { width: 48px; height: 48px; display: grid; place-items: center; color: var(--text); flex: none; border-radius: 12px; }
.m-hrow > .m-slot:first-child { color: var(--text); }
.m-round { width: 48px; height: 48px; border-radius: 24px; background: var(--surface); box-shadow: var(--card); display: grid; place-items: center; color: var(--text); }

/* City chip, cart button */
.m-city { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px; color: var(--primary); max-width: 230px; border-radius: 12px; }
.m-city span:not(.mi) { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cartbtn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; color: var(--text); flex: none; border-radius: 12px; }
.m-cartbtn.round { border-radius: 24px; background: var(--surface); box-shadow: var(--card); }
.m-count { position: absolute; top: 2px; inset-inline-start: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--badge); color: #FFFFFF; font-size: 13px; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* Search */
.m-search { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--card); color: var(--textMuted); }
.m-search-input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--text); min-height: 48px; outline: none; }
.m-search-input::placeholder { color: var(--textFaint); }
.m-search-input::-webkit-search-cancel-button { display: none; }
.m-search:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.m-search-clear { width: 44px; height: 44px; display: grid; place-items: center; color: var(--textMuted); }

/* Buttons */
.m-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 8px 18px; border-radius: 16px; font-size: 18px; font-weight: 800; border: 2px solid transparent; text-align: center; text-decoration: none; }
.m-btn.compact { min-height: 48px; font-size: 16px; border-radius: 14px; padding: 6px 14px; }
.m-btn.primary { background: var(--accentStrong); color: #FFFFFF; }
.m-btn.primary:hover { background: #127838; }
.m-btn.outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.m-btn.soft { background: var(--primarySoft); color: var(--primaryDark); }
.m-btn.danger { background: var(--danger); color: #FFFFFF; }
.m-btn:disabled { opacity: .5; cursor: default; }
.m-link { min-height: 44px; min-width: 44px; padding: 0 4px; color: var(--primary); font-size: 17px; font-weight: 700; }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* SourceLine */
.m-source { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--textMuted); text-align: start; width: 100%; }
.m-source span:not(.mi) { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.35; }
.m-source.warn span:not(.mi), .m-source.warn > .mi:first-child { color: var(--warning); font-weight: 700; }

/* Chips */
.m-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.m-chips::-webkit-scrollbar { display: none; }
.m-chip { flex: none; min-height: 48px; padding: 0 20px; border-radius: 24px; border: 1.5px solid var(--border); background: var(--surface); font-size: 17px; font-weight: 600; color: var(--text); white-space: nowrap; }
.m-chip.on { background: var(--primary); border-color: var(--primary); color: #FFFFFF; font-weight: 800; }

/* Sections */
.m-section { font-size: 24px; font-weight: 900; margin-top: 8px; }
.m-box { background: var(--surface); border-radius: 16px; box-shadow: var(--card); padding: 16px; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.m-box-title { font-size: 20px; font-weight: 900; }
.m-note { font-size: 15px; line-height: 1.45; color: var(--text); }
.m-note.muted { color: var(--textMuted); }
.m-center { text-align: center; }
.m-center-title { font-size: 26px; font-weight: 900; text-align: center; line-height: 1.25; }
.m-hint { display: flex; align-items: flex-start; gap: 8px; color: var(--textMuted); font-size: 15px; line-height: 1.45; }
.m-hint .mi { margin-top: 2px; }
.m-loading, .m-empty-text { color: var(--textMuted); text-align: center; padding: 16px; }
.m-divider { height: 1px; background: var(--border); }

/* --- Picture box (ProductVisual) --------------------------------------------------------------------------- */
.m-vis { position: relative; flex: none; width: var(--sz); height: var(--sz); border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden; color: var(--primary); }
.m-vis > img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.m-vis.big > img.photo { inset: 0; width: 100%; height: 100%; }
.m-vis-icon { display: grid; place-items: center; color: #9AA9C0; }
.m-vis-icon[hidden] { display: none; }
.m-group-head { list-style: none; grid-column: 1 / -1; padding: 14px 4px 2px; }
.m-group-head h2 { font-size: 17px; font-weight: 800; color: var(--text); }
.m-didyoumean { margin-bottom: 8px; font-size: 16px; color: var(--text); }
/* WEB TASK 29: no photo and no logo → the category icon on a tint, so it never looks like an empty box (eggs). */
.m-vis:not(:has(img)) { background: var(--primaryTint); border-color: var(--primarySoft); }
.m-vis:not(:has(img)) .m-vis-icon { color: var(--primary); }
.m-vis:not(:has(img)) .m-vis-icon .mi { width: calc(var(--s) * 1.25); height: calc(var(--s) * 1.25); }
.m-vis .m-brandname { position: absolute; bottom: 8%; inset-inline: 4px; text-align: center; font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Home -------------------------------------------------------------------------------------------------- */
.m-hero { position: relative; border-radius: 16px; overflow: hidden; min-height: 210px; display: flex; align-items: flex-end; box-shadow: var(--card); background: #5b4a3a; }
.m-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .55), rgb(0 0 0 / .12) 60%, transparent); }
.m-hero-text { position: relative; z-index: 1; padding: 18px; display: grid; gap: 6px; color: #FFFFFF; width: 100%; }
.m-hero-text h2 { font-size: 30px; font-weight: 900; line-height: 1.15; text-shadow: 0 1px 6px rgb(0 0 0 / .35); }
.m-hero-text p { font-size: 17px; font-weight: 600; text-shadow: 0 1px 4px rgb(0 0 0 / .4); }
.m-hero-btn { justify-self: start; margin-top: 8px; min-height: 52px; padding-inline: 22px; }
.m-catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; }
.m-cat { display: grid; gap: 6px; justify-items: center; width: 100%; }
.m-cat img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--surfaceMuted); }
.m-cat span { font-size: 15px; font-weight: 700; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.m-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.m-strip::-webkit-scrollbar { display: none; }
.m-pcard { position: relative; flex: none; width: 168px; background: var(--surface); border-radius: 16px; box-shadow: var(--card); padding: 10px; }
.m-card-open { display: grid; gap: 4px; width: 100%; }
.m-card-open .m-vis { width: 100%; height: auto; aspect-ratio: 1; border: 0; background: var(--surfaceMuted); }
.m-card-price { font-size: 19px; font-weight: 900; margin-top: 4px; }
.m-card-name { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-card-act { position: absolute; top: 10px; inset-inline-start: 10px; }
.m-sitefoot { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; padding: 16px 0 8px; }
.m-sitefoot a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--textMuted); }

/* Waiting / empty */
.m-waiting { display: grid; justify-items: center; align-content: center; gap: 12px; padding: 40px 16px; min-height: 50%; text-align: center; color: var(--textMuted); }
.m-spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--primarySoft); border-top-color: var(--primary); animation: m-spin 1s linear infinite; }
@keyframes m-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .m-spinner { animation-duration: 3s; } }
.m-emptystate { display: grid; justify-items: center; gap: 12px; padding: 32px 16px; text-align: center; }
.m-empty-circle { width: 104px; height: 104px; border-radius: 52px; background: var(--primarySoft); color: var(--primary); display: grid; place-items: center; }
.m-emptystate h2 { font-size: 22px; font-weight: 900; color: var(--text); }
.m-emptystate p { font-size: 16px; color: var(--textMuted); max-width: 32ch; }

/* --- Rows (ProductRow) --------------------------------------------------------------------------------------- */
.m-list { display: grid; gap: 12px; padding: 0 16px 24px; grid-template-columns: minmax(0, 1fr); }
.m-row { background: var(--surface); border-radius: 16px; box-shadow: var(--card); padding: 14px; display: grid; gap: 12px; }
.m-row-main { display: flex; align-items: flex-start; gap: 12px; }
.m-row-pic { flex: none; border-radius: 14px; }
.m-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.m-row-info { display: grid; gap: 4px; width: 100%; text-align: start; }
.m-row-name { font-size: 18px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.m-row-price { font-size: 20px; font-weight: 900; }
.m-row-price.none { color: var(--textMuted); font-weight: 700; font-size: 16px; }
.m-row-status { font-size: 15px; color: var(--textMuted); font-weight: 600; }
.m-row-status.promo { color: var(--promo); font-weight: 800; }
.m-row-act { flex: none; align-self: flex-end; }
.m-toggle { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; color: var(--primary); font-size: 16px; font-weight: 800; }
.m-add { width: var(--sz, 48px); height: var(--sz, 48px); border-radius: 14px; background: var(--primary); color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 2px 6px rgb(20 103 245 / .25); }
.m-add:hover { background: var(--primaryDark); }
.m-stepper { display: inline-flex; align-items: center; background: var(--primarySoft); border-radius: 14px; color: var(--primary); }
.m-step { width: 44px; height: 44px; display: grid; place-items: center; color: var(--primary); }
.m-step:disabled { color: var(--disabled); cursor: default; }
.m-qty { min-width: 30px; text-align: center; font-size: 19px; font-weight: 900; color: var(--text); }
.m-stepper.big { background: var(--surface); border: 1.5px solid var(--border); }
.m-stepper.big .m-step { width: 52px; height: 54px; }
.m-details { background: var(--surfaceMuted); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.m-details-full { font-size: 15px; font-weight: 800; }
.m-dline { display: grid; gap: 1px; }
.m-dhead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.m-dchain { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-dprice { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.m-dprice.warn { color: var(--warning); font-weight: 700; }
.m-dprice.muted { color: var(--textMuted); }
.m-dnote { font-size: 14px; line-height: 1.35; color: var(--textMuted); }
.m-dnote.promo { color: var(--promo); font-weight: 700; }
.m-dnote.warn { color: var(--warning); }
.m-more-sentinel { height: 1px; }

/* Credits */
.m-credits { display: grid; gap: 4px; padding: 0 16px 16px; color: var(--textMuted); font-size: 13px; }
.m-credit { display: grid; gap: 2px; color: var(--textMuted); font-size: 13px; }
.m-credit-links { display: flex; flex-wrap: wrap; column-gap: 16px; }
.m-credit-links a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; }

/* --- Product ------------------------------------------------------------------------------------------------- */
.m-ptop { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; flex: none; }
.m-product-body { display: grid; gap: 14px; padding: 0 16px 24px; grid-template-columns: minmax(0, 1fr); }
.m-pcol { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.m-ppic { display: grid; justify-items: center; gap: 8px; }
.m-ppic .m-vis { width: min(300px, 100%); height: auto; aspect-ratio: 1; }
.m-pname { font-size: 26px; font-weight: 900; line-height: 1.25; }
.m-psub { font-size: 17px; color: var(--textMuted); }
.m-pprice-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.m-pprice { font-size: 32px; font-weight: 900; }
.m-pprice.promo { color: var(--promo); }
.m-pprice.none { font-size: 20px; color: var(--textMuted); }
.m-promo-badge { background: var(--dangerSoft); color: var(--promo); font-weight: 900; font-size: 15px; padding: 4px 10px; border-radius: 8px; }
.m-promo-note { color: var(--promo); font-weight: 700; font-size: 15px; }
.m-incart { color: var(--accentStrong); font-weight: 800; font-size: 15px; }
.m-match-price { font-weight: 800; font-size: 15px; color: var(--text); }
.m-prow2 { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--border); }
.m-prow2:first-of-type { border-top: 0; }
.m-prow2-l { font-size: 16px; font-weight: 800; }
.m-prow2-v { font-size: 15.5px; line-height: 1.45; }
.m-prow2-v.warn { color: var(--warning); }
.m-prow2-v.muted { color: var(--textMuted); }
.m-pbar { display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 12px; border-radius: 16px; box-shadow: var(--card); }
.m-pbar .m-addcart { flex: 1; min-width: 0; }
body.m-on .m-pbar { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; border-radius: 16px 16px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgb(17 24 39 / .08); order: 99; }
body.m-on .m-product .m-pcol:not(.m-picol) { display: flex; flex-direction: column; }

/* "נוסף לסל" */
.m-added { display: grid; gap: 14px; }
.m-added-head { display: flex; align-items: center; gap: 10px; }
.m-added-head h2 { font-size: 24px; font-weight: 900; }
.m-okdot { width: 40px; height: 40px; border-radius: 20px; background: var(--accentStrong); color: #FFFFFF; display: grid; place-items: center; }
.m-added-item { display: flex; align-items: center; gap: 12px; }
.m-added-name { font-size: 18px; font-weight: 800; }
.m-added-sub { color: var(--textMuted); font-size: 15px; }
.m-added-more { font-size: 20px; font-weight: 900; margin-top: 4px; }
.m-mini { display: flex; align-items: center; gap: 12px; }
.m-mini-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 15.5px; }
.m-mini-price { font-weight: 900; font-size: 17px; }

/* --- Cart ---------------------------------------------------------------------------------------------------- */
.m-cart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.m-cart-h1 { font-size: 30px; font-weight: 900; }
.m-cart-list { display: grid; gap: 12px; }
.m-cart-row { background: var(--surface); border-radius: 16px; box-shadow: var(--card); padding: 14px; display: grid; gap: 10px; }
.m-cart-main { display: flex; gap: 12px; align-items: flex-start; }
.m-cart-text { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.m-cart-name { display: grid; gap: 2px; text-align: start; }
.m-cart-title { font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.m-cart-size { font-size: 15px; color: var(--textMuted); }
.m-cart-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; justify-content: space-between; }
.m-cart-price { font-size: 19px; font-weight: 900; }
.m-trash { width: 44px; height: 44px; display: grid; place-items: center; color: var(--textMuted); flex: none; }
.m-summary { gap: 12px; }
.m-sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.m-sum-row .total { font-size: 21px; color: var(--accentStrong); }
.m-sum-row .partial { color: var(--warning); font-weight: 700; }
.m-guest-row { display: flex; gap: 8px; align-items: flex-start; color: var(--textMuted); font-size: 15px; line-height: 1.45; }
.m-sticky { flex: none; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); }
.m-comparebtn { width: 100%; }

/* --- Comparison ---------------------------------------------------------------------------------------------- */
.m-context { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--primary); }
.m-context span:not(.mi) { flex: 1; font-size: 16px; color: var(--text); font-weight: 600; }
.m-sumcard { background: var(--surface); border-radius: 16px; box-shadow: var(--card); padding: 14px 16px; display: grid; gap: 4px; }
.m-sumcard-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 17px; font-weight: 800; }
.m-sumcard-row .v { color: var(--accentStrong); font-size: 21px; font-weight: 900; }
.m-sumcard-note { color: var(--textMuted); font-size: 14.5px; }
.m-sumcard.warn { background: var(--warningSoft); box-shadow: none; }
.m-sumcard.m-missing { display: flex; align-items: center; gap: 8px; min-height: 56px; width: 100%; color: var(--warning); text-align: start; }
.m-missing-text { flex: 1; font-size: 16px; font-weight: 800; }
.m-warn-toggle { color: var(--primary); font-weight: 800; text-decoration: underline; }
.m-finalnote { margin-top: -8px; font-size: 15px; }
.m-stores { display: grid; gap: 12px; }
.m-store { background: var(--surface); border-radius: 16px; box-shadow: var(--card); padding: 14px; display: grid; gap: 6px; border: 2px solid transparent; cursor: pointer; }
.m-store.cheapest { border-color: var(--accentStrong); }
.m-store.selected { border-color: var(--primary); background: var(--primaryTint); }
.m-store.stale { display: flex; align-items: center; gap: 12px; opacity: .85; cursor: default; }
.m-store-top { display: flex; align-items: center; gap: 10px; }
.m-radio { width: 28px; height: 28px; border-radius: 14px; border: 2.5px solid var(--textMuted); display: grid; place-items: center; flex: none; }
.m-radio.on { border-color: var(--primary); }
.m-radio .dot { width: 14px; height: 14px; border-radius: 7px; background: var(--primary); }
.m-store-name { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.m-store-total { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.m-store-total.cheapest { color: var(--accentStrong); }
.m-store-total.partial { color: var(--textMuted); }
.m-info44 { width: 44px; height: 44px; display: grid; place-items: center; color: var(--textMuted); flex: none; }
.m-under { display: grid; gap: 4px; padding-inline-start: 38px; justify-items: start; }
.m-coverage { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--textMuted); }
.m-coverage.partial { color: var(--warning); font-weight: 700; }
.m-missing-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--primary); font-size: 15.5px; font-weight: 800; }
.m-badge-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.m-cheapest { background: var(--accentStrong); color: #FFFFFF; font-size: 15px; font-weight: 900; padding: 4px 14px; border-radius: 999px; }
.m-diff { font-size: 15px; color: var(--textMuted); font-weight: 700; }
.m-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 800; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.m-badge.warn { background: var(--warningSoft); color: var(--warning); }
.m-badge.old { background: var(--oldBg); color: var(--textMuted); }
.m-badge.promo { background: var(--dangerSoft); color: var(--promo); }
.m-badge.similar { background: var(--primarySoft); color: var(--primaryDark); }
.m-badge.member { background: var(--accentSoft); color: var(--accentStrong); }
.m-breakdown { gap: 0; padding: 4px 16px; }
.m-brow { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--border); }
.m-brow:first-child { border-top: 0; }
.m-bhead { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.m-bname { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; }
.m-bline { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.m-bline[hidden] { display: none; }
.m-bline.more { opacity: .7; }
.m-bstore { flex: 1; min-width: 0; font-size: 16px; color: var(--textMuted); }
.m-bprice { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.m-bprice.cheaper { color: var(--primary); }
.m-more-toggle { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; width: 100%; color: var(--primary); font-size: 16px; font-weight: 800; }
.m-footer { flex: none; display: grid; gap: 6px; padding: 12px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.m-footer-links { display: flex; justify-content: center; gap: 4px 20px; flex-wrap: wrap; }
.m-footer-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--primary); font-size: 16.5px; font-weight: 800; }
.m-footer-note { text-align: center; color: var(--textMuted); font-size: 14.5px; }

/* Missing products / similar */
.m-mcard { gap: 12px; }
.m-mhead { display: flex; gap: 12px; align-items: center; }
.m-mname { font-size: 17px; font-weight: 800; }
.m-mwhy { font-size: 15px; color: var(--warning); }
.m-mstate { font-size: 15px; color: var(--textMuted); font-weight: 600; }
.m-best { background: var(--primaryTint); border-radius: 14px; padding: 12px; }
.m-suggest { display: flex; gap: 12px; align-items: center; }
.m-suggest-text { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; font-size: 15.5px; }
.m-suggest-price { font-size: 18px; font-weight: 900; }

/* Chain review (hand-off) and the "opened" screen */
.m-handoff-chain { display: flex; justify-content: center; }
.m-handoff-rows { gap: 0; padding: 4px 16px; }
.m-hrowv { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; font-size: 16px; border-bottom: 1px solid var(--border); }
.m-hrowv:last-child { border-bottom: 0; }
.m-hrowv span:first-child { color: var(--textMuted); }
.m-hrowv span:last-child { font-weight: 800; text-align: end; }
.m-hrowv.warn span:last-child { color: var(--warning); }
.m-hrowv.strong span { font-weight: 900; color: var(--text); }
.m-rsection { display: grid; gap: 10px; }
.m-rtitle { font-size: 17px; font-weight: 900; color: var(--primary); }
.m-rtitle.missing { color: var(--warning); }
.m-rline { display: flex; align-items: center; gap: 12px; }
.m-rtext { flex: 1; min-width: 0; display: grid; gap: 2px; }
.m-rname { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.m-rsub { font-size: 14.5px; color: var(--textMuted); }
.m-rsub.missing { color: var(--warning); }
.m-rqty { font-weight: 800; color: var(--textMuted); }
.m-carttext { white-space: pre-wrap; font: inherit; font-size: 14.5px; line-height: 1.5; background: var(--surfaceMuted); border-radius: 12px; padding: 12px; overflow-wrap: anywhere; }
.m-nostore { font-size: 16px; font-weight: 800; text-align: center; }
.m-nav-apps { display: grid; gap: 8px; }
.m-opened-body { display: grid; justify-items: center; gap: 18px; padding: 40px 24px; text-align: center; }
.m-chain { display: inline-grid; place-items: center; background: #FFFFFF; border: 1px solid var(--border); flex: none; }
.m-chain img { object-fit: contain; }
.m-chain.letter { color: #FFFFFF; font-weight: 900; border: 0; }

/* Shopping list, deals, profile */
.m-list-input { width: 100%; font: inherit; font-size: 17px; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px; min-height: 160px; resize: vertical; }
.m-list-out { display: grid; gap: 12px; }
.m-match { background: var(--surface); border-radius: 16px; box-shadow: var(--card); padding: 12px; display: grid; gap: 6px; }
.m-match-line { font-weight: 800; }
.m-match-list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
/* WEB TASK 28: one recognized product = picture, name + "בעגלה (N)", then "+" or the +/− stepper (44 px targets). */
.m-match-opt { display: flex; align-items: center; gap: 10px; min-height: 56px; width: 100%; text-align: start; color: var(--primary); }
.m-match-opt.active { background: var(--primaryTint); border-radius: 12px; padding-inline: 6px; }
.m-match-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.m-match-opt .m-row-name { color: var(--text); font-size: 16px; }
.m-match-opt .m-add { --sz: 44px; flex: none; }
.m-match-opt .m-stepper { flex: none; }
.m-deal-list { display: grid; gap: 12px; }
.m-deal { gap: 10px; }
.m-deal-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.m-deal-chain { flex: 1; min-width: 0; font-size: 15px; color: var(--textMuted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-deal-badge { background: var(--warningSoft); color: var(--warning); font-weight: 900; padding: 4px 10px; border-radius: 8px; font-size: 15px; }
.m-deal-mid { display: flex; gap: 12px; align-items: center; }
.m-deal-name { font-size: 18px; font-weight: 900; }
.m-deal-terms { font-size: 20px; font-weight: 900; }
.m-deal-regular { font-size: 15px; color: var(--textMuted); }
.m-profile { gap: 18px; }
.m-acct { gap: 14px; }
.m-acct-row { display: flex; align-items: center; gap: 12px; }
.m-acct-row > div:not(.m-avatar) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.m-avatar { width: 60px; height: 60px; border-radius: 30px; background: var(--primarySoft); color: var(--primary); display: grid; place-items: center; flex: none; }
.m-acct-title { font-size: 20px; font-weight: 900; flex: 1; }
.m-acct-body { font-size: 15px; color: var(--textMuted); }
.m-info-rows { display: grid; }
.m-info-row { display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; border-top: 1px solid var(--border); font-size: 15.5px; }
.m-info-k { color: var(--textMuted); }
.m-edit-row { width: 100%; justify-content: flex-start; color: var(--primary); }
.m-edit-row .m-prow-title { flex: 1; }
.m-pgroup { display: grid; gap: 8px; }
.m-pgroup-title { font-size: 17px; font-weight: 900; color: var(--textMuted); }
.m-pgroup-box { padding: 0 14px; gap: 0; }
.m-prow { display: flex; align-items: center; gap: 12px; min-height: 60px; width: 100%; text-align: start; color: var(--primary); border-top: 1px solid var(--border); }
.m-prow:first-child { border-top: 0; }
.m-prow-text { flex: 1; min-width: 0; display: grid; }
.m-prow-title { font-size: 17px; font-weight: 700; color: var(--text); }
.m-prow-detail { font-size: 14px; color: var(--textMuted); }
.m-prow > .mi:last-child { color: var(--textMuted); }
.m-prow.danger, .m-prow.danger .m-prow-title { color: var(--danger); }
.m-about-logo { display: flex; align-items: center; gap: 12px; justify-content: center; }

/* Tab bar (phones) */
.m-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--border);
  min-height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.m-tab { display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--textMuted); min-height: var(--tabbar); }
.m-tab.on { color: var(--primary); }
.m-tab-icon { position: relative; display: grid; place-items: center; }
.m-tab-icon .m-count { top: -6px; inset-inline-start: -12px; }
.m-tab-label { font-size: 13px; font-weight: 700; }

/* City sheet */
.m-city-list { display: grid; gap: 4px; }
.m-city-opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 10px; border-radius: 12px; width: 100%; color: var(--textMuted); }
.m-city-opt.on { background: var(--primaryTint); color: var(--primary); }
.m-city-name { flex: 1; display: grid; text-align: start; }
.m-city-name > span { font-size: 17px; font-weight: 700; color: var(--text); }
.m-city-sub { font-size: 13px; color: var(--textMuted); }
.m-city-search { position: sticky; top: 0; z-index: 1; box-shadow: none; border: 1.5px solid var(--border); }

/* Sheets: bottom sheet on phones, a centred dialog on wider screens */
.m-sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; }
.m-backdrop { position: absolute; inset: 0; background: rgb(17 24 39 / .4); }
.m-sheet { position: relative; max-height: 85%; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); animation: m-up .22s ease-out; }
@keyframes m-up { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .m-sheet { animation: none; } }
.m-handle { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin-bottom: 8px; }
.m-sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m-sheet-title { flex: 1; font-size: 21px; font-weight: 900; }
.m-sheet-close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--textMuted); }
.m-sheet-body { overflow-y: auto; overflow-x: hidden; display: grid; gap: 12px; padding-bottom: 8px; grid-template-columns: minmax(0, 1fr); }
.m-srow { display: grid; gap: 2px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.m-srow-l { font-size: 14.5px; color: var(--textMuted); font-weight: 700; }
.m-srow-v { font-size: 16px; line-height: 1.4; }
.m-srow-v.warn { color: var(--warning); font-weight: 700; }
.m-srow-v.muted { color: var(--textMuted); }

/* Toast */
.m-toast { position: fixed; z-index: 70; top: 12px; inset-inline: 16px; max-width: 560px; margin: 0 auto; padding: 14px 16px; border-radius: 14px;
  background: var(--text); color: #FFFFFF; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; box-shadow: 0 6px 20px rgb(17 24 39 / .25); }

/* --- Wide screens (body.d-on): sticky header, the screens, the cart beside them ---------------------------- */
body.d-on .m-root { min-height: 100dvh; }
.d-top { position: sticky; top: 0; z-index: 30; background: var(--surface); box-shadow: 0 2px 10px rgb(17 24 39 / .06); }
.d-top-in { max-width: 1480px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; }
.d-brand { font-size: 30px; }
.d-top .m-search { flex: 1; max-width: 620px; min-height: 50px; box-shadow: none; background: var(--surfaceMuted); }
.d-navs { display: flex; gap: 4px; margin-inline-start: auto; }
.d-nav { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--textMuted); }
.d-nav.on { color: var(--primary); background: var(--primaryTint); }
.d-nav:hover { background: var(--surfaceMuted); }
.d-compare { flex: none; }
.d-body { max-width: 1480px; margin: 0 auto; padding: 16px 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.d-main { min-width: 0; }
.d-main .m-screen { min-height: calc(100dvh - 120px); }
.d-main .m-scroll { overflow: visible; }
.d-main .m-header { padding: 4px 0 12px; background: transparent; }
.d-main .m-pad, .d-main .m-list, .d-main .m-product-body { padding-inline: 0; }
.d-main .m-pad0 { padding: 0; }
.d-main .m-chips, .d-main .m-strip { margin: 0; padding-inline: 0; }
.d-main .m-home-header { display: none; }
.d-main .m-hero { min-height: 300px; }
.d-main .m-hero-text { padding: 28px 32px; max-width: 640px; }
.d-main .m-hero-text h2 { font-size: 40px; }
.d-main .m-catgrid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; }
.d-main .m-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); overflow: visible; }
.d-main .m-pcard { width: auto; }
/* Product rows become cards, 4–6 per row */
.d-main .m-list { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; align-items: start; }
.d-main .m-row { padding: 12px; gap: 8px; }
.d-main .m-row-main { flex-direction: column; align-items: stretch; position: relative; gap: 8px; }
.d-main .m-row-pic .m-vis { width: 100%; height: auto; aspect-ratio: 1; border: 0; background: var(--surfaceMuted); }
.d-main .m-row-act { position: absolute; top: 8px; inset-inline-start: 8px; }
.d-main .m-row-name { font-size: 16px; }
.d-main .m-row-price { font-size: 18px; }
/* Product page: picture beside the details */
.d-main .m-ptop { padding: 0 0 8px; }
.d-main .m-product-body { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 24px; }
.d-main .m-ppic { position: sticky; top: 96px; }
.d-main .m-ppic .m-vis { width: 100%; max-width: 420px; }
/* Fixed footers are sticky at the bottom of the screen column */
.d-main .m-footer, .d-main .m-sticky { position: sticky; bottom: 0; z-index: 5; border: 0; border-radius: 16px; box-shadow: 0 -2px 14px rgb(17 24 39 / .08); margin-top: 16px; }
.d-main .m-footer { max-width: 720px; margin-inline: auto; width: 100%; }
.d-main .m-compare-body, .d-main .m-handoff, .d-main .m-missing-body, .d-main .m-opened-body, .d-main .m-listscreen, .d-main .m-profile, .d-main .m-cart-body, .d-main .m-personal .m-pad { max-width: 720px; margin-inline: auto; width: 100%; }
.d-main .m-tabs { display: none; }
/* The side cart */
.d-cart { position: sticky; top: 88px; max-height: calc(100dvh - 104px); display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; box-shadow: var(--card); overflow: hidden; }
.d-cart-head { padding: 16px 16px 8px; border-bottom: 1px solid var(--border); }
.d-cart-head .m-cart-h1 { font-size: 24px; }
.d-cart-empty { padding: 16px; }
.d-cart-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: grid; gap: 12px; align-content: start; }
.d-cart .m-cart-row { box-shadow: none; border: 1px solid var(--border); padding: 10px; }
.d-cart .m-cart-title { font-size: 15.5px; }
.d-cart .m-cart-price { font-size: 17px; }
.d-cart .m-summary { box-shadow: none; border: 1px solid var(--border); }
.d-cart-foot { padding: 12px 16px; border-top: 1px solid var(--border); }
/* Sheets as centred dialogs */
body.d-on .m-sheet-wrap { justify-content: center; align-items: center; padding: 24px; }
body.d-on .m-sheet { width: min(560px, 100%); max-height: 85dvh; border-radius: 20px; padding: 16px 20px 20px; }
body.d-on .m-handle { display: none; }
body.d-on .m-added-sheet { width: min(520px, 100%); }
@media (max-width: 62rem) {
  .d-body { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .d-top-in { flex-wrap: wrap; padding: 8px 16px; gap: 8px 12px; }
  .d-top .m-search { order: 9; flex-basis: 100%; max-width: none; }
  .d-nav span:not(.mi) { display: none; }
  .d-main .m-product-body { grid-template-columns: minmax(0, 1fr); }
  .d-main .m-ppic { position: static; }
}

/* --- Account screens (account.js in the #account dialog), palette A ----------------------------------------- */
body.m-on .sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; box-shadow: none;
  background: var(--background); color: var(--text); color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "SF Hebrew", Roboto, "Noto Sans Hebrew", Arial, sans-serif; }
body.m-on .sheet::backdrop { background: var(--background); }
body.m-on .sheet-view { padding: 4px 16px 48px; gap: 16px; min-height: 100%; }
body.m-on .sheet-head { display: grid; justify-items: center; padding: 4px 0 0; }
body.m-on .sheet-head > div { display: grid; justify-items: center; gap: 2px; }
body.m-on .sheet-head h2 { font-size: 24px; font-weight: 800; text-align: center; margin: 0; }
body.m-on .sheet-sub { font-size: 14px; color: var(--textMuted); text-align: center; margin: 0; }
body.m-on [data-view^="register"] .sheet-close, body.m-on [data-view="consent"] .sheet-close, body.m-on [data-view="loaderror"] .sheet-close { display: none; }
body.m-on .sheet-head .sheet-close { position: absolute; inset-inline-end: 8px; top: 8px; background: none; color: var(--textMuted); }
body.m-on .sheet-card { background: var(--surface); border-radius: 16px; padding: 16px; display: grid; gap: 16px; box-shadow: var(--card); }
body.m-on .sheet-card .form { gap: 16px; }
body.m-on .progress { font-size: 14px; color: var(--textMuted); margin: 0; }
body.m-on .progress strong { color: var(--primary); font-weight: 800; }
body.m-on .progress-bar { gap: 6px; margin-top: -8px; }
body.m-on .progress-bar span { height: 5px; background: var(--border); }
body.m-on .progress-bar span.on { background: var(--primary); }
body.m-on .sheet-card .sheet-text { font-size: 14.5px; color: var(--textMuted); line-height: 20px; }
body.m-on [data-view="consent"] .sheet-card .sheet-text { font-size: 15.5px; color: var(--text); line-height: 22px; }
body.m-on .sheet-card .sheet-small { font-size: 14.5px; color: var(--textMuted); line-height: 20px; }
body.m-on .row2 { gap: 12px; }
body.m-on .field { gap: 6px; }
body.m-on .field label { font-size: 15px; font-weight: 700; color: var(--text); }
body.m-on .field input, body.m-on .field textarea { min-height: 50px; font-size: 17px; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); color: var(--text); }
body.m-on .field textarea { min-height: 84px; }
body.m-on .field input:disabled { background: var(--primaryTint); color: var(--textMuted); opacity: 1; }
body.m-on .field.has-error input, body.m-on .field.has-error textarea { border-color: var(--danger); }
body.m-on .field-hint { font-size: 13px; color: var(--textMuted); }
body.m-on .field-error, body.m-on .sheet-error { font-size: 14px; color: var(--danger); font-weight: 600; }
body.m-on .sheet-error.center { text-align: center; font-size: 16px; line-height: 24px; }
body.m-on #f-phone { direction: ltr; text-align: left; }
body.m-on .tick { align-items: center; gap: 12px; min-height: 48px; }
body.m-on .tick input { margin: 0; }
body.m-on .tick label strong { font-size: 16px; font-weight: 700; color: var(--text); }
body.m-on .tick label span { font-size: 13px; color: var(--textMuted); }
body.m-on .consent { border: 0; padding: 0; gap: 4px; }
body.m-on .consent .tick { align-items: flex-start; }
body.m-on .consent label { display: block; font-size: 16px; line-height: 24px; color: var(--text); padding: 8px 0; }
body.m-on .consent a { color: var(--primaryDark); font-weight: 700; text-decoration: underline; }
body.m-on .sheet-primary { min-height: 54px; border-radius: 16px; background: var(--accentStrong); color: #FFFFFF; font-size: 17px; font-weight: 800; border: 1px solid var(--accentStrong); }
body.m-on .sheet-primary:disabled { opacity: .5; }
body.m-on .sheet-card .sheet-link { justify-self: center; min-height: 48px; font-size: 15px; font-weight: 700; color: var(--primaryDark); text-decoration: none; }
body.m-on .exits { justify-items: center; gap: 4px; padding: 8px; border: 0; margin: 0; }
body.m-on .exits .sheet-small { font-size: 14px; color: var(--textMuted); text-align: center; }
body.m-on .exits .sheet-link { justify-self: center; min-height: 48px; font-size: 14px; font-weight: 600; color: var(--primaryDark); text-decoration: underline; }
body.m-on .exits .sheet-link.danger { color: var(--danger); }
body.m-on .place-list { top: 80px; border-radius: 12px; background: var(--surface); }
body.m-on .sheet-view[data-view="signin"] { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 0; min-height: 100dvh; }
body.m-on .gate-back { align-self: flex-start; display: flex; align-items: center; gap: 4px; min-height: 44px; padding-inline-end: 8px; font: inherit; font-size: 16px; font-weight: 700; color: var(--primary); background: none; border: 0; cursor: pointer; }
body.m-on .gate-arrow { width: 22px; height: 22px; background: currentColor; -webkit-mask: url(/compare/m/icons/arrow-right.png) center / contain no-repeat; mask: url(/compare/m/icons/arrow-right.png) center / contain no-repeat; }
body.m-on .gate-spacer { flex-grow: 1; min-height: 24px; }
body.m-on .gate-hero { display: grid; justify-items: center; gap: 16px; }
body.m-on .gate-circle { width: 112px; height: 112px; border-radius: 56px; background: var(--primarySoft); display: grid; place-items: center; }
.m-cartmark { position: relative; display: block; direction: ltr; }
body.m-on .gate-lead { font-size: 18px; font-weight: 600; line-height: 26px; text-align: center; color: var(--text); margin: 0; }
body.m-on .gate-lead:focus { outline: none; }
body.m-on .gate-actions { display: grid; gap: 8px; }
body.m-on .provider { min-height: 54px; border-radius: 14px; border: 1px solid; position: relative; padding: 8px 48px; font-size: 16px; font-weight: 500; justify-content: center; }
body.m-on .provider.apple { background: #000000; border-color: #000000; color: #FFFFFF; }
body.m-on .provider.google { background: #FFFFFF; border-color: #747775; color: #1F1F1F; }
body.m-on .provider.google img { position: absolute; inset-inline-start: 19px; top: 50%; transform: translateY(-50%); }
body.m-on .consent-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 4px; margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--textMuted); }
body.m-on .consent-link { min-height: 32px; display: inline-flex; align-items: center; color: var(--textMuted); text-decoration: none; position: relative; }
body.m-on .consent-link::after { content: ""; position: absolute; inset: -6px 0; }
body.m-on .consent-link span { color: var(--primary); text-decoration: underline; font-weight: 600; }
.place-box { position: relative; display: block; }
.place-icon { display: none; }
body.m-on .place-icon { display: block; position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: var(--textMuted); -webkit-mask: url(/compare/m/icons/magnify.png) center / contain no-repeat; mask: url(/compare/m/icons/magnify.png) center / contain no-repeat; pointer-events: none; }
body.m-on .place-box input { padding-inline-end: 44px; }
body.m-on .tick input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; flex: none; margin: 0; border: 2px solid var(--textMuted); border-radius: 8px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
body.m-on .tick input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
body.m-on .tick input[type="checkbox"]:checked::after { content: ""; width: 20px; height: 20px; background: #FFFFFF; -webkit-mask: url(/compare/m/icons/check.png) center / contain no-repeat; mask: url(/compare/m/icons/check.png) center / contain no-repeat; }
body.m-on .consent .tick input[type="checkbox"] { margin-top: 9px; }
body.m-on .field.place .field-hint { display: none; }
body.m-on [data-view^="edit"] > .m-header { margin: 0 -16px; padding-top: 4px; }
body.m-on [data-view^="edit"] .m-header h1 { margin: 0; font-size: 21px; font-weight: 800; color: var(--text); text-align: center; line-height: 1.25; }
body.m-on [data-view^="edit"] .sheet-close { display: none; }
body.m-on #account .m-header button { background: none; border: 0; padding: 0; margin: 0; box-shadow: none; font: inherit; color: var(--primary); cursor: pointer; border-radius: 6px; min-height: 0; }
.m-scroll, .m-sheet-body, body.m-on .sheet { overflow-x: hidden; }
.m-root [hidden] { display: none !important; }
.m-root input.m-search-input, .m-root input.m-search-input:focus { border: 0 !important; box-shadow: none !important; outline: none !important; padding: 0 !important; background: transparent !important; border-radius: 0; }
.m-store-name { min-width: auto; overflow-wrap: normal; }
.d-brand { min-height: 48px; display: inline-flex; align-items: center; }
.m-cart-name { min-height: 44px; align-content: center; }
.d-main .m-brandrow { display: none; }
@media (max-width: 75rem) {
  .d-main .m-product-body { grid-template-columns: minmax(0, 1fr); }
  .d-main .m-ppic { position: static; }
  .d-main .m-ppic .m-vis { max-width: 340px; }
}
/* The price stays on the stepper's line when it fits, else under it (a 390 px phone with "מ־₪11.90" overflowed). */
.m-cart-row { grid-template-columns: minmax(0, 1fr); }
.m-cart-line { flex-wrap: wrap; row-gap: 4px; } .m-cart-price { white-space: nowrap; }

/* First paint (live bug 24.10: the old design showed for a moment): the page's old static markup is hidden by this
   stylesheet itself (loaded in <head>), not by the classes the script adds later; #m-root shows the boot screen. */
.page-compare > .skip, .page-compare .site-header, .page-compare .site-footer, .page-compare main > .cmp, .page-compare .bar,
.page-compare .app-band { display: none !important; }
body.page-compare { background: #F7F9FC; padding-bottom: 0 !important; }
.m-boot { min-height: 100dvh; display: flex; flex-direction: column; }
.m-boot-top { display: flex; align-items: center; min-height: 68px; padding: 8px 16px; background: var(--background); }
.m-boot .m-waiting { flex: 1; }
.m-boot-noscript { padding: 16px; text-align: center; font-size: 17px; color: var(--text); }
@media (min-width: 30.01rem) { .m-boot-top { background: var(--surface); box-shadow: 0 2px 10px rgb(17 24 39 / .06); padding: 10px 24px; } }

/* "לעגלה (N) · מ־₪X": on the product-picking screens once the cart has a product; phone = full width above the tab bar
   (a flex item, so it never covers a row), wide screens = sticky at the bottom of the screen column. */
.m-cartbar { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 16px;
  background: var(--accentStrong); color: #FFFFFF; font-size: 18px; font-weight: 800; }
.m-cartbar:hover { background: #127838; }
.m-cartbar .m-cartbar-n { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #FFFFFF; color: var(--accentStrong); display: inline-grid; place-items: center; font-size: 15px; }
.m-cartbar bdi { font-variant-numeric: tabular-nums; }
.d-main .m-cartbar { position: sticky; bottom: 16px; z-index: 6; margin-top: 16px; border-radius: 16px; box-shadow: 0 6px 18px rgb(22 139 67 / .3); }
.d-cart > .m-cartbar { position: static; margin: 12px 12px 0; width: auto; border-radius: 14px; box-shadow: none; }
/* One size per product (WEB TASK 21): the note next to a chain name that writes another size */
.m-sizenote { display: flex; align-items: flex-start; gap: 6px; font-size: 14.5px; line-height: 1.4; color: var(--warning); font-weight: 600; }
.m-sizenote .mi { margin-top: 2px; }
/* WEB TASK 22: "הכי נקנים" keeps its height while the prices load (no layout shift when the cards arrive) */
.m-pcard { min-height: 268px; }
.m-skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surfaceMuted) 50%, var(--surface) 100%); background-size: 200% 100%; animation: m-sk 1.4s ease-in-out infinite; box-shadow: var(--card); }
@keyframes m-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .m-skeleton { animation: none; } }
.m-source.m-v2load { min-height: 44px; display: flex; align-items: center; color: var(--textMuted); font-size: 14px; margin: 0; }

/* WEB TASK 23 — AA contrast (4.5:1): palette A's green #168B43 gives 4.36:1 with white, so main actions use #168540
   (4.70:1); promo text #B42318 (≥ 5.7:1 on its tints); blue text on tinted grounds uses #0F55D0 (≥ 5.5:1). */
.m-city-opt.on, .m-warn-toggle, .m-sumcard .m-warn-toggle, .m-details .m-toggle, .m-best .m-badge, .m-hint a { color: var(--primaryDark); }
.m-badge.promo, .m-promo-badge, .m-dnote.promo, .m-row-status.promo, .m-promo-note, .m-pprice.promo { color: var(--promo); }
/* Screen-reader only text, the live region, the skip link (WEB TASK 23) */
.m-sr, .m-live { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.m-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 80; background: var(--text); color: #FFFFFF; padding: 12px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.m-skip:focus { top: 8px; }
#m-main:focus, .m-screen:focus { outline: none; }
button.m-radio-btn { width: 44px; height: 44px; display: grid; place-items: center; flex: none; margin: -8px; cursor: pointer; border-radius: 22px; }
.d-nav.on { color: var(--primaryDark); }
/* A cart product the shown city's catalog lacks: its own row, never hidden. */
.m-vis-standin { opacity: .7; }
.m-cart-unavailable .m-cart-price { color: var(--warning); font-size: 15px; font-weight: 700; white-space: normal; }
.m-unavailable-note { margin: 4px 0 0; font-size: 13px; color: var(--textMuted); }

/* WEB TASK 25 (Sharon 24.10): the comparison gives the chain list the room — one info line with "שינוי", a slim
   missing-items line, the chain's two small actions inside the selected card, ONE bottom row (total + "המשך ל<רשת>"),
   and on phones the header folds into a small bar while scrolling down. */
.m-infoline { display: flex; align-items: center; gap: 4px; }
.m-infoline .m-source { flex: 1; min-width: 0; }
.m-infoline .m-source span:not(.mi) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 600; }
.m-change { flex: none; min-height: 44px; min-width: 44px; padding: 0 8px; color: var(--primary); font-size: 15px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.m-sumcard.m-missing { min-height: 44px; padding: 4px 12px; border-radius: 12px; }
.m-sumcard.m-missing .m-missing-text { min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card-actions { display: flex; flex-wrap: wrap; gap: 0 18px; padding-inline-start: 38px; border-top: 1px solid var(--border); padding-top: 2px; }
.m-card-action { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; color: var(--primaryDark); /* on the selected card's tint (AA) */ font-size: 15.5px; font-weight: 800; }
.m-footer.m-comparebar { display: flex; align-items: center; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
/* Phones: the tab bar under the row already keeps the iPhone home-indicator space (its own safe-area padding). */
body.m-on .m-footer.m-comparebar { padding-bottom: 8px; }
.m-cb-sum { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.m-cb-name { font-size: 14px; color: var(--textMuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cb-total { font-size: 19px; font-weight: 900; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cb-total.partial { color: var(--warning); font-size: 16px; }
.m-comparebar .m-btn { flex: none; min-height: 48px; max-width: 64%; font-size: 16.5px; padding: 6px 14px; border-radius: 14px; }
.m-comparebar .m-btn span:not(.mi) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.m-on .m-compare .m-header { transition: padding .15s ease; }
body.m-on .m-compare.m-collapsed .m-brandrow, body.m-on .m-compare.m-collapsed .m-hsub { display: none; }
body.m-on .m-compare.m-collapsed .m-header { padding-block: 2px; gap: 0; box-shadow: 0 1px 0 var(--border); }
body.m-on .m-compare.m-collapsed .m-hrow { min-height: 44px; }
body.m-on .m-compare.m-collapsed .m-hcenter h1 { font-size: 18px; }
@media (prefers-reduced-motion: reduce) { body.m-on .m-compare .m-header { transition: none; } }
.p-split.compact { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; text-align: start; color: var(--primary); }
.p-split.compact .p-split-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.p-split.compact strong { font-size: 16px; font-weight: 800; }
.p-split.compact .p-split-text > span { font-size: 14.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-footer.m-comparebar { padding-top: 7px; }
body.m-on .m-footer.m-comparebar { padding-bottom: 7px; }
@media (max-width: 23.5rem) { body.m-on .m-compare .m-hcenter h1 { font-size: 21px; } }
/* Grid children with one-line (nowrap) text: they shrink with the screen instead of widening the column. */
.m-compare-body > *, .m-infoline, .p-split.compact { min-width: 0; max-width: 100%; }
/* Phones: the card's top row (radio, logo, name, total, i) fits the card — on live it was wider than a 390 px screen
   and the cards were cut at the left edge. The 44 px radio and "i" reach into the card's padding (still 44 px). */
body.m-on .m-store-top { gap: 4px; }
body.m-on .m-store-top .m-radio-btn { margin-inline-start: -8px; }
body.m-on .m-store-top .m-info44 { margin-inline-end: -8px; }
body.m-on .m-store .m-store-name { flex: 1 1 0; min-width: 0; font-size: 17px; line-height: 1.2; overflow-wrap: break-word; }
body.m-on .m-store-top .m-store-total { font-size: 20px; white-space: nowrap; }

/* Restoring the session and the saved cart (bug 24.10): grey placeholders instead of "התחברות" / "העגלה ריקה". */
.m-skel { display: grid; gap: 12px; }
.m-skel-row { display: flex; align-items: center; gap: 12px; }
.m-skel-pic, .m-skel-lines > span, .m-skel-text { display: block; border-radius: 8px; background: var(--border); animation: m-skel 1.2s ease-in-out infinite alternate; }
.m-skel-pic { width: 56px; height: 56px; flex: none; border-radius: 12px; }
.m-skel-lines { flex: 1; display: grid; gap: 8px; }
.m-skel-lines > span { height: 12px; }
.m-skel-lines > span:last-child { width: 55%; }
.m-skel-text { width: 64px; height: 12px; }
.d-cart-skel { padding: 12px 16px; }
@keyframes m-skel { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .m-skel-pic, .m-skel-lines > span, .m-skel-text { animation: none; } }
