tags-input { display: block; }
tags-input *, tags-input *:before, tags-input *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
tags-input .host { position: relative; margin-bottom: 0.3125rem; height: 2.3125rem; }
tags-input .host:active { outline: none; }
tags-input .tags {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  padding: 0.0625rem;
  overflow: hidden;
  word-wrap: break-word;
  cursor: text;
  background-color: $input-background-color;
  border: 1px solid $border-color;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  color: $input-font-color;
  height: 2.3125rem;
}
tags-input .tags.focused { outline: none; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); }
tags-input .tags .tag-list { margin: 0; padding: 0; list-style-type: none; }
tags-input .tags .tag-item {
  margin: 0.125rem;
  padding: 0 0.3125rem;
  display: inline-block;
  float: left;
  font-size: 0.875rem;
  height: 1.8rem;
  line-height: 1.8rem;
  border-radius: 3px;
  color: $base-background-color;
  background-color: $color-primary;
}
tags-input .tags .tag-item.selected { background-color: #ff5c5c; }
tags-input .tags .tag-item .remove-button {
  margin: 0 0 0 0.3125rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  vertical-align: middle;
  font: bold 1rem;
  color: $base-background-color;
}
tags-input .tags .tag-item .remove-button:active { color: #ff0000; }
tags-input .tags .input {
  -webkit-appearance: none;
  box-shadow: none;
  border: 0;
  outline: none;
  margin: 0.125rem;
  padding: 0;
  padding-left: 0.3125rem;
  float: left;
  height: 1.8rem;
}
tags-input .tags .input.invalid-tag { color: #ff0000; }
tags-input .tags .input::-ms-clear { display: none; }
tags-input.ng-invalid .tags { border: 1px solid #ff0000; }
tags-input[disabled] .host:focus { outline: none; }
tags-input[disabled] .tags { background-color: #eee; cursor: default; }
tags-input[disabled] .tags .tag-item { opacity: 0.65; color: #fff; background-color: $sub-header-color; }
tags-input[disabled] .tags .tag-item .remove-button { cursor: default; }
tags-input[disabled] .tags .tag-item .remove-button:active { color: #585858; }
tags-input[disabled] .tags .input { background-color: #eee; cursor: default; }
tags-input .autocomplete {
  margin-top: -0.0625rem;
  position: absolute;
  padding: 0.3125rem 0;
  z-index: 999;
  width: 100%;
  background-color: $input-background-color;
  border: 1px solid $border-color;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  color: $input-font-color;
}
tags-input .autocomplete .suggestion-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
  max-height: 18.75rem;
  overflow-y: auto;
  position: relative;
}
tags-input .autocomplete .suggestion-item {
  padding: 0.3125rem 0.625rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: $input-font-color;
  background-color: $input-background-color;
}
tags-input .autocomplete .suggestion-item.selected { color: #fff; background-color: #3599FF; }
tags-input .autocomplete .suggestion-item.selected em { color: #fff; background-color: #3599FF; }
tags-input .autocomplete .suggestion-item em { color: $input-font-color; }
