.predictive-search {
  background-color: rgb(var(--color-background));
  border-bottom-left-radius: var(--popup-corner-radius);
  border-bottom-right-radius: var(--popup-corner-radius);
  border-color: rgba(var(--color-foreground), var(--popup-border-opacity));
  border-style: solid;
  border-width: var(--popup-border-width);
  box-shadow: var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset) var(--popup-shadow-blur-radius) rgba(var(--color-shadow), var(--popup-shadow-opacity));
  display: none;
  left: -.1rem;
  position: absolute;
  top: calc(100% + .1rem);
  z-index: 3;
}
.predictive-search--search-template {
  width: calc(100% + .2rem);
  z-index: 2;
}
@media screen and (max-width: 749px) {
  .predictive-search--header {
    left: 0;
    right: 0;
    top: 100%;
  }
}
@media screen and (max-width: 989px) {
  .predictive-search {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
}
@media screen and (min-width: 750px) {
  .predictive-search {
    border-top: none;
    width: calc(100% + .2rem);
  }
  .header predictive-search {
    position: relative;
  }
}
predictive-search[loading] .predictive-search,
predictive-search[open] .predictive-search {
  display: block;
}
.predictive-search__heading {
  align-items: center;
  border-bottom: .1rem solid rgba(var(--color-foreground), .08);
  color: rgba(var(--color-foreground), .7);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.5rem 0 .75rem;
  width: calc(100% - 4rem);
}
predictive-search .spinner {
  height: 1.5rem;
  width: 1.5rem;
}
.predictive-search__heading .spinner {
  margin: 0 .2rem 0 2rem;
}
predictive-search:not([loading]) .predictive-search-status__loading,
predictive-search:not([loading]) .predictive-search__heading .spinner,
predictive-search:not([loading]) .predictive-search__loading-state {
  display: none;
}
predictive-search[loading] .predictive-search__loading-state {
  display: flex;
  justify-content: center;
  padding: 1rem;
}
predictive-search[loading] .predictive-search__heading ~ .predictive-search__loading-state,
predictive-search[loading] .predictive-search__results-list:first-child {
  display: none;
}
.predictive-search__list-item:nth-last-child(2) {
  border-bottom: .1rem solid rgba(var(--color-foreground), .08);
}
.predictive-search__list-item:hover > *,
.predictive-search__list-item[aria-selected=true] > * {
  background-color: rgba(var(--color-foreground), .04);
  color: rgb(var(--color-foreground));
}
.predictive-search__list-item:hover .predictive-search__item-heading,
.predictive-search__list-item[aria-selected=true] .predictive-search__item-heading {
  text-decoration: underline;
  text-underline-offset: .3rem;
}
.predictive-search__item {
  display: flex;
  padding: 1rem 2rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.predictive-search__item--link {
  grid-column-gap: 2rem;
  display: grid;
  grid-template-areas: "product-image product-content";
  grid-template-columns: 5rem 1fr;
}
.predictive-search__item-content {
  display: flex;
  flex-direction: column;
  grid-area: product-content;
}
.predictive-search__item-content--centered {
  justify-content: center;
}
.predictive-search__item-vendor {
  font-size: .9rem;
}
.predictive-search__item-heading {
  margin: 0;
}
.predictive-search__item .price {
  color: rgba(var(--color-foreground), .7);
  font-size: 1.2rem;
}
.predictive-search .price,
.predictive-search__item-vendor + .predictive-search__item-heading {
  margin-top: .5rem;
}
.predictive-search__item--term {
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 2rem;
  word-break: break-all;
}
@media screen and (min-width: 750px) {
  .predictive-search__item--term {
    padding-bottom: 1rem;
    padding-top: 1rem;
  }
}
.predictive-search__item--term .icon-arrow {
  color: rgb(var(--color-link));
  flex-shrink: 0;
  height: calc(var(--font-heading-scale)*1.4rem);
  margin-left: calc(var(--font-heading-scale)*2rem);
  width: calc(var(--font-heading-scale)*1.4rem);
}
.predictive-search__image {
  font-family: "object-fit: contain";
  grid-area: product-image;
  object-fit: contain;
}
