/* ============================================================
   diet-planner.css — Vitaroxi Diet Budget Planner Plugin
   Version: 2.0.0 — Updated brand palette, REST API data source,
   budget selector, goal & body setup
   All classes prefixed .vdp- to avoid WordPress/Elementor conflicts
   ============================================================ */

/* ── 1. Vitaroxi Brand Design Tokens ───────────────────────────────────── */
.vdp-app {
  /* Brand palette (from screenshot) */
  --vdp-brand:       #71b230;   /* Brand — logo, nav, fitness CTAs */
  --vdp-brand-alt:   #4d7d20;   /* Alt Brand — hover, active states */
  --vdp-heading:     #000f2b;   /* Heading — H1–H3, hero text */
  --vdp-text:        #2a3245;   /* Text — body copy, labels */
  --vdp-primary:     #ffffff;   /* Primary — page background */
  --vdp-secondary:   #f7f3ee;   /* Secondary — cards, sections */
  --vdp-accent:      #e8750a;   /* Border/Accent — nutrition CTAs, badges */
  --vdp-subtle-bg:   #000920;   /* Subtle BG — footer, dark sections */
  --vdp-extra:       #eaf4d5;   /* Extra — tags, highlights, info bg */

  /* Semantic aliases */
  --vdp-ink:     var(--vdp-heading);
  --vdp-body:    var(--vdp-text);
  --vdp-muted:   #6b7a99;
  --vdp-light:   #99a6bd;
  --vdp-border:  #dde3ee;
  --vdp-borderS: #c4cee0;
  --vdp-bg:      var(--vdp-secondary);
  --vdp-card:    #ffffff;
  --vdp-field:   #f4f6fb;

  /* Brand greens (kept for compatibility with accent uses) */
  --vdp-g50:  #f6fbe8;
  --vdp-g100: var(--vdp-extra);
  --vdp-g200: #c7e59b;
  --vdp-g300: #a8d66a;
  --vdp-g400: #89c63b;
  --vdp-g500: var(--vdp-brand);
  --vdp-g600: #5e9428;
  --vdp-g700: var(--vdp-brand-alt);
  --vdp-g800: #3a5f18;
  --vdp-g900: #253d0f;

  /* Accent orange */
  --vdp-a600: #c45d00;
  --vdp-a400: var(--vdp-accent);
  --vdp-a100: #fdecd9;
  --vdp-a50:  #fff8f2;

  /* Status */
  --vdp-b500: #1a6ed4; --vdp-b100: #deeeff;
  --vdp-r500: #c62828; --vdp-r100: #fde8e8;
  --vdp-ok:   #1a7a40; --vdp-ok-bg: #e8f7ee;

  /* Typography */
  --vdp-ff-head: "Poppins", system-ui, sans-serif;
  --vdp-ff-body: "Inter",   system-ui, sans-serif;

  /* Transitions & radius */
  --vdp-tr: .15s ease;
  --vdp-r-sm: 6px; --vdp-r-md: 12px; --vdp-r-lg: 18px;
  --vdp-sh-xs: 0 1px 4px rgba(0,9,32,.06);
  --vdp-sh-sm: 0 2px 8px rgba(0,9,32,.09);
  --vdp-sh-md: 0 6px 20px rgba(0,9,32,.12);
}

/* ── 2. Reset inside plugin scope ──────────────────────────────────────── */
.vdp-app *, .vdp-app *::before, .vdp-app *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.vdp-app { font-family: var(--vdp-ff-body); color: var(--vdp-body);
  line-height: 1.6; font-size: 16px; background: transparent; }
.vdp-app button { cursor: pointer; font-family: inherit; }
.vdp-app input, .vdp-app select { font-family: inherit; }

/* ── 3. Shell ──────────────────────────────────────────────────────────── */
.vdp-app {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 1560px; margin: 0 auto; padding: 0 0 48px;
}

/* ── 4. Header ─────────────────────────────────────────────────────────── */
.vdp-header {
  background: linear-gradient(135deg, var(--vdp-subtle-bg) 0%, var(--vdp-heading) 60%, #12274a 100%);
  border-radius: var(--vdp-r-lg); padding: 24px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; box-shadow: var(--vdp-sh-md); position: relative; overflow: hidden;
}
.vdp-header::before {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(113,178,48,.18) 0%, transparent 70%);
  pointer-events: none;
}
.vdp-header::after {
  content: ""; position: absolute; left: 40%; bottom: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(232,117,10,.08); pointer-events: none;
}
.vdp-eyebrow {
  font-family: var(--vdp-ff-head); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-bottom: 5px;
}
.vdp-header__title {
  font-family: var(--vdp-ff-head); font-size: clamp(1.35rem,3vw,1.9rem);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 6px;
}
.vdp-header__title span { color: var(--vdp-brand); }
.vdp-header__sub { color: rgba(255,255,255,.68); font-size: .88rem; max-width: 520px; }
.vdp-header__actions { display: flex; gap: 8px; flex-shrink: 0; }
.vdp-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--vdp-tr); touch-action: manipulation;
}
.vdp-icon-btn:hover  { background: rgba(255,255,255,.2); }
.vdp-icon-btn:active { background: rgba(255,255,255,.3); }

/* ── 5. Panel base ─────────────────────────────────────────────────────── */
.vdp-panel {
  background: var(--vdp-card); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-lg); padding: 20px 22px;
  box-shadow: var(--vdp-sh-xs);
}

/* ── 6. GOAL SELECTOR — hero row at top of setup ──────────────────────── */
.vdp-goal-row {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
}
.vdp-goal-row__label {
  font-size: .73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--vdp-muted);
}
.vdp-goal-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.vdp-goal-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 50px;
  border: 2px solid var(--vdp-border);
  background: var(--vdp-field); color: var(--vdp-text);
  font-size: .87rem; font-weight: 500; cursor: pointer;
  transition: all var(--vdp-tr); touch-action: manipulation;
  white-space: nowrap;
}
.vdp-goal-pill .vdp-goal-icon { font-size: 1.1rem; }
.vdp-goal-pill:hover {
  border-color: var(--vdp-brand); background: var(--vdp-extra);
  color: var(--vdp-brand-alt);
}
.vdp-goal-pill.active {
  border-color: var(--vdp-brand); background: var(--vdp-brand);
  color: #fff; box-shadow: 0 3px 10px rgba(113,178,48,.3);
}
/* special accent for "lowest cost" goal */
.vdp-goal-pill[data-goal="lowestCost"].active {
  border-color: var(--vdp-accent); background: var(--vdp-accent);
  box-shadow: 0 3px 10px rgba(232,117,10,.3);
}

/* ── 7. BUDGET ROW ─────────────────────────────────────────────────────── */
.vdp-budget-row {
  background: var(--vdp-secondary); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.vdp-budget-row__top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.vdp-budget-title {
  font-size: .73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--vdp-muted);
}
.vdp-budget-display {
  font-family: var(--vdp-ff-head); font-size: 1.3rem; font-weight: 700;
  color: var(--vdp-accent);
}
.vdp-budget-sub { font-size: .76rem; color: var(--vdp-muted); margin-top: 1px; }

.vdp-budget-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px; outline: none;
  background: linear-gradient(to right, var(--vdp-brand) 0%, var(--vdp-brand) var(--vdp-budget-pct, 40%), var(--vdp-border) var(--vdp-budget-pct, 40%), var(--vdp-border) 100%);
  cursor: pointer; border: none; box-shadow: none; padding: 0; min-height: unset;
}
.vdp-budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--vdp-brand); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(113,178,48,.4); cursor: pointer;
}
.vdp-budget-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--vdp-brand); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(113,178,48,.4); cursor: pointer; border: 3px solid #fff;
}
.vdp-budget-ticks {
  display: flex; justify-content: space-between;
  font-size: .68rem; color: var(--vdp-light);
}

