/* A filter's values as round chips: grey outline, the chosen one navy with its count in turquoise. */
.wi-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
/* Border-box, so a chip that is a link and one that is a button (FilterSelect) are the same height. */
.wi-filter-chip {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-control-sm);
  padding: 0 var(--space-3);
  border: var(--border-1) solid var(--border-default);
  border-radius: var(--radius-full);
  background-color: var(--background-surface);
  color: var(--text-secondary);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-xs);
  line-height: var(--font-line-height-xs);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}
.wi-filter-chip[data-hovered] {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.wi-filter-chip[data-focus-visible] {
  outline: none;
  box-shadow: var(--focus-ring);
}
/* A chip's icon, before its label (as History's groups), closer to it than the count. */
.wi-filter-chip__icon {
  flex: none;
  width: var(--size-icon-xs);
  height: var(--size-icon-xs);
  margin-right: calc(var(--space-1) * -1);
}
.wi-filter-chip__count {
  color: var(--text-tertiary);
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}
.wi-filter-chip[aria-current="true"] {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary);
  color: var(--text-primary-inverse);
}
.wi-filter-chip[aria-current="true"] .wi-filter-chip__count {
  color: var(--turquoise-300);
}

/* A chip that opens a menu (FilterSelect): white like the others, with a chevron; darker once a value is chosen. */
button.wi-filter-chip {
  cursor: pointer;
}
.wi-filter-chip--menu[data-set] {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.wi-filter-chip--menu[data-open] {
  border-color: var(--border-strong);
}
.wi-filter-chip__label {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wi-filter-chip__chevron {
  flex: none;
  width: var(--size-icon-xs);
  height: var(--size-icon-xs);
}
