@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Values match Figma V2's tokens (text/primary-dark, text/secondary-dark,
     surface/*, olive/*, mustard/*, status/*). */
  --color-bg-app: #f3eee8;
  --color-card-bg: #ffffff;
  --color-border: #e6e0d2;
  --color-divider: #cdcdcd;
  --color-text-primary: #191c00;
  --color-text-body: #191c00;
  --color-text-muted: #787878;
  --color-text-muted-2: #787878;
  --color-text-placeholder: #9fa47e;
  --color-input-bg: #fcf8f5;
  --color-input-border: #e7ac08;
  --color-input-text: #191c00;
  --color-olive: #3b3f0a;
  --color-olive-text: #f3f4eb;
  --color-olive-100: #e6e8d9;
  --color-pill-text: #515620;
  --color-stroke-dark: #6a6f3e;
  --color-mustard-200: #fddb9a;
  --color-mustard-700: #916a00;
  --color-mustard-800: #6a4d01;
  --color-radio-selected: #e7ac08;
  --color-radio-border: #cdcdcd;
  --color-btn-text: #e6e8d9;
  --color-btn-disabled-bg: #babe9f;
  --color-btn-disabled-text: #515620;
  --color-tag-neutral-text: #787878;
  --color-tag-low-text: #b98903;
  --color-tag-alert-text: #bb554a;
  --color-tag-neutral-bg: #ebebeb;
  --color-tag-low-bg: #fdebc8;
  --color-tag-alert-bg: #fcd1ca;
  --color-item-sub: #787878;
  --color-search-placeholder: #cdcdcd;
  --color-track-bg: #fafafa;
  --color-scrollbar-track: #f0f0f0;
  --color-scrollbar-thumb: #c3c3c3;
}

* { box-sizing: border-box; cursor: none !important; }
button { font-family: inherit; }
button:focus { outline: none; }

/* ---------- Custom cursor ---------- */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999999;
}

.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: rgba(130, 130, 130, 0.4);
}

.cursor-dot.pressing { animation: cursor-press 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes cursor-press {
  0% { transform: scale(1); }
  35% { transform: scale(0.45); }
  100% { transform: scale(1); }
}

body.dragging-scroll { user-select: none; -webkit-user-select: none; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewport-scaler {
  transform-origin: center center;
  will-change: transform;
}

/* ---------- iPhone chassis ---------- */
/* Matches Figma's own device chrome exactly: a plain 2px black outline
   directly on the 393x852 frame (see node 234:1252 -- "border-2 border-black
   border-solid rounded-[47px]"), not a thick physical chassis. */
.iphone-bezel {
  position: relative;
  width: 393px;
  height: 852px;
  border: 2px solid #000;
  border-radius: 47px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 47px;
  overflow: hidden;
  /* Rounding the ancestor .viewport-scaler's fractional scale() factor can
     leave a hairline seam at the clipped corners where the browser's
     rasterizer doesn't perfectly composite the scaled border-radius --
     forcing this onto its own layer fixes it. */
  transform: translateZ(0);
  /* A real app doesn't let you select arbitrary text by click-dragging --
     applying this once at the screen root (rather than only on the few
     lists I'd remembered to fix) covers every scrollable area consistently.
     Text inputs are a browser-level exception to user-select, so typing in
     Add Name / quantity fields is unaffected. */
  user-select: none;
  -webkit-user-select: none;
}

.dynamic-island {
  position: absolute;
  top: 13.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 37px;
  background: #000;
  border-radius: 19px;
  z-index: 500;
  pointer-events: none;
}

/* ---------- Status bar ---------- */
.status-bar {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px 0 27px;
  z-index: 50;
}

.status-bar .time {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.2px;
  padding-top: 2px;
}

.status-bar .status-icons {
  display: flex;
  align-items: center;
  padding-top: 2px;
}

.status-bar .status-icons img {
  height: 13px;
  display: block;
}

/* ---------- Page / modal shell ---------- */
.page,
.modal-full {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-app);
}

.modal-full {
  background: #fff;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 400;
}

.modal-full.open {
  transform: translateY(0);
}

[hidden] { display: none !important; }

/* ---------- Catalog page ---------- */
/* Values sourced from Figma node 234:1252 ("Home" / Catalog, Products filtered) */
.page-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 0;
}

.title-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.page-title {
  margin: 0;
  font-size: 22px;
  line-height: 33px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}

