/***********************************************************************
 *  Tokenfield class overrides
 **********************************************************************/

/* form-control-sm props */
.tokenfield.form-control {
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

/* the whole area for entering text and token selections */
.tokenfield.focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgb(25 135 84 / 25%);
}

.tokenfield.focus.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgb(220 53 69 / 25%);
}

/* searching input field */
.tokenfield .token-input {
  margin-bottom: 0;
}

/* found token container */
.tokenfield .token {
  display: inline-flex;
  align-items: center;
}

/* token text */
.tokenfield .token .token-label {
  font-size: 0.875rem;
}

/* token close button */
.tokenfield .token .close {
  align-self: flex-start;
  font-size: 0.875rem;
  line-height: 0.5;
  text-decoration: none;
  padding-right: 0;
  height: auto;
  color: #adb5bd;
  font-family: inherit;
}

.tokenfield .token .close:hover {
  color: #6c757d;
}

.tokenfield .token.active {
  border-color: #6c757d;
}

/* make tt-dropdown to take the same witdh as its relative parent */
.tokenfield .twitter-typeahead .tt-dropdown-menu {
  width: 312px;
  margin: 10px -9px 0 -9px;
}

/* make same height as tt-input so they both overlap well */
.tokenfield .twitter-typeahead .tt-hint {
  height: auto;
}