/* ── 8. Setup (Step 1) ─────────────────────────────────────────────────── */
.vdp-setup { display: flex; flex-direction: column; gap: 16px; }
.vdp-setup__top { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.vdp-quick-fields { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; min-width: 0; }

.vdp-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.vdp-field span { font-size: .74rem; font-weight: 600; color: var(--vdp-muted);
  letter-spacing: .02em; white-space: nowrap; }
.vdp-field input, .vdp-field select {
  font-size: .92rem; padding: 8px 10px;
  border: 1.5px solid var(--vdp-border); border-radius: var(--vdp-r-sm);
  background: var(--vdp-field); color: var(--vdp-ink);
  min-height: 40px; width: 100%;
  transition: border-color var(--vdp-tr), box-shadow var(--vdp-tr);
}
.vdp-field input:focus, .vdp-field select:focus {
  outline: none; border-color: var(--vdp-brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(113,178,48,.12);
}
.vdp-field--full { flex: 1 1 100%; }

.vdp-range-row { display: flex; align-items: center; gap: 10px; }
.vdp-range-row input[type="range"] {
  flex: 1; accent-color: var(--vdp-brand); cursor: pointer;
  min-height: unset; padding: 0; border: none; background: transparent; box-shadow: none;
}
#vdpWasteValue { font-size: .88rem; font-weight: 700; color: var(--vdp-brand-alt); min-width: 32px; }

/* Body metrics row — always-visible (no longer advanced-only) */
.vdp-body-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px;
  padding: 14px 0 4px; border-top: 1.5px solid var(--vdp-border); margin-top: 4px;
}
.vdp-body-row-title {
  flex: 1 1 100%; font-size: .73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--vdp-muted); margin-bottom: 4px;
  grid-column: 1 / -1;
}
.vdp-tdee-result {
  font-size: .82rem; color: var(--vdp-ok); background: var(--vdp-ok-bg);
  border: 1px solid #a8ddb8; border-radius: var(--vdp-r-sm);
  padding: 7px 11px; margin-top: 8px; line-height: 1.5;
  grid-column: 1 / -1;
}

.vdp-advance-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600; color: var(--vdp-brand-alt);
  background: var(--vdp-extra); border: 1.5px solid var(--vdp-g200);
  border-radius: var(--vdp-r-sm); padding: 8px 15px;
  min-height: 40px; white-space: nowrap; flex-shrink: 0;
  transition: background var(--vdp-tr); touch-action: manipulation;
}
.vdp-advance-toggle:hover { background: var(--vdp-g100); }
.vdp-advance-toggle__arrow { transition: transform var(--vdp-tr); font-size: 1rem; }
.vdp-advance-toggle[aria-expanded="true"] .vdp-advance-toggle__arrow { transform: rotate(90deg); }

.vdp-advance-panel { border-top: 1.5px solid var(--vdp-border); padding-top: 18px;
  animation: vdpSlideDown .18s ease; }
@keyframes vdpSlideDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

.vdp-advance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vdp-advance-section__title {
  font-size: .73rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--vdp-muted); margin-bottom: 10px;
}
.vdp-advance-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }

.vdp-exclude-row { display: flex; gap: 7px; margin-bottom: 9px; }
.vdp-exclude-row input {
  flex: 1; font-size: .9rem; padding: 7px 10px;
  border: 1.5px solid var(--vdp-border); border-radius: var(--vdp-r-sm);
  background: var(--vdp-field); color: var(--vdp-ink); min-height: 38px;
}
.vdp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vdp-chips__empty { font-size: .77rem; color: var(--vdp-light); }
.vdp-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--vdp-extra); border: 1px solid var(--vdp-g200);
  border-radius: 50px; padding: 3px 10px 3px 10px;
  font-size: .77rem; color: var(--vdp-brand-alt);
}
.vdp-chip__x {
  background: none; border: none; color: var(--vdp-brand-alt);
  font-size: .95rem; line-height: 1; padding: 0 1px; cursor: pointer;
}

/* ── 9. Buttons ────────────────────────────────────────────────────────── */
.vdp-btn-primary {
  font-family: var(--vdp-ff-head); font-size: .9rem; font-weight: 600;
  padding: 9px 18px; min-height: 40px; border: none;
  border-radius: var(--vdp-r-sm); cursor: pointer;
  background: var(--vdp-brand); color: #fff;
  box-shadow: 0 3px 10px rgba(113,178,48,.3);
  transition: background var(--vdp-tr), box-shadow var(--vdp-tr), transform .1s;
  touch-action: manipulation; white-space: nowrap;
}
.vdp-btn-primary:hover  { background: var(--vdp-brand-alt); box-shadow: 0 5px 14px rgba(77,125,32,.38); }
.vdp-btn-primary:active { transform: scale(.97); }

/* Accent CTA — diet plan button */
.vdp-btn-accent {
  font-family: var(--vdp-ff-head); font-size: .9rem; font-weight: 700;
  padding: 9px 20px; min-height: 40px; border: none;
  border-radius: var(--vdp-r-sm); cursor: pointer;
  background: var(--vdp-accent); color: #fff;
  box-shadow: 0 3px 10px rgba(232,117,10,.3);
  transition: background var(--vdp-tr), box-shadow var(--vdp-tr), transform .1s;
  touch-action: manipulation; white-space: nowrap;
}
.vdp-btn-accent:hover  { background: var(--vdp-a600); box-shadow: 0 5px 14px rgba(196,93,0,.38); }
.vdp-btn-accent:active { transform: scale(.97); }

.vdp-btn-outline {
  font-family: var(--vdp-ff-head); font-size: .9rem; font-weight: 600;
  padding: 8px 16px; min-height: 40px;
  border: 1.5px solid var(--vdp-border); border-radius: var(--vdp-r-sm);
  background: #fff; color: var(--vdp-body); cursor: pointer;
  transition: border-color var(--vdp-tr), background var(--vdp-tr), transform .1s;
  touch-action: manipulation; white-space: nowrap;
}
.vdp-btn-outline:hover  { border-color: var(--vdp-brand); background: var(--vdp-extra); color: var(--vdp-brand-alt); }
.vdp-btn-outline:active { transform: scale(.97); }
.vdp-btn-sm { font-size: .81rem; padding: 6px 13px; min-height: 32px; }

/* ── 10. Workspace layout ──────────────────────────────────────────────── */
.vdp-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0,1fr);
  align-items: start; gap: 16px;
  min-width: 0; /* prevent grid blowout */
}
.vdp-col-title {
  font-family: var(--vdp-ff-head); font-size: .96rem; font-weight: 700;
  color: var(--vdp-heading); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.vdp-search-col { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }

/* ── 11. Search ────────────────────────────────────────────────────────── */
.vdp-search-box { position: relative; }
.vdp-search-input-wrap {
  position: relative; display: flex; align-items: center;
}
.vdp-search-icon {
  position: absolute; left: 11px; font-size: 1.1rem;
  color: var(--vdp-light); pointer-events: none;
}
#vdpFoodSearch {
  width: 100%; padding: 10px 44px 10px 34px;
  border: 1.5px solid var(--vdp-border); border-radius: var(--vdp-r-md);
  background: var(--vdp-field); color: var(--vdp-ink); font-size: .95rem;
  min-height: 44px;
  transition: border-color var(--vdp-tr), box-shadow var(--vdp-tr);
}
#vdpFoodSearch:focus {
  outline: none; border-color: var(--vdp-brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(113,178,48,.12);
}
.vdp-search-status {
  position: absolute; right: 10px; font-size: .73rem; font-weight: 600;
  white-space: nowrap;
}
.vdp-search-status--ok      { color: var(--vdp-ok); }
.vdp-search-status--loading { color: var(--vdp-b500); }
.vdp-search-status--warn    { color: var(--vdp-a600); }

