@import "../../../../scss/variables";

chip-input {
  display: block;
  min-height: $input-height;

  .mat-chip-list-wrapper {
    width: 100%;
    height: 100%;
    color: inherit;
    border: 1px solid $site-border-color-200;
    padding: 6px;
    line-height: normal;
    font-size: 1.4rem;
    font-family: inherit;
    background-color: inherit;
    box-sizing: border-box;
    border-radius: 2px;
    margin: 0;
  }

  .mat-chip-input {
    min-height: 24px;
    font: inherit;
    background: 0 0;
    color: currentColor;
    border: none;
    outline: 0;
    padding: 0;
    margin: 0;
    width: 0;
    max-width: 100%;
    vertical-align: bottom;
    text-align: inherit;
  }

  .mat-chip {
    &.invalid:after {
      display: block;
      position: absolute;
      bottom: 1px;
      left: 0;
      right: 0;
      margin: 0 auto;
      content: " ";
      width: 100%;
      border-bottom: 2px dotted $danger-bg-color;
    }
  }
}