/*
 * New design — product window layer (App\Support\NewDesign::menu, body.nd-menu). Docs: _private/docs/new-design-popups.md.
 * The product window #options of any popup template and of the platform's own window (old-product-template), in the
 * look of the prototypes' M01/M02 (Monday 13296464653). Look only: js/menu.js renders the window, reads every field
 * and computes every amount; nothing here changes what it reads (no input type, no element moved out of the nodes it
 * reads, no display: none on what it checks with :visible). js/new-design-popups.js only marks the window's kind.
 * `#options` gives every rule an id's weight over the Sites' class rules; a Site's !important is beaten only where named.
 */
body.nd-menu #options {
  --pp-ink: #0d0d0d;
  --pp-muted: rgba(13, 13, 13, .55);
  --pp-paper: #fff;
  --pp-field: #c9c9c9;
  --pp-field-strong: #8c8c8c;
  --pp-sunk: #f0f0f0;
  --pp-pad: 16px;
  --pp-e-out: cubic-bezier(.32, .72, 0, 1);
  --pp-e-soft: cubic-bezier(.16, 1, .3, 1);
  --pp-e-fill: cubic-bezier(.76, 0, .24, 1);
}

/* ───────────── The page behind: dimmed and blurred, as in the prototypes ───────────── */
/* Only the window's own backdrop (js/new-design-popups.js marks it, as the checkout layer does its own): over the upsell a
   product window brings a second, and the page is not darkened and blurred twice by the upsell's look */
body.nd-menu .modal-backdrop.nd-pp-backdrop.show:not(#\9) {
  background: rgba(0, 0, 0, .55);
  opacity: 1;
  -webkit-backdrop-filter: blur(9px) saturate(115%);
  backdrop-filter: blur(9px) saturate(115%);
}

/* closing, it fades with the window, not after it (an animation: Bootstrap times the backdrop by its first transition) */
body.nd-menu .modal-backdrop.nd-pp-backdrop.nd-pp-leaving:not(#\9) {
  animation: ndPpBackdropOut .4s var(--nd-e-soft, ease) forwards;
}

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

/* Bootstrap shows the backdrop before #options gets .show: without a transition the blur would switch on in one frame */
body.nd-menu .modal-backdrop.nd-pp-backdrop:not(#\9) {
  transition: opacity .15s linear, background-color .45s var(--nd-e-soft, ease), -webkit-backdrop-filter .45s var(--nd-e-soft, ease), backdrop-filter .45s var(--nd-e-soft, ease);
}

/* ───────────── The window ───────────── */
body.nd-menu #options.fade {
  transition: opacity .3s var(--pp-e-soft);
}

body.nd-menu #options .modal-content {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--pp-paper);
  color: var(--pp-ink);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  overflow-x: hidden;
  overflow-anchor: none;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 28%, transparent) transparent;
}

body.nd-menu #options .modal-body {
  padding: var(--pp-pad);
  color: var(--pp-ink);
  text-align: start;
}

/* the Sites' own grey/cream fills inside (saada: .inner .options .bg-light !important) give way to the window's */
body.nd-menu #options .bg-light:not(.price) {
  background: transparent !important;
}

body.nd-menu #options .price.bg-light {
  background: var(--pp-sunk) !important;
}

/* the platform's 2px rules under the description and over the quantity (front.css) are not the design's */
body.nd-menu #options .modal-body :is(.description, .quantity:not(.option_control)):not(#\9)::after,
body.nd-menu #options .modal-body :is(.description, .quantity:not(.option_control)):not(#\9)::before {
  content: none;
}

/* ───────────── × ───────────── */
/* the menu layer's round × (css/new-design-menu.css, «Close button»), pinned at the window's top end corner */
/* a band of no height stuck to the top of the window's scroll (.modal-content): the × stays in its corner while a
   long window scrolls under it */
body.nd-menu #options .modal-header:not(#\9) {
  position: sticky;
  top: 0;
  z-index: 6;
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

body.nd-menu #options .modal-header > button.close:not(#\9) {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  inset-inline-start: auto;
  bottom: auto;
  pointer-events: auto;
}

