.bps-live-search-enabled {
  position: relative;
  overflow: visible;
}

.bps-live-search {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 120;
  overflow: hidden auto;
  max-height: min(70vh, 560px);
  border: 1px solid var(--batya-border, #e4e4e4);
  border-radius: var(--batya-radius, 12px);
  background: var(--batya-card, #fff);
  box-shadow: 0 18px 42px rgba(20, 20, 20, .14);
  color: var(--batya-text, #171717);
}

.bps-live-search[hidden] {
  display: none !important;
}

.bps-live-search__status {
  padding: 15px 16px;
  color: var(--batya-text-soft, #777);
  font-size: 14px;
  line-height: 1.35;
}

.bps-live-search__status[data-state="error"] {
  color: #8b3a32;
}

.bps-live-search__status[data-state="corrected"] {
  padding-top: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--batya-border, #ececec);
  background: var(--batya-bg, #faf7f3);
  color: var(--batya-text-soft, #666);
  font-size: 12.5px;
}

.bps-search-correction {
  margin-bottom: 16px;
}

.bps-live-search__results {
  display: grid;
}

.bps-live-search__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--batya-border, #ececec);
  color: inherit;
  text-decoration: none;
}

.bps-live-search__item:hover,
.bps-live-search__item.is-active {
  background: var(--batya-brand-soft, #fff3e8);
  color: inherit;
}

.bps-live-search__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.bps-live-search__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bps-live-search__body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.bps-search-highlight {
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 750;
}

.bps-live-search__sku .bps-search-highlight,
.bps-mobile-search__result-sku .bps-search-highlight {
  font-weight: 650;
}

.bps-live-search__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--batya-text, #171717);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bps-live-search__lower {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 0;
}

.bps-live-search__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  min-width: 0;
  color: var(--batya-text-soft, #777);
  font-size: 11.5px;
  line-height: 1.25;
}

.bps-live-search__stock--instock {
  color: #437144;
}

.bps-live-search__stock--outofstock {
  color: var(--batya-text-soft, #777);
}

.bps-live-search__price {
  flex: 0 0 auto;
  color: var(--batya-text, #171717);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.bps-live-search__price .price,
.bps-live-search__price ins {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.bps-live-search__price del {
  margin-right: 5px;
  color: var(--batya-text-soft, #888);
  font-size: 11.5px;
  font-weight: 400;
  opacity: .65;
}

.bps-live-search__all[hidden] {
  display: none !important;
}

.bps-live-search__all {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--batya-border, #e4e4e4);
  background: var(--batya-card, #fff);
  color: var(--batya-text, #171717);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bps-live-search__all:hover {
  background: var(--batya-brand-soft, #fff3e8);
  color: inherit;
}

.bps-live-search__all:focus-visible {
  outline: 2px solid var(--batya-text, #171717);
  outline-offset: -3px;
  background: var(--batya-brand-soft, #fff3e8);
  color: inherit;
}

.bps-live-search__all-arrow {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .bps-live-search {
    top: calc(100% + 6px);
    max-height: min(68vh, 520px);
  }

  .bps-live-search__item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
  }

  .bps-live-search__image {
    width: 52px;
    height: 52px;
  }

  .bps-live-search__lower {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .bps-live-search__price {
    font-size: 15px;
  }
}
