/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.searchQueryInput,
.searchVersionInput {
  border-radius: var(--ifm-global-radius);
  border: var(--ifm-global-border-width) solid
    var(--ifm-color-content-secondary);
  font-size: var(--ifm-font-size-base);
  padding: 0.5rem;
  width: 100%;
  background: #fff;
}

.searchResultsColumn {
  font-size: 0.9rem;
}

.searchLogoColumn {
  text-align: right;
}

.algoliaLogo {
  max-width: 150px;
}

.algoliaLogoPathFill {
  fill: var(--ifm-font-color-base);
}

.searchResultItem {
  padding: 1rem 0;
  border-bottom: 1px solid #dfe3e8;
}

.searchResultItemHeading {
  font-size: var(--ifm-h2-font-size);
}

.searchResultItemPath {
  font-size: 0.8rem;
  color: var(--ifm-color-content-secondary);
  display: block;
}

.searchResultItemSummary {
  margin: 0.5rem 0 0 0;
  font-style: italic;
}

@media only screen and (max-width: 996px) {
  .searchQueryColumn {
    max-width: 60% !important;
  }

  .searchVersionColumn {
    max-width: 40% !important;
  }

  .algoliaLogo {
    width: 100%;
  }

  .searchResultsColumn {
    max-width: 60% !important;
  }

  .searchLogoColumn {
    overflow: hidden;
    max-width: 40% !important;
    padding-left: 0 !important;
  }
}

.loadingSpinner {
  pointer-events: none;
  width: 3rem;
  height: 3rem;
  border: 0.4em solid transparent;
  border-color: #eee;
  border-top-color: var(--ifm-color-primary);
  border-radius: 50%;
  animation: loadingspin 1s linear infinite;
  margin: 0 auto;
}

@keyframes loadingspin {
  100% {
    transform: rotate(360deg);
  }
}

.loader {
  margin-top: 2rem;
}

:global(.search-result-match) {
  background: rgba(255, 215, 142, 0.22);
  padding: 0.09em 0;
}