.vdp-dropdown {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 99;
  background: var(--vdp-card); border: 1.5px solid var(--vdp-borderS);
  border-radius: var(--vdp-r-md); box-shadow: var(--vdp-sh-md);
  max-height: 300px; overflow-y: auto; margin-top: 4px;
}
.vdp-dd-item {
  padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--vdp-border);
  transition: background var(--vdp-tr);
}
.vdp-dd-item:last-child { border-bottom: none; }
.vdp-dd-item:hover    { background: var(--vdp-extra); }
.vdp-dd-excluded      { opacity: .5; }
.vdp-dd-name-row      { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vdp-dd-name          { font-size: .89rem; font-weight: 600; color: var(--vdp-heading); }
.vdp-dd-meta          { font-size: .74rem; color: var(--vdp-muted); margin-top: 2px; }
.vdp-dd-badge         { font-size: .65rem; font-weight: 700; border-radius: 3px;
  padding: 1px 5px; flex-shrink: 0; }
.vdp-dd-badge--vr     { background: var(--vdp-extra); color: var(--vdp-brand-alt); }
.vdp-dd-badge--usda   { background: #deeeff; color: #1455b0; }
.vdp-dd-price-warn    { color: var(--vdp-a600); font-weight: 600; }
.vdp-excl-tag         { font-size: .65rem; background: var(--vdp-r100);
  color: var(--vdp-r500); border-radius: 3px; padding: 1px 5px; margin-left: 4px; }

/* source badge in dropdown */
.vdp-source-badge {
  font-size: .62rem; font-weight: 700; border-radius: 3px;
  padding: 1px 5px; flex-shrink: 0; letter-spacing: .02em;
}
.vdp-source-badge--local  { background: var(--vdp-extra); color: var(--vdp-brand-alt); }
.vdp-source-badge--usda   { background: #deeeff; color: #1455b0; }
.vdp-source-badge--off    { background: #f3e8ff; color: #6b21a8; }
.vdp-source-badge--custom { background: var(--vdp-a50); color: var(--vdp-a600); }

/* Category pills */
.vdp-cat-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.vdp-cat-pill {
  font-size: .75rem; font-weight: 600; padding: 4px 10px;
  border: 1.5px solid var(--vdp-border); border-radius: 50px;
  background: var(--vdp-field); color: var(--vdp-muted); cursor: pointer;
  transition: all var(--vdp-tr); touch-action: manipulation;
}
.vdp-cat-pill:hover { border-color: var(--vdp-brand); color: var(--vdp-brand-alt); background: var(--vdp-extra); }
.vdp-cat-pill.active { background: var(--vdp-brand); border-color: var(--vdp-brand); color: #fff; }

/* Price prompt */
.vdp-price-prompt {
  background: var(--vdp-a50); border: 1.5px solid #f0c060;
  border-radius: var(--vdp-r-md); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.vdp-price-prompt__header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vdp-price-prompt__header strong { font-size: .93rem; color: var(--vdp-heading); }
.vdp-price-required-label { font-size: .81rem; font-weight: 600; color: var(--vdp-a600); }
.vdp-price-prompt__nutrients {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: .79rem; color: var(--vdp-muted);
}
.vdp-price-prompt__controls { display: flex; align-items: center; gap: 6px; }
.vdp-web-price-input {
  width: 110px; padding: 7px 10px; font-size: .9rem;
  border: 1.5px solid #f0c060; border-radius: var(--vdp-r-sm);
  background: #fff; color: var(--vdp-ink);
}
.vdp-web-price-input:focus { outline: none; border-color: var(--vdp-accent); box-shadow: 0 0 0 3px rgba(232,117,10,.12); }
@keyframes vdpShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.vdp-price-input-shake { animation: vdpShake .35s ease; }
.vdp-price-unit-hint { font-size: .78rem; color: var(--vdp-muted); white-space: nowrap; }
.vdp-price-prompt__actions { display: flex; gap: 7px; flex-wrap: wrap; }
.vdp-price-note-small { font-size: .73rem; color: var(--vdp-light); }

/* Web search card */
.vdp-websearch-card {
  background: var(--vdp-secondary); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 12px 14px;
}
.vdp-websearch-card__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.vdp-websearch-card__top strong { font-size: .88rem; color: var(--vdp-heading); }
.vdp-websearch-card__top span  { font-size: .79rem; color: var(--vdp-muted); }
.vdp-websearch-btn {
  font-size: .8rem; font-weight: 600; padding: 6px 12px; min-height: 32px;
  border: 1.5px solid var(--vdp-accent); border-radius: var(--vdp-r-sm);
  background: #fff; color: var(--vdp-accent); cursor: pointer; flex-shrink: 0;
  transition: background var(--vdp-tr); touch-action: manipulation;
}
.vdp-websearch-btn:hover { background: var(--vdp-a50); }
.vdp-websearch-result { margin-top: 10px; }
.vdp-web-found { background: #fff; border: 1.5px solid var(--vdp-border); border-radius: var(--vdp-r-md); padding: 12px 14px; }
.vdp-web-found__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.vdp-web-found__title span { font-size: .93rem; font-weight: 700; color: var(--vdp-heading); }
.vdp-web-found__title small { font-size: .72rem; color: var(--vdp-light); }
.vdp-web-nutrients { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin-bottom: 9px; }
.vdp-wn-row { display: flex; justify-content: space-between; font-size: .79rem; padding: 3px 0; border-bottom: 1px solid var(--vdp-border); }
.vdp-wn-row span   { color: var(--vdp-muted); }
.vdp-wn-row strong { color: var(--vdp-heading); font-weight: 700; }
.vdp-wn-row--price { grid-column: 1 / -1; flex-direction: column; gap: 5px; }
.vdp-web-price-note { font-size: .73rem; color: var(--vdp-a600); margin-bottom: 7px; }
.vdp-web-alts { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.vdp-web-alt {
  font-size: .75rem; padding: 3px 9px; border: 1px solid var(--vdp-border);
  border-radius: 50px; background: var(--vdp-field); color: var(--vdp-muted);
  cursor: pointer; transition: all var(--vdp-tr);
}
.vdp-web-alt:hover { border-color: var(--vdp-brand); color: var(--vdp-brand-alt); }
.vdp-web-found__actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* REST API loading indicator */
.vdp-api-loading {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--vdp-b500); padding: 8px 0;
}
.vdp-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--vdp-b100); border-top-color: var(--vdp-b500);
  animation: vdpSpin .6s linear infinite; flex-shrink: 0;
}
@keyframes vdpSpin { to { transform: rotate(360deg); } }

.vdp-custom-link {
  background: none; border: none; font-size: .8rem; color: var(--vdp-light);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  padding: 4px 0; transition: color var(--vdp-tr); text-align: left;
}
.vdp-custom-link:hover { color: var(--vdp-brand-alt); }

/* ── 12. Basket ────────────────────────────────────────────────────────── */
.vdp-basket-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow: hidden; }
.vdp-basket-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 0;
}
.vdp-basket-count {
  font-size: .75rem; font-weight: 600;
  background: var(--vdp-extra); color: var(--vdp-brand-alt);
  border-radius: 50px; padding: 2px 9px;
}
.vdp-basket-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Budget status badge inside basket header */
.vdp-budget-status {
  font-size: .78rem; font-weight: 600; border-radius: var(--vdp-r-sm);
  padding: 4px 10px; white-space: nowrap;
}
.vdp-budget-status--ok      { background: var(--vdp-ok-bg); color: var(--vdp-ok); }
.vdp-budget-status--warn    { background: var(--vdp-a50);   color: var(--vdp-a600); }
.vdp-budget-status--over    { background: var(--vdp-r100);  color: var(--vdp-r500); }

.vdp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth momentum scroll on iOS */
  border-radius: var(--vdp-r-md);
  border: 1.5px solid var(--vdp-border);
  /* Prevent table from bleeding outside the panel on mobile */
  max-width: 100%;
  width: 100%;
}
.vdp-table-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 36px 20px; color: var(--vdp-light); text-align: center;
}
.vdp-table-empty span { font-size: 2.2rem; }
.vdp-table-empty p { font-size: .89rem; }
.vdp-table-empty__sub { font-size: .78rem; color: var(--vdp-light); }

.vdp-table {
  width: 100%;
  min-width: 760px; /* forces horizontal scroll on narrow screens */
  border-collapse: collapse;
  font-size: .82rem; white-space: nowrap;
}
.vdp-table thead tr { background: var(--vdp-secondary); }
.vdp-table th {
  padding: 8px 10px; text-align: left; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--vdp-muted);
  border-bottom: 1.5px solid var(--vdp-border);
}
.vdp-table td { padding: 6px 8px; border-bottom: 1px solid var(--vdp-border); vertical-align: middle; }
.vdp-table tbody tr:last-child td { border-bottom: none; }
.vdp-table tbody tr:hover td { background: var(--vdp-secondary); }