/* ───────────── Name, text ───────────── */
body.nd-menu #options .modal-body h3:not(#\9) {
  margin: 0;
  padding-inline-end: 48px; /* the × keeps its own corner */
  color: var(--pp-ink);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.4px;
  line-height: 1.28;
  text-align: start;
}

body.nd-menu #options .modal-body h3 small {
  color: var(--pp-muted);
  font-size: .72em;
  font-weight: 600;
  letter-spacing: 0;
}

body.nd-menu #options .modal-body :is(.desc, .note, .description-product):not(#\9) {
  margin-top: 6px;
  border: 0;
  padding: 0;
  color: var(--pp-ink);
  font-size: .9rem;
  line-height: 1.5;
  text-align: start;
}

body.nd-menu #options .modal-body .desc p:last-child {
  margin-bottom: 0;
}

body.nd-menu #options .modal-body .description:not(#\9) {
  border: 0;
}

body.nd-menu #options .modal-body hr {
  display: none;
}

body.nd-menu #options .modal-body :is(h4, .quantity > strong, .quantity h4):not(#\9) {
  margin: 0 0 9px;
  color: var(--pp-ink);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ───────────── Photo ───────────── */
body.nd-menu #options .dish_img img:not(#\9) {
  display: block;
  width: 100%;
  max-height: 420px;
  border-radius: 14px;
  object-fit: cover;
  background: #efe8dd;
}

/* ───────────── Quantity: a pill of two round buttons ───────────── */
/* the platform's own markup (.ltr wrapper, button.less, the readonly text input, button.more): only its look. An option
   strip can carry .quantity too (.option_control.quantity, menu.js): it keeps its own */
body.nd-menu #options .quantity:not(.option_control):not(#\9) {
  border: 0;
  padding: 0 !important; /* the templates' p-3 */
  background: none;
  font-size: inherit;
  font-weight: inherit;
  text-align: start !important; /* their text-center */
}

/* !important: the templates' Bootstrap utilities on it (d-inline-block, mx-3) are */
body.nd-menu #options :is(.quantity:not(.option_control) .ltr, .quantity2):has(> input[name="quantity"]):not(#\9) {
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: min(168px, 100%);
  height: 48px;
  margin: 0 !important;
  padding: 0 7px;
  border: 1.5px solid var(--pp-field);
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
  vertical-align: middle;
}

body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more):not(#\9) {
  flex: none;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background-color .25s var(--pp-e-soft), transform .2s var(--pp-e-out), box-shadow .25s var(--pp-e-soft);
}

body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more) .fa:not(#\9) {
  color: inherit;
  font-size: inherit;
}

/* --nd-primary-hover is a color-mix() (new-design-menu.css): where a browser lacks it, the variable is invalid at
   use and the fill would go transparent. Only where it is understood */
@supports (color: color-mix(in srgb, red, blue)) {
@media (hover: hover) and (pointer: fine) {
  body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more):hover:not(#\9) {
    background: var(--nd-primary-hover, var(--primary));
    transform: translateY(-1px);
  }
}
}

body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more):active:not(#\9) {
  transform: scale(.88);
}

body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) input[name="quantity"]:not(#\9) {
  flex: 1 1 auto;
  width: 3.5ch;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pp-ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
}

body.nd-menu #options .quantity:not(.option_control) .units:not(#\9) {
  color: var(--pp-muted);
  font-size: .82rem;
  font-weight: 600;
}

/* ───────────── Weight list (select) ───────────── */
/* a one-line list only: a list box (multiple, size) keeps its height */
body.nd-menu #options select:not([multiple]):not([size]):not(#\9) {
  height: 48px;
  padding-block: 0;
  padding-inline: 13px 30px;
  border: 1.5px solid var(--pp-field);
  border-radius: 11px;
  background-color: #fff;
  box-shadow: none;
  color: var(--pp-ink);
  font-size: .95rem;
  font-weight: 700;
}

body.nd-menu #options select:not([multiple]):not([size]):hover:not(#\9) {
  border-color: var(--pp-field-strong);
}

