.c-tree-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 351px;
}

.c-tree-filter__search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: #f2f4f2;
  border-radius: 4px;
  padding: 0.5rem;
}

.c-tree-filter__search-input {
  flex: 1 0 0;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 18px;
  color: #191e1a;
}

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

.c-tree-filter__search-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.c-tree-filter__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f2f4f2;
  border-radius: 4px;
  max-height: 360px;
  overflow-y: auto;
}

.c-tree-filter__children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-tree-filter__node[hidden],
.c-tree-filter__children[hidden] {
  display: none;
}

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

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

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

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

.c-tree-filter__chevron-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.c-tree-filter__node[data-expanded="true"] > .c-tree-filter__row .c-tree-filter__chevron-icon {
  transform: rotate(90deg);
}

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

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

.c-tree-filter__checkbox-minus {
  display: none;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background-color: #fafbfa;
}

.c-tree-filter__checkbox--partial .c-tree-filter__checkbox-minus {
  display: block;
}

.c-tree-filter__checkbox-check {
  display: none;
  width: 13px;
  height: 13px;
}

.c-tree-filter__checkbox--on .c-tree-filter__checkbox-check {
  display: block;
}

.c-tree-filter__label {
  flex: 1 0 0;
  min-width: 0;
  font-size: 14px;
  line-height: 18px;
  color: #191e1a;
  text-align: left;
  word-break: break-word;
}
