.header--selector {
  .header__content {
    z-index: initial;
  }

  .content-block__title {
    display: flex;
    flex-wrap: wrap;
  }

  .modal__overlay {
    z-index: 5;
  }
}

// selector
.selector {
  &__title {
    margin-right: 10px;
  }

  &__dropdown {
    cursor: pointer;
    display: block;
    height: $baseline * 4;
    padding-right: 60px;
    position: relative;

    .icon {
      color: currentColor;
      flex-shrink: 0;
      transition: transform $transition-duration--fast;
      transform-origin: center;
    }

    &--active {
      z-index: 6;

      .icon {
        transform: rotate(180deg);
      }
    }

    &--active.text-ellipsis {
      opacity: 0.7;
    }
  }

  &__dropdown svg {
    fill: currentColor;
  }

  &__text {
    @include font-style('title--m');
    padding-right: 15px;
    position: relative;
  }
}

// viewport l
@include viewport--l {
  .header--selector {
    .content-block__description {
      margin-top: 15px;
    }

    .media-block:not(.media-block--full-width) img {
      left: 50%;
      transform: translateX(-50%);
    }
  }
  // selector
  .selector {
    &__title {
      margin-right: 15px;
    }

    &__dropdown {
      height: $baseline * 6.5;

      .icon {
        top: 7px;
      }
    }
  }
}

@include selector-color-mapping;
