/*
 * New design — menu layer (App\Support\NewDesign::menu, body.nd-menu).
 * The new menu design (the prototypes of Monday 13296464653). Look and motion only: js/menu.js keeps every
 * cart state, text and amount; js/new-design-menu.js only adds classes and overlays.
 * `:not(#\9)` lifts a rule to one id of weight so it beats the Sites' class rules
 * (never their !important). Brand = --primary (Branch/Site colour, masterNew).
 */
body.nd-menu {
  --nd-ink: #0d0d0d;
  --nd-muted: rgba(13, 13, 13, .55);
  --nd-panel: #fbf9f6;
  --nd-line: color-mix(in srgb, var(--primary) 14%, transparent);
  --nd-line-2: color-mix(in srgb, var(--primary) 8%, transparent);
  --nd-tint: color-mix(in srgb, var(--primary) 9%, transparent);
  --nd-tint-2: color-mix(in srgb, var(--primary) 17%, transparent);
  --nd-primary-hover: color-mix(in srgb, var(--primary) 78%, #000);
  --nd-e-soft: cubic-bezier(.16, 1, .3, 1);
  --nd-e-fill: cubic-bezier(.76, 0, .24, 1);
  --nd-e-out: cubic-bezier(.32, .72, 0, 1);
}

/* ───────────── Cart: panel and header ───────────── */
/* the panel and its buttons read as one card, as in the design */
body.nd-menu .menu_wrapper .cart .cart_content:not(#\9) {
  padding: 0;
  background: var(--nd-panel);
  border: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  overflow: hidden;
}

body.nd-menu .menu_wrapper .cart .cart_content > h3:not(#\9) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--nd-line);
  color: var(--primary);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.5px;
  text-align: start;
}

/* a light brand (a cream, a yellow) does not read on the light panel: the heading goes dark, as text on light brands does */
body.nd-menu.nd-on-dark .menu_wrapper .cart .cart_content > h3:not(#\9) {
  color: var(--nd-ink);
}

body.nd-menu .nd-cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

body.nd-menu .nd-cart-count.is-bump {
  animation: ndBump .45s var(--nd-e-soft);
}

/* ───────────── Cart: lines ───────────── */
body.nd-menu .menu_wrapper .cart .list:not(#\9) {
  padding: 0 0 4px;
  color: var(--nd-ink);
}

body.nd-menu .menu_wrapper .cart .list .wrapper:not(#\9) {
  margin: 0;
  padding: 8px 12px;
}

/* a column, so a line's «+» copy can be shown under its source (`order`) while it stays where menu.js put it */
body.nd-menu .menu_wrapper .cart .list ul.items:not(#\9) {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

/* every line a card: white, a hairline, 8px apart — no drop shadow */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li:not(#\9) {
  position: relative;
  margin: 0 0 8px;
  padding: 12px 10px;
  border: 1px solid rgba(13, 13, 13, .08);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  line-height: 1.25;
  transition: background .3s var(--nd-e-soft);
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li + li:not(#\9) {
  border-top: 1px solid rgba(13, 13, 13, .08);
}

/* a quiet row hover (the prototype's 8% of a dark brand reads like ~5% of a light one) */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li:hover:not(#\9) {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li.nd-line-new {
  animation: ndLineIn .4s var(--nd-e-soft), ndLineFlash .8s ease-out;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li > .d-flex {
  gap: 10px;
  align-items: flex-start;
}

/* a narrow cart column (a Site's own grid: saada's is 255px) leaves the name ~80px between the pencil, the photo and
   the actions, and it broke after every word. Under 280px of list the pencil goes under a smaller photo, so the
   name gets the whole middle. Wide carts keep the row above. js/new-design-menu.js measures the list and marks the
   cart (.nd-lines-narrow): a container query would size the list apart from its content, and a Site that lets the
   cart's width follow its content would get a list of no width */
body.nd-menu .menu_wrapper .cart.nd-lines-narrow .list :is(ul.items, ul.nd-ghosts) > li > .d-flex:not(#\9) {
  display: grid !important; /* Bootstrap's .d-flex is */
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-auto-rows: min-content;
  column-gap: 8px;
  row-gap: 6px;
}

body.nd-menu .menu_wrapper .cart.nd-lines-narrow .list :is(ul.items, ul.nd-ghosts) > li > .d-flex > .px-1 {
  grid-area: 1 / 1;
}

body.nd-menu .menu_wrapper .cart.nd-lines-narrow .list :is(ul.items, ul.nd-ghosts) > li > .d-flex > a.edit:not(#\9) {
  grid-area: 2 / 1;
  justify-self: center;
  margin: 0;
}

body.nd-menu .menu_wrapper .cart.nd-lines-narrow .list :is(ul.items, ul.nd-ghosts) > li > .d-flex > .title {
  grid-area: 1 / 2 / span 2;
}

body.nd-menu .menu_wrapper .cart.nd-lines-narrow .list :is(ul.items, ul.nd-ghosts) > li > .d-flex > .flex-column {
  grid-area: 1 / 3 / span 2;
}

body.nd-menu .menu_wrapper .cart.nd-lines-narrow .list :is(ul.items, ul.nd-ghosts) > li > .d-flex > .px-1 > img.img_product:not(#\9) {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

/* edit — a round tinted button */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit:not(#\9) {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  margin: 10px 0 0;
  border-radius: 50%;
  background: var(--nd-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--nd-e-soft), transform .3s var(--nd-e-soft);
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit svg {
  width: 13px;
  height: 13px;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit svg path {
  fill: currentColor;
  stroke: none;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit:hover:not(#\9) {
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--primary) 70%, transparent);
}

/* photo + quantity badge (shown from 2 up) */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .px-1:not(#\9) {
  position: relative;
  flex-shrink: 0;
  padding: 0 !important;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li img.img_product:not(#\9) {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  background: #efe8dd;
  display: block;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .px-1[data-nd-qty]::after {
  content: attr(data-nd-qty);
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid var(--nd-panel);
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
}

/* name, options, price */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .title:not(#\9) {
  min-width: 0;
  padding: 0 !important;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .title-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--nd-ink);
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li ul.details:not(#\9) {
  padding: 3px 0 0;
  color: var(--nd-muted);
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li ul.details li:not(#\9) {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.4;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li span.base-price:not(#\9) {
  display: block;
  margin-top: 5px;
  text-align: start;
  font-size: 14px;
  font-weight: 700;
  color: var(--nd-ink);
}

/* actions column: «+» above, trash under it */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .flex-column:not(#\9) {
  width: 27px;
  flex-shrink: 0;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.plus:not(#\9),
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.minus:not(#\9),
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.remove:not(#\9) {
  width: 27px;
  height: 27px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(13, 13, 13, .8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .3s var(--nd-e-soft), color .3s var(--nd-e-soft), transform .3s var(--nd-e-soft);
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.plus svg {
  width: 12px;
  height: 12px;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.plus svg path {
  fill: currentColor;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.plus:hover:not(#\9),
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.minus:hover:not(#\9) {
  background: var(--nd-tint-2);
  color: var(--nd-primary-hover);
  transform: translateY(-1px);
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.plus:active:not(#\9),
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.remove:active:not(#\9),
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit:active:not(#\9) {
  transform: scale(.86);
  transition-duration: .1s;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .delete-btn-wrapper:not(#\9) {
  position: absolute;
  top: 42px;
  inset-inline-end: 8px;
}

/* the platform's «מחק» stays the accessible name; the eye sees a trash icon */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.remove:not(#\9) {
  font-size: 0;
  text-decoration: none;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li :is(a.remove, a.plus, a.edit)::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--nd-ico) center / contain no-repeat;
  mask: var(--nd-ico) center / contain no-repeat;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.remove { --nd-ico: var(--nd-ico-trash); }
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.plus { --nd-ico: var(--nd-ico-plus); }
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit { --nd-ico: var(--nd-ico-edit); }

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li :is(a.plus, a.edit) svg:not(#\9) {
  display: none;
}

/* delete reads as a destructive action */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.remove:hover:not(#\9) {
  background: rgba(180, 35, 24, .1);
  color: #b42318;
  transform: translateY(-1px);
}

body.nd-menu {
  --nd-ico-trash: url("/images/new-design/icons/menu/trash.svg");
  --nd-ico-plus: url("/images/new-design/icons/menu/plus.svg");
  --nd-ico-edit: url("/images/new-design/icons/menu/edit.svg");
  --nd-ico-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2 3h3l2.7 12.4a1.6 1.6 0 0 0 1.6 1.3h9a1.6 1.6 0 0 0 1.6-1.2L22 8H6.1'/%3E%3C/svg%3E");
  --nd-ico-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --nd-ico-check-white: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --nd-ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
}

/* a deal's or a coupon's discount line: a slim tinted note, not a product card
   (the attribute outweighs the line rules on both widths) */
body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li[data-discount="true"]:not(#\9) {
  margin: 0 0 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 12px;
  background: var(--nd-tint);
  box-shadow: none;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li[data-discount="true"] .title:not(#\9) {
  min-height: 0;
  padding: 0;
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li[data-discount="true"] .title-name:not(#\9) {
  font-size: 13px;
  font-weight: 700;
  color: var(--nd-primary-hover);
}

body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li[data-discount="true"] span.base-price:not(#\9) {
  height: auto;
  margin: 0;
  font-size: 13px;
}

/* empty cart: compact enough for the smallest lines area (120px), centred when there is more */
body.nd-menu .nd-cart-empty {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 10px 20px;
  text-align: center;
}

body.nd-menu .nd-cart-empty::before {
  content: "";
  flex: none;
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  background: rgba(13, 13, 13, .4);
  opacity: .5;
  -webkit-mask: var(--nd-ico-cart) center / contain no-repeat;
  mask: var(--nd-ico-cart) center / contain no-repeat;
}

body.nd-menu .nd-cart-empty b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--nd-ink);
}

body.nd-menu .nd-cart-empty span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--nd-muted);
}

/* ───────────── Cart: totals ───────────── */
body.nd-menu .menu_wrapper .cart .list > :is(.subtotal, .discount, .coupon_discount, .shipment, .maam, .total):not(#\9),
body.nd-menu .menu_wrapper .cart .list .fees > .fee:not(#\9) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 22px;
  border: none;
  font-size: 14px;
  color: var(--nd-muted);
}

body.nd-menu .menu_wrapper .cart .list > .subtotal:not(#\9) {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--nd-line);
}

body.nd-menu .menu_wrapper .cart .list > :is(.subtotal, .discount, .coupon_discount, .shipment, .maam, .total) > span:not(#\9),
body.nd-menu .menu_wrapper .cart .list .fees > .fee > span:not(#\9) {
  float: none;
  font-weight: 700;
  color: var(--nd-ink);
  font-variant-numeric: tabular-nums;
}

body.nd-menu .menu_wrapper .cart .list > .total:not(#\9) {
  position: relative;
  margin: 8px 22px 0;
  padding: 12px 0 5px;
  border-top: 1px solid var(--nd-line);
  font-size: 19px;
  font-weight: 900;
  color: var(--nd-ink);
}

body.nd-menu .menu_wrapper .cart .list > .total > span:not(#\9) {
  font-weight: 900;
}

/* the rolling figure: an overlay <i> drawn over the platform's amount, which stays in place */
/* the cart's figures anchor their overlay; the phone bar is already fixed */
body.nd-menu .cart .nd-roll-host {
  position: relative;
}

body.nd-menu .nd-rolling {
  color: transparent !important;
}

body.nd-menu .nd-roll {
  position: absolute;
  font-style: normal;
  font-weight: inherit;
  white-space: nowrap;
  color: var(--nd-ink);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

body.nd-menu .open_cart .nd-roll {
  color: var(--nd-on-primary, #fff);
}

body.nd-menu .nd-spring {
  display: inline-block;
  animation: ndSpring .42s cubic-bezier(.34, 1.8, .64, 1);
}

/* coupon / points cards: compact, the field and its button on one row */
body.nd-menu .menu_wrapper .cart .list :is(.checkout-coupon-card, .points_payment, .vc_points):not(#\9) {
  margin: 8px 16px 4px;
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: none;
  border: 1px solid var(--nd-line);
}

body.nd-menu .menu_wrapper .cart .list .checkout-coupon-card:not(#\9) {
  display: grid;
  grid-template-columns: minmax(min(120px, 100%), 1fr) auto;
  column-gap: 8px;
  align-items: center;
}

body.nd-menu .menu_wrapper .cart .list .checkout-coupon-card > :not(.form-control):not(.btn):not(#\9) {
  grid-column: 1 / -1;
}

body.nd-menu .menu_wrapper .cart .list .checkout-coupon-card__heading:not(#\9) {
  gap: 6px;
  margin: 0;
}

body.nd-menu .menu_wrapper .cart .list .checkout-coupon-card__icon:not(#\9) {
  width: 22px;
  height: 22px;
}

body.nd-menu .menu_wrapper .cart .list .checkout-coupon-card__title:not(#\9) {
  font-size: 16px;
  font-weight: 800;
}

body.nd-menu .menu_wrapper .cart .list .checkout-coupon-card__help:not(#\9) {
  margin: 2px 0 8px;
  font-size: 12.5px;
  color: var(--nd-muted);
}

body.nd-menu .menu_wrapper .cart .list :is(.checkout-coupon-card, .points_payment, .vc_points) .form-control:not(#\9) {
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c9c9c9;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  transition: border-color .3s var(--nd-e-soft), box-shadow .3s var(--nd-e-soft);
}

body.nd-menu .menu_wrapper .cart .list :is(.checkout-coupon-card, .points_payment, .vc_points) .form-control:focus:not(#\9) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--nd-tint-2);
}

body.nd-menu .menu_wrapper .cart .list :is(.checkout-coupon-card, .points_payment, .vc_points) .btn:not(#\9) {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .3s var(--nd-e-soft), filter .3s var(--nd-e-soft), box-shadow .3s var(--nd-e-soft);
}

/* a long label («Воспользоваться промокодом») takes two lines: the field keeps room to type */
body.nd-menu .menu_wrapper .cart .list .checkout-coupon-card .btn:not(#\9) {
  white-space: normal;
  line-height: 1.15;
}

body.nd-menu .menu_wrapper .cart .list :is(.points_payment, .vc_points) .btn:not(#\9) {
  width: 100%;
  margin-top: 8px;
}

body.nd-menu .menu_wrapper .cart .list :is(.checkout-coupon-card, .points_payment, .vc_points) .btn:hover:not(#\9) {
  filter: brightness(.92);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--primary) 80%, transparent);
}

body.nd-menu .menu_wrapper .cart .list :is(.checkout-coupon-card, .points_payment, .vc_points) .btn:active:not(#\9) {
  transform: scale(.96);
  transition-duration: .1s;
}

/* a coupon taken: the field turns to the brand and a «coupon applied» chip pops in under it */
body.nd-menu .menu_wrapper .cart .list .nd-coupon-ok .form-control:not(#\9) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, #fff);
  color: var(--nd-ink);
  opacity: 1;
}

body.nd-menu .nd-coupon-chip {
  display: none;
}

body.nd-menu .menu_wrapper .cart .list .nd-coupon-ok:is(.is-open, .nd-coupon-closing, :not(.is-collapsible)) .nd-coupon-chip:not(#\9) {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-block: 3px;
  padding-inline: 4px 10px;
  border-radius: 999px;
  background: var(--nd-tint);
  color: var(--nd-primary-hover);
  font-size: 12.5px;
  font-weight: 800;
}

body.nd-menu .nd-coupon-chip::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary) var(--nd-ico-check-white) center / 11px no-repeat;
}

body.nd-menu .nd-coupon-just .nd-coupon-chip {
  animation: ndChipIn .55s cubic-bezier(.34, 1.6, .64, 1);
}

body.nd-menu .nd-coupon-just .form-control {
  animation: ndOkRing .9s ease-out;
}

/* folded while applied: the heading carries the code with a check */
body.nd-menu .menu_wrapper .cart .list .nd-coupon-ok:not(.is-open):not(.nd-coupon-closing) .checkout-coupon-card__heading::after {
  content: "✓  " attr(data-nd-code);
  order: 1;
  margin-inline-start: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--nd-tint);
  color: var(--nd-primary-hover);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  animation: ndChipIn .45s cubic-bezier(.34, 1.6, .64, 1);
}

body.nd-menu .menu_wrapper .cart .list .nd-coupon-ok:not(.is-open):not(.nd-coupon-closing) .checkout-coupon-card__arrow {
  order: 2;
  margin-inline-start: 6px;
}

/* the discount line answers when its amount moves */
body.nd-menu .menu_wrapper .cart .list > .discount.nd-row-flash {
  border-radius: 8px;
  animation: ndRowFlash 1s ease-out;
}

/* the folding coupon card (coupon_collapsed): height eases, fields come in one after another.
   menu.js still only toggles .is-open; js/new-design-menu.js animates between the two heights. */
body.nd-menu .menu_wrapper .cart .checkout-coupon-card.is-collapsible:not(#\9) {
  overflow: hidden;
  transition: box-shadow .3s var(--nd-e-soft), border-color .3s var(--nd-e-soft);
}

body.nd-menu .menu_wrapper .cart .checkout-coupon-card.is-collapsible:hover:not(#\9) {
  border-color: var(--nd-tint-2);
}

body.nd-menu .menu_wrapper .cart .checkout-coupon-card.is-collapsible.nd-coupon-anim > :not(.checkout-coupon-card__heading):not(.nd-coupon-chip):not(#\9) {
  display: block;
}

body.nd-menu .menu_wrapper .cart .checkout-coupon-card.is-collapsible .checkout-coupon-card__arrow {
  transition: transform .45s var(--nd-e-soft);
}

body.nd-menu .menu_wrapper .cart .checkout-coupon-card.is-collapsible.is-open > :not(.checkout-coupon-card__heading) {
  animation: ndFieldIn .4s var(--nd-e-soft) both;
}

body.nd-menu .menu_wrapper .cart .checkout-coupon-card.is-collapsible.is-open > :nth-child(3) { animation-delay: .05s; }
body.nd-menu .menu_wrapper .cart .checkout-coupon-card.is-collapsible.is-open > :nth-child(n+4) { animation-delay: .1s; }

body.nd-menu .menu_wrapper .cart .checkout-coupon-card.is-collapsible.nd-coupon-closing > :not(.checkout-coupon-card__heading) {
  animation: ndFieldOut .22s ease-in both;
}

/* notes: fine print */
body.nd-menu .menu_wrapper .cart .notes:not(#\9) {
  padding: 12px 22px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(13, 13, 13, .66);
  text-align: start;
}

/* «without the delivery fee»: the brand colour is too pale on the panel for small text; weight marks it instead */
body.nd-menu .menu_wrapper .cart .notes .color-primary:not(#\9) {
  color: var(--nd-ink);
  font-weight: 600;
}

/* the platform's clock picture (front.css: content: url(icon-time.png)) is not the design's; a Site's own icon painted
   as a background (saada's clock) stays, as the prototypes have no notes line to say otherwise */
body.nd-menu .menu_wrapper .cart .notes::before {
  content: "";
  margin-inline-end: 6px;
}

/* ───────────── Cart: pay and clear ───────────── */
body.nd-menu .menu_wrapper .cart_controls:not(#\9) {
  align-items: center;
  gap: 8px;
  padding: 2px 14px 14px;
  background: var(--nd-panel);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 34px 64px -44px rgba(0, 0, 0, .32);
}

body.nd-menu .menu_wrapper .cart_controls a.order:not(#\9) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14.5px 15px; /* 58px high with the arrow's circle, as in the prototypes */
  border: 1.5px solid var(--primary);
  /* round ends at the prototypes' 58px; a caption on several lines keeps square-ish corners clear of its letters */
  border-radius: 29px;
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .45s var(--nd-e-soft), box-shadow .45s var(--nd-e-soft), border-color .45s var(--nd-e-soft);
}

/* the darker fill sweeps in from the reading start */
body.nd-menu .menu_wrapper .cart_controls a.order::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nd-primary-hover);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .42s var(--nd-e-fill);
}

body.nd-menu.ltr .menu_wrapper .cart_controls a.order::before {
  transform-origin: left;
}

/* the arrow in a circle, pointing forward */
body.nd-menu .menu_wrapper .cart_controls a.order::after {
  content: "";
  position: static; /* rest and others draw a press ripple here: absolute, hidden, scaled to 0 */
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin: 0;
  opacity: 1;
  transform: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18) var(--nd-ico-arrow) center / 15px no-repeat;
  transition: transform .4s var(--nd-e-out);
}

body.nd-menu.ltr .menu_wrapper .cart_controls a.order::after {
  transform: scaleX(-1);
}

/* the checkout on the page (no window): its panel has its own send button, the cart's pay button goes (front.css does it, the layer's display overrode it) */
body.nd-menu .menu_wrapper.order .cart_controls a.order:not(#\9) {
  display: none;
}

/* the platform's delivery strip above the cart is white on the brand colour too */
body.nd-menu.nd-on-dark .menu_wrapper .cart .cart_order_info:not(#\9),
body.nd-menu.nd-on-dark .menu_wrapper .cart .cart_order_info *:not(#\9) {
  color: var(--nd-on-primary) !important; /* Bootstrap's .text-white is !important */
}

/* the arrow is a white image: on a light brand colour it goes dark with the text */
body.nd-menu.nd-on-dark .menu_wrapper .cart_controls a.order::after {
  filter: brightness(0);
}

body.nd-menu .menu_wrapper .cart_controls a.order:hover:not(#\9) {
  color: var(--nd-on-primary, #fff);
  border-color: var(--nd-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .35);
}

body.nd-menu .menu_wrapper .cart_controls a.order:hover::before {
  transform: scaleX(1);
}

body.nd-menu.rtl .menu_wrapper .cart_controls a.order:hover::after {
  transform: translateX(-3px);
}

body.nd-menu.ltr .menu_wrapper .cart_controls a.order:hover::after {
  transform: scaleX(-1) translateX(-3px);
}

/* held: a slight press that stays, as in the prototypes. Some Sites (rest, delicates) invert the fill on
   :active with !important and play a ripple on ::after, where the layer draws the arrow: the layer keeps both */
body.nd-menu .menu_wrapper .cart_controls a.order:active:not(#\9) {
  transform: translateY(0) scale(.99);
  background-color: var(--primary) !important;
  color: var(--nd-on-primary, #fff) !important;
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .35) !important;
}

body.nd-menu .menu_wrapper .cart_controls a.order:active:not(#\9)::after {
  animation: none;
}

/* the idle halo while the cart has lines, in the prototypes' rhythm; under the pointer the hover shadow takes over */
body.nd-menu .menu_wrapper .cart_controls a.order.nd-nudge:not(:hover):not(#\9) {
  animation: ndPayGlow 1.8s linear infinite;
}

body.nd-menu.rtl .menu_wrapper .cart_controls a.order.nd-nudge:not(:hover)::after {
  animation: ndPayArrow 1.7s ease-in-out infinite;
}

body.nd-menu.ltr .menu_wrapper .cart_controls a.order.nd-nudge:not(:hover)::after {
  animation: ndPayArrowLtr 1.7s ease-in-out infinite;
}

/* waiting for the platform's availability check: the arrow's circle turns into a spinner.
   `rotate`, not `transform`, so the circle stays where hover and the mirrored arrow put it. */
body.nd-menu.nd-pay-wait .menu_wrapper .cart_controls a.order:not(#\9) {
  cursor: progress;
}

body.nd-menu.nd-pay-wait .menu_wrapper .cart_controls a.order:not(#\9)::after {
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  background: none;
  animation: ndPaySpin .8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  body.nd-menu.nd-pay-wait .menu_wrapper .cart_controls a.order:not(#\9)::after {
    animation: none;
  }
}

body.nd-menu .menu_wrapper .cart_controls a.clear_cart:not(#\9) {
  flex-grow: 0;
  min-width: 46px;
  padding: 2px;
  border-radius: 12px;
  background: transparent;
  color: rgba(13, 13, 13, .8);
  fill: currentColor;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color .35s var(--nd-e-soft), transform .35s var(--nd-e-soft);
}

/* the same bin as on the lines (the design's icon) instead of the platform's filled one */
body.nd-menu .menu_wrapper .cart_controls a.clear_cart svg:not(#\9) {
  display: none;
}

body.nd-menu .menu_wrapper .cart_controls a.clear_cart::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--nd-ico-trash) center / contain no-repeat;
  mask: var(--nd-ico-trash) center / contain no-repeat;
}

body.nd-menu .menu_wrapper .cart_controls a.clear_cart:hover:not(#\9) {
  color: var(--nd-primary-hover);
  fill: currentColor;
  transform: translateY(-2px);
}

body.nd-menu .menu_wrapper .cart_controls a.clear_cart:active:not(#\9) {
  transform: scale(.9);
}

/* the order type card above the cart */
body.nd-menu .menu_wrapper .cart .cart_order_info:not(#\9) {
  border-radius: 20px !important;
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--primary) 70%, transparent);
}

body.nd-menu .menu_wrapper .cart .cart_order_info a.edit {
  transition: transform .3s var(--nd-e-soft);
}

body.nd-menu .menu_wrapper .cart .cart_order_info a.edit:hover {
  transform: rotate(-12deg) scale(1.08);
}

/* ───────────── Desktop: the cart fits the screen ─────────────
   js/new-design-menu.js measures the room under the sticky cart's top and gives the lines
   what is left after the pinned parts (order card, heading, coupon, totals, fine print,
   buttons): the lines area grows with the order and shrinks to its minimum, then scrolls.
   If even that does not fit (a short screen with the coupon open), the middle of the card
   scrolls; nothing is clipped and the buttons stay on screen. */
@media (min-width: 768px) {
  body.nd-menu .menu_wrapper .cart > .wrapper:not(#\9) {
    display: flex;
    flex-direction: column;
    max-height: var(--nd-cart-max, calc(100vh - 170px));
    overflow: visible;
    /* front.css eases `all`: a lagging max-height flashes the middle's scrollbar when the cart sticks */
    transition: top .4s ease-in-out;
  }

  body.nd-menu .menu_wrapper .cart > .wrapper > *:not(#\9) {
    flex: none;
  }

  body.nd-menu .menu_wrapper .cart > .wrapper > .cart_content:not(#\9) {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  body.nd-menu .menu_wrapper .cart > .wrapper > .cart_content::-webkit-scrollbar {
    display: none;
  }

  /* The platform's round accessibility button lands on the pay button or the total. A tab this
     narrow stays clear of them: the cart's lines start 27px from the edge, the pay button 29px. */
  body.nd-menu:not(#\9) .a11y_floating_button {
    width: 26px;
    height: 46px;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(13, 13, 13, .22);
  }
}

/* the accessibility button as a tab on the screen edge, on the phone too */
body.nd-menu.rtl:not(#\9) .a11y_floating_button {
  right: auto;
  left: 0;
  border-radius: 0 14px 14px 0;
}

body.nd-menu.ltr:not(#\9) .a11y_floating_button {
  right: 0;
  left: auto;
  border-radius: 14px 0 0 14px;
}

/* ───────────── The lines area (desktop and the phone sheet) ─────────────
   Its height comes from js/new-design-menu.js (--nd-lines-max). When there is more to
   scroll, the edges fade and a thumb in the side gutter says where the lines stand. */
body.nd-menu .menu_wrapper .cart .list > .wrapper:not(#\9) {
  position: relative;
  min-height: 0;
  max-height: var(--nd-lines-max, none);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.nd-menu .menu_wrapper .cart .list > .wrapper.nd-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), rgba(0, 0, 0, .15));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), rgba(0, 0, 0, .15));
}

body.nd-menu .menu_wrapper .cart .list > .wrapper.nd-less {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .15), #000 26px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .15), #000 26px);
}

body.nd-menu .menu_wrapper .cart .list > .wrapper.nd-more.nd-less {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .15), #000 26px, #000 calc(100% - 34px), rgba(0, 0, 0, .15));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .15), #000 26px, #000 calc(100% - 34px), rgba(0, 0, 0, .15));
}

/* the coupon card folds: the lines give or take its room in the same motion */
body.nd-menu .menu_wrapper .cart.nd-lines-ease .list > .wrapper:not(#\9) {
  transition: max-height .42s cubic-bezier(.16, 1, .3, 1);
}

/* too little room: the whole middle scrolls as one, the lines are plain content in it */
body.nd-menu .menu_wrapper .cart.nd-one-scroll .list > .wrapper:not(#\9) {
  overflow: visible;
  overscroll-behavior: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

/* the middle scrolls as one: the total still stands by the pay button, the lines pass under it */
body.nd-menu .menu_wrapper .cart.nd-one-scroll .list > .total:not(#\9) {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--nd-panel);
  box-shadow: -22px 0 var(--nd-panel), 22px 0 var(--nd-panel), 0 10px var(--nd-panel), -22px 10px var(--nd-panel), 22px 10px var(--nd-panel);
}

/* a field or a line brought into sight (a line's «+» copy) stops above that total, not under it */
body.nd-menu .menu_wrapper .cart.nd-one-scroll .list :is(input, textarea, ul.items > li):not(#\9) {
  scroll-margin-bottom: 56px;
}

/* where the lines stand: a slim thumb in the side gutter, never over a line */
body.nd-menu .menu_wrapper .cart .list:not(#\9) {
  position: relative;
}

body.nd-menu .menu_wrapper .cart .list > .wrapper:not(#\9) {
  scrollbar-width: none;
}

body.nd-menu .menu_wrapper .cart .list > .wrapper::-webkit-scrollbar {
  display: none;
}

body.nd-menu .nd-scroll-thumb {
  position: absolute;
  top: 0;
  inset-inline-end: 3px;
  width: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 40%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--nd-e-soft);
}

body.nd-menu .nd-scroll-thumb.is-on {
  opacity: 1;
}

/* ───────────── Phone: bottom bar and the cart sheet ───────────── */
@media not all and (min-width: 768px) {
  body.nd-menu .menu_wrapper ul.categories:not(#\9) {
    bottom: 0;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  /* iOS reports the safe area only while its toolbar is hidden, so env() flips between 0 and
     ~34px as the page scrolls. The bar's height must not follow it: several Sites carry
     `body.menu a.open_cart { padding-bottom: calc(5px + env(safe-area-inset-bottom)) !important }`,
     which stretched the bar. Hence !important on the padding: among !important rules the heavier
     selector wins, whatever the order.
     The position does follow the flip, eased so it never snaps. */
  /* The phone ends where the desktop starts (768px): front.css and menu.js stop at 767px, so a width between the
     two (a zoomed page, 767.5px) has neither. What the bar and the sheet take from front.css is said here too */
  body.nd-menu .menu_wrapper .open_cart:not(#\9) {
    position: fixed;
    background: var(--primary);
    font-size: 18px;
    line-height: 30px;
    z-index: 21;
    inset-inline: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 18px !important;
    border-radius: 999px;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
    color: var(--nd-on-primary, #fff);
    font-weight: 700;
    text-decoration: none;
    transition: bottom .28s var(--nd-e-out), transform .3s var(--nd-e-out), opacity .3s var(--nd-e-soft), filter .2s ease;
  }

  /* the bar is the sheet closed: it goes down as the sheet comes up and is back as the sheet leaves, as in the
     prototypes. Its taps count again only once the sheet is gone, as while it stood under the dimmed page */
  body.nd-menu.nd-cart-open .menu_wrapper .open_cart:not(#\9) {
    pointer-events: none;
  }

  body.nd-menu.nd-cart-open:not(.nd-cart-leaving) .menu_wrapper .open_cart:not(#\9) {
    opacity: 0;
    transform: translateY(120%);
  }

  /* The platform's round accessibility button (enable_accessibility = 3) is fixed 80px above
     the bottom edge, over the bar's price and the sheet's buttons. Here: a small tab on the
     screen edge, above the bar; under the sheet and under dialogs while they are open. */
  body.nd-menu:not(#\9) .a11y_floating_button {
    z-index: 22; /* above the category list and the bar, under the dimmed page (29) and the sheet (30) */
    bottom: calc(80px + env(safe-area-inset-bottom));
    width: 34px;
    height: 46px;
    font-size: 21px;
    box-shadow: 0 2px 8px rgba(13, 13, 13, .22);
    transition: bottom .28s var(--nd-e-out);
  }

  /* the icon at the prototypes' 26px, 14px off the label: at the Sites' 17px glyph the count covered most of it */
  body.nd-menu .menu_wrapper .open_cart > .fa:not(#\9) {
    flex: none;
    width: 26px;
    margin-inline-end: 4px;
    font-size: 24px;
    line-height: 1;
    text-align: center;
  }

  /* the count is a circle on the cart icon's corner, as in the prototypes (8px over its top, 10px past its side,
     its edge in the bar's colour); none at zero */
  body.nd-menu .menu_wrapper .open_cart .count:not(#\9) {
    position: absolute;
    top: calc(50% - 20px);
    inset-inline-start: 32px;
  }

  body.nd-menu .menu_wrapper .open_cart .count:not(:empty) {
    box-shadow: 0 0 0 2px var(--primary);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--nd-on-primary, #fff);
    color: var(--primary);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.nd-menu .menu_wrapper .open_cart .price:not(#\9) {
    float: none;
    margin-inline-start: auto;
    font-size: 16.8px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  /* held: the Sites' inverted press (rest, delicates) would put their colours on the bar */
  body.nd-menu .menu_wrapper .open_cart:active:not(#\9) {
    background-color: var(--primary) !important;
    color: var(--nd-on-primary, #fff) !important;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45) !important;
  }

  body.nd-menu .menu_wrapper .open_cart.nd-nudge {
    animation: ndPayGlow 1.8s linear infinite;
  }

  /* ── the cart: a sheet from the bottom. menu.js shows it with an inline display:block,
     so the column layout lives one level in, on the panel (.cart > .wrapper). ── */
  /* its height comes from js/new-design-menu.js: 86% of the screen, up to 94% as the lines need it */
  body.nd-menu .menu_wrapper .cart:not(#\9) {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    float: none;
    width: auto;
    margin: 0;
    top: auto;
    bottom: 0;
    height: var(--nd-sheet-h, 86vh);
    max-height: none;
    padding: 0;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: var(--nd-panel);
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .45);
    overscroll-behavior: contain;
  }

  body.nd-menu .menu_wrapper .cart.nd-sheet-in {
    animation: ndSheetIn .42s var(--nd-e-soft);
  }

  body.nd-menu .menu_wrapper .cart:is(.nd-sheet-out, .nd-sheet-leave) {
    animation: ndSheetOut .42s var(--nd-e-soft) forwards;
  }

  body.nd-menu.nd-cart-open.nd-cart-leaving::after {
    animation: ndFadeOut .35s var(--nd-e-soft) forwards;
  }

  body.nd-menu .menu_wrapper .cart.nd-sheet-drag {
    transition: none;
  }

  body.nd-menu .menu_wrapper .cart > .wrapper:not(#\9) {
    position: static;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  body.nd-menu .menu_wrapper .cart > .wrapper > *:not(#\9) {
    flex: none;
  }

  /* The sheet always opens to its full height and the lines fill what the pinned parts leave
     (--nd-lines-max), so the coupon, the totals and the buttons stand in one place however
     many lines there are. */
  body.nd-menu .menu_wrapper .cart .list > .wrapper:not(#\9) {
    height: var(--nd-lines-max, auto);
  }

  body.nd-menu .menu_wrapper .cart.nd-lines-ease .list > .wrapper:not(#\9),
  body.nd-menu .menu_wrapper .cart.nd-lines-ease:not(#\9) {
    transition: max-height .42s cubic-bezier(.16, 1, .3, 1), height .42s cubic-bezier(.16, 1, .3, 1);
  }

  /* the middle scrolls only as a last resort (see the desktop note) */
  body.nd-menu .menu_wrapper .cart > .wrapper > .cart_content:not(#\9) {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  /* the handle */
  body.nd-menu .menu_wrapper .cart > .wrapper::before {
    content: "";
    flex: none;
    display: block;
    width: 42px;
    height: 5px;
    margin: 10px auto 4px;
    border-radius: 999px;
    background: rgba(13, 13, 13, .2);
  }

  /* the heading's title and count 16px from the sheet's edges, as in the prototypes (the sheet's own 10px included) */
  body.nd-menu .menu_wrapper .cart .cart_content > h3:not(#\9) {
    padding: 6px 6px 8px;
    font-size: 20px;
  }

  body.nd-menu .nd-cart-count:not(#\9) {
    min-width: 26px;
    height: 26px;
    font-size: 13px;
  }

  /* the figures stay legible but give the lines their room */
  body.nd-menu .menu_wrapper .cart .list > :is(.subtotal, .discount, .coupon_discount, .shipment, .maam, .total):not(#\9),
  body.nd-menu .menu_wrapper .cart .list .fees > .fee:not(#\9) {
    padding: 2px 18px;
    font-size: 13.5px;
  }

  body.nd-menu .menu_wrapper .cart .list > .subtotal:not(#\9) {
    margin-top: 4px;
    padding-top: 10px;
  }

  body.nd-menu .menu_wrapper .cart .list > .total:not(#\9) {
    margin: 6px 18px 0;
    padding: 8px 0 2px;
    font-size: 18px;
  }

  body.nd-menu .menu_wrapper .cart .notes:not(#\9) {
    padding: 6px 18px 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  body.nd-menu .menu_wrapper .cart .cart_content > p:not(.notes):not(#\9) {
    margin: 0;
  }

  body.nd-menu .menu_wrapper .cart .list > .wrapper:not(#\9) {
    padding: 6px 12px 4px;
  }

  /* ── lines as cards: photo, name, options, price at the bottom; delete · add · edit
     gathered in one corner on the price's row (the prototype's touch anatomy) ── */
  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li:not(#\9) {
    --act: 36px;
    --act-gap: 6px;
    --act-inset: 12px;
    margin: 0 0 8px;
    padding: var(--act-inset);
    border-radius: 16px;
    background: #fff;
  }


  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li > .d-flex:not(#\9) {
    gap: 12px;
    align-items: stretch;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .px-1:not(#\9) {
    align-self: center;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li img.img_product:not(#\9) {
    width: 76px;
    height: 76px;
    border-radius: 13px;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .px-1[data-nd-qty]::after {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-width: 2.5px;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .title:not(#\9) {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--act) + 40px);
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .title-name:not(#\9) {
    font-size: 15.5px;
    line-height: 1.3;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li ul.details li:not(#\9) {
    font-size: 12.5px;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li span.base-price:not(#\9) {
    margin-top: auto;
    height: var(--act);
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 900;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit:not(#\9),
  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .flex-column:not(#\9),
  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .delete-btn-wrapper:not(#\9) {
    position: absolute;
    top: auto;
    bottom: var(--act-inset);
    margin: 0;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .delete-btn-wrapper:not(#\9) {
    inset-inline-end: var(--act-inset);
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li .flex-column:not(#\9) {
    width: var(--act);
    inset-inline-end: calc(var(--act-inset) + var(--act) + var(--act-gap));
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit:not(#\9) {
    inset-inline-end: calc(var(--act-inset) + 2 * (var(--act) + var(--act-gap)));
  }

  /* one circle for all three (the platform pins «+» to 25px wide); the circle keeps the
     theme's tint, the icon says the action: delete red, add the theme, edit neutral */
  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li :is(a.edit, a.plus, a.remove):not(#\9) {
    flex: 0 0 var(--act);
    width: var(--act);
    height: var(--act);
    border-radius: 50%;
    background: var(--nd-tint);
    color: var(--nd-primary-hover);
  }

  /* the platform's Bootstrap .mb-1 (4px, !important) lifts «+» and edit above the bin */
  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li :is(a.edit, a.plus, a.minus):not(#\9) {
    margin: 0 !important;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.remove:not(#\9) {
    color: #b42318;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.edit:not(#\9) {
    color: #3d3d3d;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li :is(a.remove, a.plus, a.edit)::before {
    width: 16px;
    height: 16px;
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li :is(a.edit, a.plus, a.remove):active:not(#\9) {
    transform: scale(.86);
  }

  body.nd-menu .menu_wrapper .cart .list :is(ul.items, ul.nd-ghosts) > li a.remove:active:not(#\9) {
    background: rgba(180, 35, 24, .12);
    color: #b42318;
  }

  /* ── the order type card: a compact accordion — the type up front, the details on demand.
     menu.js still swaps its two links and the .more block; the script eases the height. ── */
  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none:not(#\9) {
    position: relative;
    margin: 4px 12px 8px !important;
    padding: 10px 14px 12px !important;
    border-radius: 18px !important;
    overflow: hidden;
    transition: box-shadow .3s var(--nd-e-soft);
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none > p:first-child:not(#\9) {
    margin: 0 !important;
    padding: 0 !important;
    padding-inline-end: 92px !important;
    border: 0 !important;
    font-size: 12px;
    opacity: .85;
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none a.edit:not(#\9) {
    position: absolute;
    top: 10px;
    right: auto;
    left: auto;
    inset-inline-end: 56px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .22) !important;
    color: var(--nd-on-primary, #fff);
    display: grid;
    place-items: center;
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none a.edit i {
    color: var(--nd-on-primary, #fff);
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none .open_cart_order_info:not(#\9) {
    padding: 2px 0 0;
    padding-inline-end: 92px;
    text-align: start !important;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none .open_cart_order_info br {
    display: none;
  }

  /* both chevrons sit in the same corner circle, so the swap reads as one turning arrow */
  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none :is(.open_cart_order_info, .close_cart_order_info) i:not(#\9) {
    position: absolute;
    top: 10px;
    inset-inline-end: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: grid;
    place-items: center;
    font-size: 13px;
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none .close_cart_order_info i {
    animation: ndChevUp .4s var(--nd-e-soft);
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none .open_cart_order_info i {
    animation: ndChevDown .4s var(--nd-e-soft);
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none .more:not(#\9) {
    padding-top: 4px;
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none .more > .close_cart_order_info:not(#\9) {
    position: static;
    height: 0;
    animation: none;
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none .more > *:not(#\9) {
    padding: 0 !important;
    font-size: 14px;
    animation: ndFieldIn .4s var(--nd-e-soft) both;
  }

  body.nd-menu .menu_wrapper .cart .cart_order_info.d-md-none .more > p:first-child:not(#\9) {
    font-size: 17px;
    font-weight: 800;
  }

  /* ── the buttons: a docked row at the bottom of the sheet, never floating over content ── */
  body.nd-menu .menu_wrapper .cart_controls:not(#\9) {
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--nd-line);
    border-radius: 0;
    box-shadow: 0 -12px 24px -20px rgba(0, 0, 0, .4);
  }

  /* back (pointing back, at the reading start) · clear · pay (forward, at the end) */
  body.nd-menu .menu_wrapper .cart_controls :is(a.menu, a.clear_cart):not(#\9) {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-width: 0;
    max-height: none;
    align-self: center;
    padding: 0;
    border-radius: 50%;
  }

  /* «back» as in the prototypes: a bare arrow on a 52×58 touch area; the arrow keeps the ink (no second brand colour here) */
  body.nd-menu .menu_wrapper .cart_controls a.menu:not(#\9) {
    order: 1;
    flex-basis: 52px;
    width: 52px;
    height: 58px;
    border-radius: 12px;
    background: none;
    color: var(--nd-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--nd-e-soft);
  }

  /* its caption («back to menu») stays its name for a screen reader; front.css hides it outright */
  body.nd-menu .menu_wrapper .cart_controls a.menu > span:not(#\9) {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.nd-menu .menu_wrapper .cart_controls a.menu svg:not(#\9) {
    width: 20px;
  }

  /* the platform draws «back» as a right-pointing arrow (Hebrew reading); LTR points it left */
  body.nd-menu.ltr .menu_wrapper .cart_controls a.menu svg:not(#\9) {
    transform: scaleX(-1);
  }

  /* the prototype's bin has no caption; «ריקון סל» stays its accessible name */
  body.nd-menu .menu_wrapper .cart_controls a.clear_cart:not(#\9) {
    order: 2;
    justify-content: center;
    gap: 0;
    background: var(--nd-tint);
    color: #b42318;
    font-size: 0;
  }

  body.nd-menu .menu_wrapper .cart_controls a.clear_cart::before {
    width: 19px;
    height: 19px;
  }

  /* a long caption (Russian) takes a second line and the button grows: a fixed height cut it top and bottom */
  body.nd-menu .menu_wrapper .cart_controls a.order:not(#\9) {
    order: 3;
    flex: 1 1 auto;
    height: auto;
    min-height: 58px;
    align-self: center;
    padding: 6px 15px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
  }

  /* front.css drops the button's border on a rtl phone (border: none !important) */
  body.nd-menu.rtl .menu_wrapper .cart_controls a.order:not(#\9) {
    border: 1.5px solid var(--primary) !important;
  }

  body.nd-menu .menu_wrapper .cart_controls a.order::after {
    width: 26px;
    height: 26px;
  }

  body.nd-menu .menu_wrapper .cart_controls :is(a.menu, a.clear_cart):active:not(#\9) {
    transform: scale(.9);
  }

  /* the dimmed menu behind the open sheet */
  body.nd-menu.nd-cart-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(13, 13, 13, .45);
    animation: ndFade .35s var(--nd-e-soft);
  }

  body.nd-menu.nd-cart-open {
    overflow: hidden;
    cursor: pointer;
  }
}

/* the cleared lines drift toward the reading end */
body.nd-menu.rtl .nd-ghosts {
  --nd-ghost-x: -18px;
}

/* less motion asked for: everything lands at once, nothing loops */
@media (prefers-reduced-motion: reduce) {
  body.nd-menu.nd-cart-open::after,
  body.nd-menu .menu_wrapper :is(.cart, .open_cart),
  body.nd-menu .menu_wrapper :is(.cart, .open_cart) *,
  body.nd-menu .menu_wrapper :is(.cart, .open_cart)::before,
  body.nd-menu .menu_wrapper :is(.cart, .open_cart) *::before,
  body.nd-menu .menu_wrapper :is(.cart, .open_cart) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ───────────── Keyframes ───────────── */
@keyframes ndChevUp {
  from { transform: rotate(180deg); }
  to { transform: none; }
}

@keyframes ndChevDown {
  from { transform: rotate(-180deg); }
  to { transform: none; }
}

@keyframes ndGhostOut {
  to { opacity: 0; transform: translateX(var(--nd-ghost-x, 18px)) scale(.97); }
}

/* the halo: it fades IN from nothing, eases outward and is fully gone before the loop
   restarts — no frame where a solid ring pops back to the edge — while the glow under
   the button breathes with it on the same curve */
@keyframes ndPayGlow {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent),
                0 8px 22px -10px color-mix(in srgb, var(--primary) 45%, transparent);
    animation-timing-function: cubic-bezier(.45, 0, .55, 1);
  }
  22% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 26%, transparent),
                0 12px 28px -8px color-mix(in srgb, var(--primary) 60%, transparent);
    animation-timing-function: cubic-bezier(.25, .6, .4, 1);
  }
  100% {
    box-shadow: 0 0 0 16px color-mix(in srgb, var(--primary) 0%, transparent),
                0 8px 22px -10px color-mix(in srgb, var(--primary) 45%, transparent);
  }
}

@keyframes ndPayArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

@keyframes ndPayArrowLtr {
  0%, 100% { transform: scaleX(-1) translateX(0); }
  50% { transform: scaleX(-1) translateX(-5px); }
}

@keyframes ndPaySpin {
  to { rotate: 360deg; }
}

@keyframes ndSpring {
  0% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes ndBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes ndLineIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes ndLineFlash {
  0% { background: color-mix(in srgb, var(--primary) 9%, transparent); }
  100% { background: transparent; }
}

@keyframes ndSheetIn {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@keyframes ndSheetOut {
  from { transform: translateY(var(--nd-drag, 0px)); }
  to { transform: translateY(100%); }
}

@keyframes ndChipIn {
  from { opacity: 0; transform: translateY(4px) scale(.85); }
  to { opacity: 1; transform: none; }
}

@keyframes ndOkRing {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); }
  100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 0%, transparent); }
}

@keyframes ndRowFlash {
  0% { background: color-mix(in srgb, var(--primary) 16%, transparent); }
  100% { background: transparent; }
}

@keyframes ndFieldIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes ndFieldOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes ndFadeOut {
  to { opacity: 0; }
}

@keyframes ndRowIn {
  from { opacity: 0; }
}

@keyframes ndFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ───────────── Categories and tags ─────────────
   Pills over the platform's own lists: js/menu.js keeps choosing the category and rendering the
   products, js/new-design-menu.js adds the sliding fill (.nd-cat-ind) and the small state on scroll.
   Only the top strips are pills: the side column (desktop_mega_menu off) and the phone's first
   list stay as they are. */
body.nd-menu:not(#\9) {
  --nd-pill: 56px;
  --nd-pill-img: 44px;
  --nd-pill-font: 16px;
  --nd-tag: 35px;
  --nd-tag-font: 13px;
  --nd-rail-pad: 8px;
  --nd-rail-gap: 10px;
}

body.nd-menu.nd-cats-stuck:not(#\9) {
  --nd-pill: 48px;
  --nd-pill-img: 36px;
  --nd-pill-font: 15px;
  --nd-rail-pad: 6px;
  --nd-rail-gap: 6px;
}

.nd-cat-ind {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* under every pill, whatever stacking the Site gives its <li>s (.nd-ind-on isolates it) */
  border-radius: 999px;
  background: var(--primary);
  /* reaches 6px at most: the rail is a scroller and clips whatever passes its padding */
  box-shadow: 0 3px 6px -3px color-mix(in srgb, var(--primary) 70%, #000);
  opacity: 0;
  pointer-events: none;
}

.nd-ind-on {
  isolation: isolate;
}

.nd-ind-on > .nd-cat-ind {
  opacity: 1;
}

.nd-cat-ind.is-moving {
  transition: transform .46s var(--nd-e-out), width .46s var(--nd-e-out);
}

/* pressed again on the way: the fill catches up with the products instead of starting the long glide over */
.nd-cat-ind.is-moving.is-chasing {
  transition-duration: .24s;
}

/* while the fill travels: the new pill keeps its own look until the fill has come under it, the old
   one stays on the fill until it has left, or their labels have no ground for a moment.
   .nd-ind-on and .active over again: it outweighs the chosen pill's own rules (transparent over the fill) */
body.nd-menu :is(ul.categories_top, .slider_cats ul.categories).nd-ind-on > li > a.active.nd-cat-pending:not(#\9),
body.nd-menu :is(ul.categories_top, .slider_cats ul.categories).nd-ind-on > li > a.active.nd-cat-pending > span:not(#\9) {
  background: #fff !important;
  color: var(--nd-ink) !important;
}

body.nd-menu :is(ul.categories_top, .slider_cats ul.categories).nd-ind-on > li > a.active.nd-cat-pending > span:not(#\9) {
  background: none !important;
}

/* while the labels change sides: no easing of their colours (only the size still eases) */
body.nd-menu :is(ul.categories_top, .slider_cats ul.categories).nd-handing > li > a:not(#\9),
body.nd-menu :is(ul.categories_top, .slider_cats ul.categories).nd-handing > li > a > span:not(#\9) {
  transition-property: height, font-size !important;
}

body.nd-menu :is(ul.categories_top, .slider_cats ul.categories) > li > a.nd-cat-leaving:not(#\9),
body.nd-menu :is(ul.categories_top, .slider_cats ul.categories) > li > a.nd-cat-leaving > span:not(#\9) {
  background: transparent !important;
  box-shadow: none;
  color: var(--nd-on-primary, #fff) !important;
}

/* more to scroll: the rail fades towards that side. Not over the subcategories' row at its foot
   (--nd-row-room): that row scrolls on its own */
body.nd-menu .nd-rail:not(#\9) {
  --nd-fade-l: 0px;
  --nd-fade-r: 0px;
  --nd-row-room: 0px;
  -webkit-mask: linear-gradient(to right, transparent, #000 var(--nd-fade-l), #000 calc(100% - var(--nd-fade-r)), transparent) top / 100% calc(100% - var(--nd-row-room)) no-repeat,
    linear-gradient(#000, #000) bottom / 100% var(--nd-row-room) no-repeat;
  mask: linear-gradient(to right, transparent, #000 var(--nd-fade-l), #000 calc(100% - var(--nd-fade-r)), transparent) top / 100% calc(100% - var(--nd-row-room)) no-repeat,
    linear-gradient(#000, #000) bottom / 100% var(--nd-row-room) no-repeat;
}

body.nd-menu .slider_cats ul.categories.nd-rail:has(> li > a.active + ul):not(#\9) {
  --nd-row-room: 38px;
}

body.nd-menu .categories_top_cont.nd-rail:has(> ul.categories_top > li > a.active + ul):not(#\9) {
  --nd-row-room: calc(38px + var(--nd-rail-pad));
}

body.nd-menu.ltr .nd-rail.nd-more-start:not(#\9),
body.nd-menu.rtl .nd-rail.nd-more-end:not(#\9) {
  --nd-fade-l: 28px;
}

body.nd-menu.ltr .nd-rail.nd-more-end:not(#\9),
body.nd-menu.rtl .nd-rail.nd-more-start:not(#\9) {
  --nd-fade-r: 28px;
}

/* tags, wherever the platform prints them */
body.nd-menu ul.tags > li:not(#\9) {
  flex: none;
  max-width: 100%; /* a very long tag is cut at the row's edge, never wider than the page */
  margin: 0;
  padding: 0;
  background: none;
}

body.nd-menu ul.tags > li > a:not(#\9) {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  height: var(--nd-tag);
  margin: 0;
  padding: 0 16px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(13, 13, 13, .1);
  color: var(--nd-ink);
  font-size: var(--nd-tag-font);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color .12s ease, box-shadow .3s var(--nd-e-soft), background-color .2s ease;
}

/* the fill sweeps in from the reading start, as on the prototype's chips */
body.nd-menu ul.tags > li > a:not(#\9)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nd-tag-fill, var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--nd-e-soft);
}

body.nd-menu.rtl ul.tags > li > a:not(#\9)::before {
  transform-origin: right;
}

/* the label turns when the fill has reached it, not before. !important: a Site's own chosen-tag
   colour (delicates) would fill the chip at once, under the sweep */
body.nd-menu ul.tags > li > a.active:not(#\9) {
  color: var(--nd-on-tag-fill, var(--nd-on-primary, #fff));
  transition: color .16s ease .07s, box-shadow .3s var(--nd-e-soft);
}

body.nd-menu ul.tags > li > a.active:not(#\9)::before {
  transform: scaleX(1);
}

body.nd-menu ul.tags:not(#\9) {
  gap: 8px;
}

/* the chip is the panel's colour, as in the prototypes (.chip: var(--panel)). Out while js/new-design-menu.js reads
   the Site's own tag colour (body.nd-tags-probe, one synchronous read: no frame shows it) */
body.nd-menu:not(.nd-tags-probe) ul.tags > li > a:not(#\9) {
  background: var(--nd-panel);
}

body.nd-menu:not(.nd-tags-probe) ul.tags > li > a.active:not(#\9) {
  background: var(--nd-panel) !important;
}

/* under the cursor: a light tint, as on the category pills. The fill and its label stay the choice's alone */
@media (hover: hover) and (pointer: fine) {
  body.nd-menu ul.tags > li > a:not(.active):hover:not(#\9) {
    background: color-mix(in srgb, var(--nd-tag-fill, var(--primary)) 13%, #fff);
  }
}

/* a search with no match */
body.nd-menu .nd-search-empty:not(#\9) {
  margin: 40px 16px;
  color: #767676;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* the search field: a system component, not branded */
body.nd-menu .search_wrapper input.search:not(#\9) {
  width: 100%;
  height: 40px;
  border: 1.5px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--nd-ink);
  font-size: 15px;
  line-height: 1;
  padding-block: 0;
  padding-inline: 18px 44px;
  outline: none;
  transition: border-color .35s var(--nd-e-soft), box-shadow .35s var(--nd-e-soft);
}

body.nd-menu .search_wrapper input.search:hover:not(#\9) {
  border-color: #b0b0b0;
  box-shadow: 0 3px 12px -6px rgba(0, 0, 0, .12);
}

body.nd-menu .search_wrapper input.search:focus:not(#\9) {
  border-color: #9a9a9a;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .05);
}

body.nd-menu .search_wrapper input.search:not(#\9)::placeholder {
  color: #767676;
  opacity: 1;
}

body.nd-menu .search_wrapper:not(#\9)::after {
  top: 50%;
  right: 16px;
  left: auto;
  color: var(--nd-ink);
  transform: translateY(-50%);
}

body.nd-menu.rtl .search_wrapper:not(#\9)::after {
  right: auto;
  left: 16px;
}

/* the tags (desktop) and the coupon link (phone) are in the flow above the products, so nothing under them is pulled
   up into them: a Site's negative margin on the products (saada: -67px, set to meet its tags raised to the logo) put
   the category title under the tags on a desktop and over «יש לך קופון?» on a phone. Only a negative one:
   js/new-design-menu.js marks it (.nd-pulled-up); a Site's own gap above the products stays */
body.nd-menu .menu_wrapper .products_wrap.nd-pulled-up:not(#\9) {
  margin-top: 0;
}

/* desktop: tags and search share one row above the products, as in the prototypes */
@media (min-width: 768px) {
  body.nd-menu .main_menu_section > .d-none.d-md-block > .row:has(> .layout-wrapper):not(#\9) {
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    min-height: var(--nd-slot-h, 0px);
    margin: 0 0 6px;
  }

  body.nd-menu .main_menu_section > .d-none.d-md-block > .row > .col-md-8:not(#\9) {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
  }

  body.nd-menu .main_menu_section > .d-none.d-md-block > .row > .layout-wrapper:not(#\9) {
    flex: 0 1 400px;
    width: auto;
    max-width: 400px;
    min-width: 240px;
    padding: 0;
  }

  body.nd-menu .main_menu_section ul.tags:not(#\9) {
    flex-wrap: wrap;
    margin: 0;
    padding: 2px 0 4px;
  }

}

/* a narrow products column: the tags over the search, not squeezed into a column beside it.
   After the row's own rules: same selectors, later wins */
@media (min-width: 768px) and (max-width: 1099px) {
  body.nd-menu .main_menu_section > .d-none.d-md-block > .row:has(> .layout-wrapper):not(#\9) {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 4px;
  }

  body.nd-menu .main_menu_section > .d-none.d-md-block > .row > :is(.col-md-8, .layout-wrapper):not(#\9) {
    flex: 1 1 100%;
    max-width: none;
  }

  /* under the tags, the field starts where they do (the wrapper's px-4 is !important) */
  body.nd-menu .main_menu_section > .d-none.d-md-block > .row > .layout-wrapper:not(#\9) {
    padding-inline: 0 !important;
  }
}

/* desktop: the strip, sticky above the products and the cart */
@media (min-width: 768px) {
  body.nd-menu .slider_cats:not(#\9) {
    overflow: visible;
    padding-block: 0 var(--nd-rail-pad);
    background: none;
    /* the strip gets smaller only over the page: what it gives up becomes margin in the same motion,
       so nothing below moves (pill 8, rail 2, strip 2) */
    margin-bottom: 1rem !important;
    transition: padding .32s var(--nd-e-out), margin .32s var(--nd-e-out);
  }

  body.nd-menu.nd-cats-stuck .slider_cats:not(#\9) {
    margin-bottom: calc(1rem + 12px) !important;
  }

  /* the subcategories' band across the whole screen: their text cannot stand on a photo background */
  body.nd-menu .slider_cats:has(> ul.categories > li > a.active + ul):not(#\9)::after {
    content: "";
    position: absolute;
    bottom: var(--nd-rail-pad);
    left: calc(-1 * var(--nd-strip-x, 0px));
    z-index: -1;
    width: var(--nd-page-w, 100%);
    height: 38px;
    border-block: 1px solid rgba(13, 13, 13, .07);
    background: rgba(255, 255, 255, .92);
    pointer-events: none;
    transition: bottom .32s var(--nd-e-out);
    animation: ndRowIn .2s ease .12s both;
  }

  /* small over the page: a bar across the whole screen, wider than the strip's own column */
  body.nd-menu .slider_cats:not(#\9)::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: calc(-1 * var(--nd-strip-x, 0px));
    z-index: -1;
    width: var(--nd-page-w, 100%);
    background: rgba(245, 245, 245, .94);
    box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: opacity .25s ease;
  }

  body.nd-menu.nd-cats-stuck .slider_cats:not(#\9)::before {
    opacity: 1;
  }

  /* the 100px above the footer are room the sticky cart could use at the end of the page */
  body.nd-menu footer:not(#\9) {
    margin-top: 24px;
  }

  /* a tag takes the mark off the category and the tabs' band goes: what stood under the cursor stays there */
  body.nd-menu.nd-cats-strip .menu_wrapper .menu_items_cont > :is(.main_menu_section, .cart):not(#\9) {
    margin-top: var(--nd-strip-hold, 0px);
    transition: none;
  }

  /* .menu_items has a min-height the row inside it does not fill: the sticky cart would stop early */
  body.nd-menu.nd-cats-strip .menu_wrapper .menu_items_cont > .cart:not(#\9) {
    min-height: var(--nd-col-min, 0px);
  }

  /* follows the strip's height frame by frame, so no easing of its own */
  body.nd-menu.nd-cats-strip .menu_wrapper .cart > .wrapper:not(#\9) {
    top: calc(var(--nd-strip-h) + 12px) !important;
    transition: none;
  }

  body.nd-menu .slider_cats ul.categories:not(#\9) {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--nd-rail-gap);
    width: auto;
    height: auto;
    padding: var(--nd-rail-pad) 4px 6px;
    transform: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* the subcategories' room opens and closes with the fill's glide: what stands below moves along, never at once */
    transition: padding .32s var(--nd-e-out), gap .32s var(--nd-e-out);
  }

  /* a tag takes the band away under a held page (--nd-strip-hold): the room goes at once, nothing moves */
  body.nd-menu.nd-hold-now .slider_cats ul.categories:not(#\9) {
    transition: none;
  }

  body.nd-menu .slider_cats ul.categories::-webkit-scrollbar {
    display: none;
  }

  body.nd-menu .slider_cats ul.categories > li:not(#\9) {
    position: static;
    flex: none;
    width: auto !important;
    height: auto;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  body.nd-menu .slider_cats ul.categories > li > ul:not(#\9) {
    display: none;
  }

  /* subcategories of the chosen category: their row under the pills, over the part of the rail in view */
  body.nd-menu .slider_cats ul.categories:has(> li > a.active + ul):not(#\9) {
    padding-bottom: 46px;
  }

  body.nd-menu .slider_cats ul.categories > li > a.active + ul:not(#\9) {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    height: 38px;
    width: var(--nd-rail-w, 100%);
    margin: 0;
    padding: 0 4px;
    overflow-x: auto;
    border: 0;
    background: none;
    box-shadow: none;
    list-style: none;
    opacity: 1;
    scrollbar-width: none;
    transform: translateX(var(--nd-rail-x, 0px));
    transition: none;
    visibility: visible;
    animation: ndRowIn .2s ease .12s both; /* shows once its room has mostly opened */
  }

  body.nd-menu .slider_cats ul.categories > li > ul > li:not(#\9) {
    flex: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  body.nd-menu .slider_cats ul.categories > li > ul > li.back:not(#\9) {
    display: none;
  }

  body.nd-menu .slider_cats ul.categories > li > ul > li > a:not(#\9) {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--nd-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: text-shadow .2s ease;
  }

  body.nd-menu .slider_cats ul.categories > li > ul > li > a:not(#\9)::before {
    display: none;
  }

  /* the mark of the current section; the weight is only drawn, or the neighbours would move */
  body.nd-menu .slider_cats ul.categories > li > ul > li > a:not(#\9)::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    display: block;
    width: auto;
    height: 3px;
    border: 0;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .4s var(--nd-e-soft);
  }

  body.nd-menu .slider_cats ul.categories > li > ul > li > a:is(.active, .nd-tab-now):not(#\9) {
    border-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--nd-ink) !important;
    text-shadow: .3px 0 0 currentColor, -.3px 0 0 currentColor;
  }

  body.nd-menu .slider_cats ul.categories > li > ul > li > a.nd-tab-now:not(#\9)::after {
    transform: scaleX(1);
  }

  /* the platform's little arrow on a category with subcategories hangs off the <li> */
  body.nd-menu .slider_cats ul.categories > li:not(#\9)::before,
  body.nd-menu .slider_cats ul.categories > li:not(#\9)::after {
    display: none;
  }

  body.nd-menu .slider_cats ul.categories > li > a:not(#\9) {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 320px; /* a very long name is cut, not a pill several screens wide (the longest real one: 258px) */
    height: var(--nd-pill);
    margin: 0;
    overflow: hidden;
    padding: 0;
    padding-inline: 7px 16px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .16);
    color: var(--nd-ink);
    font-size: var(--nd-pill-font);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: height .32s var(--nd-e-out), font-size .32s var(--nd-e-out), background-color .12s ease, color .12s ease, box-shadow .12s ease;
  }

  body.nd-menu .slider_cats ul.categories > li > a:not(:has(> i, > img)):not(#\9) {
    padding-inline: 16px;
  }

  /* !important: rest and others paint the opened category with their own colour, !important too */
  body.nd-menu .slider_cats ul.categories > li > a.active:not(#\9),
  body.nd-menu .slider_cats ul.categories > li > a.active > span:not(#\9) {
    border-color: transparent !important;
    background: var(--primary);
    box-shadow: none !important;
    color: var(--nd-on-primary, #fff) !important;
  }

  /* delicates presses its chosen link for .08s !important: the chosen pill would shrink ahead of the others */
  body.nd-menu .slider_cats ul.categories > li > a.active:not(#\9) {
    transition-duration: .32s, .32s, .12s, .12s, .12s !important;
  }

  body.nd-menu .slider_cats ul.categories.nd-ind-on > li > a.active:not(#\9) {
    background: transparent !important;
  }

  body.nd-menu .slider_cats ul.categories > li > a > i:is(.img, .icon-sale):not(#\9) {
    display: block !important;
    flex: none;
    width: var(--nd-pill-img);
    height: var(--nd-pill-img);
    margin: 0;
    border-radius: 50%;
    background-color: #fff;
    background-position: center;
    background-size: cover;
    font-size: 20px;
    line-height: var(--nd-pill-img);
    text-align: center;
    transition: transform .5s var(--nd-e-out), width .32s var(--nd-e-out), height .32s var(--nd-e-out);
  }

  body.nd-menu .slider_cats ul.categories > li > a > img:not(#\9) {
    flex: none;
    width: var(--nd-pill-img);
    height: var(--nd-pill-img);
    border-radius: 50%;
    object-fit: cover;
  }

  body.nd-menu .slider_cats :is(.swiper-button-prev, .swiper-button-next):not(#\9) {
    position: absolute;
    top: calc(var(--nd-rail-pad) + var(--nd-pill) / 2);
    right: auto;
    left: auto;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(13, 13, 13, .2);
    color: var(--nd-ink);
    cursor: pointer;
    transition: opacity .2s ease, top .32s var(--nd-e-out);
  }

  body.nd-menu .slider_cats .swiper-button-prev:not(#\9) {
    inset-inline-start: 2px;
  }

  body.nd-menu .slider_cats .swiper-button-next:not(#\9) {
    inset-inline-end: 2px;
  }

  body.nd-menu .slider_cats :is(.swiper-button-prev, .swiper-button-next).nd-off:not(#\9) {
    opacity: 0;
    pointer-events: none;
  }

  body.nd-menu .slider_cats :is(.swiper-button-prev, .swiper-button-next)::after {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
    font-size: 0;
  }

  body.nd-menu.ltr .slider_cats .swiper-button-next::after,
  body.nd-menu.rtl .slider_cats .swiper-button-prev::after {
    transform: translateX(-1px) rotate(45deg);
  }

  body.nd-menu.ltr .slider_cats .swiper-button-prev::after,
  body.nd-menu.rtl .slider_cats .swiper-button-next::after {
    transform: translateX(1px) rotate(-135deg);
  }

  @media (hover: hover) {
    body.nd-menu .slider_cats ul.categories > li > a:not(.active):hover:not(#\9) {
      background: color-mix(in srgb, var(--primary) 13%, #fff);
    }

    body.nd-menu .slider_cats ul.categories > li > a:hover > :is(i, img):not(#\9) {
      transform: scale(1.12);
    }
  }
}

/* phone: the strip in the fixed header. On scroll the header rides up by its logo rows */
@media not all and (min-width: 768px) {
  body.nd-menu header.d-md-none:not(#\9) {
    transition: transform .32s var(--nd-e-out), box-shadow .3s ease;
  }

  /* a landscape phone: the strips go edge to edge, as in portrait */
  body.nd-menu header.d-md-none > .container:not(#\9) {
    max-width: none;
  }

  body.nd-menu.nd-cats-stuck header.d-md-none:not(#\9) {
    transform: translateY(calc(-1 * var(--nd-head-rows, 0px)));
    box-shadow: 0 10px 22px -18px rgba(0, 0, 0, .5);
  }

  /* !important: a Site that sizes this from the live header (rest) would move the page as it shrinks */
  body.nd-menu.nd-cats-top .inner:not(#\9) {
    padding-top: calc(var(--nd-head-h) - 10px) !important;
  }

  body.nd-menu:not(#\9) {
    --nd-pill: 58px;
    --nd-pill-img: 44px;
    --nd-pill-font: 15px;
    --nd-tag: 34px;
  }

  body.nd-menu.nd-cats-stuck:not(#\9) {
    --nd-pill: 46px;
    --nd-pill-img: 32px;
    --nd-pill-font: 14px;
  }

  /* what the rail's fade lets through */
  body.nd-menu header .col-12:has(> .categories_top_cont):not(#\9) {
    background: #fff;
  }

  body.nd-menu .categories_top_cont:not(#\9) {
    padding-block: var(--nd-rail-pad);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    transition: padding .32s var(--nd-e-out);
  }

  body.nd-menu .categories_top_cont::-webkit-scrollbar {
    display: none;
  }

  body.nd-menu ul.categories_top:not(#\9) {
    position: relative;
    display: inline-flex;
    gap: var(--nd-rail-gap);
    min-width: 100%;
    padding: 0 12px;
    vertical-align: top;
    transition: gap .32s var(--nd-e-out), padding-bottom .32s var(--nd-e-out);
  }

  body.nd-menu.nd-hold-now ul.categories_top:not(#\9) {
    transition: none;
  }

  body.nd-menu ul.categories_top > li:not(#\9) {
    position: static;
    flex: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
  }

  body.nd-menu ul.categories_top > li > a:not(#\9) {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 320px;
    height: var(--nd-pill);
    overflow: hidden;
    padding: 0;
    padding-inline: 7px 15px;
    border-radius: 999px;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(13, 13, 13, .1);
    color: var(--nd-ink);
    font-size: var(--nd-pill-font);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: height .32s var(--nd-e-out), font-size .32s var(--nd-e-out), background-color .12s ease, color .12s ease, box-shadow .12s ease;
  }

  body.nd-menu ul.categories_top > li > a:not(:has(> i)):not(#\9) {
    padding-inline: 15px;
  }

  body.nd-menu ul.categories_top > li > a.active:not(#\9),
  body.nd-menu ul.categories_top > li > a.active > span:not(#\9) {
    background: var(--primary) !important;
    color: var(--nd-on-primary, #fff) !important;
  }

  body.nd-menu ul.categories_top > li > a.active > span:not(#\9) {
    background: none !important;
  }

  body.nd-menu ul.categories_top > li > a.active:not(#\9) {
    transition-duration: .32s, .32s, .12s, .12s, .12s !important;
  }

  body.nd-menu ul.categories_top.nd-ind-on > li > a.active:not(#\9) {
    background: transparent !important;
    box-shadow: none;
  }

  body.nd-menu ul.categories_top > li > a > i:is(.img, .icon-sale):not(#\9) {
    flex: none;
    width: var(--nd-pill-img);
    height: var(--nd-pill-img);
    margin: 0;
    border-radius: 50%;
    background-color: #fff;
    font-size: 20px;
    line-height: var(--nd-pill-img);
    text-align: center;
    transition: width .32s var(--nd-e-out), height .32s var(--nd-e-out);
  }

  /* subcategories (mobile_mega_subcats): their row under the pills, over the part of the rail in view */
  body.nd-menu ul.categories_top.with_subcats:has(> li > a.active + ul):not(#\9) {
    padding-bottom: 42px;
  }

  body.nd-menu ul.categories_top > li > a.active + ul:not(#\9) {
    right: auto;
    bottom: 0;
    left: 0;
    width: calc(var(--nd-rail-w, 100vw) - 12px); /* content-box: the 6px each side come on top */
    gap: 2px;
    box-sizing: content-box;
    height: 38px;
    padding: 0 6px;
    overflow-y: hidden;
    border-top: 1px solid rgba(13, 13, 13, .07);
    background: none;
    box-shadow: none;
    scrollbar-width: none;
    transform: translateX(var(--nd-rail-x, 0px));
    transition: none;
    animation: ndRowIn .2s ease .12s both;
  }

  body.nd-menu ul.categories_top > li > ul > li:not(#\9) {
    flex: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  body.nd-menu ul.categories_top > li > ul > li > a:not(#\9) {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--nd-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: text-shadow .2s ease;
  }

  body.nd-menu ul.categories_top > li > ul > li > a:not(#\9)::before {
    display: none;
  }

  /* the mark of the current section; the weight is only drawn, or the neighbours would move */
  body.nd-menu ul.categories_top > li > ul > li > a:not(#\9)::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    display: block;
    width: auto;
    height: 3px;
    border: 0;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center; /* front.css: left for the others, right for the chosen one, in either language */
    transition: transform .4s var(--nd-e-soft);
  }

  body.nd-menu ul.categories_top > li > ul > li > a:is(.active, .nd-tab-now):not(#\9) {
    border-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--nd-ink) !important;
    text-shadow: .3px 0 0 currentColor, -.3px 0 0 currentColor;
  }

  body.nd-menu ul.categories_top > li > ul > li > a.nd-tab-now:not(#\9)::after {
    transform: scaleX(1);
  }

  /* tags and the search field above the products, moved out of the fixed header */
  body.nd-menu .nd-phone-tools:not(#\9) {
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* a very long tag must not widen the page */
    gap: 10px;
    margin-top: var(--nd-strip-hold, 0px);
    padding: 12px 12px 4px;
  }

  body.nd-menu .nd-phone-tools ul.tags:not(#\9) {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
  }

  body.nd-menu .nd-phone-tools .search_wrapper:not(#\9) {
    max-width: none;
    margin: 0;
  }

  body.nd-menu .nd-phone-tools .search_wrapper input.search:not(#\9) {
    height: 54px; /* the prototype's field, round ends */
    border-radius: 999px !important; /* front.css: #search 20px !important */
    font-size: 16px; /* under 16px iOS zooms the page on focus */
  }

  /* mobile_mega_menu off: the tags stay in the header */
  body.nd-menu header ul.tags:not(#\9) {
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 12px var(--nd-rail-pad);
    overflow-x: auto;
    scrollbar-width: none;
  }

  /* the platform prints the list even when a catalog has no tags: no empty band in the header */
  body.nd-menu header ul.tags:not(:has(> li)):not(#\9) {
    display: none;
  }

  /* the start screen: the tags and the search stand at the top of the list of categories, in place of its
     title (the same words as the field's) */
  body.nd-menu.nd-start .nd-phone-tools:not(#\9) {
    position: fixed;
    top: var(--nd-list-top, 115px);
    inset-inline: 0;
    z-index: 21; /* over the list (20) */
    background: #fff;
  }

  body.nd-menu.nd-start .menu_wrapper ul.categories:not(#\9) {
    padding-top: var(--nd-tools-h, 0px);
  }

  body.nd-menu.nd-start .menu_wrapper ul.categories > li.title:not(#\9) {
    display: none !important; /* it carries Bootstrap's .d-block, !important */
  }

  body.nd-menu.nd-tools-on .show_search:not(#\9),
  body.nd-menu.nd-tools-on .mobile_search:not(#\9) {
    display: none !important;
  }
}

/* a light brand colour: the tab's thin line on the white band takes a darker shade of it, or it hardly shows */
body.nd-menu.nd-on-dark :is(.slider_cats ul.categories, ul.categories_top) > li > ul > li > a:not(#\9)::after {
  background: color-mix(in srgb, var(--primary), #000 40%);
}

body.nd-menu :is(ul.categories_top > li > a, .slider_cats ul.categories > li > a, ul.tags > li > a):focus-visible {
  outline: 2px solid var(--nd-ink);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  /* pseudo-elements cannot sit inside :is(): each has its own selector */
  body.nd-menu :is(.slider_cats, .slider_cats ul.categories, .slider_cats ul.categories > li > a, .slider_cats ul.categories > li > a > :is(i, img), .swiper-button-prev, .swiper-button-next, header.d-md-none, .categories_top_cont, ul.categories_top, ul.categories_top > li > a, ul.categories_top > li > a > i, ul.tags > li > a, .search_wrapper input.search, :is(.slider_cats ul.categories, ul.categories_top) > li > ul > li > a),
  body.nd-menu .slider_cats::before,
  body.nd-menu .slider_cats::after,
  body.nd-menu ul.tags > li > a::before,
  body.nd-menu :is(.slider_cats ul.categories, ul.categories_top) > li > ul > li > a::after,
  .nd-cat-ind.is-moving {
    transition: none !important;
  }

  body.nd-menu :is(.slider_cats ul.categories, ul.categories_top) > li > a.active + ul,
  body.nd-menu .slider_cats::after {
    animation: none !important;
  }

  body.nd-menu .slider_cats ul.categories > li > a:hover > :is(i, img):not(#\9) {
    transform: none;
  }
}

/* a narrow desktop header (a phone on its side, a tablet): the account button keeps its whole word
   («Профиль» is wider than the third of the welcome box the platform gives it); short of room it takes a line of its own */
@media (min-width: 768px) and (max-width: 991.98px) {
  body.nd-menu .welcome_wrap > .row > .col-4:not(#\9) {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
}

/* the drag hint stands in the lower right corner, over the cart's pay button where the cart is on the right
   (ru, en): there it takes the products' corner instead */
@media (min-width: 768px) {
  body.nd-menu.ltr .rm-drag-hint:not(#\9) {
    right: auto;
    left: 24px;
  }
}

/* the hint stays where it is, but a press on it reaches the card under it; only its own two buttons are its */
body.nd-menu .rm-drag-hint:not(#\9) {
  pointer-events: none;
}

body.nd-menu .rm-drag-hint:not(.rm-drag-hint--leaving) :is(.rm-drag-hint__x, .rm-drag-hint__cta):not(#\9) {
  pointer-events: auto;
}

/* exactly 768px (iPad in portrait) is the one width where front.css still gives the cart a 192px
   column: the panel does not fit, and the cart falls under all the products. Same as 769px. */
@media (min-width: 768px) and (max-width: 768.98px) {
  /* the strip's layout only (.col-md-9, as front.css): beside a side column of categories the row would break */
  body.nd-menu .menu_wrapper .main_menu_section.center.col-md-9:not(#\9) {
    flex: 0 0 calc(100% - 350px);
    max-width: calc(100% - 350px);
  }

  body.nd-menu .menu_wrapper .main_menu_section.center.col-md-9 + .cart:not(#\9) {
    flex: 0 0 350px;
    max-width: 350px;
  }

  /* the side column of categories (.col-md-7): what front.css gives it from 769px, or the cart falls under the products */
  body.nd-menu .menu_wrapper .main_menu_section.center.col-md-7:not(#\9) {
    flex: 0 0 calc(100% - 16.666667% - 350px);
    max-width: calc(100% - 16.666667% - 350px);
  }

  body.nd-menu .menu_wrapper .cart .cart_controls:not(#\9) {
    width: auto;
  }
}

/* ───────────── Close button ─────────────
   One look for the windows of the menu page; the markup stays Bootstrap's and bootbox's × glyph.
   Windows with a design of their own come later and take the same look there: the nested product window,
   the checkout, the account and the sign-in. The product window (#options) takes it now; its place there is
   css/new-design-popups.css. The order window keeps its own (order-config-design.css). */
body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9) {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 13, 13, .05);
  box-shadow: 0 2px 10px -4px rgba(13, 13, 13, .25);
  color: var(--nd-ink);
  font-size: 0;
  line-height: 0;
  opacity: 1;
  outline: none;
  text-shadow: none;
  transition: background-color .35s var(--nd-e-soft), color .35s var(--nd-e-soft), transform .4s var(--nd-e-soft);
}

/* the glyph and the Sites' own sizes for it */
body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close > span:not(#\9) {
  display: none;
}

body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9)::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("/images/new-design/icons/menu/close.svg") center / contain no-repeat;
  mask: url("/images/new-design/icons/menu/close.svg") center / contain no-repeat;
}

/* a finger gets 44px whatever the circle's size */
body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9)::after {
  content: "";
  position: absolute;
  inset: -4px;
}

body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9):focus-visible {
  outline: 2px solid var(--nd-ink);
  outline-offset: 2px;
}

body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9):is(:active, .nd-pressed) {
  background: var(--nd-ink);
  color: #fff;
  transform: scale(.92);
}

/* a window with no title: the × stands in the corner of its text */
body.nd-menu .modal .modal-body > button.bootbox-close-button.close:not(#\9) {
  float: inline-end;
  margin-block: 0 8px !important;
  margin-inline: 8px 0 !important;
}

@media (hover: hover) and (pointer: fine) {
  body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9):hover {
    background: var(--nd-ink);
    color: #fff;
    transform: rotate(90deg);
  }

  body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9):is(:active, .nd-pressed) {
    transform: rotate(90deg) scale(.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9),
  body.nd-menu .modal:where(:not(#options2, #pizza_addon_dialog, #product_image_popup, #product_upsell_popup, #como_products_popup, #checkout, #profile_dialog, #auth_dialog, #login, #register, #multistepModal)) :is(.modal-header, .modal-body) > button.close:not(#\9):is(:hover, :active, .nd-pressed) {
    transform: none;
    transition: background-color .15s ease, color .15s ease;
  }
}

/* ───────────── Product cards ─────────────
   The platform's card, in the design's panel. js/menu.js renders and handles it; the layer moves the
   price node under the photo. The lift uses `translate`: the entrance cascade and the drag source
   animate `transform` on the same <li>. */
body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):not(#\9) {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 11px 11px 14px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 18px 34px -26px rgba(0, 0, 0, .26);
  /* a press eases too: the card's own (scale) and a Site's (delicates: transform on the card) */
  transition: translate .55s var(--nd-e-soft), box-shadow .55s var(--nd-e-soft), scale .18s ease, transform .18s ease;
}

/* one press, on the whole card: a Site's press on the link inside (rest) would shrink the photo and the
   text apart from the card's frame */
body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) > a:not(.favorite-heart):active:not(#\9) {
  transform: none;
}

body.nd-menu .menu_wrapper .products li.product.ui-draggable-dragging:not(#\9) {
  translate: none;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35);
}

body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) > a:not(.favorite-heart):not(#\9) {
  position: static;
  display: flex;
  flex: 1;
  flex-direction: column;
  color: var(--nd-ink);
  text-decoration: none;
}

/* the whole panel opens the product: the platform's handler is on this link */
body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) > a:not(.favorite-heart):not(#\9)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

body.nd-menu .menu_wrapper .products li.product > .favorite-heart:not(#\9) {
  z-index: 3;
}

body.nd-menu .menu_wrapper .products li.product > .add_to_cart_btn_wrap:not(#\9) {
  position: relative;
  z-index: 3;
}

/* the quick add and its counter sit on the brand fill: their text follows it, dark on a light brand */
body.nd-menu .menu_wrapper .products li.product > .add_to_cart_btn_wrap :is(.btn_add_to_cart, .inline_counter_minus, .inline_counter_plus, .inline_counter_value):not(#\9) {
  color: var(--nd-on-primary, #fff);
}

body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) .img_cont:not(#\9) {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 7 / 5;
  border-radius: 14px;
  background: #fff;
}

body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) .img_cont > :is(img, video):not(#\9) {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  transition: transform .8s var(--nd-e-soft);
}

/* the hover pill: the platform's own bar with its texts per language and for the catalog */
body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) .img_cont:not(#\9)::before {
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35);
  color: var(--nd-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 44px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(.96);
  transition: opacity .3s ease, transform .3s var(--nd-e-soft);
}

/* the photo's dark foot, shown under the pill on hover */
body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) .img_cont:not(#\9)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(20, 10, 5, .55), rgba(20, 10, 5, .06) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--nd-e-soft);
}

/* a dish with options: the press opens them, and the pill says so (as in the prototypes). A catalog only shows: its «view» stays.
   The pill is the platform's, from 768 px: so is its text */
@media (min-width: 768px) {
  html[lang="he"] body.nd-menu:not(.catalog) .menu_wrapper .products li.product.nd-has-options .img_cont:not(#\9)::before {
    content: "בחירת אפשרויות";
  }

  html[lang="ru"] body.nd-menu:not(.catalog) .menu_wrapper .products li.product.nd-has-options .img_cont:not(#\9)::before {
    content: "Выбрать опции";
  }

  html[lang="en"] body.nd-menu:not(.catalog) .menu_wrapper .products li.product.nd-has-options .img_cont:not(#\9)::before {
    content: "Choose options";
  }
}

/* no text for these languages or nothing to add: an empty pill would be worse than none */
html:is([lang="ar"], [lang="th"]) body.nd-menu .menu_wrapper .products li.product .img_cont:not(#\9)::before,
body.nd-menu .menu_wrapper .products li.product .img_cont:has(.not_in_stock):not(#\9)::before {
  display: none;
}

body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) > a > .title:not(#\9) {
  display: block;
  min-height: 2.5em;
  margin: 0;
  padding: 11px 3px 0;
  color: var(--nd-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: start;
}

.nd-card-foot:empty {
  display: none;
}

.nd-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  padding: 8px 3px 0;
}

body.nd-menu .nd-card-foot :is(.price, .price_per_label):not(#\9) {
  position: static;
  inset: auto;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

body.nd-menu .nd-card-foot .price:not(#\9),
body.nd-menu .nd-card-foot .price *:not(#\9) {
  border-radius: 0;
  background: none;
  padding: 0;
  color: var(--nd-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

body.nd-menu .nd-card-foot .price_per_label:not(#\9) {
  color: var(--nd-muted, #5f6b6a);
  font-size: 12px;
  font-weight: 500;
}

/* labels: the design's pills on what the platform has */
body.nd-menu .menu_wrapper .products li.product .img_cont :is(.sale, .sale2, .not_in_stock):not(#\9) {
  position: absolute;
  top: 10px;
  right: auto;
  bottom: auto;
  left: auto;
  inset-inline-start: 10px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: start;
}

body.nd-menu .menu_wrapper .products li.product .img_cont .sale :is(del, ins):not(#\9) {
  position: static;
  margin: 0;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

body.nd-menu .menu_wrapper .products li.product .img_cont .sale del:not(#\9) {
  font-weight: 500;
  opacity: .8;
  text-decoration: line-through;
}

/* the price pill and the promotion stand in one column at the photo's corner: a price on two lines pushes the
   promotion down instead of running into it (two absolute boxes at fixed heights did). The photo lies under them */
body.nd-menu .menu_wrapper .products li.product:not(.huge) .img_cont:has(> :is(.sale, .sale2)):not(#\9) {
  display: grid;
  grid-template: repeat(3, max-content) 1fr / minmax(0, 1fr);
}

body.nd-menu .menu_wrapper .products li.product:not(.huge) .img_cont:has(> :is(.sale, .sale2)) > :is(img, .carousel):not(#\9) {
  grid-area: 1 / 1 / -1 / -1;
  align-self: start;
}

body.nd-menu .menu_wrapper .products li.product:not(.huge) .img_cont > :is(.sale, .sale2):not(#\9) {
  position: relative;
  top: auto;
  inset-inline-start: auto;
  grid-column: 1;
  justify-self: start;
  max-width: calc(100% - 20px);
  margin: 10px 10px 0;
}

body.nd-menu .menu_wrapper .products li.product:not(.huge) .img_cont > .sale:not(#\9) {
  grid-row: 1;
  flex-wrap: wrap;
  row-gap: 0;
}

/* a long promotion keeps to two lines, one under the price pill (one in the list layout's short photo), and ends in … */
body.nd-menu .menu_wrapper .products li.product:not(.huge) .img_cont > .sale2:not(#\9) {
  grid-row: 2;
  display: -webkit-box;
  padding-block: 0;
  border-block: 5px solid transparent; /* the clamp clips at the padding: a padding would show the next line's top */
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.nd-menu .menu_wrapper .products li.product:not(.huge) .img_cont > .sale ~ .sale2:not(#\9) {
  margin-top: 6px;
  -webkit-line-clamp: 1;
}

body.nd-menu .menu_wrapper .products li.product.product_wide .img_cont > .sale2:not(#\9) {
  -webkit-line-clamp: 1;
}

/* the heart stands on the photo's top corner: the labels start under it */
body.nd-menu .menu_wrapper .products li.product:not(.huge):has(> .favorite-heart) .img_cont > .sale:not(#\9),
body.nd-menu .menu_wrapper .products li.product:not(.huge):has(> .favorite-heart) .img_cont:not(:has(> .sale)) > .sale2:not(#\9) {
  margin-top: 36px;
}

/* the list layout's count stands on the same corner: the labels start under it */
body.nd-menu .menu_wrapper .products li.product.product_wide .img_cont:has(> .counter:not(:empty)) > .sale:not(#\9),
body.nd-menu .menu_wrapper .products li.product.product_wide .img_cont:has(> .counter:not(:empty)):not(:has(> .sale)) > .sale2:not(#\9) {
  margin-top: 43px;
}

/* with labels on the photo the stock label joins their column instead of lying over the promotion */
body.nd-menu .menu_wrapper .products li.product:not(.huge) .img_cont:has(> :is(.sale, .sale2)) > .not_in_stock:not(#\9) {
  position: relative;
  bottom: auto;
  inset-inline-start: auto;
  grid-area: 3 / 1;
  justify-self: start;
  margin: 6px 10px 0;
}

/* the count stands in the opposite corner: the labels leave it its room */
body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) .img_cont:has(> .counter:not(:empty)) > :is(.sale, .sale2):not(#\9) {
  flex-wrap: wrap;
  row-gap: 0;
  max-width: calc(100% - 64px);
}

body.nd-menu .menu_wrapper .products li.product .img_cont .not_in_stock:not(#\9) {
  top: auto;
  bottom: 10px;
  background: rgba(13, 13, 13, .78);
  color: #fff;
}

body.nd-menu .menu_wrapper .products li.product .img_cont .product_tags:not(#\9) {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 8px;
  left: auto;
  inset-inline-end: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
  transition: opacity .3s ease;
}

body.nd-menu .menu_wrapper .products li.product .img_cont .counter:not(#\9) {
  position: absolute;
  top: 10px;
  right: auto;
  left: auto;
  inset-inline-end: 10px;
  z-index: 2;
  width: auto;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--nd-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 27px;
  text-align: center;
  animation: ndCountIn .5s cubic-bezier(.34, 1.56, .64, 1);
}

/* front.css keeps the count's digits ltr, which turns its logical corner: on a rtl page it is the left one */
body.nd-menu.rtl .menu_wrapper .products li.product .img_cont .counter:not(#\9) {
  right: auto;
  left: 10px;
}

@keyframes ndCountIn {
  from { transform: scale(.3); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* the list layout keeps its own card, only without the heavy shadow */
body.nd-menu .menu_wrapper .products li.product.product_wide:not(#\9) {
  border: 1px solid rgba(13, 13, 13, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

@media (min-width: 768px) {
  body.nd-menu .menu_wrapper .products > ul:not(:has(> li.huge)):not(#\9) {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }

  body.nd-menu .menu_wrapper .products > ul > li:is(.cat, .subcat):not(#\9) {
    flex: 0 0 100%;
    width: 100%;
    margin-inline: 0;
  }

  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):not(#\9) {
    width: calc((100% - 36px) / 3);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):not(#\9) {
    width: calc((100% - 18px) / 2);
  }
}

@media not all and (min-width: 768px) {
  body.nd-menu .menu_wrapper .products > ul:not(:has(> li.huge)):not(#\9) {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-inline: 10px;
  }

  body.nd-menu .menu_wrapper .products > ul > li:is(.cat, .subcat):not(#\9) {
    flex: 0 0 100%;
    width: 100%;
  }

  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):not(#\9) {
    width: calc((100% - 14px) / 2);
    padding: 7px 7px 10px;
    border-radius: 16px;
  }

  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) .img_cont:not(#\9) {
    aspect-ratio: 5 / 4;
    border-radius: 12px;
  }

  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide) > a > .title:not(#\9) {
    font-size: 14px;
    padding-top: 8px;
  }

  body.nd-menu .nd-card-foot .price:not(#\9),
  body.nd-menu .nd-card-foot .price *:not(#\9) {
    font-size: 16px;
  }
}

@media (hover: hover) and (pointer: fine) {
  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):hover:not(#\9) {
    z-index: 2;
    translate: 0 -8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .08), 0 30px 60px -34px rgba(0, 0, 0, .3);
  }

  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):hover .img_cont > :is(img, video):not(#\9) {
    transform: scale(1.07);
  }

  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):hover .img_cont:not(#\9)::before {
    opacity: 1;
    transform: none;
    transition: opacity .45s ease .08s, transform .6s var(--nd-e-soft) .08s;
  }

  /* the lifted card rises off the cursor at its bottom edge: the link's own surface reaches the strip
     it leaves, so the card neither drops and rises again nor ignores a click there */
  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):hover > a:not(.favorite-heart):not(#\9)::after {
    bottom: -9px;
  }

  /* the photo darkens under the pill, as in the prototypes */
  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):hover .img_cont:not(#\9)::after {
    opacity: 1;
  }

}

/* the icons give way to the pill, which the platform draws from 768 px only */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  html:not([lang="ar"], [lang="th"]) body.nd-menu:not(.add_to_cart_with_counters) .menu_wrapper .products li.product:not(.huge, .product_wide):hover .img_cont:not(:has(.not_in_stock)) .product_tags:not(#\9) {
    opacity: 0;
  }
}

@media (hover: none) {
  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):active:not(#\9) {
    translate: 0 -3px;
    scale: .99;
  }

  body.nd-menu .menu_wrapper .products li.product:not(.huge, .product_wide):active .img_cont > :is(img, video):not(#\9) {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nd-menu .menu_wrapper .products li.product:not(#\9),
  body.nd-menu .menu_wrapper .products li.product .img_cont > :is(img, video):not(#\9),
  body.nd-menu .menu_wrapper .products li.product .img_cont:not(#\9)::before {
    translate: none !important;
    scale: none !important;
    transition: opacity .15s ease;
  }

  body.nd-menu .menu_wrapper .products li.product:hover .img_cont > :is(img, video):not(#\9),
  body.nd-menu .menu_wrapper .products li.product .img_cont:not(#\9)::before {
    transform: none !important;
    transition: opacity .15s ease !important;
  }

  body.nd-menu .menu_wrapper .products li.product .img_cont .counter:not(#\9) {
    animation: none;
  }

  /* a Site's own lift under the cursor (delicates) stays down too */
  body.nd-menu .menu_wrapper .products li.product:hover:not(#\9) {
    transform: none;
  }
}

/* ───────────── Upsell at the pay press ─────────────
   The platform's #upsell_popup: its list, its handlers. Any way out still goes on to the checkout,
   as hidden.bs.modal in js/menu.js does. Only the first transition-duration counts for Bootstrap,
   so it is the short one: otherwise the × would do nothing while the spring runs. */
body.nd-menu #upsell_popup.fade .modal-dialog:not(#\9) {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .15s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

body.nd-menu #upsell_popup.show .modal-dialog:not(#\9) {
  opacity: 1;
  transform: none;
}

body.nd-menu #upsell_popup:not(.show) .modal-dialog:not(#\9) {
  transition: opacity .15s ease, transform .15s ease;
}

body.nd-menu #upsell_popup .modal-dialog:not(#\9) {
  display: flex;
  align-items: center;
  width: auto;
  max-width: 720px;
  min-height: calc(100% - 56px - env(safe-area-inset-bottom));
  margin: 28px auto calc(28px + env(safe-area-inset-bottom));
  padding-inline: 16px;
}

/* Bootstrap centres with a strut of the screen's height (less 1rem on a phone): the flex row centres already,
   and the strut only made the window scroll as a whole */
body.nd-menu #upsell_popup .modal-dialog:not(#\9)::before {
  display: none;
}

body.nd-menu #upsell_popup .modal-dialog:not(:has(.item:nth-child(3))):not(#\9) {
  max-width: 500px;
}

body.nd-menu #upsell_popup .modal-content:not(#\9) {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 56px - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 56px - env(safe-area-inset-bottom));
  padding: 32px 28px 26px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 50px 110px -55px rgba(0, 0, 0, .5), 0 12px 32px -14px rgba(0, 0, 0, .22);
}

/* the page behind blurs, as in the prototypes; the backdrop stays at full opacity or the blur fades with it.
   Only the upsell's own backdrop, the first: a product window over the upsell brings its own, left as it is */
body.nd-menu:has(#upsell_popup:is(.show, [style*="display: block"])) > .modal-backdrop:not(.modal-backdrop ~ .modal-backdrop, #\9) {
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(9px) saturate(1.15);
  backdrop-filter: blur(9px) saturate(1.15);
}

body.nd-menu:has(#upsell_popup:is(.show, [style*="display: block"])) > .modal-backdrop.show:not(.modal-backdrop ~ .modal-backdrop, #\9) {
  opacity: 1;
}

body.nd-menu #upsell_popup .modal-header:not(#\9) {
  display: block;
  flex: none;
  margin: 0 0 4px;
  padding: 0 44px;
  border: 0;
  background: none;
  text-align: center;
}

body.nd-menu #upsell_popup .modal-title:not(#\9) {
  margin: 0;
  color: var(--nd-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

body.nd-menu #upsell_popup .modal-header > button.close:not(#\9) {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
}

.nd-up-sub {
  flex: none;
  max-width: 52ch;
  margin: 0 auto 18px;
  color: rgba(13, 13, 13, .62);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

/* only the grid scrolls: title and button stay */
body.nd-menu #upsell_popup .modal-body:not(#\9) {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -8px;
  padding: 4px 8px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body.nd-menu #upsell_popup .modal-body > .row:not(#\9) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

body.nd-menu #upsell_popup .modal-body > .row:has(.item:nth-child(3)):not(#\9) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* exactly four, the usual count: one row, not three and an orphan */
body.nd-menu #upsell_popup .modal-dialog:has(.item:nth-child(4):last-child):not(#\9) {
  max-width: 860px;
}

body.nd-menu #upsell_popup .modal-body > .row:has(.item:nth-child(4):last-child):not(#\9) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.nd-menu #upsell_popup .item:not(#\9) {
  position: relative;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 12px 12px 14px;
  border: 1px solid rgba(13, 13, 13, .08);
  border-radius: 18px;
  background: #fff;
  text-align: start;
  transition: translate .4s var(--nd-e-soft), box-shadow .4s var(--nd-e-soft);
}

body.nd-menu #upsell_popup .item > a:not(#\9) {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--nd-ink);
  text-decoration: none;
}

body.nd-menu #upsell_popup .item .img_cont:not(#\9) {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 13px;
  background: #fff;
}

body.nd-menu #upsell_popup .item .img_cont > img:not(#\9) {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

body.nd-menu #upsell_popup .item .img_cont :is(.sale, .sale2, .not_in_stock):not(#\9) {
  position: absolute;
  top: 8px;
  right: auto;
  bottom: auto;
  left: auto;
  inset-inline-start: 8px;
  display: flex;
  gap: 5px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

body.nd-menu #upsell_popup .item .img_cont .sale2:not(#\9) {
  display: -webkit-box;
  max-width: calc(100% - 16px);
  padding-block: 0;
  border-block: 3px solid transparent;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.nd-menu #upsell_popup .item .img_cont .sale ~ .sale2:not(#\9) {
  top: 36px;
  -webkit-line-clamp: 1;
}

body.nd-menu #upsell_popup .item .img_cont .not_in_stock:not(#\9) {
  top: auto;
  bottom: 8px;
  background: rgba(13, 13, 13, .78);
  color: #fff;
}

body.nd-menu #upsell_popup .item .sale :is(del, ins):not(#\9) {
  position: static;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

body.nd-menu #upsell_popup .item .sale del:not(#\9) {
  opacity: .8;
  text-decoration: line-through;
}

body.nd-menu #upsell_popup .item .title:not(#\9) {
  display: block;
  min-height: 2.6em;
  margin: 0;
  padding: 10px 2px 0;
  color: var(--nd-ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: start;
}

body.nd-menu #upsell_popup .nd-card-foot:not(#\9) {
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 0;
}

/* decoration on the card's own link: pressing it runs what the card runs, the product window first */
.nd-up-add {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  transition: transform .25s var(--nd-e-soft), background-color .25s ease;
}

.nd-up-add::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("/images/new-design/icons/menu/plus.svg") center / contain no-repeat;
  mask: url("/images/new-design/icons/menu/plus.svg") center / contain no-repeat;
}

body.nd-menu #upsell_popup .item > a:active .nd-up-add:not(#\9) {
  transform: scale(.9);
}

.nd-up-count {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--nd-ink);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 27px;
  text-align: center;
  animation: ndCountIn .5s cubic-bezier(.34, 1.56, .64, 1);
}

.nd-up-count:empty {
  display: none;
}

body.nd-menu #upsell_popup .modal-footer:not(#\9) {
  flex: none;
  justify-content: flex-end;
  margin: 0;
  padding: 16px 0 0;
  border: 0;
  background: none;
}

body.nd-menu #upsell_popup .modal-footer .btn:not(#\9) {
  height: 48px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  font-size: 16px;
  font-weight: 700;
  transition: background-color .25s ease, translate .25s var(--nd-e-soft);
}

@media (hover: hover) and (pointer: fine) {
  body.nd-menu #upsell_popup .item:hover:not(#\9)::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 6px;
  }

  body.nd-menu #upsell_popup .item:hover:not(#\9) {
    translate: 0 -5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05), 0 18px 36px -26px rgba(0, 0, 0, .3);
  }

  body.nd-menu #upsell_popup .modal-footer .btn:hover:not(#\9) {
    background: var(--nd-primary-hover);
    translate: 0 -2px;
  }
}

/* a phone held upright: the window takes 80% of the screen, as in the prototypes; the page shows around it */
@media not all and (min-width: 768px) {
  body.nd-menu #upsell_popup .modal-content:not(#\9) {
    max-height: 80vh;
    max-height: 80dvh;
  }
}

@media (max-width: 640px) {
  body.nd-menu #upsell_popup .modal-dialog:not(#\9) {
    padding-inline: 12px;
  }

  body.nd-menu #upsell_popup .modal-content:not(#\9) {
    padding: 24px 16px 18px;
    border-radius: 20px;
  }

  body.nd-menu #upsell_popup .modal-body > .row:not(#\9),
  body.nd-menu #upsell_popup .modal-body > .row:has(.item:nth-child(3)):not(#\9),
  body.nd-menu #upsell_popup .modal-body > .row:has(.item:nth-child(4):last-child):not(#\9) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.nd-menu #upsell_popup .item .img_cont:not(#\9) {
    aspect-ratio: 16 / 10;
  }

  body.nd-menu #upsell_popup .nd-up-add:not(#\9) {
    width: 40px;
    height: 40px;
  }

  body.nd-menu #upsell_popup .modal-footer .btn:not(#\9) {
    width: 100%;
  }

  /* the prototypes' phone ×: a larger frosted circle */
  body.nd-menu #upsell_popup .modal-header > button.close:not(#\9) {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, .35);
  }

  body.nd-menu #upsell_popup .modal-header > button.close:not(#\9)::before {
    width: 18px;
    height: 18px;
  }
}

/* a low window (a phone on its side): tighter edges and wider photos, so the first row shows names, prices and the + */
@media (max-height: 500px) {
  body.nd-menu #upsell_popup .modal-dialog:not(#\9) {
    min-height: calc(100% - 16px - env(safe-area-inset-bottom));
    margin: 8px auto calc(8px + env(safe-area-inset-bottom));
  }

  body.nd-menu #upsell_popup .modal-content:not(#\9) {
    max-height: calc(100vh - 16px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    padding: 14px 20px 12px;
  }

  body.nd-menu #upsell_popup .modal-header > button.close:not(#\9) {
    top: 8px;
    inset-inline-end: 8px;
  }

  body.nd-menu #upsell_popup .modal-title:not(#\9) {
    font-size: 19px;
  }

  body.nd-menu #upsell_popup .nd-up-sub:not(#\9) {
    margin-bottom: 8px;
    font-size: 13px;
  }

  body.nd-menu #upsell_popup .item:not(#\9) {
    padding: 8px 8px 10px;
  }

  body.nd-menu #upsell_popup .item .img_cont:not(#\9) {
    aspect-ratio: 2 / 1;
  }

  body.nd-menu #upsell_popup .item .title:not(#\9) {
    min-height: 0;
    padding-top: 6px;
  }

  body.nd-menu #upsell_popup .modal-footer:not(#\9) {
    padding-top: 10px;
  }

  body.nd-menu #upsell_popup .modal-footer .btn:not(#\9) {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nd-menu #upsell_popup.fade .modal-dialog:not(#\9) {
    transform: none;
    transition: opacity .15s ease;
  }

  body.nd-menu #upsell_popup .item:not(#\9),
  body.nd-menu #upsell_popup .modal-footer .btn:not(#\9) {
    translate: none !important;
  }

  .nd-up-count {
    animation: none;
  }

  /* the + answers a press with its colour only */
  body.nd-menu #upsell_popup .item > a:active .nd-up-add:not(#\9) {
    transform: none;
    background: var(--nd-primary-hover);
  }
}

/* tooltips: never an empty bubble, never over a window of the pay flow */
body.nd-menu .qtip:has(> .qtip-content:empty):not(#\9),
body.nd-menu:has(#upsell_popup.show) .qtip:not(#\9) {
  display: none !important;
}

/* a tooltip only tells: a press where it stands goes to what is under it (the card's foot) */
body.nd-menu .qtip:not(#\9) {
  pointer-events: none;
}

/* the cart is behind the window: the flying photo would cross its title for nothing */
body.nd-menu:has(#upsell_popup.show) > img[style*="position: fixed"]:not(#\9) {
  display: none;
}

/* tight room: the empty cart gives up its second line and icon before the totals scroll away */
body.nd-menu .menu_wrapper .cart.nd-empty-tight .nd-cart-empty:not(#\9) {
  padding-block: 8px;
}

body.nd-menu .menu_wrapper .cart.nd-empty-tight .nd-cart-empty:not(#\9)::before,
body.nd-menu .menu_wrapper .cart.nd-empty-tight .nd-cart-empty > span:not(#\9) {
  display: none;
}

/* very little room: the total stays by the button, the lines above it (subtotal, discount) go first.
   The notes under it (minimum order, delivery time, weighing) stay. Nothing is lost on the way to pay:
   the checkout shows them, and scrolling the page brings them back */
body.nd-menu .menu_wrapper .cart.nd-tight .list > :is(.subtotal, .discount):not(#\9) {
  display: none;
}

body.nd-menu .menu_wrapper .cart.nd-tight .list > .total:not(#\9) {
  margin-top: 0;
  padding-block: 6px;
}

/* Site tag colours remain on the links; the surrounding tools are not a coloured banner. */
body.nd-menu:not(.nd-tags-probe) .nd-phone-tools ul.tags:not(#\9) { background: none; flex-wrap: nowrap; }
body.nd-menu .nd-phone-tools ul.tags > li:not(#\9) { width: auto; flex: 0 1 auto; min-width: 0; }
body.nd-menu .slider_cats ul.categories > li > a.nd-cat-painted:not(#\9),
body.nd-menu .slider_cats ul.categories > li > a.nd-cat-painted > span:not(#\9) {
  background: var(--nd-category-fill) !important;
  color: var(--nd-category-ink) !important;
}
body.nd-menu .slider_cats ul.categories > li > a.nd-cat-painted:not(#\9)::after { content: none; }
body.nd-menu .slider_cats ul.categories > li > a.nd-cat-painted.active:not(#\9) {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
body.nd-menu .slider_cats ul.categories.nd-ind-on > li > a.nd-cat-painted.active:not(#\9) {
  background: var(--nd-category-fill) !important;
  color: var(--nd-category-ink) !important;
}
