/* KnowALS equipment filter.
   Uses the design system variables so it follows night mode without a second ruleset.
   Touch targets stay at 44px, same as the accordion summary in components.css. */

.knowals-filter {
  background: var(--raised);
  border: 1px solid var(--rule);
  padding: 16px 18px;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.knowals-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.knowals-filter-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: 0 0 auto;
}

.knowals-filter-search { gap: 10px; }

.knowals-filter-input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
}

.knowals-filter-input:focus-visible,
.knowals-chip:focus-visible,
.knowals-filter-clear:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.knowals-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowals-chip {
  min-height: 44px;
  padding: 6px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
}

.knowals-chip:hover { border-color: var(--violet); }

/* --paper rather than a literal white: in night mode --violet is a pale lilac, so white
   text on it would be unreadable. This flips correctly in both modes. */
.knowals-chip[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--paper);
  font-weight: 700;
}

.knowals-chip-n {
  font-size: 13px;
  opacity: 0.65;
  margin-left: 4px;
}

.knowals-chip[aria-pressed="true"] .knowals-chip-n { opacity: 0.85; }

.knowals-filter-count {
  margin: 0;
  font-size: 14px;
  color: var(--ink-faint);
  min-height: 1em;
}

.knowals-filter-clear {
  align-self: flex-start;
  min-height: 44px;
  padding: 6px 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--violet);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 680px) {
  .knowals-filter { padding: 14px; }
  .knowals-filter-label { flex-basis: 100%; }
}

/* The second retailer line inside a spec card's buy group. Deliberately quieter than the
   "Check price" button: it is an alternative source, not a second call to action.

   The !important block is not defensive styling for its own sake. GoDaddy's stylesheet
   turns anything violet into a button, which rendered this as violet text on an identical
   violet background, padded to 358x70. Unreadable. components.css already carries the same
   guard for .knowals-pending; this is that fix applied here too. */
.knowals-buy-alt {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.knowals-buy-alt a {
  display: inline !important;
  color: var(--violet) !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}
