.search-container {
  position: relative;
}

.search-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1100;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-suggest.is-open {
  display: block;
}

.search-suggest .ss-section {
  padding: 12px 16px 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888888;
}

.search-suggest .ss-section + .ss-item {
  border-top: 0;
}

.search-suggest .ss-item {
  display: flex;
  align-items: baseline;
  gap: 1px;
  padding: 8px 16px;
  color: #242424;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.search-suggest .ss-item:hover,
.search-suggest .ss-item.is-active {
  background: #f6f6f6;
}

.search-suggest .ss-item b {
  color: #b50100;
  font-weight: 600;
}

.search-suggest .ss-product__img {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
  background: #f6f6f6;
}

.search-suggest .ss-product__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-suggest .ss-product__title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-suggest .ss-product__sku {
  font-size: 12px;
  color: #888888;
}

.search-suggest .ss-product__price {
  flex: none;
  font-weight: 600;
  white-space: nowrap;
}

.search-suggest .ss-term__name {
  flex: 1;
  min-width: 0;
}

.search-suggest .ss-term__count {
  flex: none;
  font-size: 12px;
  color: #888888;
}

.search-suggest .ss-all {
  justify-content: center;
  border-top: 1px solid #d0d0d0;
  color: #b50100;
  font-weight: 600;
}

.search-suggest .ss-converted {
  padding: 10px 16px 0;
  font-size: 13px;
  color: #666666;
}

.search-suggest .ss-converted b {
  color: #b50100;
  font-weight: 600;
}

.search-suggest .ss-empty {
  padding: 16px;
  font-size: 14px;
  color: #666666;
  text-align: center;
}

.search-suggest .ss-empty .ss-dym {
  display: inline;
  padding: 0;
  color: #b50100;
  font-weight: 600;
  text-decoration: underline;
}

.search-suggest .ss-empty .ss-dym:hover,
.search-suggest .ss-empty .ss-dym.is-active {
  background: none;
  text-decoration: none;
}

.search-didyoumean {
  margin: 16px 0;
  font-size: 16px;
}

.search-didyoumean a {
  color: #b50100;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .search-suggest {
    max-height: 60vh;
  }

  .search-suggest .ss-item {
    gap: 10px;
    padding: 8px 12px;
  }

  .search-suggest .ss-product {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "img body"
      "img price";
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
  }

  .search-suggest .ss-product__img {
    grid-area: img;
    width: 40px;
    height: 40px;
    align-self: center;
  }

  .search-suggest .ss-product__body {
    grid-area: body;
  }

  .search-suggest .ss-product__title {
    font-size: 13px;
  }

  .search-suggest .ss-product__price {
    grid-area: price;
    justify-self: start;
    font-size: 13px;
    white-space: normal;
  }

  .search-suggest .ss-section {
    padding: 10px 12px 4px;
  }
}
