/* Hierarchical category navigation for the shop sidebar and mobile filter drawer. */

.htw-cat-tree {
  font-size: 14px;
  line-height: 19px;
}

.htw-cat-tree__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.htw-cat-tree__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.htw-cat-tree__list .htw-cat-tree__list {
  padding-left: 14px;
}

.htw-cat-tree__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.htw-cat-tree__level-1 > .htw-cat-tree__item > .htw-cat-tree__row {
  font-weight: 500;
}

.htw-cat-tree__link {
  flex: 1 1 auto;
  color: #000;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.htw-cat-tree__link:hover {
  text-decoration: underline;
}

.htw-cat-tree__link--nolink {
  color: #000;
}

.htw-cat-tree__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: -4px -4px -4px 0;
  color: #000;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.htw-cat-tree__toggle svg {
  display: block;
  transition: transform 0.2s ease;
}

.htw-cat-tree__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.htw-cat-tree__spacer {
  flex: 0 0 24px;
  width: 24px;
}

.htw-cat-tree__panel[hidden] {
  display: none;
}

.htw-cat-tree__empty {
  margin: 0;
  color: #757575;
}

/* Inside the Flatsome mobile filter drawer. */
#shop-sidebar .htw-cat-tree,
.mfp-content .htw-cat-tree {
  font-size: 14px;
}

@media (max-width: 849px) {
  .htw-cat-tree__row {
    padding: 9px 0;
  }

  .htw-cat-tree__toggle {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
}