/* Outer 44x44 is just the touch target (transparent); the visible olive
   circle is a smaller 38x38 disc centered inside it (node 234:1360). */
.fab-add {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.fab-add-circle {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: var(--color-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fab-add-circle img { width: 16px; height: 16px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 22px;
  padding: 0 22px;
  color: var(--color-search-placeholder);
  font-size: 16px;
}

.search-bar img { flex-shrink: 0; width: 16px; height: 16px; }

.item-list {
  list-style: none;
  margin: 0;
  padding: 0 0 100px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
}
.item-list::-webkit-scrollbar { display: none; }

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-card-bg);
  border-radius: 10px;
  padding: 10px;
  flex-shrink: 0;
  animation: none;
}

.item-card.new-item {
  animation: highlightIn 1.4s ease;
}

@keyframes highlightIn {
  0% { background: #eef0df; }
  100% { background: var(--color-card-bg); }
}

.item-card .item-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0;
}

.item-card .item-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-item-sub);
  margin: 0;
}

.status-tag {
  font-size: 14px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-tag.neutral { background: var(--color-tag-neutral-bg); color: var(--color-tag-neutral-text); }
.status-tag.low { background: var(--color-tag-low-bg); color: var(--color-tag-low-text); }
.status-tag.alert { background: var(--color-tag-alert-bg); color: var(--color-tag-alert-text); }
/* Figma "At Risk": the low (mustard) background with neutral gray text. */
.status-tag.at-risk { background: var(--color-tag-low-bg); color: var(--color-tag-neutral-text); }

/* ---------- Bottom nav (liquid glass) ---------- */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
  z-index: 200;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 26px;
  background: #fff;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.nav-item {
  width: 60px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

/* Figma V2 nav-bar: icons never change -- selection is only the mustard pill. */
.nav-item.active { background: var(--color-mustard-200); }

.nav-item img { width: 22px; height: 22px; display: block; }
.nav-item[data-nav="analytics"] img { width: 26px; }
.nav-item[data-nav="plan"] img { width: 23px; }

/* ---------- Modal: Add Name ---------- */
/* Cancel/name/filters stay pinned; only .modal-add-scroll-area (everything
   from the hairline divider down) scrolls. */
/* Not a uniform gap: cancel -> name-block and name-block -> divider are
   both 22px (via margin-bottom on each), but the divider needs to sit
   flush against .modal-add-scroll-area right after it -- it used to be
   that scroll area's own first card's border-top, with zero gap. */
.modal-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 16px;
}
.modal-content > .modal-header-row { margin-bottom: 22px; }
.modal-content > .name-block { margin-bottom: 22px; }

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.add-variation-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-mustard-800);
  height: 44px;
  padding: 0;
}

/* Figma 269:1507: Create Ingredient is pinned to the screen bottom
   (justify-between with 30px bottom padding), not part of the scroll area. */
#btn-create { margin-bottom: 30px; }

.modal-add-divider { border-top: 0.5px solid var(--color-divider); flex-shrink: 0; }

.modal-add-scroll-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* No top padding: the divider used to be the first card's own
     border-top, sitting flush with zero gap after the filter row --
     the card's own 10px padding is what created the small buffer
     before its content, not an extra gap on top of that.
     Side padding + matching negative margin gives the footer buttons'
     box-shadow room to render without changing the visible width --
     overflow-y:auto clips the x-axis too, same as the filter-chip row
     elsewhere, so a 0-padding edge cuts the shadow off flush. */
  padding: 0 5px 40px;
  margin: 0 -5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: none;
  scrollbar-width: none;
}
.modal-add-scroll-area::-webkit-scrollbar { display: none; }

/* The divider above now marks this boundary, so the first card's own
   top border (still needed between variations further down) would
   otherwise double it up right at the top of the scroll area. */
#product-empty-row, #ingredient-tab-content { border-top: none; }

.cancel-btn {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text-body);
  height: 44px;
  flex-shrink: 0;
}

.name-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}

/* Figma 2043:3845: a boxed input in its own 44px row that hugs its
   placeholder/value (sized in JS via sizeQtyInput, capped at the row width). */
.name-input-row { display: flex; align-items: center; height: 44px; }

.name-input {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: 0.5px solid var(--color-input-border);
  background: var(--color-input-bg);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--color-input-text);
  outline: none;
  max-width: 100%;
}

