/* assets/styles/modules/search/main.scss */
.search--suggesting {
  position: relative;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ABABAB;
  border-radius: 5px;
  background: #fff;
}
.search--open .search-input {
  box-shadow: 0 4px 12px 0 rgba(88, 88, 88, 0.08);
}
.search-input__field {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  font-size: 14px;
  color: #000;
}
.search-input__popular {
  order: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input__icon {
  order: 4;
  border: 0;
  padding: 0;
  color: #00aeef;
  cursor: pointer;
  background-color: transparent;
  display: flex;
  align-items: center;
}
.search-input__icon::before {
  content: "";
  display: inline-block;
  height: 20px;
  width: 1px;
  background-color: #ABABAB;
  margin-right: 10px;
}
.search-input__icon::after {
  font-size: 16px;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  content: "\f002";
  width: 16px;
  height: 20px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .search-input__popular {
    display: none;
  }
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  z-index: 10000;
  width: 100%;
  max-width: 100vw;
  background: #fff;
  box-shadow: 0 4px 12px 0 rgba(88, 88, 88, 0.08);
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
}
.search-dropdown--wide {
  width: calc(100% - 140px);
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 0;
}
.search-dropdown__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.search-dropdown__loading .stripe + .stripe {
  margin-left: 3px;
}
.search-dropdown__empty {
  padding: 28px 18px;
  text-align: center;
  color: #7b8a97;
  font-size: 13px;
}
.search-dropdown__overlay {
  position: fixed;
  top: 112px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}
.search-dropdown__close {
  display: none;
}
@media (max-width: 1023px) {
  .search-dropdown {
    max-height: calc(100vh - 212px);
    max-height: calc(100dvh - 212px);
  }
  .search-dropdown__overlay {
    top: 184px;
  }
  .search-dropdown--wide {
    width: 100%;
    padding: 0;
    top: calc(100% + 15px);
  }
}
@media (max-width: 768px) {
  .search-dropdown {
    padding: 16px;
    max-height: calc(100vh - 242px);
    max-height: calc(100dvh - 242px);
  }
  .search-dropdown__overlay {
    top: 214px;
  }
  .search-dropdown--wide {
    width: 100%;
    padding: 0;
  }
  .search-dropdown__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    cursor: pointer;
    color: #585858;
    font-size: 18px;
    z-index: 1;
  }
}
.search-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E2E2;
  padding: 8px;
}
.search-section__head + * {
  padding: 8px;
}
.search-section__title {
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.search-section__clear-all {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: #585858;
}
.search-section__body {
  padding: 8px;
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-chip {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  background: #DBE9F0;
  color: #00406B;
  font-size: 12px;
  line-height: 12px;
  white-space: nowrap;
  border: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-chip strong {
  font-weight: 700;
}
.search-chip:hover {
  background-color: #00406B;
  color: #fff;
}
.search-vendors {
  display: flex;
  gap: 16px;
  align-items: center;
}
.search-vendors__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - 48px) / 4);
}
.search-vendors__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.search-last {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-last__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 8px;
}
.search-last__item:last-child {
  padding: 0;
}
.search-last__term {
  cursor: pointer;
  overflow: hidden;
  color: #00406B;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}
.search-last__term:hover {
  color: #00aeef;
}
.search-last__remove {
  border: 0;
  background: none;
  cursor: pointer;
  color: #000;
  font-size: 16px;
  line-height: 1;
}
.search-last__remove:hover {
  color: #e40f0f;
}
.search-results {
  display: flex;
  gap: 16px;
}
.search-results--no-aside {
  grid-template-columns: 1fr;
}
.search-results__aside {
  width: calc(30% - 8px);
  background: #FAFAF9;
  padding: 24px;
}
.search-results__main {
  width: calc(70% - 8px);
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.search-results__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  background-color: #00406B;
  padding: 12px;
  transition: all 0.12s ease-out;
}
.search-results__all::after {
  font-size: 16px;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  content: "\f002";
  width: 16px;
  height: 32px;
}
.search-results__all:hover {
  color: #FFF;
  background: #00aeef;
}
@media (max-width: 768px) {
  .search-results {
    flex-direction: column-reverse;
    gap: 0;
  }
  .search-results__aside,
  .search-results__main {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .search-results__aside,
  .search-results__main {
    padding: 16px;
  }
}
.search-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-links__item {
  padding: 0;
  margin: 0 0 8px;
}
.search-links__item a {
  overflow: hidden;
  color: #00406B;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}
.search-links__item a:hover {
  color: #00aeef;
}
.search-products {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-product {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}
.search-product + .search-product {
  border-top: 1px solid #d3d3d3;
}
.search-product__link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: #000;
}
.search-product__media {
  width: 50px;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-product__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.search-product__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-product__title {
  color: #00406B;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-product__sku {
  color: #585858;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}
.search-product__stock {
  color: #000;
  font-size: 11px;
  font-weight: 400;
  line-height: 20px;
}
.search-product__aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.search-product__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.search-product__net {
  color: #C80000;
  font-size: 14px;
  font-weight: 700;
}
.search-product__net em {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
}
.search-product__gross {
  color: #000;
  font-size: 12px;
}
.search-product__cart {
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  color: #FFF;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  background-color: #56C30D;
  border: 2px solid #56C30D;
  transition: all 0.12s ease-out;
  padding: 8px 32px;
}
.search-product__cart:hover {
  background-color: #fff;
  color: #56C30D;
}
.search-product__availability {
  color: #000;
}
.search-product .stockLevel0,
.search-product .stockLevel1,
.search-product .stockLevel2 {
  color: #e40f0f;
}
.search-product .stockLevel3 {
  color: #e8820c;
}
.search-product .stockLevel4,
.search-product .stockLevel5,
.search-product .stockLevel6 {
  color: #2faa46;
}
@media (max-width: 768px) {
  .search-product__cart {
    padding: 6px 16px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .search-product {
    padding: 8px 0;
  }
  .search-product__media {
    display: none;
  }
}
.search-stock {
  white-space: nowrap;
  font-weight: 600;
}
.search-stock::after {
  content: none;
  display: none;
}
