.chip {
  &:focus {
    outline: none;
    background-color: $chip-selected-color;
    color: #fff;
  }

  display: inline-block;
  height: calculateRem(32px);
  font-size: calculateRem(13px);
  font-weight: 500;
  color: rgba(0,0,0,.6);
  line-height: calculateRem(32px);
  padding: 0 calculateRem(12px);
  border-radius: calculateRem(16px);
  background-color: $chip-bg-color;
  margin-bottom: $chip-margin;
  margin-right: $chip-margin;

  > img {
    float: left;
    margin: 0 calculateRem(8px) 0 calculateRem(-12px);
    height: calculateRem(32px);
    width: calculateRem(32px);
    border-radius: 50%;
  }

  .close {
    cursor: pointer;
    float: right;
    font-size: calculateRem(16px);
    line-height: calculateRem(32px);
    padding-left: calculateRem(8px);
  }

  &.error {
    background-color: $error-color;
    color: $surface-font-color;
  }

  &.success {
    background-color: $success-color;
    color: black;
  }
}

.chips {
  border: none;
  border-bottom: calculateRem(1px) solid $chip-border-color;
  box-shadow: none;
  margin: $input-margin;
  min-height: calculateRem(45px);
  outline: none;
  transition: all .3s;

  &.focus {
    border-bottom: calculateRem(1px) solid $chip-selected-color;
    box-shadow: 0 calculateRem(1px) 0 0 $chip-selected-color;
  }

  &:hover {
    cursor: text;
  }

  .input {
    background: none;
    border: 0;
    color: rgba(0,0,0,.6);
    display: inline-block;
    font-size: $input-font-size;
    height: $input-height;
    line-height: calculateRem(32px);
    outline: 0;
    margin: 0;
    padding: 0 !important;
    width: calculateRem(120px) !important;
  }

  .input:focus {
    border: 0 !important;
    box-shadow: none !important;
  }

  // Autocomplete
  .autocomplete-content {
    margin-top: 0;
    margin-bottom: 0;
  }
}

// Form prefix
.prefix ~ .chips {
  margin-left: 3rem;
  width: 92%;
  width: calc(100% - 3rem);
}
.chips:empty ~ label  {
  font-size: 0.8rem;
  transform: translateY(-140%);
}