.name-input::placeholder { color: var(--color-text-placeholder); }

/* Each pill sits centered in a 44px-tall filter-option wrapper in Figma. */
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}

.filter-pill {
  font-family: inherit;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  background: #fff;
  color: var(--color-pill-text);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
}

.filter-pill.active {
  background: var(--color-olive);
  color: var(--color-olive-text);
  box-shadow: none;
}

.card-block {
  border-top: 0.5px solid var(--color-divider);
  border-bottom: 0.5px solid var(--color-divider);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  width: 100%;
}

.simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  cursor: pointer;
}

.simple-row .row-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.simple-row .row-left img { width: 16px; height: 16px; }
.simple-row .row-left span { font-size: 16px; color: var(--color-text-muted-2); }

.icon-slot {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.radio-box {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid var(--color-radio-border);
  background: #fff;
  flex-shrink: 0;
  margin: 12px;
}

.radio-item.selected .radio-box {
  background: var(--color-radio-selected);
  border-color: var(--color-radio-selected);
}

.radio-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.radio-text .radio-title { font-size: 16px; color: var(--color-olive); }
.radio-text .radio-sub { font-size: 14px; color: var(--color-text-muted); font-weight: 500; }

/* Figma 275:1265: a trailing info icon in its own 44px min-clickable-container,
   centered on the text block like the radio-box on the opposite end. It's
   decorative only -- no click behavior -- so no button/cursor styling here. */
.radio-info { flex-shrink: 0; }

/* An option-slot holds one radio header (Unit Item / Measurable Item).
   Unselected: plain row, no background. Selected: the header and its
   fields share one #fafafa rounded box, header gets 20px bottom padding
   before the first field -- matches Figma's item-options-container where
   the selected radio-item is the box's own first child, not a sibling. */
.option-slot {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.option-slot.expanded {
  background: var(--color-track-bg);
  border-radius: 10px;
  padding: 10px 0;
  gap: 4px;
}

.option-slot.expanded .radio-item { padding: 0 0 20px; }

.options-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.field-row {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 0;
}

.field-row .icon-slot img { width: 16px; height: 16px; }
.field-row.unit-row .icon-slot img { width: 10px; height: 16px; }
#amount-row .icon-slot img,
#rough-row .icon-slot img,
#unit-count-row .icon-slot img { width: 13px; height: 16px; }
.buffer-row .icon-slot img { width: 14px; height: 14px; }

.field-input {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: 0.5px solid var(--color-input-border);
  background: var(--color-input-bg);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--color-input-text);
  outline: none;
  /* Figma 269:1507: these hug whatever text they're showing rather than
     sitting in a fixed-width box -- sized in JS (see sizeQtyInput), same
     as the Create Product flow's quantity inputs. */
}

.field-input::placeholder { color: var(--color-text-placeholder); }

/* Figma 269:1507/286:5495: the border/background live on this wrapper, not
   the <input> itself, so an accessory suffix (unit/USD) can sit inside the
   same pill next to the value -- same structure as .ie-qty-box. */
.field-value-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0.5px solid var(--color-input-border);
  background: var(--color-input-bg);
  border-radius: 10px;
  padding: 6px 12px;
  flex-shrink: 0;
}
.field-value-box .field-input {
  border: none;
  background: transparent;
  padding: 0;
}
.field-row.unit-row .field-input {
  color: var(--color-text-placeholder);
  cursor: pointer;
  caret-color: transparent;
}

.field-row.unit-row.chosen .field-input {
  color: var(--color-input-text);
}

.field-row .spacer { flex: 1; }

/* Lives inside .field-value-box, right next to the value -- same 10px
   flex gap as .ie-qty-box/.ie-qty-suffix in the Create Product flow. */
.field-row .suffix-text {
  font-size: 16px;
  color: var(--color-text-muted-2);
}

.chevron-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  flex-shrink: 0;
}
.chevron-btn img { width: 7px; height: 14px; }

.buffer-row .buffer-help {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  padding-left: 12px;
}

.cost-display {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding-right: 16px;
  font-size: 16px;
}
.cost-display .cost-label { color: var(--color-text-muted); }
.cost-display .cost-value { color: var(--color-text-muted); }
.cost-display .cost-value.has-value { color: var(--color-text-primary); }

.create-btn {
  font-family: inherit;
  height: 44px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: not-allowed;
  background: var(--color-btn-disabled-bg);
  color: var(--color-btn-disabled-text);
  flex-shrink: 0;
}