.col-sticky {
  position: sticky; left: 0;
  background: var(--vdp-card); /* solid bg so numbers behind don't bleed through */
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0,0,0,.06); /* subtle shadow shows scroll started */
}
/* Sticky col bg must match row hover too */
.vdp-table tbody tr:hover .col-sticky { background: var(--vdp-secondary); }
.vdp-table thead .col-sticky           { background: var(--vdp-secondary); }

.col-name    { min-width: 140px; max-width: 160px; }
.col-qty     { min-width: 58px;  width: 58px; }
.col-unit    { min-width: 68px;  width: 68px; }
.col-price   { min-width: 110px; width: 110px; }
.col-kcal    { min-width: 72px;  width: 72px; }  /* 4-digit safe: 2322 */
.col-protein { min-width: 72px;  width: 72px; }  /* 3 decimal: 88.2 */
.col-carbs   { min-width: 68px;  width: 68px; }
.col-fat     { min-width: 60px;  width: 60px; }
.col-fiber   { min-width: 60px;  width: 60px; }
.col-cost    { min-width: 80px; width: 80px; text-align: right; font-weight: 700; color: var(--vdp-accent); white-space: nowrap; }
.col-del     { min-width: 36px;  width: 36px; }
.col-price-head { min-width: 110px; }
.vdp-price-head-hint { font-size: .62rem; color: var(--vdp-a600); font-weight: 400;
  text-transform: none; letter-spacing: 0; display: block; }

.vdp-table td input, .vdp-table td select {
  width: 100%; padding: 4px 5px; font-size: .82rem;
  border: 1.5px solid transparent; border-radius: var(--vdp-r-sm);
  background: transparent; color: var(--vdp-ink); min-height: unset;
  /* Prevent browser from overflowing the cell */
  box-sizing: border-box;
  min-width: 0;
}
.vdp-table td input:hover, .vdp-table td select:hover { border-color: var(--vdp-border); }
.vdp-table td input:focus, .vdp-table td select:focus {
  outline: none; border-color: var(--vdp-brand); background: #fff;
  box-shadow: 0 0 0 2px rgba(113,178,48,.10);
}

.r-price-wrap {
  display: flex; align-items: center; gap: 2px;
  overflow: hidden; /* clip within cell */
}
.r-price-wrap .r-price { flex: 1; min-width: 0; }
.r-price-unit {
  font-size: .62rem; color: var(--vdp-muted);
  white-space: nowrap; flex-shrink: 0;
}
.r-price--missing {
  border-color: #f0c060 !important; background: var(--vdp-a50) !important;
  color: var(--vdp-a600) !important;
}
.r-price--missing::placeholder { color: var(--vdp-a600); opacity: .8; }

.r-del {
  background: none; border: none; color: var(--vdp-light);
  font-size: 1.2rem; line-height: 1; padding: 4px 5px; border-radius: 5px;
  transition: color var(--vdp-tr), background var(--vdp-tr); touch-action: manipulation;
}
.r-del:hover { color: var(--vdp-r500); background: var(--vdp-r100); }

.vdp-analyze-btn {
  width: 100%; font-family: var(--vdp-ff-head); font-size: 1.05rem;
  font-weight: 700; padding: 14px 20px; min-height: 50px;
  background: linear-gradient(135deg, var(--vdp-heading) 0%, var(--vdp-brand-alt) 100%);
  color: #fff; border: none; border-radius: var(--vdp-r-md);
  letter-spacing: .02em; touch-action: manipulation;
  transition: opacity var(--vdp-tr), transform .1s, box-shadow var(--vdp-tr);
  box-shadow: 0 5px 16px rgba(0,9,32,.24);
}
.vdp-analyze-btn:hover  { opacity: .92; box-shadow: 0 8px 22px rgba(0,9,32,.3); }
.vdp-analyze-btn:active { transform: scale(.98); }

/* ── 13. Results ───────────────────────────────────────────────────────── */
.vdp-results { animation: vdpFadeUp .22s ease; }
@keyframes vdpFadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

.vdp-results__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.vdp-results__title {
  font-family: var(--vdp-ff-head); font-size: 1.15rem; font-weight: 700; color: var(--vdp-ink);
}

.vdp-metrics { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-bottom: 16px; }
.vdp-metric {
  background: var(--vdp-field); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.vdp-metric--primary  { background: var(--vdp-extra);  border-color: var(--vdp-g200); }
.vdp-metric--accent   { background: var(--vdp-a50);    border-color: #f0c060; }
.vdp-metric--ok       { background: var(--vdp-ok-bg);  border-color: #a8ddb8; }
.vdp-metric--warn     { background: var(--vdp-r100);   border-color: #f0b0b0; }
.vdp-metric span  { font-size: .71rem; font-weight: 600; color: var(--vdp-muted);
  letter-spacing: .05em; text-transform: uppercase; }
.vdp-metric strong { font-family: var(--vdp-ff-head); font-size: 1.22rem;
  font-weight: 700; color: var(--vdp-ink); }
.vdp-metric--primary strong { color: var(--vdp-brand-alt); }
.vdp-metric--accent strong  { color: var(--vdp-accent); }
.vdp-metric--ok strong      { color: var(--vdp-ok); }
.vdp-metric--warn strong    { color: var(--vdp-r500); }
.vdp-metric small { font-size: .7rem; color: var(--vdp-light); }

/* Budget progress bar */
.vdp-budget-bar-wrap {
  background: var(--vdp-secondary); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 14px 18px; margin-bottom: 14px;
}
.vdp-budget-bar-label {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-bottom: 8px;
}
.vdp-budget-bar-label span { font-size: .79rem; color: var(--vdp-muted); font-weight: 600; }
.vdp-budget-bar-label strong { font-family: var(--vdp-ff-head); font-size: 1rem; color: var(--vdp-heading); }
.vdp-budget-bar-track {
  height: 10px; border-radius: 5px; background: var(--vdp-border); overflow: hidden;
}
.vdp-budget-bar-fill {
  height: 100%; border-radius: 5px; transition: width .4s ease, background .3s;
}
.vdp-budget-bar-fill--ok   { background: var(--vdp-brand); }
.vdp-budget-bar-fill--warn { background: var(--vdp-accent); }
.vdp-budget-bar-fill--over { background: var(--vdp-r500); }

.vdp-insight {
  background: var(--vdp-extra); border: 1.5px solid var(--vdp-g200);
  border-radius: var(--vdp-r-md); padding: 14px 18px;
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px;
}
.vdp-insight__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.vdp-insight__head strong { font-family: var(--vdp-ff-head); font-size: .93rem; color: var(--vdp-heading); }
.vdp-insight__msg  { font-size: .89rem; color: var(--vdp-body); line-height: 1.55; }
.vdp-insight__exclude {
  font-size: .79rem; color: var(--vdp-a600); background: var(--vdp-a100);
  border: 1px solid #f0c060; border-radius: var(--vdp-r-sm); padding: 5px 10px;
}
.vdp-insight__lines { display: flex; flex-direction: column; gap: 3px; }
.vdp-insight__lines span { font-size: .82rem; color: var(--vdp-muted); }

.vdp-removed-action {
  background: var(--vdp-a50); border: 1.5px solid #f0c060;
  border-radius: var(--vdp-r-sm); padding: 11px 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.vdp-removed-action strong { font-size: .85rem; color: var(--vdp-a600); }
.vdp-removed-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.vdp-detail-panel {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 14px; margin-top: 4px;
  border-top: 1.5px solid var(--vdp-border);
  animation: vdpSlideDown .18s ease;
}

.vdp-analysis-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(195px,1fr)); gap: 10px; }
.vdp-acard {
  background: var(--vdp-field); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 12px 14px;
}
.vdp-acard span   { display:block; font-size:.7rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color:var(--vdp-muted); margin-bottom:4px; }
.vdp-acard strong { display:block; font-family:var(--vdp-ff-head); font-size:1.05rem;
  color:var(--vdp-ink); margin-bottom:4px; }
.vdp-acard p      { font-size:.77rem; color:var(--vdp-muted); line-height:1.45; }

.vdp-macro-breakdown, .vdp-shopping {
  background: var(--vdp-field); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 16px 18px;
}
.vdp-macro-breakdown h3, .vdp-shopping h3 {
  font-family: var(--vdp-ff-head); font-size: .96rem; font-weight: 700;
  color: var(--vdp-ink); margin-bottom: 13px;
}
.vdp-macro-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--vdp-border); margin-bottom: 10px;
}
.vdp-macro-row:last-child { border-bottom:none; padding-bottom:0; margin-bottom:0; }
.vdp-macro-row strong { font-size:.87rem; color:var(--vdp-ink); display:block; }
.vdp-macro-row span   { font-size:.75rem; color:var(--vdp-muted); }
.vdp-macro-row b      { font-size:.87rem; color:var(--vdp-brand-alt); white-space:nowrap; flex-shrink:0; }

.vdp-shop-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(195px,1fr)); gap:7px; }
.vdp-shop-item {
  background: var(--vdp-card); border: 1px solid var(--vdp-border);
  border-radius: var(--vdp-r-sm); padding: 8px 11px;
  display: flex; flex-direction: column; gap: 2px;
}
.vdp-shop-item strong { font-size:.84rem; color:var(--vdp-ink); }
.vdp-shop-item span   { font-size:.76rem; color:var(--vdp-brand-alt); font-weight:600; }

