$autocomplete-box-height: 44px;
$autocomplete-box-opened-height: 104px;
.bz-autocomplete-multiple-searchbox {
  background-color: $bz-neutral-100;
  border: 1px solid $bz-neutral-300;
  border-radius: $bz-border-radius-m;
  position: relative;
  padding: $bz-space-inset-s $bz-space-inset-m;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  overflow: hidden;
  transition: all 0.3s ease-in-out;

  &:focus,
  &--focused,
  &__hover {
    flex-direction: column;
    overflow: auto;
    .bz-chip {
      margin: 0 0.4rem 0.4rem 0 !important;
      padding: 0.2rem $bz-space-inset-s;
    }
    .badge-count {
      display: none;
    }
  }

  &__input-span {
    // width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    > input {
      width: 100%;
    }
  }

  &__input--visible {
    visibility: visible;
    width: 100%;
  }

  &__input--hidden {
    visibility: hidden;
    width: 0;
  }

  .bz-chip {
    transition: all 0.2s ease-in-out;
    margin: 0 0.4rem 0.8rem 0;
    padding: 0.2rem $bz-space-inset-s;

    &__close_button {
      display: flex;
      align-items: center;
      padding: 3px 0 0 $bz-space-inset-s;

      &::ng-deep {
        svg {
          fill: $bz-neutral-500;
        }
      }
    }

    > div {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    a {
      margin-left: 10px;
      color: gray;
      min-width: 16px;
    }
  }

  .badge-count {
    border-radius: 12px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    border: 1px solid $bz-theme-400;
    color: $bz-theme-400;
    padding: 0 10px;
    font-size: 12px;
    position: relative;
    top: 4px;
  }


  &--focused {    
    border: 1px solid $bz-theme-400;
  }

  &--opened {
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  }



  .searchIcon {
    width: 30px;
  }

  input {
    background: transparent;
    border: none;
    flex-grow: 1;
    font-size: $bz-font-size-body;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    top: 1px;

    &::placeholder {
      color: $bz-neutral-500;
    }

    &:focus {
      outline: 0;
    }
  }
}

.bz-autocomplete-multiple-panel {
  background-color: $bz-neutral-100;
  border: 1px solid $bz-theme-400;
  border-top: 0;
  border-radius: 0 0 $bz-border-radius-m $bz-border-radius-m;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08), 0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: auto;
  position: absolute;
  user-select: none;
  width: 100%;

  .bz-option {
    display: flex;
    align-items: center;
  }

  &--s {
    max-height: 185px;
  }

  &--s .bz-option {
    height: 37px;
    min-height: 37px;
  }

  &--m {
    max-height: 275px;
  }

  &--m .bz-option {
    height: 55px;
    min-height: 55px;
  }
}

.bz-autocomplete-multiple-panel .bz-option.bz-option--selected:not(.bz-option--active):not(:hover) {
  color: $bz-neutral-600;
  background-color: $bz-neutral-100;
}
