/* ============================================================
   Seafood Calorie Calculator — style.css  (WoodMart-safe edition)
   The Khan Digital · v1.2.0

   ROOT PROBLEM: WoodMart theme globally overrides:
     - All <button> elements (background, padding, border, font)
     - All input[type="text/number"] elements
     - All <select> elements
     - .card classes, generic backgrounds and colors

   FIX STRATEGY:
     1. Every selector is scoped under #fcc-wrapper for specificity
     2. All theme-vulnerable properties get !important
     3. Button IDs are also targeted directly for maximum override
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────────── */
#fcc-wrapper {
  --fcc-primary:   #2563eb;
  --fcc-primary-h: #1d4ed8;
  --fcc-green:     #16a34a;
  --fcc-green-h:   #15803d;
  --fcc-orange:    #ea580c;
  --fcc-red:       #dc2626;
  --fcc-red-h:     #b91c1c;
  --fcc-protein:   #6366f1;
  --fcc-carbs:     #f59e0b;
  --fcc-fat:       #ef4444;
  --fcc-fiber:     #22c55e;
  --fcc-bg:        #f8fafc;
  --fcc-card:      #ffffff;
  --fcc-border:    #e2e8f0;
  --fcc-text:      #1e293b;
  --fcc-muted:     #64748b;
  --fcc-input-bg:  #f1f5f9;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  font-size: 15px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  overflow: visible !important;
}
#fcc-wrapper *, #fcc-wrapper *::before, #fcc-wrapper *::after {
  box-sizing: border-box !important;
}

/* ── Tabs ─────────────────────────────────────────────────────── */
#fcc-wrapper .fcc-tabs {
  display: flex !important;
  gap: 4px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 6px !important;
  margin: 16px 16px 16px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05) !important;
  list-style: none !important;
}

/* WoodMart overrides ALL <button> — fight back with ID+class specificity */
#fcc-wrapper .fcc-tab {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 10px 14px !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #64748b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  transition: all .2s ease !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  height: auto !important;
  width: auto !important;
  min-width: 0 !important;
}
#fcc-wrapper .fcc-tab i { font-size: 14px !important; margin: 0 !important; }
#fcc-wrapper .fcc-tab:hover  { background: #f1f5f9 !important; color: #1e293b !important; box-shadow: none !important; transform: none !important; }
#fcc-wrapper .fcc-tab.active { background: #2563eb !important; color: #ffffff !important; }
#fcc-wrapper .fcc-tab.active:hover { background: #1d4ed8 !important; color: #ffffff !important; }

@media (max-width: 480px) {
  #fcc-wrapper .fcc-tab span { display: none !important; }
  #fcc-wrapper .fcc-tab { padding: 12px !important; }
  #fcc-wrapper .fcc-tab i { font-size: 16px !important; }
}

/* ── Tab Content ──────────────────────────────────────────────── */
#fcc-wrapper .fcc-tab-content { display: none !important; }
#fcc-wrapper .fcc-tab-content.active {
  display: block !important;
  padding: 0 16px 24px !important;
}

/* ── Cards ────────────────────────────────────────────────────── */
#fcc-wrapper .fcc-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 22px 24px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05) !important;
}
#fcc-wrapper .fcc-card-header {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
}
#fcc-wrapper .fcc-card-header h3 {
  margin: 0 0 3px !important; padding: 0 !important;
  font-size: 17px !important; font-weight: 700 !important;
  color: #1e293b !important; line-height: 1.2 !important;
  border: none !important; background: none !important;
}
#fcc-wrapper .fcc-card-header p {
  margin: 0 !important; padding: 0 !important;
  font-size: 12.5px !important; color: #64748b !important; line-height: 1.5 !important;
}
#fcc-wrapper .fcc-header-icon {
  width: 42px !important; height: 42px !important; min-width: 42px !important;
  background: #eff6ff !important; border-radius: 10px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #2563eb !important; font-size: 17px !important;
  flex-shrink: 0 !important; border: none !important; box-shadow: none !important;
}
#fcc-wrapper .fcc-header-icon.green  { background: #f0fdf4 !important; color: #16a34a !important; }
#fcc-wrapper .fcc-header-icon.orange { background: #fff7ed !important; color: #ea580c !important; }

