/* Live search dropdown. */
.search-wrap {
  position: relative;
  width: 100%;
}

/* Mobile: fixed search panel wraps input + live results (see header.css .search-container) */
@media (max-width: 767px) {
  .search-wrap {
    display: none;
  }

  .search-wrap.search-wrap--open {
    display: block;
    position: fixed;
    background: #fff;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    padding: 20px 50px;
    box-shadow: 0 0 5px #aaa;
  }

  .search-wrap.search-wrap--open .search-container {
    display: block;
    position: static;
    padding: 0;
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  .search-wrap {
    display: block;
    max-width: 645px;
  }
}

.live-search {
  position: absolute;
  z-index: 1000;
  padding: 5px 0 0;
  margin-top: -4px;
  background-color: #fff;
  border-top: 1px dotted #d8d8d8;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  left: 50px;
  right: 50px;
  box-sizing: border-box;
  overflow: hidden;
}

.live-search ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.live-search ul li {
  cursor: pointer;
  padding: 5px 10px;
  background-color: #fff;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d8d8d8;
}

.live-search ul li:hover {
  background: rgba(0, 0, 0, 0.06);
}

.live-search ul li.live-search-no-results {
  border: 0;
  cursor: default;
}

.live-search ul li.live-search-no-results:hover {
  background: #fff;
}

.live-search ul li a {
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.live-search ul li .product-image {
  display: none;
  flex-shrink: 0;
  width: 50px;
  max-width: 50px;
}

.live-search ul li .product-image img {
  width: 50px;
  height: auto;
  display: block;
}

.live-search ul li .product-name {
  color: #2e2e2e;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.live-search ul li .product-price {
  font-size: 14px;
  font-weight: 700;
  min-width: 90px;
  text-align: right;
  margin-left: auto;
  flex-shrink: 0;
}

.live-search ul li .product-price .price {
  color: #f8c630;
  display: block;
}

.live-search ul li .product-price .special {
  color: #a3a3a3;
  text-decoration: line-through;
  display: block;
  font-size: 12px;
  font-weight: 400;
}

.live-search .product-price > .special {
  margin-top: -5px;
}

.live-search .result-text {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1;
  color: #fff;
  background-color: #2e2e2e;
  width: 100%;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 4px 0;
}

.live-search .view-all-results {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.live-search .view-all-results:hover {
  color: #f03136;
}

@media (min-width: 576px) {
  .live-search ul li .product-image {
    display: block;
  }
}

@media (min-width: 768px) {
  .live-search {
    left: 0;
    right: 0;
  }

  .live-search ul li .product-name {
    font-size: 14px;
  }
}