.create-btn.ready {
  cursor: pointer;
  background: var(--color-olive);
  color: var(--color-btn-text);
}

/* ---------- Unit picker sheet ---------- */
.unit-picker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* Figma 267:1039: fixed 792px, leaving a 60px peek of the screen behind. */
  height: 792px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  /* No shadow by default: translateY(100%) always leaves this element's
     top edge flush with the screen's own bottom edge (moving a bottom:0
     box down by its own height just relocates its top to where its
     bottom used to be), so an always-on upward shadow bled into the
     visible screen along the very bottom edge even while "closed". */
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 30px;
}

.unit-picker.open {
  transform: translateY(0);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
}

/* Figma 268:1286: full-screen 10% black scrim behind the open sheet. */
.unit-picker-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 299;
}
.unit-picker-scrim.open { opacity: 1; pointer-events: auto; }

/* Figma 267:1039/2001:3623: title centered in its own 44px row, close
   button absolutely pinned to the left edge of that row. */
.unit-picker-header {
  position: relative;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unit-picker-title { margin: 0; font-size: 16px; font-weight: 400; color: var(--color-text-primary); }

/* Figma's close slot is items-start: the icon sits flush left in its 44px box. */
.unit-picker .close-x {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.unit-picker .close-x img { width: 16px; height: 16px; }

/* The list box and the scroll indicator are two independent siblings here,
   not one item inside the other's clipping container: .unit-list-area is
   just a plain positioning host (no overflow/rounding of its own), so the
   indicator is never affected by .unit-list-wrap's overflow:hidden or
   corner radius. .unit-list-wrap gets an equal margin on both sides, and
   the indicator sits centered in that same-width gap on the right. */
.unit-list-area {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
}

.unit-list-wrap {
  flex: 1;
  min-width: 0;
  margin: 0 8px;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.unit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none;
}
.unit-list::-webkit-scrollbar { display: none; }

.unit-option {
  background: var(--color-track-bg);
  border-radius: 10px;
  padding: 10px 0 10px 14px;
  font-size: 16px;
  color: var(--color-text-primary);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.unit-option:active { background: #ececec; }

.scrollbar-track {
  width: 3px;
  border-radius: 2px;
  background: var(--color-scrollbar-track);
  position: absolute;
  top: 0;
  bottom: 0;
  /* Centered in the 8px gap .unit-list-wrap's own right margin leaves. */
  right: 2.5px;
}

.scrollbar-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 2px;
  background: var(--color-scrollbar-thumb);
}

/* ================= Create Product flow (Frames 64, 66-77) ================= */

.footer-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
}
.footer-buttons .create-btn { width: 100%; }

/* Figma 2111:3803: centered "Save Draft" text link under Create Product. */
.save-draft-link {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: var(--color-mustard-700);
}

/* ---- variation block (one per "add variation" tap) ---- */
.variation-block {
  background: #fff;
  /* No border-top: that would double up with .modal-add-divider right
     above the first one. border-bottom (plus the margin below) already
     separates it from whatever variation comes after it. */
  border-bottom: 0.5px solid var(--color-divider);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 22px;
}
/* Figma 287:7270: every card after the first has its own top border too. */
.variation-block + .variation-block { border-top: 0.5px solid var(--color-divider); }

.variation-label-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.variation-label-row .chevron-btn { cursor: pointer; }
.variation-label-row .variation-pencil img { width: 14px; height: 14px; }

.variation-label {
  font-size: 16px;
  color: var(--color-text-primary);
  border: none;
  background: transparent;
  font-family: inherit;
  padding: 0;
  width: auto;
  max-width: 200px;
}

/* ---- ingredient-editable: measurable (expandable quantity box) ----
   Figma's own component root has zero padding at all (just gap-10
   between the header and input rows) -- the visible inset comes entirely
   from the header's own pl-16/pt-8 and the input row's fixed 44px height. */
.ingredient-editable {
  background: var(--color-track-bg);
  border-radius: 10px;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 0;
  width: 100%;
}

/* Base name/rate styling -- not scoped to .ie-header, since the flat
   (unit-type) row places .ie-name directly under .ie-left with no .ie-header
   wrapper at all. Leaving these scoped meant the flat row's name silently
   fell back to an unstyled browser-default <p>. */
.ie-name { font-size: 14px; font-weight: 500; color: var(--color-text-primary); margin: 0; }
.ie-rate { font-size: 14px; font-weight: 500; color: var(--color-item-sub); margin: 0; }

.ie-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  width: 100%;
}

.ie-input-row .ie-left { display: flex; align-items: center; }

.ie-remove {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.ie-remove img { width: 8px; height: 8px; }

/* Figma 275:1528: the border/background live on the row, not the <input>
   itself -- a plain input plus a trailing unit label ("sq ft"/"units")
   that only appears once a quantity is entered. */
.ie-qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0.5px solid var(--color-input-border);
  background: var(--color-input-bg);
  border-radius: 10px;
  padding: 6px 12px;
  flex-shrink: 0;
}
.ie-qty-input {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--color-input-text);
  outline: none;
  flex-shrink: 0;
  /* Figma hugs whatever text is showing (placeholder or value) instead of
     a fixed box -- width is measured and set in JS (see sizeBareInput)
     since a plain <input> doesn't auto-size to its own content. */
}
.ie-qty-input::placeholder { color: var(--color-text-placeholder); }
.ie-qty-suffix { font-size: 16px; color: var(--color-text-muted-2); white-space: nowrap; }

