.product-search-autocomplete {
  position: relative;
  width: 100%;
}

.region-banner .product-search-autocomplete {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.region-header .product-search-autocomplete {
  max-width: 420px;
  margin-left: auto;
  margin-right: 50px;
  margin-top: 18px;
}

/*header:has(.region-header .product-search-autocomplete) {
  height: auto;
  min-height: 150px;
}
*/
@media screen and (max-width: 1000px) {
/*  header:has(.region-header .product-search-autocomplete) {
    padding-bottom: 12px;
  }
*/
  .region-header .product-search-autocomplete {
    margin-right: auto;
  }

  .region-banner {
    clear: both;
  }
}

.product-search-autocomplete__input {
  display: block;
  width: 100%;
}

.product-search-autocomplete__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
  z-index: 50;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

.product-search-autocomplete__trending-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.product-search-autocomplete__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-search-autocomplete__chip {
  background: transparent;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.product-search-autocomplete__list {
  display: flex;
  flex-direction: column;
}

.product-search-autocomplete__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
}

.product-search-autocomplete__item:hover {
  background: rgba(0,0,0,.04);
}

.product-search-autocomplete__thumb {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-search-autocomplete__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-search-autocomplete__title {
  font-weight: 600;
  color: #1a73e8;
  margin-bottom: 4px;
}

.product-search-autocomplete__excerpt {
  color: rgba(0,0,0,.7);
  font-size: 0.95em;
}

.product-search-autocomplete__see-all {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #1a73e8;
  padding: 8px 12px;
  border-radius: 6px;
}

.product-search-autocomplete__see-all:hover {
  background: rgba(0,0,0,.04);
}

.product-search-autocomplete__latest {
  margin-bottom: 16px;
}

.product-search-autocomplete__latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-search-autocomplete__latest-title {
  font-weight: 600;
  color: rgba(0,0,0,.85);
}

.product-search-autocomplete__latest-delete {
  background: none;
  border: none;
  color: #1a73e8;
  cursor: pointer;
  padding: 0;
  font-size: 0.9em;
}

.product-search-autocomplete__latest-list {
  display: flex;
  flex-direction: column;
}

.product-search-autocomplete__latest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: #188038;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.product-search-autocomplete__latest-item:last-child {
  border-bottom: none;
}

.product-search-autocomplete__latest-item:hover {
  background: rgba(0,0,0,.04);
}

.product-search-autocomplete__latest-icon svg {
  display: block;
}

.product-search-autocomplete__no-results {
  padding: 16px;
  color: rgba(0, 0, 0, .7);
  text-align: center;
  font-size: 0.95em;
}