/* ───────────── Price and summary ───────────── */
/* the row the engine writes the total into (.price span): one sunk band, the label at the start, the sum at the end */
body.nd-menu #options .modal-body :is(.price_wrap, .quantity) .price:not(#\9),
body.nd-menu #options .modal-body .description > .price.no_quantity:not(#\9) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--pp-sunk);
  box-shadow: none;
  color: var(--pp-ink);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  align-self: flex-start; /* a band, not a column as tall as its neighbour */
}

body.nd-menu #options .modal-body :is(.price_wrap, .quantity) .price span:not(#\9),
body.nd-menu #options .modal-body .description > .price.no_quantity span:not(#\9) {
  margin-inline-start: auto;
  color: var(--pp-ink);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
}

body.nd-menu #options .modal-body .price_wrap:not(#\9) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
}

body.nd-menu #options .modal-body .price_wrap .original_price:not(#\9) {
  margin: 6px 0 0;
  color: var(--pp-muted);
  font-size: .82rem;
}

/* weight beside the price (the platform's .weight) reads the same way */
body.nd-menu #options .modal-body :is(.weight, .total_weight):not(#\9) {
  color: var(--pp-ink);
  font-size: .82rem;
  font-weight: 600;
}

body.nd-menu #options .modal-body :is(.weight, .total_weight) span:not(#\9) {
  color: var(--pp-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

/* ───────────── Notes (only where the window already has the field) ───────────── */
body.nd-menu #options input[name="comments"]:not(#\9) {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #f1f1f1;
  box-shadow: none;
  color: var(--pp-ink);
  font-size: .9rem;
  line-height: 1.5;
  outline: none;
  transition: border-color .35s var(--pp-e-soft), box-shadow .35s var(--pp-e-soft), background-color .35s var(--pp-e-soft);
}

body.nd-menu #options input[name="comments"]::placeholder {
  color: rgba(13, 13, 13, .45);
  opacity: 1;
}

body.nd-menu #options input[name="comments"]:hover:not(#\9) {
  background: #eaeaea;
}

body.nd-menu #options input[name="comments"]:focus:not(#\9) {
  border-color: #b0b0b0;
  background: #fff;
  box-shadow: none;
}

/* ───────────── Buttons ───────────── */
/* the buttons' row takes its whole column: a template that halves it (the platform's window: notes | buttons) left
   «add» and its sum no room */
body.nd-menu #options .modal-body .row:not(.description):has(> [class*="col"] > :is(.buttons, .bottom_fixed)) > [class*="col"]:not(#\9) {
  flex: 0 0 100%;
  max-width: 100%;
}

body.nd-menu #options :is(.buttons, .bottom_fixed):not(#\9) {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  margin: 0;
  padding: var(--pp-pad) 0 0;
  float: none;
  text-align: start;
}

body.nd-menu #options :is(.buttons, .bottom_fixed) > :is(a, .btn):not(#\9) {
  float: none;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .96rem !important; /* a Site's !important sizes (saada's branch 2: 20px) */
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal; /* a long label (ru, en: «Добавить и продолжить – ₪1 234,50») wraps inside the pill on 320px */
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color .35s var(--pp-e-soft), color .35s var(--pp-e-soft), border-color .35s var(--pp-e-soft), transform .35s var(--pp-e-soft), box-shadow .35s var(--pp-e-soft);
}

/* «cancel» first, as in the prototypes (js/new-design-popups.js puts it first in the DOM, so Tab and a screen reader
   meet it there too); it takes the width of its word */
body.nd-menu #options :is(.buttons, .bottom_fixed) > .cancel:not(#\9) {
  flex: 0 0 auto !important;
  white-space: nowrap;
  align-self: center; /* beside a wrapped «add» it keeps its own height */ /* a Site's !important basis (saada's branch 2: 45%) */
  border-color: #bdbdbd;
  background: transparent;
  color: var(--pp-ink);
}

@media (hover: hover) and (pointer: fine) {
  body.nd-menu #options :is(.buttons, .bottom_fixed) > .cancel:hover:not(#\9) {
    border-color: #9c9c9c;
    background: #f0f0f0;
  }
}

body.nd-menu #options :is(.buttons, .bottom_fixed) > :is(.ok, .next, .prev, .not_in_stock):not(#\9) {
  flex: 1 1 0 !important;
  border-color: var(--primary);
  background: var(--primary);
  color: var(--nd-on-primary, #fff);
}

