.predictive-search {
  display: none;
  top: calc(100% + 0.1rem);
  left: -0.1rem;
  background-color: rgb(var(--color-background));
  z-index: 3;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

.predictive-search--search-template {
  z-index: 2;
  width: calc(100% + 0.2rem);
}

.predictive-search__results-groups-wrapper {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 749px) {
  .predictive-search--header {
    right: 0;
    left: 0;
    top: 100%;
  }

  .predictive-search__results-groups-wrapper {
    flex-direction: column;
  }

  .predictive-search__results-groups-wrapper:not(.predictive-search__results-groups-wrapper--no-suggestions) {
    /* On mobile, when there are no suggestions the first .predictive-search__results-groups-wrapper
     * is virtually empty due to a display: hidden on the predictive-search__pages-wrapper child.
     * This causes the gap to render and look like a big top margin */
    gap: 2rem;
  }
}

@media screen and (min-width: 750px) {
  .predictive-search {
    border-top: none;
    width: calc(100% + 0.2rem);
  }

  .header predictive-search {
    position: relative;
  }
}

predictive-search[open] .predictive-search,
predictive-search[loading] .predictive-search {
  display: block;
}
predictive-search[open] .predictive-search__group, predictive-search[loading] .predictive-search__group{
  display: none;
}
.predictive-search__result-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 2.5rem;
}
.predictive-search_key-trend ul li a{
  transition: border-color 0.2s ease , background-color 0.2s ease;
}
.predictive-search_key-trend ul li a:hover{
  border-color: rgba(var(--color-foreground) / 0.1);
  background-color: rgba(var(--color-foreground) / 0.05);
}

.predictive-search__result-group:first-child .predictive-search__pages-wrapper {
  display: none;
}

@media screen and (min-width: 750px) {
  .predictive-search__result-group:first-child .predictive-search__pages-wrapper {
    display: initial;
  }
  .predictive-search__result-group:first-child {
    flex: 0 0 2.5rem;
  }
  .predictive-search__results-groups-wrapper--no-products .predictive-search__result-group:first-child,
  .predictive-search__result-group:only-child {
    flex-grow: 1;
  }
}


predictive-search .spinner {
  width: 1.5rem;
  height: 1.5rem;
  line-height: 0;
}

predictive-search:not([loading]) .predictive-search__loading-state,
predictive-search:not([loading]) .predictive-search-status__loading {
  display: none;
}

predictive-search[loading] .predictive-search__loading-state {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

predictive-search[loading] .predictive-search__search-for-button {
  display: none;
}

predictive-search[loading] .predictive-search__results-groups-wrapper ~ .predictive-search__loading-state {
  display: none;
}

predictive-search[loading] .predictive-search__results-groups-wrapper ~ .predictive-search__search-for-button {
  display: initial;
}

.predictive-search__item-content {
  grid-area: product-content;
  display: flex;
  flex-direction: column;
}

.predictive-search__item-content--centered {
  justify-content: center;
}

.predictive-search__item-heading {
  margin: 0;
  font-family: var(--font-card-title-family);
  font-size: calc(var(--size-body)*var(--font-card-title-scale));
  letter-spacing: var(--font-card-title-spacing);
  text-transform: var(--font-card-title-transform);
  font-weight: var(--font-card-title-weight);
}

.predictive-search__item-query-result *:not(mark) {
  font-weight: bold;
}

.predictive-search__item-query-result mark {
  color: rgba(var(--color-foreground) / 0.75);
}

.predictive-search__item-query-result mark {
  background-color: yellow;
}

.predictive-search__item-vendor + .predictive-search__item-heading,
.predictive-search .price {
  margin-top: 0.5rem;
}
.predictive-search__list-item a{
  transition: border-color 0.2s ease;
}
.predictive-search__list-item a:hover{
  border-color: rgba(var(--color-foreground) / 0.3);
}