.ie-line-total {
  font-size: 16px;
  color: var(--color-text-muted-2);
  padding-right: 16px;
}
/* Figma 286:5495/286:5404: once the row resolves to a real line total
   (quantity entered), the $ amount switches from muted to primary text. */
.ie-line-total.has-value { color: var(--color-text-primary); }

/* ---- ingredient-editable: unit type (flat, no quantity) ---- */
.ingredient-editable.flat {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 44px;
}
.ingredient-editable.flat .ie-left { display: flex; align-items: center; gap: 10px; }
.ingredient-editable.flat .ie-name { padding: 0; }
.ingredient-editable.flat .ie-line-total { color: var(--color-text-primary); font-weight: 400; }

/* ---- Add Ingredient / Hours to make rows (reuse .field-row look) ---- */
.hours-row .hours-input {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: 0.5px solid var(--color-input-border);
  background: var(--color-input-bg);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--color-text-placeholder);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hours-row .hours-input.filled { color: var(--color-input-text); }
.hours-row .hours-input .hours-suffix { color: var(--color-text-muted-2); }
.hours-row .info-slot { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hours-row .info-slot img { width: 16px; height: 16px; }

.total-display {
  /* Figma declares this row whitespace-nowrap -- it's meant to always
     fit on one line at this width, not wrap. */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-right: 16px;
  font-size: 16px;
  width: 100%;
  white-space: nowrap;
}
.total-display .t-label { color: var(--color-text-muted); }
.total-display .t-value { color: var(--color-text-primary); }
.total-display .t-muted { color: var(--color-text-muted); }

/* ================= Ingredient picker (full screen) ================= */
.ingredient-picker-screen { z-index: 500; }

/* clear-selection sits 4px above the list it clears (Figma: 44px row,
   list starts at y=48) -- much tighter than the 20px rhythm used
   between the other blocks in .ip-content, hence its own wrapper. */
.ip-list-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; width: 100%; }
/* Figma 275:4084: the Select All row sits 16px above the list. */
.ip-picker-list-wrap { gap: 16px; }

.ip-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding-right: 10px;
  flex-shrink: 0;
}
.ip-select-all,
.ip-clear-link {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: var(--color-text-primary);
}
.ip-select-all { display: flex; align-items: center; gap: 10px; height: 40px; padding-left: 10px; }
.ip-select-all.selected .ip-checkbox { background: var(--color-olive); }

.ip-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 16px;
  overflow: hidden;
}

.ip-header-block { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* Figma 2002:3782: the close slot is items-start, so the icon sits flush left. */
.ip-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.ip-close-btn img { width: 16px; height: 16px; }

.ip-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Figma 2001:3689: the title/subtitle sit in their own block below the
   close/done row, not inline with those buttons. */
.ip-title-block { display: flex; flex-direction: column; gap: 0; }
.ip-title { font-size: 22px; line-height: 33px; color: var(--color-text-primary); margin: 0; font-weight: 500; }
.ip-subtitle { margin: 0; font-size: 16px; color: var(--color-text-primary); }

.done-button {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.done-button-circle {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--color-olive);
  display: flex;
  align-items: center;
  justify-content: center;
}
.done-button-circle img { width: 18px; height: 13px; }

.ip-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  width: 100%;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
  padding: 0 22px;
  flex-shrink: 0;
}
.ip-search-bar img { width: 16px; height: 16px; flex-shrink: 0; }
.ip-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--color-text-primary);
  width: 100%;
}
.ip-search-bar input::placeholder { color: var(--color-search-placeholder); }