body.nd-menu #options :is(.buttons, .bottom_fixed) > .prev:not(#\9) {
  flex: 0 0 auto !important;
  border-color: #bdbdbd;
  background: transparent;
  color: var(--pp-ink);
}

@supports (color: color-mix(in srgb, red, blue)) {
@media (hover: hover) and (pointer: fine) {
  body.nd-menu #options :is(.buttons, .bottom_fixed) > :is(.ok, .next):hover:not(#\9) {
    background: var(--nd-primary-hover, var(--primary));
    border-color: var(--nd-primary-hover, var(--primary));
    transform: translateY(-2px);
    box-shadow: none;
  }
}
}

body.nd-menu #options :is(.buttons, .bottom_fixed) > :is(a, .btn):active:not(#\9) {
  transform: scale(.98);
}

/* the sum in the button is the engine's own: menu.js writes every `#options .price span` with the total (its
   «add» text carries one) and front.css hides it. Shown here, it can only ever be that same figure */
body.nd-menu #options :is(.buttons, .bottom_fixed) .ok .price:not(#\9) {
  display: inline;
  white-space: nowrap; /* the sum never breaks */
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

body.nd-menu #options :is(.buttons, .bottom_fixed) .ok .price:not(#\9)::before {
  content: "–";
  margin-inline-end: 6px;
}

body.nd-menu #options :is(.buttons, .bottom_fixed) .ok .price:has(> span:empty):not(#\9) {
  display: none;
}

body.nd-menu #options :is(.buttons, .bottom_fixed) .ok .price span:not(#\9) {
  color: inherit;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
}

/* out of stock: the platform swaps «add» for this label; it reads as a disabled button, not as an action */
body.nd-menu #options :is(.buttons, .bottom_fixed) > .not_in_stock:not(#\9) {
  border-color: #d5d5d5;
  background: #ececec;
  color: rgba(13, 13, 13, .55);
  cursor: not-allowed;
  pointer-events: none;
}

body.nd-menu #options:has(:is(.buttons, .bottom_fixed) > .not_in_stock:not([style*="none"])) .dish_img img {
  filter: grayscale(.35);
  opacity: .8;
}

/* ───────────── Desktop: open and close ───────────── */
@media (min-width: 768px) {
  /* the composed kinds and an xl template; a template sized sm or lg (modal-{popup_size}, menu.js) keeps its width */
  body.nd-menu #options:is([data-nd-kind="unit"], [data-nd-kind="platform"], [data-nd-kind="weight"]) .modal-dialog:not(#\9),
  body.nd-menu #options .modal-dialog.modal-xl:not(#\9) {
    max-width: min(var(--pp-width, 1040px), calc(100vw - 56px));
  }

  body.nd-menu #options.fade .modal-dialog:not(#\9) {
    transform: translateY(24px) scale(.97);
    transition: transform .5s var(--pp-e-out);
  }

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

  body.nd-menu #options .modal-content:not(#\9) {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  body.nd-menu #options .modal-content::-webkit-scrollbar {
    width: 10px;
  }

  body.nd-menu #options .modal-content::-webkit-scrollbar-thumb {
    border: 3px solid #fff;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 22%, transparent);
    background-clip: padding-box;
  }
}

