.input {
  $self: &;
  position: relative;

  &--with-icon {
    input {
      padding-left: 40px;
    }

    .form-control-xs {
      padding-left: 35px;
    }

    #{$self}__icon {
      display: flex;
      left: 0.75rem;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
    }
  }

  img {
    width: 100%;
  }

  &.input--right {
    input,
    .form-control.xs {
      padding-left: 10px;
      padding-right: 32px;
    }

    #{$self}__icon {
      left: auto;
      right: 10px;
    }
  }

  &.form-control-sm {
    & ~ .input__icon img {
      padding: 2px;
    }
  }

  .form-control-xs {
    & ~ .input__icon {
      width: 14px;
    }
  }
}

//selectize item color modifier
.multi-tag {
  .selectize-control.multi .selectize-input {
    @extend .form-control;
    height: auto;
    font-weight: 300;
  }

  &--gray {
    .selectize-control.multi .selectize-input > div {
      background: #c5c5c5;
      border: none;
      border-radius: 0;
      padding: auto 6px;
      margin: 4px;
      span {
        .close {
          background-color: #ffffff;
          opacity: 1;
          margin-left: 7px;
          padding: 0 px;
          padding-bottom: 3px;
          border-radius: 2px;
          margin-top: 5.5px;
          width: 15px;
          height: 15px;
          position: relative;
        }
        .icon {
          position: absolute;
          top: 10%;
          left: -50%;
          transform: translate(-10%, 50%);

          &:before,
          &:after {
            position: absolute;
            left: 15px;
            content: " ";
            height: 10px;
            width: 1px;
            background-color: #333;
          }
          &:before {
            transform: rotate(35deg);
          }
          &:after {
            transform: rotate(-35deg);
          }
        }
      }
    }

    .selectize-control.multi .selectize-input > div.active {
      background: #a7a6a6;
      border: none;
      border-radius: 0;

      span {
        .close {
          background-color: #ffffff;
        }
      }
    }
  }

  &--text-dark {
    .selectize-control.multi .selectize-input > div {
      color: #000000;
    }

    .selectize-control.multi .selectize-input > div.active {
      color: #000000;
    }
  }
}
