/* Additive presentation layer: existing option controls and their business selectors stay intact. */
.ingredient-cards:not([hidden]) {
  display: block;
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: visible;
  padding: 10px;
  border-radius: 12px;
  background: #f6f8fa;
  color: #172536;
  container-type: inline-size;
  gap: 0;
}
.ingredient-cards *, .ingredient-cards-dialog * { box-sizing: border-box; }
.ingredient-cards [hidden], .ingredient-cards-dialog [hidden] { display: none !important; }
.ingredient-cards .ingredient-cards__toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.ingredient-cards .ingredient-cards__filter {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #344559;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.ingredient-cards .ingredient-cards__toolbar input[type="search"],
.ingredient-cards .ingredient-cards__toolbar select {
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #c1cbd7;
  border-radius: 10px;
  background: white;
  color: #172536;
  font: inherit;
  font-size: 16px;
}
.ingredient-cards .ingredient-cards__selected-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 42px;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  color: #344559;
}
.ingredient-cards .ingredient-cards__selected-toggle input { width: 20px; height: 20px; margin: 0; accent-color: #a46200; }
.ingredient-cards .ingredient-cards__help,
.ingredient-cards .ingredient-cards__status {
  margin: 6px 0 10px;
  color: #425369;
  font-size: 13px;
  line-height: 1.4;
}
.ingredient-cards .ingredient-cards__status:empty { display: none; }
.ingredient-cards .ingredient-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.ingredient-cards .ingredient-cards__card:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #c9d2de;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.ingredient-cards .ingredient-cards__card.ingredient-cards__checked { border-color: #c89111; background: #fff7df; box-shadow: inset 0 0 0 1px #efc453; }
.ingredient-cards .ingredient-cards__card .ingredient-cards__choice {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  grid-template-rows: 64px auto auto;
  align-items: start;
  align-content: start;
  justify-content: stretch;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 133px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #172536;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.2;
}
.ingredient-cards .ingredient-cards__choice > input[type="checkbox"] { grid-column: 1; grid-row: 2; width: 21px; height: 21px; margin: 1px 0 0; accent-color: #a46200; }
.ingredient-cards .ingredient-cards__choice > span:not(.ingredient-cards__picture) { grid-column: 2; grid-row: 2; min-width: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.ingredient-cards .ingredient-cards__choice .option-choice-label { display: flex; flex-direction: column; gap: 5px; }
.ingredient-cards .ingredient-cards__choice .option-choice-name { color: #172536; font-size: 15px; line-height: 1.2; }
.ingredient-cards .ingredient-cards__choice .option-choice-price { color: #785000; font-size: 14px; }
.ingredient-cards .ingredient-cards__choice > .ingredient-cards__picture {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 10px;
  background: #f2f5f8;
  overflow: hidden;
}
.ingredient-cards .ingredient-cards__picture .ingredient-cards__image:not([hidden]) { display: block; width: 100%; height: 100%; object-fit: contain; }
.ingredient-cards .ingredient-cards__icon:not([hidden]) { display: block; font-size: 38px; line-height: 1; }
.ingredient-cards .ingredient-cards__choice > input[data-extra-price-input] {
  grid-column: 2;
  grid-row: 3;
  width: 88px;
  min-width: 0;
  max-width: 100%;
  height: 35px;
  padding: 6px 8px;
  margin: 0;
  border: 1px solid #b8c3d1;
  border-radius: 8px;
  background: white;
  color: #172536;
  font-size: 15px;
  font-weight: 700;
}
.ingredient-cards .ingredient-cards__controls { display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 5px; border-top: 1px solid #e1e6ed; }
.ingredient-cards .ingredient-cards__controls button, .ingredient-cards .ingredient-cards__page {
  width: auto;
  min-width: 30px;
  min-height: 34px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #c9d2de;
  border-radius: 8px;
  background: white;
  color: #172536;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.ingredient-cards .ingredient-cards__controls .ingredient-cards__drag { cursor: grab; font-size: 21px; padding: 2px 5px; }
.ingredient-cards .ingredient-cards__controls .ingredient-cards__move { padding: 5px; }
.ingredient-cards .ingredient-cards__controls button:disabled, .ingredient-cards .ingredient-cards__page:disabled { opacity: .4; cursor: default; }
.ingredient-cards .ingredient-cards__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ingredient-cards .ingredient-cards__counter { color: #425369; font-size: 12px; line-height: 1.3; text-align: center; }
.ingredient-cards .ingredient-cards__empty { margin: 12px 0; padding: 20px; border: 1px dashed #bbc7d4; border-radius: 12px; background: #f6f8fa; color: #425369; }
.ingredient-cards .ingredient-cards__dragging { opacity: .5; }
.ingredient-cards .ingredient-cards__drop-target { outline: 3px solid #1176a7; outline-offset: -3px; }
.ingredient-cards input:focus-visible, .ingredient-cards select:focus-visible, .ingredient-cards button:focus-visible,
.ingredient-cards-dialog input:focus-visible, .ingredient-cards-dialog select:focus-visible, .ingredient-cards-dialog button:focus-visible { outline: 3px solid #1685bb; outline-offset: 2px; }
.ingredient-cards .ingredient-cards__card .ingredient-cards__custom-choice { grid-template-columns: 1fr; cursor: default; }
.ingredient-cards .ingredient-cards__custom-choice > input[data-custom-extra-name] { grid-row: 2; width: 100%; min-width: 0; padding: 7px; border: 1px solid #b8c3d1; background: #fff; color: #172536; font-size: 14px; }
.ingredient-cards .ingredient-cards__custom-choice > input[data-custom-extra-price] { grid-row: 3; width: 88px; max-width: 100%; min-width: 0; padding: 7px; border: 1px solid #b8c3d1; background: #fff; color: #172536; font-size: 14px; }
.ingredient-cards .ingredient-cards__custom-choice > button { grid-row: 4; min-height: 32px; margin: 0; padding: 5px 8px; font-size: 13px; }
.ingredient-cards-dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 22px;
  overflow-y: auto;
  border: 1px solid #bcc8d6;
  border-radius: 18px;
  background: #fff;
  color: #172536;
  box-shadow: 0 20px 80px #17253644;
  font-family: inherit;
}
.ingredient-cards-dialog::backdrop { background: #14233488; }
.ingredient-cards-dialog h3 { margin: 0 0 10px; font-size: 20px; color: #172536; }
.ingredient-cards-dialog .ingredient-cards-dialog__help, .ingredient-cards-dialog .ingredient-cards-dialog__feedback { margin: 8px 0 14px; color: #425369; font-size: 14px; line-height: 1.4; }
.ingredient-cards-dialog .ingredient-cards-dialog__field { display: flex; flex-direction: column; gap: 7px; margin: 16px 0; color: #172536; font-size: 15px; font-weight: 700; }
.ingredient-cards-dialog select, .ingredient-cards-dialog input { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #bac5d2; border-radius: 9px; background: #fff; color: #172536; font: inherit; }
.ingredient-cards-dialog .ingredient-cards-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ingredient-cards-dialog button { min-height: 42px; padding: 9px 13px; border: 1px solid #bac5d2; border-radius: 10px; background: #fff; color: #172536; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ingredient-cards-dialog .ingredient-cards-dialog__primary { background: #172536; color: #fff; border-color: #172536; }
.ingredient-cards-dialog button:disabled, .ingredient-cards-dialog input:disabled, .ingredient-cards-dialog select:disabled { opacity: .5; cursor: wait; }

/* Enhanced TPV and web ingredient sections share the centred chooser.
   Menu upgrade and notes sections keep their existing layout. */
.product-modal.ingredient-screen-open {
  /* The public sticky cart/header is at 70. An open ingredient screen and its
     Listo control must receive real taps, not sit below that header. */
  z-index: 90;
}
.product-modal .option-collapsible:not(.collapsed) > .option-section-body:has(> .ingredient-cards) {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 2px solid #c89111;
  border-radius: 18px;
  background: #f6f8fa;
  box-shadow: 0 16px 60px #0008, 0 0 0 100vmax #101820aa;
}
.product-modal .option-section-body:has(> .ingredient-cards) > .option-section-pop-head {
  position: static;
  top: auto;
  min-height: 52px;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #cbd4df;
  background: #fff;
  color: #172536;
}
.product-modal .option-section-body:has(> .ingredient-cards) > .option-section-pop-head strong {
  color: #172536;
}
.product-modal .option-section-body:has(> .ingredient-cards) > .option-section-pop-head button {
  min-height: 36px;
  border-color: #172536;
  background: #172536;
  color: #fff;
}
.product-modal .option-section-body > .ingredient-cards { border-radius: 0 0 16px 16px; }
@container (max-width: 520px) {
  .ingredient-cards .ingredient-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ingredient-cards .ingredient-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingredient-cards .ingredient-cards__toolbar { gap: 8px; }
  .ingredient-cards .ingredient-cards__filter { flex-basis: 120px; }
}
@media (max-width: 400px) {
  .ingredient-cards .ingredient-cards__grid { gap: 7px; }
  .ingredient-cards .ingredient-cards__card .ingredient-cards__choice { padding: 8px; }
  .ingredient-cards .ingredient-cards__controls { gap: 2px; padding: 4px; }
  .ingredient-cards .ingredient-cards__controls button { min-width: 27px; padding: 5px; font-size: 12px; }
  .ingredient-cards .ingredient-cards__footer { flex-wrap: wrap; }
  .ingredient-cards .ingredient-cards__counter { flex: 1 1 100%; order: -1; }
}

/* Order entry: one broad screen. Small screens use direct groups/name ranges,
   never a scrolling list or sequential pagination. */
/* The chooser keeps its original inputs/DOM ancestry, but not the product's
   scroll frames. WebKit can clip fixed descendants inside those overflow
   ancestors. Hide the underlying product chrome and remove both clipping
   boxes ONLY while Quitar/Extras is open. Closing restores normal product UI. */
.product-modal.ingredient-screen-open {
  overflow: visible;
  padding: 0 !important;
  overscroll-behavior: none;
}
.product-modal.ingredient-screen-open .modal-card {
  overflow: visible;
  visibility: hidden;
}
.product-modal .option-collapsible:not(.collapsed) > .option-section-body:has(> .ingredient-cards--order) {
  visibility: visible;
  overscroll-behavior: none;
}
.product-modal .option-collapsible:not(.collapsed) > .option-section-body:has(> .ingredient-cards--order) {
  /* Use the visible area, not just the layout viewport: mobile browser chrome,
     keyboard and zoom may pan the latter behind the screen's top edge. */
  top: calc(var(--ingredient-vv-top, 0px) + var(--ingredient-vv-height, 100dvh) / 2);
  left: calc(var(--ingredient-vv-left, 0px) + var(--ingredient-vv-width, 100vw) / 2);
  width: min(1760px, calc(var(--ingredient-vv-width, 100vw) - 24px));
  height: min(900px, calc(var(--ingredient-vv-height, 100dvh) - 24px));
  max-height: calc(var(--ingredient-vv-height, 100dvh) - 24px);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  overflow: clip;
}
.product-modal .option-section-body:has(> .ingredient-cards--order) > .option-section-pop-head { min-height: 48px; padding: 5px 10px; }
.product-modal .option-section-body:has(> .ingredient-cards--order) > .option-section-pop-head button { min-height: 40px; min-width: 64px; }
.ingredient-cards.ingredient-cards--order:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
}
.ingredient-cards--order .ingredient-cards__toolbar,
.ingredient-cards--order .ingredient-cards__help,
.ingredient-cards--order .ingredient-cards__footer,
.ingredient-cards--order .ingredient-cards__status { flex: none; }
.ingredient-cards--order .ingredient-cards__toolbar { gap: 8px; margin-bottom: 4px; }
.ingredient-cards--order .ingredient-cards__filter { gap: 3px; }
.ingredient-cards--order .ingredient-cards__help { margin: 3px 0 7px; }
.ingredient-cards--order .ingredient-cards__footer { justify-content: center; margin-top: 6px; }
.ingredient-cards--order .ingredient-cards__footer:has(.ingredient-cards__return) { justify-content: space-between; flex-wrap: nowrap; gap: 8px; }
.ingredient-cards--order .ingredient-cards__footer:has(.ingredient-cards__return) .ingredient-cards__counter { flex: 1 1 auto; order: 0; }
.ingredient-cards .ingredient-cards__return { flex: none; min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid #172536; border-radius: 10px; background: #172536; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
@media (max-height: 380px) {
  /* In landscape keep the exit and direct groups; the section title and SIN/+
     labels still describe the action without repeating its help paragraph. */
  .ingredient-cards--order .ingredient-cards__help { display: none; }
}
.ingredient-cards.ingredient-cards--order .ingredient-cards__grid {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: minmax(84px, max-content);
  align-content: start;
  gap: 6px;
  overflow: hidden;
  padding: 2px;
}
.ingredient-cards.ingredient-cards--order .ingredient-cards__card { position: relative; border-radius: 10px; }
.ingredient-cards.ingredient-cards--order .ingredient-cards__card .ingredient-cards__choice {
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 44px auto;
  align-items: center;
  align-content: center;
  min-height: 82px;
  gap: 4px 6px;
  padding: 6px;
  font-size: 14px;
  line-height: 1.2;
}
.ingredient-cards.ingredient-cards--order .ingredient-cards__choice > input[type="checkbox"] {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  width: 20px;
  height: 20px;
  margin: 0;
}
.ingredient-cards.ingredient-cards--order .ingredient-cards__choice > .ingredient-cards__picture { grid-column: 1; grid-row: 1; width: 44px; height: 44px; margin: 0; }
.ingredient-cards.ingredient-cards--order .ingredient-cards__choice > span:not(.ingredient-cards__picture) { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; }
.ingredient-cards.ingredient-cards--order .ingredient-cards__choice .option-choice-label { gap: 4px; }
.ingredient-cards.ingredient-cards--order .ingredient-cards__choice .option-choice-name { font-size: 14px; line-height: 1.18; }
.ingredient-cards.ingredient-cards--order .ingredient-cards__choice .option-choice-price { font-size: 13px; line-height: 1.2; }
/* The text block fills its row: long names do not move the price baseline. */
.ingredient-cards.ingredient-cards--order .ingredient-cards__card .ingredient-cards__choice > .option-choice-label { align-self: stretch; align-items: stretch; justify-content: flex-start; }
.ingredient-cards.ingredient-cards--order .ingredient-cards__choice .option-choice-price { margin-top: auto; text-align: right; white-space: nowrap; }
.ingredient-cards.ingredient-cards--order .ingredient-cards__icon { font-size: 31px; }
@media (min-width: 1600px) {
  .ingredient-cards.ingredient-cards--order .ingredient-cards__grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .ingredient-cards.ingredient-cards--order .ingredient-cards__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .ingredient-cards.ingredient-cards--order .ingredient-cards__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: minmax(74px, max-content); }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__card .ingredient-cards__choice { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 34px auto; min-height: 72px; gap: 3px 4px; padding: 5px; }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__choice > .ingredient-cards__picture { width: 34px; height: 34px; }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__choice .option-choice-name { font-size: 13px; }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__choice .option-choice-price { font-size: 12px; }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__icon { font-size: 27px; }
}
@media (max-width: 650px) {
  .ingredient-cards.ingredient-cards--order .ingredient-cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ingredient-cards.ingredient-cards--order .ingredient-cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: max-content; }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__choice .option-choice-name { font-size: 14px; }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__choice .option-choice-price { font-size: 13px; }
  .ingredient-cards--order .ingredient-cards__selected-toggle { min-height: 32px; padding: 2px 4px; }
}

/* A bounded screen is shared by Carta, TPV and public ordering. All business
   controls stay mounted; the controller only changes which direct screen is visible. */
.ingredient-cards.ingredient-cards--editor:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: min(620px, calc(100dvh - 72px));
  min-height: 0;
  overflow: hidden;
}
.ingredient-cards .ingredient-cards__screens {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.ingredient-cards .ingredient-cards__screens > .ingredient-cards__grid {
  height: 100%;
  grid-auto-rows: max-content;
  align-content: start;
  padding: 2px;
  overflow: hidden;
}
.ingredient-cards .ingredient-cards__navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 46px;
  margin-bottom: 5px;
}
.ingredient-cards .ingredient-cards__back,
.ingredient-cards .ingredient-cards__access {
  margin: 0;
  border: 1px solid #9baec0;
  border-radius: 10px;
  box-shadow: none;
  background: white;
  color: #172536;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
}
.ingredient-cards .ingredient-cards__back { flex: none; min-height: 44px; padding: 8px 12px; font-weight: 700; }
.ingredient-cards .ingredient-cards__screen-title { min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ingredient-cards .ingredient-cards__directory {
  --ingredient-access-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 2px;
  overflow: hidden;
}
.ingredient-cards .ingredient-cards__access {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: var(--ingredient-access-height);
  padding: 8px 10px;
  text-align: left;
  overflow-wrap: anywhere;
}
.ingredient-cards .ingredient-cards__access strong { font-size: 15px; color: #172536; }
.ingredient-cards .ingredient-cards__access span { margin-top: 3px; font-size: 13px; color: #425369; }
.ingredient-cards .ingredient-cards__search-hint { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.4; }
.ingredient-cards .ingredient-cards__selection { color: #235629; font-size: 12px; font-weight: 800; line-height: 1.2; }
.ingredient-cards .ingredient-cards__toolbar,
.ingredient-cards .ingredient-cards__help,
.ingredient-cards .ingredient-cards__footer,
.ingredient-cards .ingredient-cards__status { flex: none; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__card .ingredient-cards__choice {
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 44px 36px;
  min-height: 92px;
  gap: 4px 6px;
  padding: 6px;
}
.ingredient-cards.ingredient-cards--editor .ingredient-cards__choice > .ingredient-cards__picture { grid-column: 1; grid-row: 1; width: 44px; height: 44px; margin: 0; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__choice > input[type="checkbox"] { grid-column: 1; grid-row: 2; justify-self: center; align-self: center; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__choice > span:not(.ingredient-cards__picture) { grid-column: 2; grid-row: 1; align-self: center; font-size: 14px; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__choice > input[data-extra-price-input] { grid-column: 2; grid-row: 2; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__controls button { min-height: 40px; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__card .ingredient-cards__custom-choice { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 44px 36px 40px; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__custom-choice > input[data-custom-extra-name] { grid-column: 2; grid-row: 1; height: 40px; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__custom-choice > input[data-custom-extra-price] { grid-column: 2; grid-row: 2; height: 36px; }
.ingredient-cards.ingredient-cards--editor .ingredient-cards__custom-choice > button { grid-column: 1 / -1; grid-row: 3; }
@media (max-width: 650px) {
  .ingredient-cards .ingredient-cards__directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ingredient-cards.ingredient-cards--order .ingredient-cards__card .ingredient-cards__choice {
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: 36px auto;
    min-height: 104px;
    align-content: start;
  }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__choice > .ingredient-cards__picture { grid-column: 2; grid-row: 1; justify-self: center; }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__choice > input[type="checkbox"] { grid-column: 1; grid-row: 1; align-self: center; }
  .ingredient-cards.ingredient-cards--order .ingredient-cards__choice > span:not(.ingredient-cards__picture) { grid-column: 1 / -1; grid-row: 2; align-self: stretch; }
}
@media (max-height: 480px) {
  .ingredient-cards .ingredient-cards__toolbar { flex-wrap: nowrap; gap: 6px; margin-bottom: 3px; }
  .ingredient-cards .ingredient-cards__filter { flex-basis: 100px; }
  .ingredient-cards .ingredient-cards__filter > span { display: none; }
  .ingredient-cards .ingredient-cards__filter input, .ingredient-cards .ingredient-cards__filter select { min-height: 44px; height: 44px; }
  .ingredient-cards .ingredient-cards__help { margin: 2px 0 3px; font-size: 12px; }
  .ingredient-cards .ingredient-cards__directory { --ingredient-access-height: 58px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ingredient-cards .ingredient-cards__navigation { margin-bottom: 3px; }
  .ingredient-cards .ingredient-cards__footer { margin-top: 4px; }
  .ingredient-cards.ingredient-cards--editor .ingredient-cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ingredient-cards.ingredient-cards--order .ingredient-cards__card .ingredient-cards__choice { align-content: stretch; }
