.header-search-bar {
  --header-search-bar-slide-anime-duration: 200ms;

  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  column-gap: var(--header-column-gap);
  align-items: center;
  justify-content: start;
  order: 30;
  width: 100%;
  height: 100%;
  margin-inline-start: auto;
  pointer-events: none;
  opacity: 0;
  transition:
    z-index 1ms ease var(--header-search-bar-slide-anime-duration),
    opacity var(--header-search-bar-slide-anime-duration) ease-in,
    transform var(--header-search-bar-slide-anime-duration) ease-in;
}

.header-search-bar.divider::after {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 4;
  height: 1px;
  content: "";
  background-color: rgba(var(--color-entry-line), 1);
}

@media (max-width: 959px) {
  .header-search-bar {
    margin-inline-start: 0;
  }
}

.header-search-bar.open {
  z-index: calc(var(--header-nav-dropdown-menu-z-index) + 1);
  pointer-events: all;
  opacity: 1;
  transition:
    opacity var(--header-search-bar-slide-anime-duration) ease-in,
    transform var(--header-search-bar-slide-anime-duration) ease-in;
}

.header-search-bar--lockscreen {
  overflow: hidden !important;
}

.header-search-bar__backdrop {
  position: fixed;
  inset-inline-start: 0;
  display: block !important;
  width: 100%;
  height: 100vh;
  background: rgb(0 0 0 / 40%);
}

.header-search-bar__icon {
  box-sizing: content-box;
  display: inline-flex;
  flex-shrink: 0;
  justify-self: end;
  width: 28px;
  height: 28px;
}

@media (max-width: 959px) {
  .header-search-bar__icon {
    width: 26px;
    height: 26px;
  }
}

.header-search-bar__form {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  width: 100%;
  min-height: 100%;
  padding: 22px 48px;
  background-color: rgba(var(--color-background), 1);
}

@media (max-width: 959px) {
  .header-search-bar__form {
    padding: 10px 20px;
  }
}

.header-search-bar__form .button {
  box-sizing: content-box;
  width: 26px;
  height: 26px;
}

@media (min-width: 960px) {
  .header-search-bar__form .button {
    width: 28px;
    height: 28px;
  }
}

.header-search-bar__form .field__input {
  flex: 1;
  width: 100%;
  padding: 0;
}

.header-search-bar__form .field__input::placeholder {
  opacity: 1;
}

[layout$="_wrap_menu"] .header__container-top .header-search-bar {
  order: 10;
  margin-inline-start: 0;
}

.header-search-bar__results {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 10px 48px;
  background-color: rgba(var(--color-background), 1);
}

@media (max-width: 959px) {
  .header-search-bar__results {
    padding: 0 20px;
  }
}

.header-search-bar__results.shown {
  display: flex;
}

.header-search-bar__results-loading {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.header-search-bar__results-spinner {
  width: 20px;
  height: 20px;
  color: rgba(var(--color-text), 1);
  animation: animation-circling linear 1.5s infinite;
}

.header-search-bar__results-list {
  display: block;
}

.header-search-bar__results.loading {
  align-items: center;
  justify-content: center;
}

.header-search-bar__results.loading .header-search-bar__results-loading {
  display: flex;
}

.header-search-bar__results.loading .header-search-bar__results-list {
  display: none;
}

.plugin-product-search-index-input {
  display: flex;
}

.plugin-product-search-index-input .plugin-product-search-searchInput,
.plugin-product-search-index-input-clear-btn {
  font-size: 16px;
  line-height: 22px;
}

.plugin-product-search-searchInputWrap {
  border-bottom: 1px solid rgba(var(--color-text), 0.1);
}
.plugin-product-search-SearchResult-word-side {
  margin-bottom: 32px;
}
.plugin-product-search-keywords--isMobile {
  padding-left: 0;
}
.plugin-product-search-SearchBar .plugin-product-search-SearchResult {
  padding-top: 20px;
  padding-bottom: 20px;
}
.plugin-product-search-keyword,
.plugin-product-search-SuggestPageWrap .plugin-product-search-SuggestPagePage,
.plugin-product-search-keywords--isMobile .plugin-product-search-keyword {
  border-radius: 100px;
}
.plugin-product-search-keywordText a.keyword-link > span,
.plugin-product-search-SuggestPageWrap .plugin-product-search-SuggestPagePage > span {
  color: #0D37E2;
}
.plugin-product-search-SuggestPageWrap {
  margin-top: 20px;
}
.plugin-product-search-SuggestPageWrap .plugin-product-search-SuggestPageTitle {
  border-top: 1px solid rgba(var(--color-text), 0.1);
  padding-bottom: 20px;
}
.plugin-product-search-SuggestPageWrap .plugin-product-search-SuggestPagePage:hover {
  background-color: rgba(48, 41, 56, 0.08);
}
.plugin-product-search-SearchResult .plugin-product-search-SearchResult--loading {
  border-top: none !important;
}
.plugin-product-search-RecommendProducts {
  margin-right: 0;
}
.plugin-product-search-SearchBar .plugin-product-search-SearchResult-word-side {
  width: 100%;
  flex: 1;
}
.plugin-product-search-RecommendProducts-container {
  width: 670px;
  flex-shrink: 0;
  flex: inherit;
}
.plugin-product-search-RecommendProducts {
  gap: 20px;
}
.plugin-product-search-ProductItem {
  margin-right: 0;
  margin-bottom: 0;
}

.plugin-product-search-SuggestPageWrap .plugin-product-search-SuggestPageTitle {
  letter-spacing: 0;
  margin-left: 0;
  padding-left: 12px;
  padding-top: 20px;
}

.plugin-product-search-RecommendProducts--isMobile .plugin-product-search-ProductItem {
  width: calc((100% - 20px) / 2);
  margin: 0;
}

.plugin-product-search-ProductItem .plugin-product-search-ProductImage.themeVersion3_0 {
  border-radius: 8px;
  overflow: hidden;
}
.plugin-product-search-history {
  padding-bottom: 20px;
}
.plugin-product-search-history-record {
  border-radius: 100px;
}

@media (min-width: 960px) and (max-width: 1123.98px) {
  .plugin-product-search-RecommendProducts-container {
    width: 440px;
    flex-shrink: 0;
  }
}
@media (min-width: 750px) and (max-width: 959.98px) {
  .plugin-product-search-RecommendProducts-container {
    width: 210px;
    flex-shrink: 0;
  }
}
@media (max-width: 749.98px) {
  .plugin-product-search-SuggestPageWrap {
    padding-left: 0;
  }
  .plugin-product-search-RecommendProducts-container {
    width: 100%;
  }
}