.violetSelect {
  position: relative;
  margin: 0 3px;
  .input-wrapper {
    cursor: pointer;
    &:hover {
      input {
        border-color: $primary !important;
      }
    }
  }
  input {
    &[readonly] {
      background-color: $input-bg;
      border-color: $input-border-color;
      cursor: pointer;
      opacity: 1;
    }
    &:disabled {
      background-color: $input-disabled-bg;
      border-color: $input-disabled-border-color;
      opacity: 1;
      cursor: not-allowed;
    }
  }
  .icon-wrapper {
    transition: transform 0.25s ease-in-out;
    transform: rotate(0deg) !important;
  }
}
.violetSelect.violetSelect--menuOpen {
  .icon-wrapper {
    transform: rotate(180deg) !important;
  }
}

.violetSelect__dropdown {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  white-space: nowrap;
  position: absolute;
  z-index: 200;
  top: $autoComplete-suggestions-top;
  left: 0;
  box-shadow: $cascader-optionsBox-shadow;
  border-radius: 0.35rem;
  background: #fff;
  width: 100%;
  .violetSelect__optGroup {
    cursor: default;
  }
  .violetSelect__item {
    padding: $menu-item-padding-y $menu-item-padding-x;
    margin-left: 0;
    cursor: pointer;
    color: $input-color;
    @include dropdownItemStyle;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: $border-radius;
    &.violetSelectItem--selected {
      color: $menu-item-active-color;
      font-weight: $font-weight-bold;
      &:hover {
        color: #fff;
      }
    }
    &.violetSelectItem--disabled {
      color: $menu-item-disabled-color;
      cursor: $menu-item-disabled-cursor;
      &:hover {
        color: $menu-item-disabled-color;
        background: #fff;
      }
      &:active {
        opacity: 1;
        color: $menu-item-disabled-color;
      }
    }
  }
}

.violetSelected__tags {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  height: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  .violetSelected__tags__tag {
    height: 80%;
    padding: 2px 5px;
    box-sizing: border-box;
    border: 1px solid rgba($primary, 0.2);
    margin-left: 6px;
    border-radius: 3px;
    color: $primary;
    background-color: rgba($primary, 0.1);
  }
  .violetIcon {
    margin-left: 3px;
    cursor: pointer;
    &:hover {
      color: darken($primary, 10%);
    }
  }
}