/* ── Section Title ────────────────────────────────────────────── */
#fcc-wrapper .fcc-section-title {
  font-size: 14px !important; font-weight: 700 !important;
  color: #1e293b !important; margin: 0 0 16px !important; padding: 0 !important;
  display: flex !important; align-items: center !important; gap: 7px !important;
  border: none !important; background: none !important; line-height: 1.4 !important;
}
#fcc-wrapper .fcc-section-title small { font-weight: 400 !important; color: #64748b !important; font-size: 12px !important; }

/* ── Search ───────────────────────────────────────────────────── */
#fcc-wrapper .fcc-search-wrap { position: relative !important; margin-bottom: 16px !important; }
#fcc-wrapper .fcc-search-icon {
  position: absolute !important; left: 14px !important;
  top: 50% !important; transform: translateY(-50%) !important;
  color: #64748b !important; font-size: 14px !important;
  pointer-events: none !important; z-index: 1 !important;
}
/* Use ID selector for highest specificity on the search input */
#fcc-food-search {
  width: 100% !important; padding: 13px 16px 13px 40px !important;
  border: 2px solid #e2e8f0 !important; border-radius: 8px !important;
  background: #f1f5f9 !important; font-size: 14.5px !important;
  font-family: inherit !important; color: #1e293b !important;
  outline: none !important; box-shadow: none !important;
  transition: border-color .2s !important; height: auto !important;
  line-height: normal !important; display: block !important; margin: 0 !important;
  -webkit-appearance: none !important;
}
#fcc-food-search:focus {
  border-color: #2563eb !important; background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important; outline: none !important;
}
#fcc-food-search::placeholder { color: #94a3b8 !important; opacity: 1 !important; }

/* ── Suggestions Dropdown ─────────────────────────────────────── */
#fcc-food-suggestions {
  position: absolute !important; top: calc(100% + 4px) !important;
  left: 0 !important; right: 0 !important;
  background: #ffffff !important; border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important; box-shadow: 0 8px 30px rgba(0,0,0,.14) !important;
  max-height: 280px !important; overflow-y: auto !important;
  z-index: 99999 !important; display: none !important;
  padding: 0 !important; margin: 0 !important; list-style: none !important;
}
#fcc-food-suggestions.open { display: block !important; }

#fcc-wrapper .fcc-suggestion-item {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 16px !important; cursor: pointer !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important; border-left: none !important; border-right: none !important;
  transition: background .15s !important; background: transparent !important;
}
#fcc-wrapper .fcc-suggestion-item:last-child { border-bottom: none !important; }
#fcc-wrapper .fcc-suggestion-item:hover { background: #f1f5f9 !important; }
#fcc-wrapper .s-name { font-weight: 600 !important; font-size: 14px !important; color: #1e293b !important; display: block !important; }
#fcc-wrapper .s-meta { font-size: 12px !important; color: #64748b !important; display: block !important; margin-top: 1px !important; }
#fcc-wrapper .s-badge {
  font-size: 11px !important; background: #eff6ff !important;
  color: #2563eb !important; padding: 2px 8px !important;
  border-radius: 20px !important; font-weight: 600 !important;
  white-space: nowrap !important; flex-shrink: 0 !important;
}

/* ── Serving Row ──────────────────────────────────────────────── */
#fcc-wrapper .fcc-serving-row { border-top: 1px solid #e2e8f0 !important; padding-top: 18px !important; }
#fcc-wrapper .fcc-selected-pill {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  background: #eff6ff !important; color: #2563eb !important;
  padding: 6px 12px !important; border-radius: 30px !important;
  font-size: 13.5px !important; font-weight: 600 !important;
  margin-bottom: 14px !important; border: none !important;
}
#fcc-wrapper .fcc-selected-pill i { font-size: 13px !important; margin: 0 !important; }

/* WoodMart also nukes plain <button> inside divs */
#fcc-wrapper .fcc-selected-pill button,
#fcc-clear-food {
  background: none !important; background-color: transparent !important;
  border: none !important; color: #2563eb !important; cursor: pointer !important;
  padding: 0 !important; line-height: 1 !important; opacity: .6 !important;
  transition: opacity .2s !important; font-size: 13px !important;
  box-shadow: none !important; height: auto !important; width: auto !important;
  min-width: 0 !important; text-transform: none !important; letter-spacing: normal !important;
}
#fcc-wrapper .fcc-selected-pill button:hover,
#fcc-clear-food:hover { opacity: 1 !important; background: none !important; box-shadow: none !important; }