.ip-filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  /* extra vertical padding so each chip's box-shadow has room to render
     without being clipped by the row's own overflow-x:auto (which forces
     overflow-y to clip too, flush against the content box otherwise) */
  padding: 6px 0 6px 4px;
  margin: -6px 0;
  /* 44px filter-option row (Figma 2002:3788) plus the 6px shadow room above/below */
  height: 56px;
  width: 100%;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.ip-filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  font-family: inherit;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
  color: var(--color-pill-text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.filter-chip.active {
  background: var(--color-olive);
  color: var(--color-olive-text);
  box-shadow: none;
}
.filter-chip .chip-x { width: 8px; height: 8px; display: none; }
.filter-chip.active .chip-x { display: inline-block; }

.ip-clear-selection {
  /* Figma's row uses items-start on its parent column and has no width of
     its own, so it shrink-wraps and sits flush left -- same pattern as the
     Cancel button; "justify-center" in the export is a no-op here. */
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  height: 44px;
  align-self: flex-start;
  font-size: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.ip-list {
  list-style: none;
  margin: 0;
  padding: 0 0 40px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none;
}
.ip-list::-webkit-scrollbar { display: none; }

.ip-row {
  background: var(--color-track-bg);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  flex-shrink: 0;
  cursor: pointer;
}

.ip-row .ip-left { display: flex; align-items: center; gap: 12px; }

.ip-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--color-stroke-dark);
  background: #fff;
  flex-shrink: 0;
}
.ip-row.selected .ip-checkbox { background: var(--color-olive); }

.ip-text { display: flex; flex-direction: column; }
.ip-text .ip-name { font-size: 16px; font-weight: 400; color: var(--color-text-primary); margin: 0; }
.ip-text .ip-stock { font-size: 14px; font-weight: 500; color: var(--color-item-sub); margin: 0; }
.ip-price { font-size: 14px; font-weight: 500; color: var(--color-item-sub); white-space: nowrap; }

/* ================= Hours to Make bottom sheet ================= */
.hours-sheet-backdrop {
  position: absolute;
  inset: 0;
  top: 62px;
  height: calc(100% - 62px);
  backdrop-filter: blur(3px);
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: flex-end;
  z-index: 600;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.hours-sheet-backdrop.open { transform: translateY(0); }

.hours-sheet {
  background: #fff;
  width: 100%;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hours-sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  width: 100%;
  position: relative;
}
.hours-sheet-info { width: 16px; height: 16px; }
.hours-sheet-title { font-size: 22px; line-height: 33px; font-weight: 500; color: var(--color-text-primary); margin: 0; }
.hours-sheet-close {
  position: absolute;
  left: 0;
  top: 0;
}
.hours-sheet-close img { width: 12px; height: 12px; }

.hours-sheet-copy {
  font-size: 16px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
  width: 100%;
}

.hours-sheet-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.hours-sheet-field label { font-size: 14px; color: var(--color-text-primary); }

.hours-sheet-input-row {
  background: var(--color-track-bg);
  height: 44px;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
/* Figma: empty state is one plain muted placeholder ("$USD" / "hours");
   once a value is typed it splits into a dark value on the left and a
   persistent muted unit label on the right (justify-between). */
.hs-dollar { font-size: 16px; color: var(--color-text-primary); }
.hs-unit { font-size: 16px; color: var(--color-text-muted-2); flex-shrink: 0; }
.hours-sheet-input-row input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--color-text-primary);
  flex: 1;
  min-width: 0;
}
.hours-sheet-input-row input::placeholder { color: var(--color-text-muted-2); }

/* Figma 287:7006: disabled Save shows its label; the ready (olive) state
   shows only the 18x13 check icon. */
.hours-save-check { display: none; width: 18px; height: 13px; }
.hours-save-btn.ready .hours-save-label { display: none; }
.hours-save-btn.ready .hours-save-check { display: inline-block; }

/* ================= Plan tab + "Plan for future orders" flow ================= */

