#wp-search {
  padding: 5px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  background: #00A0E3;
  box-sizing: border-box;
  display: block;
}
#wp-sform {
  max-width: 850px;
  width: 100%;
  margin: 0 auto !important;
  position: relative;
  height: 34px;
}
#wp-sform > form {
  margin-left: 100px;
  height: 100%;
  max-width: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#query-search::-webkit-search-decoration,
#query-search::-webkit-search-cancel-button,
#query-search::-webkit-search-results-button,
#query-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: none;
}
#query-search {
  width: calc(100% - 90px);
  height: 100%;
  padding: 4px 10px;
  cursor: text;
  box-sizing: border-box;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  font: normal 14px/1 Arial, Verdana, sans-serif;
  border-radius: 3px 0 0 3px;
  color: #3a3939;
  outline: none;
}
#but-search {
  width: 90px;
  height: 100%;
  font: normal 14px/1 Arial, Helvetica, sans-serif;
  text-align: center;
  color: #000;
  background-color: #fff;
  box-sizing: border-box;
  padding: 3px 10px;
  margin: 0;
  border-radius: 0 3px 3px 0;
  border: solid #d9d9d9;
  border-width: 1px 1px 1px 0;
  cursor: pointer;
}

#block_fast_search {
  position: absolute;
  top: 40px;
  left: 100px;
  width: calc(100% - 100px);
  min-height: 150px;
  height: max-content;
  padding-bottom: 24px;
  background: #fff;
  border: 0;
  border-radius: 5px;
  display: flex;
  font-size: 14px;
  overflow: hidden;
  box-shadow: 0 10px 15px rgba(0,0,0,0.25);
  z-index: 100;
}
.fast_search_sidebar {
  width: 40%;
  border-right: 1px solid #efefef;
  padding: 12px 12px 12px 0;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
}
.fast_search_sidebar > div:not(.hidden):after {
  content: '';
  position: relative;
  display: block;
  bottom: -10px;
  width: 100%;
  border-bottom: 1px solid #efefef;
}
.fast_search_sidebar > *.hidden {
  display: none;
}
.fast_search_history > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  position: relative;
  background-color: transparent;
  background-image: url("/magazin/images/icon_time.svg");
  background-position: 12px 12px;
  background-repeat: no-repeat;
  background-size: 16px;
}
.fast_search_history a {
  box-sizing: border-box;
  width: calc(100% - 38px);
  padding: 10px 10px 10px 38px;
  font-size: 14px;
  color: #000;
  word-wrap: break-word;
  transition: background-color .1s ease-in;
}
.fast_search_history button.remove_tip {
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  margin: 6px;
  padding: 0;
  line-height: 1;
  color: #888;
  width: 26px;
  height: 26px;
  background-color: transparent;
  z-index: 3;
}
.fast_search_history button.remove_tip:before,
.fast_search_history button.remove_tip:after {
  content: '';
  position: absolute;
  top: 12px;
  left: 6px;
  width: 14px;
  height: 2px;
  background-color: #999;
  transform: rotate(45deg);
  transition: background-color .1s ease-in;
}
.fast_search_history button.remove_tip:after {
  transform: rotate(-45deg);
}
.fast_search_history button.remove_tip:hover:before,
.fast_search_history button.remove_tip:hover:after {
  background-color: #555;
}
.fast_search_tips > a {
  display: block;
  position: relative;
  padding: 10px 12px;
  font-size: 14px;
  color: #000;
  word-wrap: break-word;
  transition: background-color .1s ease-in;
}
.fast_search_cats > a {
  display: flex;
  justify-content: start;
  align-items: center;
  position: relative;
  padding: 10px 12px;
  font-size: 14px;
  color: #000;
  gap: 6px;
  transition: background-color .1s ease-in;
}
.fast_search_history > div:hover,
.fast_search_tips > a:hover,
.fast_search_cats > a:hover,
.fast_prod:hover {
  background-color: #efefef;
}
.fast_search_cats-title {
  text-transform: uppercase;
  font-weight: bold;
  padding: 0 0 12px 12px;
}
.fast_search_cats img,
.fast_search_products .fast_prod img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
}
.fast_search_products {
  width: 60%;
  padding: 12px;
  box-sizing: border-box;
  overflow-y: auto;
}
.fast_search_products .fast_prod {
  box-sizing: border-box;
  width: 100%;
  display: inline-flex;
  align-items: start;
  gap: 12px;
  padding: 12px;
  transition: background-color .1s ease-in;
}
.fast_search_products .fast_prod.inn {
  background-color: rgb(245, 68, 68, 0.1);
}
.fast_search_products .fast_prod.inn:hover {
  background-color: rgb(245, 68, 68, 0.15);
}
.fast_search_products .fast_prod > div {
  width: calc(100% - 68px);
}
.fast_search_products .fast_prod > div > a {
  color: #000;
  display: -webkit-box;
  overflow: hidden;
  max-height: 36px;
  word-wrap: break-word;
  -webkit-line-clamp: 2;
  line-clamp: 2 -webkit-legacy;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -o-box-orient: vertical;
}
.fast_search_products .fast_prod:hover .search_cart {
  display: block;
}
.fast_search_products .fast_art {
  color: #666;
}
.fast_search_products .fast_price {
  width: 100%;
  display: inline-flex;
  align-items: start;
  justify-content: space-between;
  margin-top: 5px;
  height: 24px;
}
.fast_search_products .fast_price > span {
  font-weight: bold;
  font-size: 14px;
}
.fast_search_products .search_cart {
  display: none;
  position: relative;
  background: #00a0e3;
  color: #fff;
  padding: 4px 10px;
  width: 82px;
  border: 1px solid #00a0e3;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  text-align: center;
  line-height: 1;
  transition: all .1s ease-in;
  z-index: 2;
}
.fast_search_products .search_cart.in_cart {
  background-color: #fff;
  border-radius: #00a0e3;
  color: #9D9E9E;
}
.fast_search_products .search_cart:not(.in_cart):hover {
  background-color: #233972;
  border-color: #233972;
}
.fast_search_products .search_cart.loading {
  display: block;
  background-color: #00a0e3;
  border-color: #00a0e3;
  background-image: url("/magazin/images/preloader-white.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  pointer-events: none;
}

@media only screen and (max-width: 767px) {
  #wp-search {
    display: none;
  }
  #wp-search.open {
    padding: 5px 15px;
    max-height: 500px;
    margin: 5px -15px 0;
    width: calc(100% + 30px);
    background-color: #eee !important;
    display: block;
  }
  #wp-sform {
    max-width: calc(100% - 4px);
    height: 30px;
  }
  #wp-sform > form {
    margin: 0 auto !important;
  }

  #block_fast_search {
    border-radius: 0;
    width: calc(100% + 30px);
    left: -15px;
    box-shadow: 0 15px 15px rgba(0, 0, 0, .15);
  }
  .fast_search_sidebar {
    width: 100%;
    padding-right: 0;
  }
  .fast_search_products {
    display: none;
  }
}