.fastsearch-panel {
  position: absolute;
  /* Flush against the search box; it already draws the line between them. */
  top: 100%;
  left: 0;
  /* Above theme dropdowns (stsearchbar's devbridge autocomplete uses 9999). */
  z-index: 10000;
  width: max(100%, 420px);
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-top: 0;
  border-radius: 0;
  /* Negative spread keeps the shadow off the top edge, under the search box. */
  box-shadow: 0 20px 28px -8px rgba(0, 0, 0, 0.28), 0 6px 12px -6px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.fastsearch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: #232323;
  text-decoration: none;
}

.fastsearch-item:hover,
.fastsearch-item[aria-selected="true"] {
  background: #f4f6f8;
  text-decoration: none;
}

.fastsearch-item img,
.fastsearch-noimg {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
  background: #f7f7f7;
}

.fastsearch-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fastsearch-name {
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fastsearch-name mark {
  background: none;
  color: inherit;
  font-weight: 700;
  padding: 0;
}

.fastsearch-brand {
  font-size: 12px;
  color: #7a7a7a;
}

.fastsearch-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.fastsearch-price {
  font-weight: 700;
  font-size: 14px;
}

.fastsearch-oos {
  font-size: 11px;
  color: #b3261e;
}

.fastsearch-backorder {
  font-size: 11px;
  color: #8a5a00;
}

.fastsearch-all,
.fastsearch-empty {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  font-size: 13px;
}

.fastsearch-all {
  font-weight: 600;
  text-align: center;
}

.fastsearch-empty {
  border-top: 0;
  color: #7a7a7a;
}

/* Theme dropdowns that would sit on top of ours: devbridge (Transformer
   stsearchbar) and jQuery UI (Classic ps_searchbar). */
.fastsearch-active .autocomplete-suggestions,
.fastsearch-active .ui-autocomplete {
  display: none !important;
}
