.ps {
  tags-input.bootstrap {
    box-shadow: none;
    border: none;
    padding: 0;
    min-height: 34px;

    .autocomplete, .tags {
      border-radius: 4px;
    }

    .autocomplete .suggestion-item.selected, .autocomplete .suggestion-item.selected em {
      color: #262626;
      background-color: #f5f5f5;
    }

    .host {
      margin: 0;
    }
    .tags {
      -moz-appearance: none;
      -webkit-appearance: none;
      border: 1px solid #ccc;
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
      -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
      -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
      -moz-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
      transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
      .tag-item {
        color: #fff;
        background: #428bca;
        border: 1px solid #357ebd;
        border-radius: 4px;
        .remove-button:hover {
          text-decoration: none;
        }
      }
      .tag-item.selected {
        color: #fff;
        background: #d9534f;
        border: 1px solid #d43f3a;
      }
    }
    .tags.focused {
      border: 1px solid #66afe9;
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
      -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    }
    .autocomplete {
      .suggestion-item {
        em {
          color: #000;
          background-color: #fff;
        }
      }
    }
  }
  tags-input.bootstrap.ng-invalid {
    .tags {
      border-color: #843534;
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
      -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
    }
  }
  tags-input.bootstrap[disabled] {
    .tags {
      background-color: #eee;
      .tag-item {
        background: #337ab7;
        opacity: .65;
      }
      .input {
        background-color: #eee;
      }
    }
  }
  .input-group {
    tags-input.bootstrap {
      padding: 0;
      display: table-cell;
    }
    tags-input.bootstrap:not(:first-child) {
      .tags {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
      }
    }
    tags-input.bootstrap:not(:last-child) {
      .tags {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
      }
    }
  }
  .input-group-lg {
    tags-input.bootstrap:first-child {
      .tags {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
      }
    }
    tags-input.bootstrap:last-child {
      .tags {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
      }
    }
  }
  .input-group-sm {
    tags-input.bootstrap:first-child {
      .tags {
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
      }
    }
    tags-input.bootstrap:last-child {
      .tags {
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
      }
    }
  }
  .input-group-lg tags-input.bootstrap, tags-input.bootstrap.ti-input-lg {
    min-height: 46px;
  }
  .input-group-lg tags-input.bootstrap .tags, tags-input.bootstrap.ti-input-lg .tags {
    border-radius: 6px;
  }
  .input-group-lg tags-input.bootstrap .tags .tag-item, tags-input.bootstrap.ti-input-lg .tags .tag-item {
    height: 38px;
    line-height: 37px;
    font-size: 18px;
    border-radius: 6px;
  }
  .input-group-lg tags-input.bootstrap .tags .tag-item .remove-button, tags-input.bootstrap.ti-input-lg .tags .tag-item .remove-button {
    font-size: 20px;
  }
  .input-group-lg tags-input.bootstrap .tags .input, tags-input.bootstrap.ti-input-lg .tags .input {
    height: 38px;
    font-size: 18px;
  }
  .input-group-sm tags-input.bootstrap, tags-input.bootstrap.ti-input-sm {
    min-height: 30px;
  }
  .input-group-sm tags-input.bootstrap .tags, tags-input.bootstrap.ti-input-sm .tags {
    border-radius: 3px;
  }
  .input-group-sm tags-input.bootstrap .tags .tag-item, tags-input.bootstrap.ti-input-sm .tags .tag-item {
    height: 22px;
    line-height: 21px;
    font-size: 12px;
    border-radius: 3px;
  }
  .input-group-sm tags-input.bootstrap .tags .tag-item .remove-button, tags-input.bootstrap.ti-input-sm .tags .tag-item .remove-button {
    font-size: 16px;
  }
  .input-group-sm tags-input.bootstrap .tags .input, tags-input.bootstrap.ti-input-sm .tags .input {
    height: 22px;
    font-size: 12px;
  }
  .has-feedback {
    tags-input.bootstrap {
      .tags {
        padding-right: 30px;
      }
    }
  }
  .has-success {
    tags-input.bootstrap {
      .tags {
        border-color: #3c763d;
      }
      .tags.focused {
        border-color: #2b542c;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
      }
    }
  }
  .has-error {
    tags-input.bootstrap {
      .tags {
        border-color: #a94442;
      }
      .tags.focused {
        border-color: #843534;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
      }
    }
  }
  .has-warning {
    tags-input.bootstrap {
      .tags {
        border-color: #8a6d3b;
      }
      .tags.focused {
        border-color: #66512c;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
      }
    }
  }
}