/* Custom search */
zd-autocomplete {
  display: none !important;
}

.custom-search {
  position: absolute;
  background: var(--primary-bg-color);
  border-radius: var(--border-radius-base);
  box-shadow: 0 4px 40px rgb(0 0 0 / 12%);
  z-index: 999;
  display: none;
  padding: 2px;
  overflow: hidden;
  min-height: 101px;
}

@media (min-width: 992px) {
  .custom-search {
    position: fixed;
  }
}

.custom-search::before {
  content: '';
  display: block;
  width: calc(100% - 64px);
  height: var(--border-width);
  position: absolute;
  top: 0;
  left: 32px;
  background-color: #21212D;
  opacity: .1;
}

.custom-search::after {
  content: 'Loading...';
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  z-index: 9;
  width: 100%;
  height: 100%;
  top: var(--border-width);
  left: 0;
  background-color: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
}

.custom-search__no-results {
  padding: 21px 30px;
}

.custom-search.is-pending::after {
  opacity: 1;
  visibility: visible;
}

.custom-search.is-active {
  display: block;
}

.custom-search__article {
  display: block;
  padding: 13px 30px;
  color: #13131B;
}

.custom-search__article:last-child {
  border-bottom-left-radius: var(--border-radius-base);
  border-bottom-right-radius: var(--border-radius-base);
}

.custom-search__article-title {
  display: block;
  line-height: 18px;
  margin-bottom: 8px;
}

.custom-search__article-section {
  display: block;
  font-size: 12px;
  line-height: 15px;
  opacity: .5;
}

.custom-search__article:hover,
.custom-search__article:active {
  background-color: var(--secondary-bg-color);
}

.custom-search__categories {
  padding: 11px 30px 13px;
}

.custom-search__categories a {
  margin: 2px 2px 0 0;
}