#fcc-wrapper .fcc-controls { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; align-items: flex-end !important; }

/* ── Form Fields ──────────────────────────────────────────────── */
#fcc-wrapper .fcc-field { display: flex !important; flex-direction: column !important; gap: 5px !important; }
#fcc-wrapper .fcc-field label {
  font-size: 12.5px !important; font-weight: 600 !important; color: #64748b !important;
  display: flex !important; align-items: center !important; gap: 5px !important;
  margin: 0 !important; padding: 0 !important; line-height: 1.4 !important; cursor: default !important;
}

/* Inputs — WoodMart targets input[type="number"] and input[type="text"] */
#fcc-wrapper .fcc-field input,
#fcc-wrapper .fcc-field input[type="number"],
#fcc-serving-size {
  padding: 10px 13px !important; border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important; background: #f1f5f9 !important;
  font-size: 14px !important; font-family: inherit !important;
  color: #1e293b !important; outline: none !important; box-shadow: none !important;
  transition: border-color .2s !important; min-width: 110px !important;
  height: auto !important; line-height: normal !important; margin: 0 !important;
  width: 100% !important; -webkit-appearance: none !important; appearance: none !important;
}
#fcc-wrapper .fcc-field input:focus,
#fcc-serving-size:focus {
  border-color: #2563eb !important; background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important; outline: none !important;
}

/* Selects — WoodMart styles these with custom arrows and background */
#fcc-wrapper .fcc-field select,
#fcc-serving-unit {
  padding: 10px 13px !important; border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important; background: #f1f5f9 !important;
  font-size: 14px !important; font-family: inherit !important;
  color: #1e293b !important; outline: none !important; box-shadow: none !important;
  cursor: pointer !important; min-width: 110px !important;
  height: auto !important; line-height: normal !important; margin: 0 !important;
  width: 100% !important;
}
#fcc-wrapper .fcc-field select:focus,
#fcc-serving-unit:focus {
  border-color: #2563eb !important; background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important; outline: none !important;
}
#fcc-wrapper .fcc-field-wide { flex: 1 1 100% !important; }

#fcc-wrapper .fcc-form-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 14px !important; margin-bottom: 20px !important;
}
#fcc-wrapper .fcc-form-grid .fcc-field-wide { grid-column: 1 / -1 !important; }

/* ── ALL BUTTONS — This is where WoodMart does the most damage ── */
#fcc-wrapper .fcc-btn,
#fcc-calculate-btn,
#fcc-add-to-meal,
#fcc-clear-meal {
  display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
  gap: 8px !important; padding: 11px 22px !important;
  border: none !important; border-radius: 8px !important;
  font-size: 14px !important; font-weight: 700 !important;
  font-family: inherit !important; cursor: pointer !important;
  transition: all .2s ease !important; text-decoration: none !important;
  letter-spacing: normal !important; text-transform: none !important;
  line-height: 1.4 !important; height: auto !important; box-sizing: border-box !important;
}

/* Primary (blue) */
#fcc-wrapper .fcc-btn-primary,
#fcc-calculate-btn {
  background: #2563eb !important; background-color: #2563eb !important;
  color: #ffffff !important; box-shadow: none !important;
}
#fcc-wrapper .fcc-btn-primary:hover,
#fcc-calculate-btn:hover {
  background: #1d4ed8 !important; background-color: #1d4ed8 !important;
  color: #ffffff !important; transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37,99,235,.35) !important; text-decoration: none !important;
}

/* Success (green) */
#fcc-wrapper .fcc-btn-success,
#fcc-add-to-meal {
  background: #16a34a !important; background-color: #16a34a !important;
  color: #ffffff !important; width: 100% !important;
  margin-top: 6px !important; box-shadow: none !important;
}
#fcc-wrapper .fcc-btn-success:hover,
#fcc-add-to-meal:hover {
  background: #15803d !important; background-color: #15803d !important;
  color: #ffffff !important; transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(22,163,74,.35) !important; text-decoration: none !important;
}