/* ── 14. Data note ─────────────────────────────────────────────────────── */
.vdp-data-note {
  font-size: .75rem; color: var(--vdp-light); line-height: 1.5; text-align: center;
}

/* ── 15. Utility ───────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── 16. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .vdp-workspace { grid-template-columns: 295px minmax(0,1fr); }
  .vdp-advance-grid { grid-template-columns: 1fr 1fr; }
  .vdp-metrics { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1024px) {
  .vdp-workspace { grid-template-columns: 275px minmax(0,1fr); }
  .vdp-metric strong { font-size: 1.1rem; }
}
@media (max-width: 900px) {
  .vdp-workspace { grid-template-columns: 1fr; gap: 12px; }
  .vdp-search-col { position: static; }
  .vdp-dropdown { max-height: 240px; }
  .vdp-advance-grid { grid-template-columns: 1fr; }
  .vdp-metrics { grid-template-columns: repeat(3,1fr); }
  /* Table scroll label hint */
  .vdp-table-wrap::before {
    content: "← Scroll table →";
    display: block; text-align: center;
    font-size: .68rem; color: var(--vdp-light);
    padding: 4px 0; border-bottom: 1px solid var(--vdp-border);
    background: var(--vdp-secondary);
  }
}
@media (max-width: 700px) {
  .vdp-app { font-size: 15px; gap: 12px; }
  .vdp-panel { padding: 12px 12px; }
  .vdp-header { padding: 14px 16px; gap: 12px; }
  .vdp-header__title { font-size: 1.2rem; }
  .vdp-header__sub { font-size: .78rem; }
  .vdp-goal-pills { gap: 6px; }
  .vdp-goal-pill { font-size: .79rem; padding: 7px 11px; }
  .vdp-quick-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .vdp-body-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vdp-advance-fields { grid-template-columns: 1fr; }
  .vdp-metrics { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .vdp-analysis-grid { grid-template-columns: 1fr 1fr; }
  .vdp-shop-grid { grid-template-columns: 1fr 1fr; }
  .vdp-basket-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vdp-basket-actions { width: 100%; display: flex; }
  .vdp-basket-actions .vdp-btn-accent,
  .vdp-basket-actions .vdp-btn-outline { flex: 1; text-align: center; }
  /* Compact budget row on mobile */
  .vdp-budget-compact { padding: 10px 12px; gap: 4px; }
  /* Tool description stacks vertically */
  .vdp-tool-desc { padding: 14px 14px; gap: 10px; }
  /* Results header stacks */
  .vdp-results__header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vdp-download-btns { width: 100%; }
  .vdp-download-btns .vdp-btn-outline { flex: 1; text-align: center; font-size: .78rem; padding: 7px 8px; }
  /* Metrics 2-col on 700 */
  .vdp-metric strong { font-size: 1rem; }
}
@media (max-width: 540px) {
  .vdp-app { gap: 10px; padding: 0 0 32px; }
  .vdp-goal-pills { gap: 5px; }
  .vdp-goal-pill  { font-size: .74rem; padding: 6px 9px; }
  .vdp-goal-pill .vdp-goal-icon { display: none; }
  .vdp-header__sub { display: none; } /* save vertical space */
  .vdp-field input, .vdp-field select { min-height: 40px; }
  #vdpFoodSearch { min-height: 44px; }
  /* Metrics 2-col */
  .vdp-metrics { grid-template-columns: 1fr 1fr; gap: 7px; }
  .vdp-metric { padding: 9px 10px; }
  .vdp-metric strong { font-size: .95rem; }
  .vdp-metric small { font-size: .64rem; }
  .vdp-web-nutrients { grid-template-columns: 1fr; }
  .vdp-web-found__actions,
  .vdp-price-prompt__actions { flex-direction: column; }
  .vdp-web-found__actions .vdp-btn-primary,
  .vdp-web-found__actions .vdp-btn-outline,
  .vdp-price-prompt__actions .vdp-btn-primary,
  .vdp-price-prompt__actions .vdp-btn-outline { width: 100%; text-align: center; }
  .vdp-analyze-btn { font-size: .95rem; min-height: 46px; }
  .vdp-analysis-grid { grid-template-columns: 1fr; }
  .vdp-shop-grid { grid-template-columns: 1fr; }
  .vdp-price-prompt__controls { flex-direction: column; align-items: flex-start; }
  .vdp-web-price-input { width: 100%; }
  /* Budget compact even tighter */
  .vdp-budget-compact { padding: 8px 10px; }
  .vdp-budget-compact .vdp-budget-display { font-size: 1rem; }
  /* Quick fields 2-col */
  .vdp-quick-fields { grid-template-columns: 1fr 1fr; gap: 7px; }
  .vdp-body-row { grid-template-columns: 1fr 1fr; gap: 7px; }
  /* Table — tighter font on very small screens */
  .vdp-table { font-size: .76rem; }
  .vdp-table th { font-size: .62rem; padding: 6px 7px; }
  .vdp-table td { padding: 5px 6px; }
  .vdp-table td input, .vdp-table td select { font-size: .76rem; padding: 3px 4px; }
  /* Make name column a bit narrower to give number cols more room */
  .col-name { min-width: 110px; max-width: 120px; }
}
@media (max-width: 400px) {
  .vdp-header { padding: 12px 12px; }
  .vdp-header__title { font-size: 1rem; }
  .vdp-icon-btn { width: 32px; height: 32px; font-size: .9rem; }
  .vdp-panel { padding: 10px 10px; }
  .vdp-goal-pill { font-size: .7rem; padding: 5px 8px; }
  /* Metrics single col on very small */
  .vdp-metrics { grid-template-columns: 1fr 1fr; }
  .vdp-metric strong { font-size: .88rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   v2.1.0 additions
══════════════════════════════════════════════════════════════════════ */

/* ── Tool description block ─────────────────────────────────────────── */
.vdp-tool-desc {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--vdp-card); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-lg); padding: 20px 24px;
  box-shadow: var(--vdp-sh-xs);
}
.vdp-tool-desc__icon { font-size: 2.2rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.vdp-tool-desc__title {
  font-family: var(--vdp-ff-head); font-size: 1.25rem; font-weight: 700;
  color: var(--vdp-heading); margin-bottom: 6px; line-height: 1.2;
}
.vdp-tool-desc__title span { color: var(--vdp-brand); }
.vdp-tool-desc__body { font-size: .88rem; color: var(--vdp-muted); line-height: 1.65; }

/* ── Budget — compact row ───────────────────────────────────────────── */
.vdp-budget-compact {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px; row-gap: 6px;
  align-items: center;
  background: var(--vdp-secondary); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 12px 16px;
}
.vdp-budget-compact__left { grid-column: 1; grid-row: 1; }
.vdp-budget-compact__label {
  font-size: .73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--vdp-muted); display: block; margin-bottom: 2px;
}
.vdp-budget-compact .vdp-budget-sub { font-size: .75rem; color: var(--vdp-muted); }
.vdp-budget-compact .vdp-budget-display {
  grid-column: 2; grid-row: 1; text-align: right;
  font-family: var(--vdp-ff-head); font-size: 1.15rem; font-weight: 700;
  color: var(--vdp-accent); white-space: nowrap;
}
.vdp-budget-compact__slider-wrap { grid-column: 1 / -1; grid-row: 2; }
.vdp-budget-compact .vdp-budget-ticks {
  display: flex; justify-content: space-between;
  font-size: .67rem; color: var(--vdp-light); margin-top: 3px;
}

/* ── Missing price warning (basket) ────────────────────────────────── */
.vdp-price-warning {
  background: #fff8f0; border: 1.5px solid #f0c060;
  border-radius: var(--vdp-r-sm); padding: 9px 14px;
  font-size: .82rem; color: var(--vdp-a600); line-height: 1.5;
  margin-bottom: 10px;
}

/* ── Missing price notice (results) ────────────────────────────────── */
.vdp-missing-price-notice {
  background: #fff8f0; border: 1.5px solid #f0c060;
  border-radius: var(--vdp-r-md); padding: 12px 16px;
  font-size: .83rem; color: var(--vdp-a600); line-height: 1.6;
  margin-bottom: 14px;
}
.vdp-missing-price-notice strong { color: var(--vdp-heading); }
.vdp-missing-price-list {
  margin: 6px 0 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 5px;
}
.vdp-missing-price-list li {
  background: var(--vdp-a50); border: 1px solid #f0c060;
  border-radius: 4px; padding: 2px 8px; font-size: .76rem;
  color: var(--vdp-a600);
}

/* ── Download buttons (results header) ─────────────────────────────── */
.vdp-download-btns {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0;
}
.vdp-download-btns .vdp-btn-outline { white-space: nowrap; }

/* ── Optional tag ───────────────────────────────────────────────────── */
.vdp-optional-tag {
  font-size: .66rem; font-weight: 600; background: var(--vdp-extra);
  color: var(--vdp-brand-alt); border-radius: 3px; padding: 1px 6px;
  vertical-align: middle; text-transform: uppercase; letter-spacing: .04em;
}

/* ── Footer note ────────────────────────────────────────────────────── */
.vdp-footer-note {
  background: var(--vdp-subtle-bg); border-radius: var(--vdp-r-md);
  padding: 14px 20px;
}
.vdp-footer-note .vdp-data-note {
  color: rgba(255,255,255,.55); font-size: .77rem; text-align: left; line-height: 1.7;
}
.vdp-footer-note .vdp-data-note strong { color: rgba(255,255,255,.8); }
.vdp-footer-note .vdp-data-note em { color: rgba(255,255,255,.35); font-style: italic; }

/* r-cost when price missing */
.r-cost--missing { color: var(--vdp-light); font-style: italic; letter-spacing: .02em; }

/* Responsive tweaks for new elements */
@media (max-width: 600px) {
  .vdp-tool-desc { flex-direction: column; gap: 10px; padding: 16px; }
  .vdp-tool-desc__icon { font-size: 1.8rem; }
  .vdp-download-btns { width: 100%; }
  .vdp-download-btns .vdp-btn-outline { flex: 1; text-align: center; }
  .vdp-budget-compact { grid-template-columns: 1fr auto; }
}


/* ── Icons (hardcoded by developer — see template comments) ─────────── */

/* Tool description icon — large, sits left of description text */
.vdp-tool-desc__icon img {
  width: 64px; height: 64px; object-fit: contain;
  border-radius: var(--vdp-r-md); display: block;
}

/* Header icon — white/light icon shown in dark banner, left of title */
.vdp-header__icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(255,255,255,.1); border-radius: var(--vdp-r-md);
  border: 1.5px solid rgba(255,255,255,.18);
}
.vdp-header__icon img {
  width: 36px; height: 36px; object-fit: contain;
  filter: brightness(0) invert(1); /* makes dark icons white on dark bg */
}

