.Taxonomy {
  display: flex;
  margin-top: 25px;

  [name='searchAdvancedFull'] & {
    margin-top: 4%;
  }

  .watch-button {
    display: none;
  }

  .SearchResult-query {
    margin-right: 0;
  }
}

.Taxonomy-column {
  flex: none;
  float: left;
  height: 100%;
  max-height: calc(100vh - calc(var(--ContentEdit-barHeight) * 6));
  overflow-y: auto;
  width: 320px;

  [name='miscSearch'] & {
    max-height: calc(100vh - calc(var(--ContentEdit-barHeight) * 4));
  }

  ul {
    height: auto;
    min-height: 100%;
    padding-bottom: calc(var(--gap-l) * 2);
    width: 100%;
  }

  li {
    border-bottom: 1px solid var(--color-gray3);
    overflow: hidden;
    padding: 0 calc(var(--gap-m) + var(--gap-s) * 2 + var(--Icon-size)) 0
      var(--gap-m);
    position: relative;
    text-overflow: ellipsis;
    white-space: normal;

    a:not(.Taxonomy-expand) {
      display: block;
      overflow: hidden;
      padding: var(--gap-s) 0;
      text-overflow: ellipsis;
    }

    &.is-selected {
      background: var(--color-gray2);
    }
  }

  .SearchResult-items .queryRestrictions {
    margin-right: 0;
  }
}

.Taxonomy-children {
  display: flex;

  > div {
    display: flex;
  }

  &.loaded {
    border-left: 1px solid var(--color-gray3);
  }
}

.Taxonomy-expand {
  .IconButton;

  --IconButton-name: 'chevron_right';

  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