/* Danger (red) */
#fcc-wrapper .fcc-btn-danger,
#fcc-clear-meal {
  background: #dc2626 !important; background-color: #dc2626 !important;
  color: #ffffff !important; width: 100% !important; box-shadow: none !important;
}
#fcc-wrapper .fcc-btn-danger:hover,
#fcc-clear-meal:hover {
  background: #b91c1c !important; background-color: #b91c1c !important;
  color: #ffffff !important; transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220,38,38,.35) !important; text-decoration: none !important;
}

/* ── Hero Card ────────────────────────────────────────────────── */
#fcc-wrapper .fcc-hero-card {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%) !important;
  border-radius: 12px !important; padding: 24px 26px !important;
  display: flex !important; align-items: center !important;
  justify-content: space-between !important; margin-bottom: 14px !important;
  box-shadow: 0 4px 24px rgba(37,99,235,.3) !important; border: none !important;
}
#fcc-wrapper .fcc-hero-left { display: flex !important; align-items: center !important; gap: 18px !important; }
#fcc-wrapper .fcc-fire-icon {
  width: 56px !important; height: 56px !important; min-width: 56px !important;
  background: rgba(255,255,255,.15) !important; border-radius: 14px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 26px !important; color: #fbbf24 !important;
  border: none !important; box-shadow: none !important;
}
#fcc-wrapper .fcc-hero-cal {
  font-size: 44px !important; font-weight: 900 !important; color: #ffffff !important;
  line-height: 1 !important; letter-spacing: -1px !important; margin: 0 !important; padding: 0 !important;
}
#fcc-wrapper .fcc-hero-label { color: rgba(255,255,255,.8) !important; font-size: 13px !important; margin-top: 2px !important; font-weight: 500 !important; }
#fcc-wrapper .fcc-hero-sub   { color: rgba(255,255,255,.6) !important; font-size: 12px !important; margin-top: 4px !important; }
#fcc-wrapper .fcc-hero-badge {
  background: rgba(255,255,255,.2) !important; color: #ffffff !important;
  padding: 6px 14px !important; border-radius: 20px !important;
  font-size: 12.5px !important; font-weight: 700 !important;
  white-space: nowrap !important; border: none !important; box-shadow: none !important;
}

/* ── Macro Boxes ──────────────────────────────────────────────── */
#fcc-wrapper .fcc-macro-row {
  display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important; margin-bottom: 14px !important;
}
@media (max-width: 540px) { #fcc-wrapper .fcc-macro-row { grid-template-columns: repeat(2, 1fr) !important; } }

#fcc-wrapper .fcc-macro-box {
  background: #ffffff !important; border: 1px solid #e2e8f0 !important;
  border-top: 3px solid #e2e8f0 !important; border-radius: 8px !important;
  padding: 14px 12px !important; display: flex !important; flex-direction: column !important;
  align-items: center !important; gap: 4px !important; text-align: center !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08) !important; transition: transform .2s !important;
}
#fcc-wrapper .fcc-macro-box:hover { transform: translateY(-2px) !important; }
#fcc-wrapper .fcc-macro-box.protein { border-top-color: #6366f1 !important; }
#fcc-wrapper .fcc-macro-box.carbs   { border-top-color: #f59e0b !important; }
#fcc-wrapper .fcc-macro-box.fat     { border-top-color: #ef4444 !important; }
#fcc-wrapper .fcc-macro-box.fiber   { border-top-color: #22c55e !important; }

#fcc-wrapper .fcc-macro-box i       { font-size: 18px !important; margin-bottom: 2px !important; }
#fcc-wrapper .fcc-macro-box.protein i { color: #6366f1 !important; }
#fcc-wrapper .fcc-macro-box.carbs   i { color: #f59e0b !important; }
#fcc-wrapper .fcc-macro-box.fat     i { color: #ef4444 !important; }
#fcc-wrapper .fcc-macro-box.fiber   i { color: #22c55e !important; }

#fcc-wrapper .fcc-mval   { font-size: 20px !important; font-weight: 800 !important; color: #1e293b !important; margin: 0 !important; }
#fcc-wrapper .fcc-mlabel { font-size: 11.5px !important; color: #64748b !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .4px !important; margin: 0 !important; }
#fcc-wrapper .fcc-mcal   { font-size: 11px !important; color: #64748b !important; margin: 0 !important; }

