/**
 * Module filters — chip styles per Nastya (2026-11-25).
 * Body text token: --Body / --Body-Text (#544840).
 * Surface: #FCFAF8. Hover trial: #b6c1b6.
 */
.kh-module-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  box-sizing: border-box;
  /* auto basis: flex 0 0 100% is height in column parents (<1024) and blows the bar up. */
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.kh-module-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button.kh-module-filters__chip[type="button"] {
  appearance: none;
  margin: 0;
  cursor: pointer;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--Body, var(--Body-Text, #544840));
  background: #fcfaf8;
  border: 1px solid var(--Body, var(--Body-Text, #544840));
  border-radius: 8px;
  padding: 12px 16px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

button.kh-module-filters__chip[type="button"]:hover,
button.kh-module-filters__chip[type="button"]:focus-visible {
  /* Keep solid border: Elementor kit sets button:hover { border-style: none }. */
  background: #b6c1b6;
  border: 1px solid var(--Body, var(--Body-Text, #544840));
  color: var(--Body, var(--Body-Text, #544840));
  outline: none;
}

button.kh-module-filters__chip[type="button"].is-active {
  background: var(--Body, var(--Body-Text, #544840));
  border: 1px solid var(--Body, var(--Body-Text, #544840));
  color: #fcfaf8;
  box-shadow: none;
}

button.kh-module-filters__chip[type="button"].is-active:hover,
button.kh-module-filters__chip[type="button"].is-active:focus-visible {
  /* Selected chip: no hover restyle. */
  background: var(--Body, var(--Body-Text, #544840));
  border: 1px solid var(--Body, var(--Body-Text, #544840));
  color: #fcfaf8;
  cursor: default;
}

.kh-module-filters__count {
  margin: 0;
  color: var(--Body, var(--Body-Text, #544840));
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.kh-module-card.kh-module-card--hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .kh-module-filters {
    flex-direction: column;
    align-items: flex-start;
  }
}