/* ───────────── Phone: a sheet from the bottom, one column, the buttons pinned ───────────── */
@media (max-width: 767.98px) {
  body.nd-menu #options:not(#\9) {
    padding: 0 !important;
  }

  /* the dialog fills the screen and keeps a transform at rest: it is the box the pinned buttons hold to */
  body.nd-menu #options .modal-dialog:not(#\9) {
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: none;
    min-height: 100%;
    height: 100%;
    margin: 0;
    transform: translateY(0);
  }

  body.nd-menu #options.fade .modal-dialog:not(#\9) {
    transform: translateY(100%);
    transition: transform .45s var(--pp-e-out);
  }

  body.nd-menu #options.fade.show .modal-dialog:not(#\9) {
    transform: translateY(0);
  }

  body.nd-menu #options .modal-content:not(#\9) {
    width: 100%;
    max-height: 90vh; /* where dvh is unknown (iOS < 15.4) */
    max-height: 90dvh;
    padding: 0;
    border-radius: 22px 22px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* the platform's sticky header on scroll (front.css .scroll-popup) is for its own phone window */
  body.nd-menu #options .modal-content.scroll-popup:not(#\9) {
    padding-top: 0;
  }

  body.nd-menu #options .modal-content.scroll-popup .description:not(#\9) {
    position: static;
    box-shadow: none;
  }

  body.nd-menu #options .modal-body:not(#\9) {
    padding: var(--pp-pad) var(--pp-pad) calc(96px + env(safe-area-inset-bottom));
  }

  body.nd-menu #options .dish_img img:not(#\9) {
    max-height: 260px;
  }

  /* the buttons: pinned to the sheet's foot whatever the template nests them in */
  body.nd-menu #options :is(.buttons, .bottom_fixed):not(#\9) {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 5;
    gap: 12px;
    padding: 16px var(--pp-pad) calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid color-mix(in srgb, var(--primary) 7%, transparent);
    background: var(--pp-paper);
  }

  body.nd-menu #options :is(.buttons, .bottom_fixed) > :is(a, .btn):not(#\9) {
    padding: 14px 22px;
  }

  body.nd-menu #options :is(.buttons, .bottom_fixed) > :is(.ok, .next, .not_in_stock):not(#\9) {
    padding-inline: 18px;
  }

  body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more):not(#\9) {
    width: 40px;
    height: 40px;
  }

  body.nd-menu #options .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: none;
  }
}

/* ───────────── Choices: tiles (an option strip of single choice, .radios_images: menu.js control 12) ─────────────
   The prototypes' cut grid (M07/M04): a card per option, its photo on top and its name under it; the chosen one gets
   the brand edge and a check. Without photos, one bordered row of radio pills. The engine's own radio stays the
   control (menu.js reads :checked; it checks the first itself): hidden from sight, never from it */