/* ── Progress Bars ────────────────────────────────────────────── */
#fcc-wrapper .fcc-bar-group { display: flex !important; flex-direction: column !important; gap: 12px !important; }
#fcc-wrapper .fcc-bar-row   { display: flex !important; align-items: center !important; gap: 10px !important; }
#fcc-wrapper .fcc-bar-label {
  width: 80px !important; min-width: 80px !important; flex-shrink: 0 !important;
  font-size: 13px !important; font-weight: 600 !important; color: #1e293b !important;
  display: flex !important; flex-direction: column !important; gap: 1px !important;
}
#fcc-wrapper .fcc-bar-label small { font-weight: 400 !important; color: #64748b !important; font-size: 11px !important; }
#fcc-wrapper .fcc-bar-track {
  flex: 1 !important; background: #f1f5f9 !important; border-radius: 20px !important;
  height: 10px !important; overflow: hidden !important;
}
#fcc-wrapper .fcc-bar-fill {
  height: 100% !important; border-radius: 20px !important; width: 0% !important;
  transition: width .7s cubic-bezier(.4,0,.2,1) !important; display: block !important;
}
#fcc-wrapper .fcc-bar-fill.protein { background: #6366f1 !important; }
#fcc-wrapper .fcc-bar-fill.carbs   { background: #f59e0b !important; }
#fcc-wrapper .fcc-bar-fill.fat     { background: #ef4444 !important; }
#fcc-wrapper .fcc-bar-pct {
  width: 38px !important; min-width: 38px !important; text-align: right !important;
  font-size: 13px !important; font-weight: 700 !important; color: #64748b !important;
}

/* ── Daily Values ─────────────────────────────────────────────── */
#fcc-wrapper .fcc-dv-grid {
  display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important;
}
@media (max-width: 480px) { #fcc-wrapper .fcc-dv-grid { grid-template-columns: repeat(2, 1fr) !important; } }
#fcc-wrapper .fcc-dv-item {
  background: #f1f5f9 !important; border-radius: 8px !important;
  padding: 10px 12px !important; display: flex !important;
  justify-content: space-between !important; align-items: center !important;
  font-size: 13px !important; border: none !important;
}
#fcc-wrapper .fcc-dv-item span:first-child { color: #64748b !important; font-weight: 500 !important; }
#fcc-wrapper .fcc-dv-val { font-weight: 800 !important; color: #2563eb !important; }

/* ── Meal Tracker ─────────────────────────────────────────────── */
#fcc-wrapper .fcc-empty-state { text-align: center !important; padding: 32px 20px !important; color: #64748b !important; }
#fcc-wrapper .fcc-empty-state i { font-size: 36px !important; margin-bottom: 10px !important; display: block !important; opacity: .4 !important; }
#fcc-wrapper .fcc-empty-state p { margin: 0 !important; font-size: 14px !important; line-height: 1.6 !important; }

#fcc-wrapper .fcc-meal-item {
  display: flex !important; align-items: center !important; gap: 12px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important; border-left: none !important; border-right: none !important;
}
#fcc-wrapper .fcc-meal-item:last-child { border-bottom: none !important; }
#fcc-wrapper .fcc-meal-icon {
  width: 36px !important; height: 36px !important; min-width: 36px !important;
  background: #eff6ff !important; border-radius: 8px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #2563eb !important; font-size: 15px !important; flex-shrink: 0 !important;
  border: none !important; box-shadow: none !important;
}
#fcc-wrapper .fcc-meal-info { flex: 1 !important; }
#fcc-wrapper .fcc-meal-name { font-weight: 700 !important; font-size: 14px !important; color: #1e293b !important; margin: 0 !important; }
#fcc-wrapper .fcc-meal-meta { font-size: 12px !important; color: #64748b !important; margin-top: 2px !important; }
#fcc-wrapper .fcc-meal-cal  { font-size: 16px !important; font-weight: 800 !important; color: #ea580c !important; white-space: nowrap !important; }

#fcc-wrapper .fcc-meal-remove {
  background: none !important; background-color: transparent !important;
  border: none !important; color: #dc2626 !important; cursor: pointer !important;
  padding: 5px !important; border-radius: 6px !important;
  transition: background .15s !important; font-size: 14px !important;
  line-height: 1 !important; height: auto !important; width: auto !important;
  box-shadow: none !important; text-transform: none !important;
  letter-spacing: normal !important; min-width: 0 !important;
}
#fcc-wrapper .fcc-meal-remove:hover { background: #fee2e2 !important; color: #dc2626 !important; }