/* The rubber-band bounce translates .plan-page-content itself, which
   momentarily uncovers whatever sits behind it -- #page-plan's own
   background. Figma's top card-group frame is olive-100 (#e6e8d9) full-bleed from
   y=0 (behind the status bar too), so that's the page's base color;
   the sections frame below it has no fill of its own in Figma (it just
   shows the page through), which without this rule would now read as
   olive instead of the intended #f3efe8 -- so it gets that painted on
   explicitly instead of relying on inheriting the (now-olive) page bg. */
#page-plan { background: var(--color-olive-100); }
#page-plan .status-bar { background: var(--color-olive-100); }

/* Figma node 288:3049: status bar (62) -> title (y=70) is an 8px gap, not
   the page's usual 14-16px top padding; title-block -> card -> card -> card
   is a 12px rhythm. The card group's own frame closes with 16px of its own
   bottom padding, and the sections frame below it opens with 16px of its
   own top padding -- 32px total, but as two separate frames each padding
   themselves, not one gap between them (that had briefly double-counted
   to 48px: a 32px flex gap plus the top group's own 16px bottom padding).
   The two page-bottom sections are themselves 24px apart. */
.plan-page-content {
  gap: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: none;
  scrollbar-width: none;
}
.plan-page-content::-webkit-scrollbar { display: none; }
.plan-top-group {
  background: var(--color-olive-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  flex-shrink: 0;
  padding: 8px 16px 16px;
}
.plan-sections-group { display: flex; flex-direction: column; gap: 24px; width: 100%; flex-shrink: 0; padding: 16px 16px 120px; background: var(--color-bg-app); }

/* Figma 2115:4252: logo centered in its own block with 16px above/below. */
.plan-logo-block { display: flex; justify-content: center; padding: 16px 0; flex-shrink: 0; }
.plan-logo { width: 67px; height: 40px; display: block; }

/* Figma 2043:3883: dark olive card, title + body stacked, right-aligned text button. */
.mark-sale-card {
  background: var(--color-olive);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  flex-shrink: 0;
}
.mark-sale-text { display: flex; flex-direction: column; color: var(--color-btn-text); }
.mark-sale-title { margin: 0; font-size: 22px; line-height: 33px; font-weight: 500; }
.mark-sale-desc { margin: 0; font-size: 16px; line-height: 24px; }
.mark-sale-cta {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.mark-sale-cta span { font-size: 14px; line-height: 21px; font-weight: 500; color: var(--color-btn-text); }
.mark-sale-cta img { width: 12px; height: 10px; }

.plan-page-content .title-block { gap: 0; }
.plan-page-content .page-title { font-size: 22px; }
.plan-page-content .page-subtitle { margin: 0; font-size: 16px; color: var(--color-text-primary); }

.plan-card {
  background: var(--color-track-bg);
  border: 0.5px solid var(--color-stroke-dark);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
}
.plan-card-clickable { cursor: pointer; }

.plan-card-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.plan-card-title { margin: 0; font-size: 16px; font-weight: 500; color: var(--color-text-primary); }
.plan-card-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.plan-card-cta span { font-size: 14px; font-weight: 500; color: var(--color-text-primary); }
.plan-card-cta img { width: 12px; height: 10px; }
.plan-card-desc { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-text-muted); }

/* "Last Purchase List" state: same card, a couple of name/qty lines instead of the description */
.plan-card-lines { display: flex; flex-direction: column; gap: 2px; }
.plan-card-line { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--color-text-muted); }
.plan-card-line span:first-child { font-family: inherit; }

.plan-section { display: flex; flex-direction: column; gap: 12px; width: 100%; flex-shrink: 0; }
.plan-section-head { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.plan-section-title-row { display: flex; align-items: center; gap: 8px; }
.plan-warning-icon { width: 16px; height: 14px; flex-shrink: 0; }
.plan-section-title { margin: 0; font-size: 16px; font-weight: 500; color: var(--color-text-primary); }
.plan-section-desc { margin: 0; font-size: 14px; color: var(--color-text-muted); }
.plan-static-list { position: static; overflow: visible; padding: 0; gap: 12px; display: flex; flex-direction: column; }

/* ---- "Plan for future orders" flow modal ---- */
.pf-step {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 16px 30px;
  background: #fff;
}

.pf-top-row { position: relative; display: flex; align-items: center; height: 44px; flex-shrink: 0; }

.pf-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pf-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--color-olive-100); flex-shrink: 0; }
.pf-dot.active { background: var(--color-olive); }