body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row:not(#\9) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:not(#\9) {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex: none;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0 !important; /* the control template's ml-0 mb-3 */
  padding: 7px;
  border: 1.5px solid var(--pp-field);
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
  color: var(--pp-ink);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: border-color .3s var(--pp-e-soft), box-shadow .3s var(--pp-e-soft), transform .2s var(--pp-e-out);
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label > img:not(#\9) {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: 9px;
  object-fit: cover;
  background: #efe8dd;
  transition: transform .55s var(--pp-e-soft);
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label > br {
  display: none;
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label > input[type="radio"]:not(#\9) {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* the check: drawn on the card, the brand fill and a white tick */
body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:not(#\9)::after {
  content: "";
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: none;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .25s var(--pp-e-soft), transform .35s var(--pp-e-out);
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:has(> input:checked):not(#\9) {
  border-color: var(--primary);
  box-shadow: none;
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:has(> input:checked):not(#\9)::after {
  opacity: 1;
  transform: none;
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:has(> input:focus-visible):not(#\9) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:hover:not(#\9) {
    border-color: var(--pp-field-strong);
    transform: translateY(-3px);
  }

  body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:has(> input:checked):hover:not(#\9) {
    border-color: var(--primary);
  }

  body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:hover > img:not(#\9) {
    transform: scale(1.04);
  }
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:active:not(#\9) {
  transform: scale(.98);
}

/* no photo on any option (saada: a fish to choose, a thickness): one bordered row of radio pills */
body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row).nd-pp-no-photo > .row:not(#\9) {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--pp-field);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row).nd-pp-no-photo > .row > label:not(#\9) {
  flex: 1 1 0;
  flex-direction: row;
  justify-content: center;
  gap: 9px;
  padding: 13px 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: .88rem;
  font-weight: 600;
  transform: none;
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row).nd-pp-no-photo > .row > label + label:not(#\9) {
  border-inline-start: 1.5px solid var(--pp-field);
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row).nd-pp-no-photo > .row > label > input[type="radio"]:not(#\9) {
  position: static;
  flex: none;
  width: 18px;
  height: 18px;
  opacity: 1;
  pointer-events: auto;
  accent-color: var(--primary);
  cursor: pointer;
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row).nd-pp-no-photo > .row > label:not(#\9)::after {
  content: none;
}

body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row).nd-pp-no-photo > .row > label:has(> input:checked):not(#\9) {
  border-color: var(--pp-field);
  background: color-mix(in srgb, var(--primary) 6%, #fff);
  box-shadow: none;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row).nd-pp-no-photo > .row > label:hover:not(#\9) {
    border-color: var(--pp-field);
    background: rgba(0, 0, 0, .03);
    transform: none;
  }

  body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row).nd-pp-no-photo > .row > label + label:hover:not(#\9) {
    border-inline-start-color: var(--pp-field);
  }
}

/* ───────────── Composition components for a kind (roles named by the kind's script) ─────────────
   .nd-pp-host: the box of the two columns; .nd-pp-media: the photo's cell; .nd-pp-aside: the action column;
   .nd-pp-panel: quantity and total in one card. On #options: .nd-pp-split (two columns on a desktop), .nd-pp-stack
   (one column on a desktop too), .nd-pp-one (set by js/new-design-popups.js: the one-column composition, for a stack
   or a split on a phone). A kind file uses these and never redefines them */
body.nd-menu #options:is(.nd-pp-split, .nd-pp-stack) .nd-pp-panel:not(#\9) {
  display: block;
  margin: 12px 0 0 !important; /* a template's mt-*, a Site's own */
  padding: 16px !important;
  border: 1px solid rgba(0, 0, 0, .06) !important;
  border-radius: 18px;
  background: #fff !important; /* saada's .shadow-wrapper fill */
  box-shadow: none;
  text-align: start;
}

/* the choices of a composed window: a panel of their own (the prototypes' cut panel) */
body.nd-menu #options:is(.nd-pp-split, .nd-pp-stack) .modal-body .wrapper:not(#\9) {
  display: block;
  max-height: none; /* a Site's own scroll box for the choices (the cut grid has its own, below) */
  margin: 0;
  padding: 0;
  overflow: visible;
}

body.nd-menu #options:is(.nd-pp-split, .nd-pp-stack) .wrapper > .option_control:not(#\9) {
  flex: none;
  width: auto;
  max-width: none;
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

/* notes under a composed window */
body.nd-menu #options:is(.nd-pp-split, .nd-pp-stack) .modal-body :has(> input[name="comments"]):not(#\9) {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

/* ───────────── Two columns (desktop) ───────────── */
@media (min-width: 861px) {
  body.nd-menu #options.nd-pp-split {
    --pp-width: 960px;
    --pp-aside: 460px;
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .modal-body:not(#\9) {
    padding: 0 0 var(--pp-pad);
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-host:not(#\9) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--pp-aside);
    align-items: start;
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-host:not(#\9)::before {
    content: "";
    position: absolute;
    top: var(--pp-pad);
    bottom: var(--pp-pad);
    inset-inline-start: calc(100% - var(--pp-aside));
    width: 1px;
    background: rgba(0, 0, 0, .06);
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-host > :is(.nd-pp-media, .nd-pp-aside):not(#\9) {
    flex: none;
    width: auto;
    max-width: none;
    margin: 0;
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-media:not(#\9) {
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 var(--pp-pad);
  }

  /* the photo reaches the window's top and side edges (its corner cut by the window's radius) */
  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-media img:first-child:not(#\9) {
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    aspect-ratio: 3 / 2;
    border-radius: 0;
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-media > :not(img):not(#\9) {
    margin-inline: var(--pp-pad);
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-media > .desc:not(#\9) {
    margin-top: 14px;
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-aside:not(#\9) {
    grid-column: 2;
    grid-row: 1;
    padding: var(--pp-pad);
  }

  /* two lines kept for the name, so the panel stays put under a short name or a long one */
  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .nd-pp-aside h3:first-of-type:not(#\9) {
    min-height: 1.3em;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: .3em;
  }

  /* what the template puts under the two columns (the choices of the platform's window with its photo on top,
     the notes, the buttons): the notes across, the choices and the buttons at the action column's width, at its end */
  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .modal-body > :not(.nd-pp-host):not(#\9) {
    margin-inline: var(--pp-pad);
  }

  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .modal-body > .wrapper:not(#\9),
  body.nd-menu #options.nd-pp-split:not(.nd-pp-one) .modal-body > :not(.nd-pp-host) :is(.buttons, .bottom_fixed):not(#\9) {
    width: calc(var(--pp-aside) - 2 * var(--pp-pad));
    margin-inline-start: auto;
  }
}

/* ───────────── One column: a stack, and any split on a phone ───────────── */
body.nd-menu #options.nd-pp-one .modal-body:not(#\9) {
  padding-top: 0;
}

body.nd-menu #options.nd-pp-one .nd-pp-host:not(#\9) {
  display: flex;
  flex-direction: column;
  margin: 0;
}

body.nd-menu #options.nd-pp-one .nd-pp-host > :is(.nd-pp-media, .nd-pp-aside):not(#\9) {
  display: contents;
}

body.nd-menu #options.nd-pp-one .nd-pp-media img:first-child:not(#\9) {
  width: calc(100% + 2 * var(--pp-pad));
  max-width: none;
  max-height: none;
  margin: 0 calc(-1 * var(--pp-pad));
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

body.nd-menu #options.nd-pp-one .nd-pp-aside h3:first-of-type:not(#\9) {
  margin-top: 14px;
  padding-inline-end: 0;
}

@media (max-width: 767.98px) {
  /* the choices' tiles: four to a phone's row, as in the prototypes (four of 84px do not fit) */
  body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row:not(#\9) {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  body.nd-menu #options.fade .modal-dialog:not(#\9) {
    transition-duration: .01s;
  }

  body.nd-menu .modal-backdrop.nd-pp-backdrop.nd-pp-leaving:not(#\9) {
    animation-duration: .01s;
  }
}

/* Multiple choice: the same tile, one real square checkbox, no second synthetic mark. */
body.nd-menu #options .option_control.checkboxes_row > .row > label > input[type="checkbox"]:not(#\9) {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 1;
  accent-color: var(--primary);
  cursor: pointer;
}
body.nd-menu #options .option_control.checkboxes_row > .row > label:not(#\9)::after { content: none; }
body.nd-menu #options .option_control.checkboxes_row.nd-pp-no-photo > .row > label > input:not(#\9) { position: static; flex: none; }
body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label.nd-pp-selected:not(#\9) { border-color: var(--primary); background-color: #f4f4f4; }
body.nd-menu #options .option_control.radios_images > .row > label.nd-pp-selected:not(#\9)::after { opacity: 1; transform: none; }
body.nd-menu #options .option_control:is(.radios_images, .checkboxes_row) > .row > label:focus-within:not(#\9) { outline: 2px solid var(--primary); outline-offset: 2px; }
/* The alternate action bar retains its engine name and ancestry. */
body.nd-menu #options .bottom_fixed:not(#\9) { position: static; flex-wrap: wrap; width: auto; }
body.nd-menu #options .bottom_fixed > input[name="comments"]:not(#\9) { flex: 0 0 100%; order: -2; margin: 0 0 8px; }
@media (max-width: 767.98px) {
  body.nd-menu #options .bottom_fixed:not(#\9) { position: fixed; inset-inline: 0; bottom: 0; row-gap: 8px; }
  body.nd-menu #options.nd-pp-bottom-fixed .modal-body:not(#\9) { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
}
/* Internal cards have an outline, not a floating shadow. */
body.nd-menu #options .nd-pp-panel:not(#\9),
body.nd-menu #options .wrapper > .option_control:not(#\9),
body.nd-menu #options .price_wrap:not(#\9) { box-shadow: none; }
body.nd-menu #options .wrapper > .option_control:not(#\9) { border: 1px solid #e1e1e1; padding: 12px; }
body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more):not(#\9),
body.nd-menu #options .modal-header > button.close:not(#\9) {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more):hover:not(#\9) { transform: none; filter: brightness(.92); }
}
body.nd-menu #options .modal-header > button.close:active:not(#\9) { transform: scale(.92); }
/* Without :has(): usable native controls and normal-flow actions, no hidden choices. */
body.nd-menu.nd-pp-no-has #options .option_control.radios_images > .row > label > input[type="radio"]:not(#\9) {
  position: static;
  width: 18px;
  height: 18px;
  opacity: 1;
  pointer-events: auto;
  accent-color: var(--primary);
}
body.nd-menu.nd-pp-no-has #options .option_control.radios_images > .row > label:not(#\9)::after { content: none; }
body.nd-menu.nd-pp-no-has #options :is(.buttons, .bottom_fixed):not(#\9) { position: static; width: 100%; margin-top: 16px; }
body.nd-menu.nd-pp-no-has #options .modal-body > .row > div:not(#\9) { max-width: 100%; }
body.nd-menu.nd-pp-no-has #options :is(.quantity:not(.option_control) .ltr, .quantity2):not(#\9) { display: inline-flex !important; align-items: center; gap: 6px; }
body.nd-menu #options .modal-header > button.close:not(#\9) {
  border-radius: 50%;
  background: #f4f4f4;
  color: var(--pp-ink);
}
@media (hover: hover) and (pointer: fine) {
  body.nd-menu #options .modal-header > button.close:hover:not(#\9) { background: #e4e4e4; }
}
body.nd-menu #options .modal-header > button.close:active:not(#\9) { background: #d8d8d8; }
body.nd-menu #options .option_control.checkboxes_row input[type="checkbox"]:not(#\9) {
  appearance: auto;
  -webkit-appearance: checkbox;
}
body.nd-menu #options .option_control.checkboxes_row input[type="checkbox"]:not(#\9)::before,
body.nd-menu #options .option_control.checkboxes_row input[type="checkbox"]:not(#\9)::after {
  content: none !important; /* cancel the platform's FontAwesome check; the native check is the only mark */
  display: none;
}
body.nd-menu #options .wrapper > .option_control:not(#\9)::after { content: none; }
body.nd-menu #options input[name="comments"]:not(#\9) { height: 46px; }
body.nd-menu.nd-pp-no-has #options .option_control.radios_images input[type="radio"]:not(#\9) { appearance: auto; -webkit-appearance: radio; }
body.nd-menu.nd-pp-no-has #options .option_control.radios_images input[type="radio"]:not(#\9)::before { content: none; }
body.nd-menu #options :is(.quantity:not(.option_control), .quantity2) :is(button.less, button.more):active:not(#\9) {
  transform: scale(.92);
  filter: brightness(.82);
}
body.nd-menu.nd-pp-no-has #options .modal-body *:not(#\9) { box-shadow: none !important; }

