.select2-container .select2-selection--single {
  border-color: $input-border;
  border-radius: $border-radius-base;
  height: $dropdown-height;

  &:focus {
    outline: 0;
  }

  .select2-selection__rendered {
    line-height: $dropdown-height;
    color: $text-color;
    &:focus {
      outline: 0;
    }
  }

  .select2-selection__arrow {
    height: $dropdown-height;
    top: 0;
    overflow: hidden;
  }
}

.select2-container .select2-selection--multiple {
  border-color: $input-border;
  border-radius: $border-radius-base;
  min-height: $dropdown-height;

  .select2-selection__rendered {
    line-height: 17px;
    padding-left: 8px;
    padding-right: 16px;
    margin-bottom: -5px;
  }
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 7px;
  // @include placeholder;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
  margin-top: 3px;
  color: $text-color;
}

.select2-dropdown {
  border-color: $input-border;
  border-radius: $border-radius-base;
}

.select2-container .select2-search--dropdown .select2-search__field {
  border-color: $input-border;
  border-radius: $border-radius-base;

  &:focus {
    outline: 0;
  }
}

.select2-container .select2-results__option[aria-selected=true] {
  background-color: $dropdown-item-selected-background-color;
}

.select2-container .select2-results__option--highlighted[aria-selected] {
  background-color: $dropdown-item-highlighted-background-color;
  color: $text-color;
}


select.select2-hidden-accessible.input-validation-error + span.select2.select2-container {
  .select2-selection--single, .select2-selection--multiple {
      border-color: $validation-error !important;
  }
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-right: -10px;
  margin-top: 7px;
  font-weight: normal;
  color: $color-gray-70;
  font-size: 18px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  font-weight: normal;
  color: $color-gray-70;
  font-size: 18px;
  margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  font-weight: normal;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: $input-border;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  border-radius: $border-radius-base;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice {
  border-radius: 20px;
  background-color: $color-gray-95;
  border-color: $color-gray-95;
  font-size: 12px;
  padding-top: 3px;
  padding-bottom: 2px;
  padding-left: 8px;
  padding-right: 8px;

  .select2-selection__choice__remove {
    float: right;
    margin-left: 6px;
    margin-right: 0;
    border-color: $color-gray-70;
  }
}

.select2-container--open .select2-dropdown {

  box-shadow: 0 8px 15px 0 rgba(0,0,0,0.1), 0 6px 5px 0 rgba(0,0,0,0.15);

  &.select2-dropdown--below {
    margin-top: 5px;
    border-top: 1px solid $input-border;
    border-top-left-radius: $border-radius-base;
    border-top-right-radius: $border-radius-base;
  }

  &.select2-dropdown--above {
    margin-top: -5px;
    border-bottom: 1px solid $input-border;
    border-bottom-left-radius: $border-radius-base;
    border-bottom-right-radius: $border-radius-base;
  }
}


.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom-left-radius: $border-radius-base;
  border-bottom-right-radius: $border-radius-base;
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top-left-radius: $border-radius-base;
  border-top-right-radius: $border-radius-base;
}

.select2-search--dropdown {
  padding: 8px;
  border-bottom: 1px solid $color-gray-85;
}

.select2-container--default .select2-results__group {
  font-weight: 500;
}

.select2-results__option, .select2-container--default .select2-results__option .select2-results__option {
  padding: 6px 8px;
}

.select2.select2-container {
  border-radius: $border-radius-base;
}

.select2.select2-container.select2-container--open, .select2.select2-container.select2-container--focus {
  border-color: $input-border;
  box-shadow: $outline-box-shadow rgba($input-border, $outline-border-opacity);
}

.select2.select2-container:focus {
  outline: 0;
  border-color: $input-border;
  box-shadow: $outline-box-shadow rgba($input-border, $outline-border-opacity);
}

.select2-container--default .select2-selection--single .select2-selection__arrow svg.dropdown-arrow {
  fill: $color-gray-60;
  position: absolute;
  top: 5px;
  right: 0;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow svg.dropdown-arrow {
  fill: $color-primary;
  transform: rotate(180deg) translateY(1px);
}

//Disabled styles
.select2-container--default.select2-container--disabled .select2-selection--single, .select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: $dropdown-disabled-background-color;
  cursor: not-allowed;

  &:focus {
    outline: 0;
  }

  .select2-selection__rendered, .select2-selection__rendered li {
    
    color: $dropdown-disabled-color;
    cursor: not-allowed;

    * {
      cursor: not-allowed;
    }
  }
}

input.select2-search__field:-ms-input-placeholder {
  color: $input-color-placeholder;
  margin-left: 8px;
}