.pf-header { display: flex; flex-direction: column; gap: 0; flex-shrink: 0; }
.pf-title { margin: 0; font-size: 22px; font-weight: 500; color: var(--color-text-primary); }
.pf-subtitle { margin: 0; font-size: 16px; color: var(--color-text-primary); }

/* Figma node 303:3199: clear-selection's own 44px row is flush against
   the list right below it -- 0 extra gap, unlike the 16px rhythm used
   between the other blocks in .pf-step. */
.pf-list-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0; width: 100%; }
.pf-product-list { gap: 8px; }

.pf-product-card {
  background: var(--color-track-bg);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
  cursor: pointer;
}
.pf-product-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.pf-product-card-left { display: flex; align-items: center; gap: 12px; }
.pf-checkbox { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--color-stroke-dark); background: #fff; flex-shrink: 0; }
.pf-product-card.selected .pf-checkbox,
.pf-checkbox.selected { background: var(--color-olive); }
.pf-product-text { display: flex; flex-direction: column; }
.pf-product-name { margin: 0; font-size: 16px; color: var(--color-text-primary); }
.pf-product-sub { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-item-sub); }

.pf-qty-row { display: flex; align-items: center; height: 44px; width: 100%; }
.pf-qty-row .icon-slot img { width: 13px; height: 16px; }
.pf-qty-input {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: 0.5px solid var(--color-input-border);
  background: var(--color-input-bg);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--color-input-text);
  outline: none;
  flex-shrink: 0;
}

.pf-selection-card {
  background: var(--color-track-bg);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
}
.pf-selection-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.pf-selection-title { margin: 0; font-size: 16px; color: var(--color-text-primary); }
.pf-selection-head .chevron-btn img { width: 14px; height: 14px; }
#pf-selection-lines { display: flex; flex-direction: column; gap: 4px; }
.pf-selection-line { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--color-text-muted); }

/* Figma node 310:9655: the caption's own 44px row sits flush against the
   ingredient list right below it -- 0 extra gap, the same clear-selection
   pattern as .ip-list-wrap/.pf-list-wrap, not the step's usual 16px rhythm. */
/* Step 2's "Your Selection" card, the caption, and the ingredient list
   all scroll together as one region -- only the X/dots and the title
   block above stay pinned. Only this wrapper scrolls now; the pieces
   inside it (.pf-selection-card, .pf-need-wrap, .pf-ingredient-list)
   just flow at their natural height like any other stacked block. */
.pf-step2-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: none;
  scrollbar-width: none;
}
.pf-step2-scroll::-webkit-scrollbar { display: none; }

.pf-need-wrap { display: flex; flex-direction: column; gap: 0; width: 100%; flex-shrink: 0; }
.pf-need-caption { margin: 0; height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--color-text-muted); flex-shrink: 0; }

.pf-ingredient-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-ingredient-row {
  background: var(--color-track-bg);
  border-radius: 10px;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.pf-ingredient-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; width: 100%; }
.pf-ingredient-name { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-text-primary); }
.pf-ingredient-have { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-item-sub); }
/* Figma (310:9639): the checkbox's 44px slot and the tan need-box sit
   flush against each other on the left (need-box starts at x=44, right
   where the slot ends) -- space-between on all three children instead
   pushed the box toward the middle. Grouping them in their own flex
   item (like .ie-left elsewhere) keeps that pair flush while the cost
   still lands on the right via the row's own space-between. */
.pf-ingredient-input-row { display: flex; align-items: center; justify-content: space-between; height: 44px; width: 100%; }
.pf-ingredient-left { display: flex; align-items: center; }
.pf-ingredient-input-row .icon-slot { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-need-box {
  background: var(--color-input-bg);
  border: 0.5px solid var(--color-input-border);
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pf-need-box input {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-input-text);
  flex-shrink: 0;
  /* hugs its own digit count -- sized in JS via sizeQtyInput, like ie-qty-input */
}
.pf-need-unit { font-size: 16px; color: var(--color-text-muted-2); white-space: nowrap; }
.pf-ingredient-cost { padding-right: 16px; font-size: 16px; color: var(--color-text-primary); }

.pf-save-block { display: flex; flex-direction: column; gap: 8px; width: 100%; flex-shrink: 0; }
.pf-save-caption { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-mustard-700); text-align: center; width: 100%; }
