.content-navigation {
  display: flex;

  &__link {
    font-size: 1.0625rem;
    padding: 0 24px;
    font-family: $sans-serif-font-family;
    font-weight: $font-weight-regular;
    color: $color-silver-dark;

    &--active {
      color: $color-brand;
    }
  }
}

.sub-navigation {
  display: none;

  grid-column: 1 / 4;
  border-top: 1px solid $color-silver;

  @include desktop {
    display: flex;
  }

  padding: $medium-spacing;
}

.sub-navigation-item {
  z-index: 10;

  margin-right: $large-spacing;

  &__title {
    @include small-text;

    display: grid;
    grid-template-columns: 1fr auto;
    grid-column-gap: $small-spacing;
    align-items: center;

    cursor: pointer;
  }

  &__icon {
    width: 12px;
    height: 12px;
  }

  &__chevron-up {
    display: none;
  }

  &__nav-items {
    box-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.12);
    position: absolute;
    left: 0;
    background-color: $color-white;
    padding: $large-spacing;
    width: 100%;
    box-sizing: border-box;
    margin-top: 17px;
    display: flex;
    flex-direction: column;

    &:empty {
      display: none;
    }
  }

  &--active &__title {
    color: $color-brand;
  }
  &--active &__icon {
    fill: $color-brand;
  }

  &--active &__chevron-up {
    display: block;
  }
  &--active &__chevron-down {
    display: none;
  }
}
