#search_widget {
  position: relative;
  z-index: 80;
  width: 100%;
  max-width: 720px;
  margin: 0 0 .625rem auto;
  overflow: visible;
}

#search_widget *,
#search_widget *::before,
#search_widget *::after {
  box-sizing: border-box;
}

#search_widget form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(60, 64, 67, .16);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .16), 0 1px 2px rgba(60, 64, 67, .1);
  transition: border-color .18s ease, box-shadow .18s ease;
}

#search_widget form:focus-within {
  border-color: #78A709;
  box-shadow: 0 3px 8px rgba(60, 64, 67, .18), 0 1px 3px rgba(60, 64, 67, .12);
}

#search_widget form i.search {
  flex: 0 0 48px;
  color: #5f6368;
  font-size: 24px;
  text-align: center;
}

#search_widget form input[type=search],
#search_widget form input[type=text] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 48px 0 0;
  color: #202124;
  background: transparent;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  font-size: 16px;
}

#search_widget form input[type=search]::placeholder,
#search_widget form input[type=text]::placeholder {
  color: #8a9097;
  opacity: 1;
}

#search_widget form .clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #5f6368;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color .18s ease, color .18s ease;
}

#search_widget form .clear:hover,
#search_widget form .clear:focus {
  color: #202124;
  background: #f1f3f4;
}

#search_widget form .clear[hidden],
#search_widget .search-widget-panel[hidden],
#search_widget .search-widget-all[hidden] {
  display: none !important;
}

#search_widget .search-widget-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: calc(100vw - 30px);
  max-width: 820px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(60, 64, 67, .12);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(60, 64, 67, .18), 0 2px 6px rgba(60, 64, 67, .12);
}

#search_widget .search-widget-status {
  color: #5f6368;
  font-size: 14px;
  padding: 10px;
  text-align: center;
}

#search_widget .search-widget-status:empty {
  display: none;
}

#search_widget .search-widget-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

#search_widget .search-widget-product {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #202124;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

#search_widget .search-widget-product:hover,
#search_widget .search-widget-product:focus {
  color: #202124;
  background: #f8fafc;
  border-color: rgba(120, 167, 9, .24);
  transform: translateY(-1px);
}

#search_widget .search-widget-product__image {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: #f5f7f9;
  border-radius: 4px;
}

#search_widget .search-widget-product__image--empty {
  border: 1px solid #e8eaed;
}

#search_widget .search-widget-product__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#search_widget .search-widget-product__name {
  display: -webkit-box;
  overflow: hidden;
  color: #202124;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#search_widget .search-widget-product__price {
  display: block;
  margin-top: auto;
  color: #880144;
  font-size: 14px;
  font-weight: 700;
}

#search_widget .search-widget-all {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  margin-top: 12px;
  color: #78A709;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

#search_widget .search-widget-all:hover,
#search_widget .search-widget-all:focus {
  color: #5f7f08;
  text-decoration: none;
}

@media (min-width: 768px) {
  #search_widget {
    margin-bottom: 0;
  }

  #search_widget .search-widget-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  #search_widget .search-widget-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #search_widget {
    z-index: 10;
    max-width: none;
    margin: .75rem 0;
  }

  #search_widget .search-widget-panel {
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
  }
}