#fcc-wrapper .fcc-totals-strip {
  display: flex !important; flex-wrap: wrap !important; gap: 10px !important;
  margin: 18px 0 14px !important; padding: 16px !important;
  background: #f1f5f9 !important; border-radius: 8px !important; border: none !important;
}
#fcc-wrapper .fcc-total-box {
  flex: 1 !important; min-width: 80px !important;
  display: flex !important; flex-direction: column !important;
  align-items: center !important; gap: 2px !important; text-align: center !important;
}
#fcc-wrapper .fcc-total-box i        { font-size: 18px !important; color: #ea580c !important; }
#fcc-wrapper .fcc-total-box.protein i { color: #6366f1 !important; }
#fcc-wrapper .fcc-total-box.carbs   i { color: #f59e0b !important; }
#fcc-wrapper .fcc-total-box.fat     i { color: #ef4444 !important; }
#fcc-wrapper .fcc-total-box span  { font-size: 20px !important; font-weight: 800 !important; color: #1e293b !important; }
#fcc-wrapper .fcc-total-box small { font-size: 11px !important; color: #64748b !important; font-weight: 600 !important; text-transform: uppercase !important; }

/* ── Teal header icon ─────────────────────────────────────────── */
#fcc-wrapper .fcc-header-icon.teal { background: #f0fdfa !important; color: #0d9488 !important; }

/* ── Health Insight section (Tab 1 results) ───────────────────── */
#fcc-wrapper .fcc-health-row {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important; gap: 14px !important;
  flex-wrap: wrap !important; margin-bottom: 14px !important;
}
#fcc-wrapper .fcc-snap-omega {
  display: flex !important; align-items: center !important; gap: 10px !important;
}
#fcc-wrapper .fcc-snap-omega-icon {
  width: 40px !important; height: 40px !important; min-width: 40px !important;
  background: #f0fdfa !important; border-radius: 10px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #0d9488 !important; font-size: 16px !important;
}
#fcc-wrapper .fcc-snap-val {
  font-size: 22px !important; font-weight: 800 !important; color: #0d9488 !important;
  display: block !important; line-height: 1 !important; margin: 0 !important;
}
#fcc-wrapper .fcc-snap-sub {
  font-size: 11.5px !important; color: #64748b !important;
  font-weight: 500 !important; display: block !important; margin-top: 2px !important;
}

/* ── Mercury badges ───────────────────────────────────────────── */
#fcc-wrapper .fcc-mercury {
  display: inline-block !important; padding: 5px 13px !important;
  border-radius: 20px !important; font-size: 12px !important; font-weight: 700 !important;
}
#fcc-wrapper .fcc-mercury.mercury-low      { background: #dcfce7 !important; color: #166534 !important; }
#fcc-wrapper .fcc-mercury.mercury-moderate { background: #fef9c3 !important; color: #854d0e !important; }
#fcc-wrapper .fcc-mercury.mercury-high     { background: #fee2e2 !important; color: #991b1b !important; }

/* ── Health tip text ──────────────────────────────────────────── */
#fcc-wrapper .fcc-health-tip-text,
#res-health-tip {
  display: block !important; visibility: visible !important;
  font-size: 13.5px !important; font-family: inherit !important;
  color: #475569 !important; line-height: 1.7 !important;
  margin: 0 !important; padding: 12px 0 0 !important;
  border-top: 1px solid #e2e8f0 !important;
  max-height: none !important; overflow: visible !important;
  opacity: 1 !important;
}

/* ── Loader ───────────────────────────────────────────────────── */
#fcc-wrapper .fcc-loader {
  display: inline-block !important; width: 18px !important; height: 18px !important;
  border: 3px solid rgba(255,255,255,.4) !important;
  border-top-color: #ffffff !important; border-radius: 50% !important;
  animation: fcc-spin .7s linear infinite !important; vertical-align: middle !important;
}
@keyframes fcc-spin { to { transform: rotate(360deg); } }

/* ── Scrollbar ────────────────────────────────────────────────── */
#fcc-food-suggestions::-webkit-scrollbar { width: 5px; }
#fcc-food-suggestions::-webkit-scrollbar-track { background: transparent; }
#fcc-food-suggestions::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
