/* MALTIUM Sprint 2B-2: search quality */
html {
  -webkit-text-size-adjust: 100%;
}

input[type="search"][data-search-input],
input[type="search"][data-dialog-search],
.search-field input[type="search"] {
  font-size: 16px !important;
  line-height: 1.25;
  -webkit-text-size-adjust: 100%;
}

.recent-searches {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.recent-searches[hidden] {
  display: none !important;
}

.recent-searches__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.recent-searches__heading span {
  color: var(--stone);
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.recent-searches__heading button {
  min-height: 32px;
  padding: 0 4px;
  color: var(--stone);
  font-size: .62rem;
}

.recent-searches__heading button:hover,
.recent-searches__heading button:focus-visible {
  color: var(--barley-gold);
}

.recent-searches__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-searches__list button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: var(--muted-ivory);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: .7rem;
}

.recent-searches__list button:hover,
.recent-searches__list button:focus-visible {
  color: var(--warm-ivory);
  border-color: var(--line-strong);
  background: rgba(200,173,82,.06);
}

.recent-searches__list b {
  color: var(--barley-gold);
  font-weight: 400;
}

.search-results.search-results--empty {
  display: block;
  border: 1px solid var(--line);
  background: transparent;
}

.search-no-results {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 38px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(200,173,82,.08), transparent 42%),
    #12110e;
}

.search-no-results__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--barley-gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.search-no-results strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.search-no-results p {
  max-width: 480px;
  margin: 10px 0 20px;
  color: var(--stone);
  font-size: .74rem;
  line-height: 1.65;
}

.search-no-results > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.search-no-results button {
  min-height: 36px;
  padding: 0 11px;
  color: var(--muted-ivory);
  border: 1px solid var(--line);
  font-size: .66rem;
}

.search-no-results button:hover,
.search-no-results button:focus-visible {
  color: var(--barley-gold);
  border-color: var(--line-strong);
}

@media (max-width: 860px) {
  .recent-searches {
    margin-top: 22px;
    padding-top: 16px;
  }

  .recent-searches__list {
    flex-wrap: nowrap;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .recent-searches__list::-webkit-scrollbar {
    display: none;
  }

  .recent-searches__list button {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .search-results {
    margin-top: 28px;
  }

  .search-result {
    min-height: 76px;
    padding: 17px 15px;
  }

  .search-result strong {
    font-size: 1rem;
  }

  .search-result small {
    display: block;
    margin-top: 4px;
    line-height: 1.45;
  }

  .search-no-results {
    min-height: 230px;
    padding: 32px 18px;
  }

  .search-no-results strong {
    font-size: 1.05rem;
  }
}
