/**
 * Real Time Search.
 *
 */
.merchant-ajax-search {
  position: relative;
  z-index: 999;
}

.merchant-ajax-search-products {
  max-height: 50vh;
  overflow-y: auto;
}
.merchant-ajax-search-products::-webkit-scrollbar {
  width: 6px;
}
.merchant-ajax-search-products::-webkit-scrollbar-track {
  background: #ddd;
  border-radius: 6px;
}
.merchant-ajax-search-products::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 6px;
}
.merchant-ajax-search-products::-webkit-scrollbar-thumb:hover {
  background: #000;
}
.merchant-ajax-search-products.has-scrollbar {
  padding-right: 15px;
}
.merchant-ajax-search-products + .merchant-ajax-search-heading-title {
  margin-top: 30px;
}
.merchant-ajax-search-products a.merchant-ajax-search-item {
  color: #333;
  text-decoration: none !important;
}
.merchant-ajax-search-products a.merchant-ajax-search-item:hover {
  color: #333;
}

.merchant-ajax-search-heading-title {
  font-size: 18px;
  margin: 0;
}

.merchant-ajax-search-divider {
  width: 100%;
  height: 1px;
  margin-top: 15px;
  margin-bottom: 15px;
  background-color: #eee;
}

.merchant-ajax-search-wrapper {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 99999;
  width: 100%;
  min-width: var(--merchant-results-box-width, 500px);
  padding: 15px;
  color: #212121;
  background-color: #fff;
  border: 1px solid #eee;
  -webkit-box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.1);
}
.merchant-ajax-search-wrapper.merchant-reverse {
  left: auto;
  right: 0;
}

.merchant-ajax-search-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  grid-gap: 20px;
  -webkit-transition: ease opacity 300ms;
  transition: ease opacity 300ms;
}
.merchant-ajax-search-item:hover {
  opacity: 0.75;
}
.merchant-ajax-search-item + .merchant-ajax-search-item {
  position: relative;
  margin-top: 30px;
}
.merchant-ajax-search-item + .merchant-ajax-search-item:before {
  position: absolute;
  content: "";
  top: -15px;
  left: 0;
  width: 100%;
  border-top: 1px solid #eee;
}

.merchant-ajax-search-item-image {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  max-width: 60px;
}

.merchant-ajax-search-item-info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  grid-gap: 5px;
}
.merchant-ajax-search-item-info p {
  font-size: 14px;
  line-height: 1.2em;
  margin: 0;
}

.merchant-ajax-search-item-title {
  font-size: 14px;
}

.merchant-ajax-search-item-price {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  text-align: right;
}
.merchant-ajax-search-item-price .woocommerce-Price-amount {
  font-weight: 600;
}
.merchant-ajax-search-item-price ins {
  background: none;
}
.merchant-ajax-search-item-price del {
  opacity: 0.7;
}
.merchant-ajax-search-item-price del .woocommerce-Price-amount {
  font-weight: 400;
}

.merchant-ajax-search-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.merchant-ajax-search-item-category {
  margin-top: 0 !important;
}
.merchant-ajax-search-item-category:before {
  content: none !important;
}
.merchant-ajax-search-item-category .merchant-ajax-search-item-info h3 {
  font-weight: 400;
}

.merchant-ajax-search-no-results {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 767px) {
  .merchant-ajax-search-wrapper {
    min-width: 500px;
  }
  .merchant-ajax-search-item-image {
    display: none;
  }
}
@media (max-width: 575px) {
  .merchant-ajax-search-wrapper {
    min-width: calc(100vw - 30px);
  }
}
.merchant-ajax-search-item-image {
  width: 60px;
  height: 60px;
  background: #e5e5e5;
}

.woocommerce-product-search.merchant-ajax-search {
  width: 100%;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.merchant-module-page-preview-browser-inner {
  padding: 20px;
}

form.merchant-product-search, form.merchant-product-search.woocommerce-product-search.merchant-ajax-search {
  margin-block: 15px;
}

body form.woocommerce-product-search,
.merchant-product-search {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
body form.woocommerce-product-search .search-field,
.merchant-product-search .search-field {
  border: 1px solid #212121;
  border-radius: 0;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding-inline: 0.75em;
  margin-block: 0;
}
body form.woocommerce-product-search button[type=submit],
body form.woocommerce-product-search button.search-submit,
.merchant-product-search button[type=submit],
.merchant-product-search button.search-submit {
  background: #212121 !important;
  color: #fff;
  border: 0;
  margin-left: 10px;
  margin-block: 0;
  padding: 9px 15px;
  line-height: 1;
}
body form.woocommerce-product-search button[type=submit] svg,
body form.woocommerce-product-search button.search-submit svg,
.merchant-product-search button[type=submit] svg,
.merchant-product-search button.search-submit svg {
  fill: white;
}