.predictive-search {
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
}

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

.predictive-search__results-groups-wrapper {
  display: flex;
  padding-bottom: 10px;
}

@media screen and (max-width: 1199px) {
  .predictive-search{
    max-height: calc(100vh - 300px) !important;
  }
  .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) {
    gap: 20px;
  }
}

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

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

predictive-search[open] .predictive-search,
predictive-search[loading] .predictive-search {
  display: block;
}

.predictive-search__result-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 20px;
}

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

@media screen and (min-width: 750px) {
  .predictive-search__results-groups-wrapper--no-products .predictive-search__result-group:nth-child(2),
  .predictive-search__result-group:last-child .predictive-search__pages-wrapper {
    display: none;
  }
  .predictive-search__result-group:first-child .predictive-search__pages-wrapper {
    display: initial;
  }
  .predictive-search__result-group:first-child {
    flex: 0 0 264px;
  }
  .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: 15px;
  height: 15px;
  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: 10px;
}

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--link-with-thumbnail {
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-column-gap: 20px;
  grid-template-areas: 'product-image product-content';
}

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

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

.predictive-search__item-vendor {
  font-size: 12px;
}

.predictive-search__item-heading {
  margin: 0;
}

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


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

.predictive-search__item .price {
  font-size: 12px;
}

.predictive-search__item--term .icon-arrow {
  flex-shrink: 0;
}

.predictive-search__image {
  grid-area: product-image;
  object-fit: contain;
  font-family: 'object-fit: contain';
}
.search-modal__form .form-control{
  border-radius: 30px !important;
  border-color: transparent;
  position: relative;
  color: inherit;
  padding: 16px 50px 16px 30px;
}
.search-modal__form .search__button{
 position: absolute;
  right: 5px;
  top: 50%;
  z-index: 99;
  transform: translateY(-50%);
}
.search-modal{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.search-modal__content{
  position: relative;
  z-index: 9;
  padding: 50px 0;
 margin-top: -40px;
  transition: all .3s;
}
details[open] .header__icon-close {
  display: inline-block;
}
details[open] > .search-modal {
  opacity: 1;
}
details[open] .search-modal__content {
    margin-top: 0;
  transition: all .3s;
}

details[open] .modal-overlay:after {
  opacity: 1;
  visibility: visible;
}
details .header__icon-close {
  display: none;
}
.header__search-form .search__input{
  max-width: 350px;
}