/* Wing It On Wheels — Allergen Filter */

.allergen-filter {
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  padding: 22px 24px 20px;
  margin: 14px 0 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.allergen-filter h2 {
  margin: 0 0 6px !important;
  padding-bottom: 0 !important;
  border: none !important;
  font-size: 22px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: normal !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.allergen-filter > p {
  margin: 0 0 16px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.al-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.al-pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid #d8dde3;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
  user-select: none;
  letter-spacing: 0.2px;
}

.al-pill:hover {
  border-color: #b00020;
  background: #fff5f5;
  color: #b00020;
}

.al-pill.active {
  background: #b00020;
  color: #fff;
  border-color: #b00020;
  box-shadow: 0 1px 4px rgba(176, 0, 32, 0.25);
}

.al-pill.active:hover {
  background: #8a001a;
  border-color: #8a001a;
}

.al-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.al-clear {
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid #d8dde3;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}

.al-clear:hover {
  background: #f0f2f5;
  color: #1a1a1a;
  border-color: #c0c5cc;
}

.al-status {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff0f0;
  border-left: 3px solid #b00020;
  border-radius: 4px;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .allergen-filter { padding: 16px 14px 14px; margin: 8px 0 18px; }
  .allergen-filter h2 { font-size: 19px !important; }
  .allergen-filter > p { font-size: 13px; margin-bottom: 12px; }
  .al-pill { padding: 9px 14px; font-size: 13.5px; }
  .al-clear { padding: 10px 16px; font-size: 14px; }
  .al-status { font-size: 12.5px; }
}

/* ---- Highlight state on table rows ---- */

.guide-content tr.allergen-warn td {
  background: #fff0f0 !important;
}

.guide-content tr.allergen-warn td.item {
  color: #b00020 !important;
  font-weight: 700 !important;
  position: relative;
  border-left: 4px solid #b00020;
  padding-left: 10px;
}

/* Re-color the indicator cells inside warned rows so they read more
   uniformly (the n / dash cells stay a soft red) */
.guide-content tr.allergen-warn td.n {
  color: #d99;
}

/* ---- Highlight state on detail items ---- */

.guide-content details.allergen-warn {
  background: #fff0f0;
  border-left: 4px solid #b00020;
  border-radius: 4px;
  padding: 4px 12px 4px 10px;
  margin: 8px -8px;
}

.guide-content details.allergen-warn summary {
  color: #b00020 !important;
  font-weight: 700 !important;
}