/* Basket icon — tiny inline icon before "Food Basket" label */
.vdp-basket-icon {
  width: 18px; height: 18px; object-fit: contain;
  vertical-align: middle; margin-right: 5px; margin-top: -2px;
  display: inline-block;
}

@media (max-width: 540px) {
  .vdp-tool-desc__icon img { width: 48px; height: 48px; }
  .vdp-header__icon { width: 42px; height: 42px; }
  .vdp-header__icon img { width: 28px; height: 28px; }
}

/* ── Mobile overflow guard ──────────────────────────────────────────── */
/* Prevent any panel from exceeding viewport width */
.vdp-app > * { max-width: 100%; }
.vdp-panel   { overflow: hidden; } /* clip any rogue overflow inside panels */
.vdp-basket-col .vdp-panel,
.vdp-basket-col { overflow: visible; } /* but basket needs visible for dropdown */
/* Table wrap must not inherit hidden overflow — it scrolls itself */
.vdp-table-wrap { overflow-x: auto !important; }

/* Scroll hint on mobile (shown via ::before in @media 900px block) */
.vdp-table-scroll-hint {
  display: none;
  text-align: center; font-size: .68rem; color: var(--vdp-light);
  padding: 4px 0; border-bottom: 1px solid var(--vdp-border);
  background: var(--vdp-secondary); letter-spacing: .03em;
}
@media (max-width: 900px) {
  .vdp-table-scroll-hint { display: block; }
}

/* ── Daily / Monthly basket mode toggle ─────────────────────────────── */
.vdp-basket-header__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
}
.vdp-mode-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 0 4px;
  border-top: 1.5px solid var(--vdp-border);
}
.vdp-mode-toggle {
  display: flex; border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-sm); overflow: hidden; flex-shrink: 0;
}
.vdp-mode-btn {
  padding: 6px 14px; font-size: .8rem; font-weight: 600;
  border: none; background: var(--vdp-field); color: var(--vdp-muted);
  cursor: pointer; transition: all var(--vdp-tr); white-space: nowrap;
  font-family: var(--vdp-ff-body);
}
.vdp-mode-btn:first-child { border-right: 1.5px solid var(--vdp-border); }
.vdp-mode-btn:hover  { background: var(--vdp-extra); color: var(--vdp-brand-alt); }
.vdp-mode-btn.active {
  background: var(--vdp-brand); color: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
}
.vdp-mode-label {
  font-size: .75rem; color: var(--vdp-muted); font-style: italic;
}
.vdp-mode-hint {
  font-size: .74rem; color: var(--vdp-light); line-height: 1.5;
  padding: 6px 0 4px; border-top: 1px dashed var(--vdp-border); margin-top: 4px;
}
.vdp-mode-hint strong { color: var(--vdp-muted); }

/* Nutrient boost rows — subtle green tint */
.vdp-row--boost td { background: var(--vdp-g50) !important; }
.vdp-row--boost:hover td { background: var(--vdp-extra) !important; }
.vdp-row--boost .r-name { font-style: italic; }

