.live-search {
  position: relative;
  z-index: 500;
}

.live-search__results {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  z-index: 501;
  display: grid;
  gap: 0.35rem;
  max-height: min(24rem, 70vh);
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.14);
}

.live-search__results[hidden] {
  display: none;
}

.live-search__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 0.65rem;
  color: #111111;
  text-decoration: none;
}

.live-search__item:hover,
.live-search__item:focus-visible {
  opacity: 1;
  background: #f7f4ff;
}

.live-search__media {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f3f4;
  color: #111111;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.live-search__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-search__body {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.live-search__body strong {
  overflow: hidden;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-search__body small,
.live-search__empty {
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
}

.live-search__empty {
  margin: 0;
  padding: 0.85rem;
  text-align: center;
}

.header-search__form .live-search__results {
  top: calc(100% + 0.75rem);
}

@media (max-width: 640px) {
  .live-search__results {
    max-height: 18rem;
    border-radius: 0.7rem;
  }

  .live-search__item {
    padding: 0.55rem;
  }

  .live-search__media {
    width: 2.35rem;
    height: 2.35rem;
  }
}
