.c-category-tree-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  line-height: 18px;
  color: #191e1a;
}

.c-category-tree-filter__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #99a89b;
}

.c-category-tree-filter__selected,
.c-category-tree-filter__rows,
.c-category-tree-filter__children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-category-tree-filter__selected {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-category-tree-filter__selected .c-category-tree-filter__option {
  gap: 8px;
}

.c-category-tree-filter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background-color: #f2f4f2;
  padding: 8px;
}

.c-category-tree-filter__search:focus-within {
  outline: 2px solid #005e09;
  outline-offset: 1px;
}

.c-category-tree-filter__search-input,
.c-category-tree-filter__search-input:focus {
  box-shadow: none;
}

.c-category-tree-filter__search-input {
  flex: 1 0 0;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  padding: 0;
  font: inherit;
  color: #191e1a;
}

.c-category-tree-filter__search-input::placeholder {
  color: #607163;
}

.c-category-tree-filter__search-icon {
  flex-shrink: 0;
  color: #607163;
}

.c-category-tree-filter__panel {
  max-height: var(--c-category-tree-filter-max-height, 360px);
  overflow-y: auto;
  border-radius: 4px;
  background-color: #f2f4f2;
}

.c-category-tree-filter__row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  box-sizing: border-box;
  min-height: 34px;
  padding: 8px;
}

.c-category-tree-filter__row--child {
  padding-left: 30px;
}

.c-category-tree-filter__chevron {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 4px;
  background-color: #dee3df;
  padding: 0;
  cursor: pointer;
  color: #607163;
}

.c-category-tree-filter__chevron--spacer {
  background-color: transparent;
  cursor: default;
}

.c-category-tree-filter__option {
  display: flex;
  flex: 1 0 0;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.c-category-tree-filter__box {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: #dee3df;
  color: #fafbfa;
}

.c-category-tree-filter__box--on,
.c-category-tree-filter__box--partial {
  background-color: #005e09;
}

.c-category-tree-filter__minus {
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background-color: #fafbfa;
}

.c-category-tree-filter__label {
  flex: 1 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.c-category-tree-filter__match {
  background-color: #ecfaeb;
  color: #005e09;
}

.c-category-tree-filter__empty {
  margin: 0;
  padding: 16px 12px 14px;
  font-weight: 500;
  color: #191e1a;
  overflow-wrap: anywhere;
}

.c-category-tree-filter__search-footer {
  margin: 0 8px;
  border-top: 1px solid #dee3df;
  padding: 12px 4px;
}

@media (forced-colors: active) {
  .c-category-tree-filter__box,
  .c-category-tree-filter__chevron:not(.c-category-tree-filter__chevron--spacer) {
    border: 1px solid CanvasText;
  }

  .c-category-tree-filter__minus {
    background-color: CanvasText;
  }
}