@media (max-width: 600px) {
  .vdp-mode-bar { gap: 8px; }
  .vdp-mode-btn { padding: 5px 10px; font-size: .74rem; }
  .vdp-mode-hint { font-size: .7rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   v2.2.0 — Meal breakdown, Medical, RDA, Swap, Chart, Grocery
══════════════════════════════════════════════════════════════════════ */

/* ── Meal breakdown selector (in advanced panel) ────────────────────── */
.vdp-meal-breakdown-opts {
  display: flex; flex-direction: column; gap: 6px;
}
.vdp-mbo {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border-radius: var(--vdp-r-sm);
  border: 1.5px solid var(--vdp-border); background: var(--vdp-field);
  cursor: pointer; transition: border-color var(--vdp-tr), background var(--vdp-tr);
}
.vdp-mbo:hover { border-color: var(--vdp-brand); background: var(--vdp-extra); }
.vdp-mbo input[type="radio"] { margin-top: 2px; accent-color: var(--vdp-brand); flex-shrink: 0; }
.vdp-mbo span  { font-size: .88rem; font-weight: 600; color: var(--vdp-heading); display: block; }
.vdp-mbo small { font-size: .75rem; color: var(--vdp-muted); display: block; margin-top: 1px; }
.vdp-mbo em    { font-style: normal; font-weight: 400; color: var(--vdp-brand); }
.vdp-mbo--default { border-color: var(--vdp-g200); background: var(--vdp-extra); }
.vdp-mbo input:checked ~ span,
.vdp-mbo input:checked ~ small { color: var(--vdp-brand-alt); }

/* ── Medical active notice ──────────────────────────────────────────── */
.vdp-medical-active {
  background: #fff3cd; border: 1.5px solid #ffc107;
  border-radius: var(--vdp-r-sm); padding: 9px 14px;
  font-size: .83rem; color: var(--vdp-heading); line-height: 1.5;
  margin-bottom: 4px;
}
.vdp-medical-tag {
  font-size: .65rem; background: #fff3cd; color: #a07000;
  border: 1px solid #ffc107; border-radius: 3px; padding: 1px 5px;
  margin-left: 4px; white-space: nowrap;
}
.vdp-seasonal-tag {
  font-size: .65rem; background: var(--vdp-extra); color: var(--vdp-brand-alt);
  border: 1px solid var(--vdp-g200); border-radius: 3px; padding: 1px 5px;
  margin-left: 4px; white-space: nowrap;
}

/* ── Meal breakdown results section ─────────────────────────────────── */
.vdp-meal-breakdown {
  margin: 4px 0;
}
.vdp-meal-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.vdp-meal-title {
  font-family: var(--vdp-ff-head); font-size: .96rem; font-weight: 700;
  color: var(--vdp-heading); margin: 0;
}
.vdp-meal-selector {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.vdp-meal-sel-btn {
  font-size: .74rem; font-weight: 600; padding: 4px 10px;
  border: 1.5px solid var(--vdp-border); border-radius: 50px;
  background: var(--vdp-field); color: var(--vdp-muted);
  cursor: pointer; transition: all var(--vdp-tr); white-space: nowrap;
  font-family: var(--vdp-ff-body);
}
.vdp-meal-sel-btn:hover  { border-color: var(--vdp-brand); color: var(--vdp-brand-alt); background: var(--vdp-extra); }
.vdp-meal-sel-btn.active { background: var(--vdp-brand); border-color: var(--vdp-brand); color: #fff; }

.vdp-meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.vdp-meal-card {
  background: var(--vdp-card); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); overflow: hidden;
  box-shadow: var(--vdp-sh-xs);
}
.vdp-meal-card__header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--vdp-secondary);
  border-bottom: 1px solid var(--vdp-border);
}
.vdp-meal-icon  { font-size: 1.3rem; flex-shrink: 0; }
.vdp-meal-name  { font-size: .88rem; font-weight: 700; color: var(--vdp-heading); display: block; }
.vdp-meal-meta  { font-size: .72rem; color: var(--vdp-muted); display: block; margin-top: 1px; }
.vdp-meal-foods {
  list-style: none; padding: 8px 14px 10px; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.vdp-meal-foods li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; font-size: .8rem; padding: 3px 0;
  border-bottom: 1px solid var(--vdp-border);
}
.vdp-meal-foods li:last-child { border-bottom: none; }
.vdp-meal-food-name { color: var(--vdp-text); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vdp-meal-food-qty  { color: var(--vdp-brand-alt); font-weight: 600;
  white-space: nowrap; font-size: .76rem; flex-shrink: 0; }
.vdp-meal-empty { color: var(--vdp-light); font-style: italic; font-size: .78rem; border: none !important; }

/* ── RDA bars ────────────────────────────────────────────────────────── */
.vdp-rda-section {
  background: var(--vdp-field); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 16px 18px;
}
.vdp-rda-title {
  font-family: var(--vdp-ff-head); font-size: .96rem; font-weight: 700;
  color: var(--vdp-heading); margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px;
}
.vdp-rda-note { font-size: .76rem; color: var(--vdp-muted); margin-bottom: 14px; line-height: 1.5; }
.vdp-rda-bars { display: flex; flex-direction: column; gap: 12px; }
.vdp-rda-row__label {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 4px;
}
.vdp-rda-row__label span { font-size: .82rem; font-weight: 600; color: var(--vdp-text); }
.vdp-rda-val { font-size: .78rem; color: var(--vdp-muted); font-weight: 400; white-space: nowrap; }
.vdp-rda-track {
  height: 8px; border-radius: 4px; background: var(--vdp-border); overflow: hidden;
}
.vdp-rda-fill {
  height: 100%; border-radius: 4px; transition: width .5s ease;
}
.vdp-rda-fill--ok   { background: var(--vdp-brand); }
.vdp-rda-fill--warn { background: var(--vdp-accent); }
.vdp-rda-fill--low  { background: var(--vdp-r500); }
.vdp-rda-hint { font-size: .71rem; color: var(--vdp-light); margin-top: 3px; line-height: 1.4; }

/* ── Cost breakdown chart ────────────────────────────────────────────── */
.vdp-cost-chart-section {
  background: var(--vdp-field); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 16px 18px;
}
.vdp-chart-title {
  font-family: var(--vdp-ff-head); font-size: .96rem; font-weight: 700;
  color: var(--vdp-heading); margin: 0 0 14px;
}
.vdp-chart-bars { display: flex; flex-direction: column; gap: 8px; }
.vdp-chart-row  { display: flex; align-items: center; gap: 10px; }
.vdp-chart-label { font-size: .78rem; color: var(--vdp-text); width: 80px; flex-shrink: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdp-chart-track { flex: 1; height: 18px; background: var(--vdp-border); border-radius: 4px; overflow: hidden; }
.vdp-chart-fill  { height: 100%; border-radius: 4px; transition: width .5s ease; }
.vdp-chart-val   { font-size: .78rem; font-weight: 700; color: var(--vdp-accent); width: 52px;
  text-align: right; flex-shrink: 0; white-space: nowrap; }
.vdp-chart-note  { font-size: .71rem; color: var(--vdp-light); margin-top: 10px; }

/* ── Swap suggestions ────────────────────────────────────────────────── */
.vdp-swap-section {
  background: var(--vdp-field); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 16px 18px;
}
.vdp-swap-title {
  font-family: var(--vdp-ff-head); font-size: .96rem; font-weight: 700;
  color: var(--vdp-heading); margin: 0 0 12px;
}
.vdp-swap-card {
  background: var(--vdp-card); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-sm); padding: 10px 14px; margin-bottom: 8px;
}
.vdp-swap-card:last-child { margin-bottom: 0; }
.vdp-swap-card__top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px;
}
.vdp-swap-from  { font-size: .86rem; font-weight: 700; color: var(--vdp-r500);
  text-decoration: line-through; text-decoration-color: rgba(198,40,40,.4); }
.vdp-swap-arrow { font-size: 1rem; color: var(--vdp-muted); flex-shrink: 0; }
.vdp-swap-to    { font-size: .86rem; font-weight: 700; color: var(--vdp-ok); }
.vdp-swap-reason{ font-size: .78rem; color: var(--vdp-muted); line-height: 1.5; }
.vdp-swap-empty { font-size: .84rem; color: var(--vdp-ok); padding: 8px 0; }

/* ── Grocery list ────────────────────────────────────────────────────── */
.vdp-grocery-section {
  background: var(--vdp-field); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 16px 18px;
}
.vdp-grocery-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.vdp-grocery-header h3 {
  font-family: var(--vdp-ff-head); font-size: .96rem; font-weight: 700;
  color: var(--vdp-heading); margin: 0;
}
.vdp-grocery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px;
}
.vdp-grocery-cat__title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--vdp-brand-alt);
  border-bottom: 1.5px solid var(--vdp-g200); padding-bottom: 5px; margin-bottom: 7px;
}
.vdp-grocery-item {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font-size: .8rem; padding: 3px 0; border-bottom: 1px dotted var(--vdp-border);
}
.vdp-grocery-name { color: var(--vdp-text); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdp-grocery-qty  { color: var(--vdp-brand-alt); font-weight: 700;
  white-space: nowrap; font-size: .76rem; }
.vdp-grocery-cost { color: var(--vdp-accent); font-weight: 700;
  white-space: nowrap; font-size: .76rem; }

/* ── Results section gap ─────────────────────────────────────────────── */
.vdp-rda-section,
.vdp-cost-chart-section,
.vdp-swap-section,
.vdp-grocery-section,
.vdp-meal-breakdown { margin-top: 14px; }

/* ── Advanced grid — 2-col on desktop, 1-col mobile ─────────────────── */
.vdp-advance-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) {
  .vdp-advance-grid { grid-template-columns: 1fr; }
  .vdp-meals-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .vdp-meals-grid { grid-template-columns: 1fr; }
  .vdp-grocery-grid { grid-template-columns: 1fr; }
  .vdp-meal-selector { gap: 3px; }
  .vdp-meal-sel-btn { font-size: .68rem; padding: 3px 8px; }
}

