body.bhss-frontend-enabled .wd-search-form .autocomplete-suggestions,
body.bhss-frontend-enabled .wd-header-search .autocomplete-suggestions,
body.bhss-frontend-enabled .wd-search-full-screen .autocomplete-suggestions,
body.bhss-frontend-enabled .woodmart-search-full-screen .autocomplete-suggestions,
body.bhss-frontend-enabled .wd-search-form .wd-search-results,
body.bhss-frontend-enabled .wd-header-search .wd-search-results,
body.bhss-frontend-enabled .wd-search-full-screen .wd-search-results,
body.bhss-frontend-enabled .woodmart-search-full-screen .wd-search-results,
body.bhss-frontend-enabled .wd-search-form .wd-dropdown-results,
body.bhss-frontend-enabled .wd-header-search .wd-dropdown-results,
body.bhss-frontend-enabled .wd-search-full-screen .wd-dropdown-results,
body.bhss-frontend-enabled .woodmart-search-full-screen .wd-dropdown-results {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

form.bhss-search-bound,
form[data-bhss-bound="1"] {
  position: relative;
}

.bhss-live-results[hidden] {
  display: none !important;
}

.bhss-live-results {
  position: absolute;
  z-index: 99999;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  max-height: min(72vh, 650px);
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  color: #242424;
  text-align: left;
}

.bhss-search-heading {
  padding: 11px 14px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  color: #777;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bhss-result-link {
  color: inherit;
  text-decoration: none;
}

.bhss-categories-list {
  display: block;
}

.bhss-category-result {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bhss-category-name {
  font-size: 14px;
  font-weight: 500;
}

.bhss-category-count {
  color: #888;
  font-size: 12px;
}

.bhss-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.bhss-product-result {
  display: flex;
  min-width: 0;
  min-height: 101px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-right: 1px solid rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
}

.bhss-product-result:nth-child(3n) {
  border-right: 0;
}

.bhss-product-image {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
}

.bhss-product-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.bhss-product-name {
  display: -webkit-box;
  overflow: hidden;
  color: #242424;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bhss-product-sku {
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.2;
}

.bhss-category-result:hover,
.bhss-category-result.is-active,
.bhss-product-result:hover,
.bhss-product-result.is-active,
.bhss-view-all:hover,
.bhss-view-all.is-active {
  background: #f7f7f7;
  color: inherit;
}

.bhss-view-all {
  display: block;
  padding: 15px 14px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.bhss-search-message {
  padding: 17px 14px;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}

.bhss-search-message.is-loading {
  color: #777;
}

.bhss-search-message.is-error {
  color: #9a2f2f;
}

@media (min-width: 768px) {
  .bhss-live-results {
    position: fixed;
    top: var(--bhss-desktop-top, 64px);
    right: auto;
    left: var(--bhss-desktop-left, 15px);
    width: var(--bhss-desktop-width, min(900px, calc(100vw - 30px)));
    max-width: calc(100vw - 30px);
    max-height: var(--bhss-desktop-max-height, min(72vh, 650px));
  }
}

@media (max-width: 767px) {
  .bhss-live-results {
    position: fixed;
    top: var(--bhss-mobile-top, 64px);
    right: auto;
    left: var(--bhss-mobile-left, 8px);
    width: var(--bhss-mobile-width, calc(100vw - 16px));
    max-width: none;
    max-height: var(--bhss-mobile-max-height, calc(100dvh - 72px));
    border-radius: 7px;
    overscroll-behavior: contain;
  }

  .bhss-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bhss-product-result,
  .bhss-product-result:nth-child(3n) {
    min-height: 82px;
    padding: 8px 12px;
    border-right: 0;
  }

  .bhss-product-image {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .bhss-product-name {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .bhss-category-result {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 767px) {
    .bhss-live-results {
      max-height: var(--bhss-mobile-max-height, calc(100vh - 72px));
    }
  }
}