/* Keyboard focus belongs to the whole quantity control, including its readonly input. */
body.nd-menu #options :is(.quantity:not(.option_control) .ltr, .quantity2):focus-within:not(#\9) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
body.nd-menu #options .modal-content :is(a, button, input, select, textarea):focus-visible:not(#\9) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* A narrow desktop is a single-column dialog too: keep its actions in the initial viewport. */
@media (min-width: 768px) and (max-width: 860px) {
  body.nd-menu #options .modal-dialog-centered:not(#\9) { display: block; min-height: 0; }
  body.nd-menu #options .modal-dialog-centered:not(#\9)::before { content: none; }
  body.nd-menu #options.show .modal-dialog:not(#\9) { transform: translateY(0); }
  body.nd-menu #options .modal-body:not(#\9) { padding-bottom: 100px; }
  body.nd-menu #options :is(.buttons, .bottom_fixed):not(#\9) {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 5;
    width: auto;
    margin: 0;
    padding: 16px var(--pp-pad);
    background: var(--pp-paper);
    border-top: 1px solid #eee;
    border-radius: 0 0 24px 24px;
  }
  body.nd-menu #options.nd-pp-bottom-fixed .modal-body:not(#\9) { padding-bottom: 180px; }
}

/* Unknown template families may put steps or another control in the top end corner.
   Reserve a header band on the root dialog only; nested builder dialogs retain their own layout. */
body.nd-menu #options[data-nd-kind="template"] > .modal-dialog > .modal-content > .modal-body:not(#\9) {
  padding-top: 64px !important;
}
