/* Kidney Diet Log — Add view. */

/* ---------- Add ---------- */
.search-row { position: relative; display: flex; gap: 8px; align-items: center; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-3); pointer-events: none; }
.search-row input.search-input { padding-left: 42px; font-size: 1rem; }
.search-row .btn { flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 0.85rem;
}
.chip[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); border-color: transparent; }
#category-chips { min-height: 44px; } /* reserve the row while categories load: no layout jump */
.add-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.add-actions .btn { flex: 1 1 0; min-width: min(100%, max-content); } /* equal widths; wrap when both do not fit (320 px); a label longer than the row wraps */
.results-head { margin: 4px 0 -4px; }
.food-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 12px; box-shadow: var(--shadow); }
.food-list .empty-state { padding: 14px 4px; }
.food-source { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-left: 6px; }

/* ---------- Add: saved meal shortcuts ---------- */
.saved-shortcuts .results-head { margin-bottom: 4px; }
.meal-chips { padding: 2px 0 8px; }
.meal-chip-item { flex: none; display: flex; } /* the list item wrapper around each chip button */
.meal-chip {
  flex: none; display: flex; align-items: center; gap: 10px; min-height: var(--tap); max-width: 16.25rem; padding: 8px 14px 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow);
}
.meal-chip:hover { background: var(--surface-2); }
.meal-chip .rating { width: 20px; height: 20px; }
.meal-chip-main { display: flex; flex-direction: column; min-width: 0; }
.meal-chip-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal-chip-sub { font-size: 0.76rem; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
