.b-search-box {
  position: relative;
  &__results {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    border-radius: 2px;
    width: 100%;
    margin-top: 40px;
    box-shadow: $shadow;
  }
  &__wrap {
    padding: 9px 13px;
  }
  &__item {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  &__group {
    & + .b-search-box__group {
      margin-top: 8px;
    }
  }
  &__group-title {
    display: block;
    border-bottom: 1px solid $black;
    padding-bottom: 4px;
  }
  &__group-items {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    margin-top: 3px;
  }
  &__group-link {
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    font-size: 14px;
    color: $black;
    white-space: nowrap;
  }
  &__form {
    position: relative;
  }
  &__input {
    height: 30px;
    border-radius: 2px;
    background-color: rgba($white, .1);
    border: 0;
    transition: background-color .2s, width .2s;
    font-size: 12px;
    width: 180px;
    padding: 0 12px;
    color: $white;
    @include placeholder {
      color: $white;
    }
    &:focus {
      background-color: $white;
      transition-duration: .3s;
      color: $black;
      width: 220px;
      @include placeholder {
        color: $black;
      }
      & + .b-search-box__right .b-search-box__magnifier {
        path {
          transition-duration: .3s;
          fill: $black;
        }
      }
    }
  }
  &__right {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
  }
  &__right-item {
    margin-right: 10px;
  }
  &__magnifier {
    width: 14px;
    path {
      fill: $white;
      transition: fill .2s;
    }
  }
  &__highlight {
    font-weight: 600;
  }
  &__not-found {
    font-size: 14px;
  }
}
