.bz-autocomplete-searchbox {
  align-items: center;
  background-color: $bz-neutral-100;
  border: 1px solid $bz-neutral-300;
  border-radius: $bz-border-radius-m;
  display: flex;
  padding: $bz-space-inset-squish-s;
  position: relative;

  &__input {
    background: transparent;
    border: none;
    flex-grow: 1;
    font-size: $bz-font-size-body;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    &::placeholder {
      color: $bz-neutral-500;
    }

    &:focus {
      outline: 0;
      box-shadow: none;
    }

    &::-ms-clear {
      display: none;
    }
  }

  &__clear-icon {
    position: absolute;
    right: 8px;
    top: 3px;
  }

  &:focus {
    border: 1px solid $bz-theme-400;
  }

  &--focused {
    border: 1px solid $bz-theme-400;
  }

  &--opened {
    border-radius: $bz-border-radius-m $bz-border-radius-m 0 0;
  }
}

.bz-autocomplete-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;
  display: flex;
  flex-direction: column;
  overflow: auto;
  position: absolute;
  user-select: none;
  width: 100%;

  .bz-option.bz-option--selected:not(.bz-option--active):not(:hover) {
    color: $bz-neutral-600;
    background-color: $bz-neutral-100;
  }

  &--s {
    max-height: 185px;

    .bz-option {
      height: 37px;
      min-height: 37px;
    }
  }

  &--m {
    max-height: 275px;

    .bz-option {
      height: 55px;
      min-height: 55px;
    }
  }
}
