.form-input__input-multi-select{
  background-color: $input_background;
  width: 100%;
  cursor: pointer;
  height: 100%;
  display: table;
  white-space: nowrap;
  overflow: hidden;
  table-layout: fixed;
  text-overflow: ellipsis;
  &:active, &:focus{
    outline: none;
  }
  &-light{
    color: $input_color-light
  }
  &-dark{
    color: $input_color-dark
  }
  &-lg{
    padding: $input_padding-lg;
    font-size: $input_font-size-lg;
  }
  &-md{
    padding: $input_padding-md;
    font-size: $input_font-size-md;
  }
  &-sm{
    padding: $input_padding-sm;
    font-size: $input_font-size-sm;
  }
}

.form-input__input-multi-select-wrap{
  display: flex;
  width: 100%;
}

.form-input__input-multi-select-value{
  max-width: 100%;
  display: table-cell;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-select{
  display: inline-block;
}

.select-item{
  margin-right: 4px;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #626262;
  background-color: rgba(0, 0, 0, 0.05);
  &_dark{
    color: #fff;
    background-color: rgba(255, 255, 255, 0.3);
  }
  &:last-child{
    margin-right: 0;
  }
}

.form-input__input-multi-select-list{
  position: absolute;
  left: -1px;
  right: -1px;
  top: 100%;
  max-height: 320px;
  background-color: #f2f2f2;
  border-radius: 3px;
  box-shadow: 0 0 3px #2b2b2b;
  z-index: 20;
  overflow: auto;
  &-dark{
     background-color: #494949;
     box-shadow: 0 0 3px #000;
   }
}

.form-input__input-multi-select-item{
  padding: 10px 10px 10px 40px;
  border-bottom: 1px solid rgba(0,0,0, 0.05);
  font-size: 0.75rem;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease-in-out;
  &_disabled{
    background-color: rgba(0,0,0, 0.05);
  }
  &:hover{
    background-color: rgba(0,0,0, 0.05);
  }
  &_dark{
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255, 0.15);
    &:hover{
      background-color: rgba(255,255,255, 0.1);
    }
  }
  &_no-select{
    cursor: default;
    padding: 10px;
    background-color: rgba(0,0,0, 0.02);
    &:hover{
      background-color: rgba(0,0,0, 0.02);
    }
  }
  &:last-child{
    border: none;
  }
}

.form-input__input-multi-select-icon{
  position: absolute;
  left: 5px;
  top: 0;
  width: 25px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  i{
    padding: 3px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
    &:hover{
      background-color: rgba(0, 0, 0, 0.25);
    }
  }
  svg{
    height: 15px;
    fill: #fff;
    transform: scale(0);
    transition: all 0.2s ease-in-out;
  }
  &_dark{
    i{
      background-color: rgba(255, 255, 255, 0.2);
      &:hover{
        background-color: rgba(255, 255, 255, 0.3);
      }
    }
  }
  &_checked{
    i{
      background-color: #01adf6;
      &:hover{
        background-color: #0190cf;
      }
    }
    svg{
      transform: unset;
    }
  }
}
