// Basic search

.bz-search {
  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;
  }
}