/* ── Result sections: explicit display + no ghost boxes when hidden ─── */
.vdp-rda-section,
.vdp-cost-chart-section,
.vdp-swap-section,
.vdp-grocery-section {
  display: block; /* explicit so removing .hidden works */
  margin-top: 14px;
}
.vdp-meal-breakdown.hidden,
.vdp-rda-section.hidden,
.vdp-cost-chart-section.hidden,
.vdp-swap-section.hidden,
.vdp-grocery-section.hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* ══════════════════════════════════════════════════════════════════════
   v2.3.0 — Basket slot mode, meal breakdown fixes
══════════════════════════════════════════════════════════════════════ */

/* ── Meal slot toggle button (active state) ─────────────────────────── */
#vdpToggleSlotMode.active {
  background: var(--vdp-heading); color: #fff;
  border-color: var(--vdp-heading);
  box-shadow: 0 2px 8px rgba(0,9,32,.2);
}

/* ── Basket slot tabs ────────────────────────────────────────────────── */
.vdp-basket-slot-tabs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 0 6px;
  border-top: 1.5px solid var(--vdp-border);
  margin-top: 4px;
}
.vdp-slot-hint {
  font-size: .74rem; font-weight: 600; color: var(--vdp-muted);
  white-space: nowrap; flex-shrink: 0;
}
.vdp-slot-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 50px;
  border: 1.5px solid var(--vdp-border);
  background: var(--vdp-field); color: var(--vdp-muted);
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all var(--vdp-tr); font-family: var(--vdp-ff-body);
  white-space: nowrap;
}
.vdp-slot-tab span { }
.vdp-slot-tab em {
  font-style: normal; font-size: .68rem; font-weight: 700;
  background: var(--vdp-border); color: var(--vdp-muted);
  border-radius: 50px; padding: 1px 6px; min-width: 18px;
  text-align: center;
}
.vdp-slot-tab:hover { border-color: var(--vdp-brand); color: var(--vdp-brand-alt); background: var(--vdp-extra); }
.vdp-slot-tab.active {
  border-color: var(--vdp-brand); background: var(--vdp-brand); color: #fff;
  box-shadow: 0 2px 8px rgba(113,178,48,.3);
}
.vdp-slot-tab.active em { background: rgba(255,255,255,.25); color: #fff; }

/* ── Slot separator row in table ────────────────────────────────────── */
.vdp-slot-separator { background: var(--vdp-secondary) !important; }
.vdp-slot-sep-cell {
  padding: 6px 10px !important;
  border-bottom: 1.5px solid var(--vdp-borderS) !important;
  border-top: 1.5px solid var(--vdp-borderS) !important;
}
.vdp-slot-sep-label {
  font-size: .77rem; font-weight: 700; color: var(--vdp-heading);
  letter-spacing: .02em;
}
.vdp-slot-sep-count {
  font-size: .7rem; color: var(--vdp-muted); margin-left: 8px;
}

/* ── Meal breakdown: "none" message ─────────────────────────────────── */
.vdp-meal-none-msg {
  font-size: .85rem; color: var(--vdp-muted); padding: 12px 0 4px;
  font-style: italic;
}

/* ── Meal breakdown always has a border wrapper ─────────────────────── */
.vdp-meal-breakdown {
  display: block; /* explicit — ensures removing .hidden makes it visible */
  background: var(--vdp-field); border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-md); padding: 16px 18px;
  margin-top: 14px;
}
.vdp-meal-breakdown.hidden { display: none !important; margin: 0; padding: 0; border: none; }

/* ── Swap suggestions: cost-per-g highlight ─────────────────────────── */
.vdp-swap-card--tip .vdp-swap-from { text-decoration: none; color: var(--vdp-a600); }

/* ── Grocery section print styles ───────────────────────────────────── */
@media print {
  .vdp-grocery-section { border: none; }
  .vdp-grocery-header button { display: none; }
}

/* ── Mobile slot tabs ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .vdp-basket-slot-tabs { gap: 5px; }
  .vdp-slot-tab { font-size: .74rem; padding: 5px 9px; }
  .vdp-basket-actions { flex-wrap: wrap; }
  #vdpToggleSlotMode { font-size: .78rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   v2.3.1 — Grocery period toggle, swap list, misc fixes
══════════════════════════════════════════════════════════════════════ */

/* ── Grocery header layout ───────────────────────────────────────────── */
.vdp-grocery-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.vdp-grocery-header__left h3 {
  font-family: var(--vdp-ff-head); font-size: .96rem; font-weight: 700;
  color: var(--vdp-heading); margin: 0 0 3px;
}
.vdp-grocery-period-label {
  font-size: .74rem; color: var(--vdp-muted); font-style: italic;
}
.vdp-grocery-header__right {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0;
}

/* ── Grocery period toggle (Daily / Weekly / Monthly) ───────────────── */
.vdp-grocery-period-toggle {
  display: flex; border: 1.5px solid var(--vdp-border);
  border-radius: var(--vdp-r-sm); overflow: hidden;
}
.vdp-gp-btn {
  padding: 5px 11px; font-size: .76rem; font-weight: 600;
  border: none; border-right: 1px solid var(--vdp-border);
  background: var(--vdp-field); color: var(--vdp-muted);
  cursor: pointer; transition: all var(--vdp-tr);
  font-family: var(--vdp-ff-body); white-space: nowrap;
}
.vdp-gp-btn:last-child { border-right: none; }
.vdp-gp-btn:hover  { background: var(--vdp-extra); color: var(--vdp-brand-alt); }
.vdp-gp-btn.active { background: var(--vdp-brand); color: #fff; border-color: var(--vdp-brand); }

/* ── Grocery grid ───────────────────────────────────────────────────── */
.vdp-grocery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.vdp-grocery-cat__title {
  font-size: .71rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--vdp-brand-alt);
  border-bottom: 1.5px solid var(--vdp-g200);
  padding-bottom: 5px; margin-bottom: 7px;
}
.vdp-grocery-item {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  font-size: .79rem; padding: 3px 0;
  border-bottom: 1px dotted var(--vdp-border);
}
.vdp-grocery-name { color: var(--vdp-text); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdp-grocery-qty  { color: var(--vdp-brand-alt); font-weight: 700;
  white-space: nowrap; font-size: .75rem; }
.vdp-grocery-cost { color: var(--vdp-accent); font-weight: 700;
  white-space: nowrap; font-size: .75rem; }

/* ── Swap list ───────────────────────────────────────────────────────── */
.vdp-swap-list {
  display: flex; flex-direction: column; gap: 8px;
}

/* ── Responsive grocery ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .vdp-grocery-header { flex-direction: column; gap: 8px; }
  .vdp-grocery-header__right { width: 100%; justify-content: space-between; }
  .vdp-grocery-grid { grid-template-columns: 1fr 1fr; }
  .vdp-gp-btn { padding: 4px 8px; font-size: .7rem; }
}
@media (max-width: 400px) {
  .vdp-grocery-grid { grid-template-columns: 1fr; }
}

/* ── Exclude notice ──────────────────────────────────────────────────── */
.vdp-exclude-notice {
  margin-top: 8px; padding: 8px 12px;
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: var(--vdp-r-sm); font-size: .78rem;
  color: #856404; line-height: 1.4;
  animation: vdpFadeIn .2s ease;
}
@keyframes vdpFadeIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:none} }

/* Excluded foods in dropdown — dimmed, cursor not-allowed */
.vdp-dd-item.vdp-dd-excluded {
  opacity: .45; cursor: not-allowed;
}
.vdp-dd-item.vdp-dd-excluded:hover { background: var(--vdp-field); }
