.search:focus-within {
  border-color: #91a69a;
  box-shadow: 0 16px 42px rgba(34, 50, 40, 0.12);
}

/* The form carries the focus state for the whole search control. Keeping the
   native outline on the full-width input created a second, offset rectangle. */
.search input:focus,
.search input:focus-visible {
  outline: 0;
}

.search .suggestions {
  position: absolute;
  inset: calc(100% + 7px) -1px auto -1px;
  width: calc(100% + 2px);
  max-height: 392px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #cfcdc4;
  box-shadow: 0 22px 55px rgba(33, 43, 35, 0.16);
  z-index: 20;
}

.search .suggestions[hidden] {
  display: none;
}

.search .suggestions > button {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.search .suggestions > button + button {
  border-top: 1px solid #ece9e1;
}

.search .suggestions > button:hover,
.search .suggestions > button.is-active {
  background: #eef2ec;
}

.search .suggestions > button img {
  display: block;
  width: 30px;
  height: 21px;
  object-fit: cover;
  border: 1px solid rgba(35, 40, 35, 0.12);
}

.search .suggestions > button span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.search .suggestions > button b {
  overflow: hidden;
  font: 500 15px/1.2 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search .suggestions > button small {
  overflow: hidden;
  font: 8px/1.3 var(--mono);
  letter-spacing: 0.45px;
  color: #85877f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search .suggestions > button i {
  font: 15px var(--sans);
  font-style: normal;
  color: var(--forest);
  text-align: right;
}

.search .suggestions-empty {
  margin: 0;
  padding: 15px 13px;
  font: 12px/1.5 var(--sans);
  color: #777971;
}

@media (max-width: 520px) {
  .search .suggestions {
    max-height: 335px;
  }

  .search .suggestions > button {
    min-height: 54px;
  }
}
