.autoComplete_wrapper {
  display: inline-block;
  position: relative;
}

.autoComplete_wrapper > input {
  width: 370px;
  height: 40px;
  padding-left: 10px;
  font-size: 1rem;
  color: rgb(116, 116, 116);
  border-radius: 4px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  outline: none;
}

.autoComplete_wrapper > input::-moz-placeholder {
  color: rgba(123, 123, 123, 0.5);
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.autoComplete_wrapper > input::placeholder {
  color: rgba(123, 123, 123, 0.5);
  transition: all 0.3s ease;
}

.autoComplete_wrapper > ul {
  position: absolute;
  max-height: 226px;
  overflow-y: scroll;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0;
  margin: 0.5rem 0 0 0;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid rgba(33, 33, 33, 0.1);
  z-index: 1000;
  outline: none;
}

.autoComplete_wrapper > ul > li {
  padding: 10px 20px;
  list-style: none;
  text-align: left;
  font-size: 1rem;
  color: #212121;
  transition: all 0.1s ease-in-out;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.autoComplete_wrapper > ul > li::-moz-selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_wrapper > ul > li::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_wrapper > ul > li:hover {
  cursor: pointer;
  background-color: rgba(123, 123, 123, 0.1);
}

.autoComplete_wrapper > ul > li mark {
  background-color: transparent;
  color: rgba(255, 122, 122, 1);
  font-weight: bold;
}

.autoComplete_wrapper > ul > li mark::-moz-selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_wrapper > ul > li mark::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_wrapper > ul > li[aria-selected="true"] {
  background-color: rgba(123, 123, 123, 0.1);
}

@media only screen and (max-width: 600px) {
  .autoComplete_wrapper > input {
    width: 18rem;
  }
}

#search {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.SearchResult {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.SearchResult-content {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  grid-gap: 16px;
  gap: 16px;
}

@media screen and (min-width: 1026px) {

.SearchResult-content {
    grid-template-rows: 1fr;
    grid-template-columns: 30% 1fr;
}
  }

.SearchResult em {
  padding: 2px 5px;
  border-radius: 5px;
  font-style: normal;
  text-decoration: none;
  background: var(--clr-highlight);
}

.SearchResult-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5ch;
  margin: 0;
  font-size: 90%;
  list-style: none;
  color: var(--clr-grayDark);
}

.SearchResult-breadcrumbs li {
  padding: 0;
}

.SearchResult-breadcrumbs li:not(:last-child)::after {
  content: '>';
  display: inline-block;
  margin: 0 0.5ch;
}

.SearchResult-searchBar {
  position: relative;
  padding: 20px 15px;
  background-color: var(--clr-grayLight);
}

@media screen and (min-width: 1026px) {

.SearchResult-searchBar {
    height: 100%;
    padding: 20px 30px;
}
  }

.SearchResult-searchBar-inner {
  position: sticky;
  z-index: 11;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.SearchResult-searchBar-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.SearchResult-searchBar-inner .Headline + .Headline {
  margin-bottom: 0;
}

.SearchResult-filterButtons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.SearchResult-group {
  display: none;
  margin-top: 10px;
}

.SearchResult-group.is-Active {
  display: block;
}

.SearchResult-items-paginated {
  display: flex;
  flex-direction: column;
}

.SearchResults-right {
  padding: 10px 10px 30px 10px;
}

@media screen and (min-width: 1026px) {

.SearchResults-right {
    padding: 20px;
}
  }

.SearchResult-error {
  padding: 10px 0;
}

@media screen and (min-width: 1026px) {

.SearchResult-error {
    padding: 20px 0;
}
  }

.SearchResultItem {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-grayLight);
}

.SearchResult-noResults {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.SearchResult-didYouMean {
  --gradient-color: rgb(255, 255, 255, 0.4);
  position: relative;
  margin-top: 10px;
  padding: 10px 20px;
  border: 2px solid var(--clr-grayLight);
  border-radius: 6px;
  background-color: var(--clr-grayLight);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    var(--gradient-color) 20px,
    var(--gradient-color) 40px
  );
}

.SearchResult-didYouMean a {
    position: relative;
    z-index: 10;
    text-decoration: underline;
    transition: text-underline-offset 0.2s ease-in-out;
    text-underline-offset: 2px;
  }

.SearchResult-didYouMean a:hover {
      text-underline-offset: 4px;
    }

.SearchResult-didYouMean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    border-radius: 6px 0 0 6px;
    background-image: linear-gradient(to right, var(--clr-grayLight), transparent);
  }

.SearchResult-didYouMean-text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.5rem;
  text-align: inherit;
}

.SearchResult-searchBar-input {
  width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--clr-grayDark);
  font-size: 1rem;
  background-color: var(--clr-grayLight);
  color: #000000;
}

.SearchResult-searchBar-input:focus,
  .SearchResult-searchBar-input:active {
    border-color: var(--clr-primary);
    outline: none;
  }

.SearchResult-searchBar-operator {
  display: flex;
  gap: 0.5rem;
}

.SearchResult-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;

  button {
    padding: 5px 10px;
    cursor: pointer;
  }

    button:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
}

.autoComplete_wrapper > ul > li mark {
  color: var(--clr-primary);
}

.autoComplete_wrapper > input {
  width: 100%;
}

.SearchResult-sorting {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 14px 0 18px;
  color: var(--clr-grayDark);
}

.SearchResult-sorting::before {
    content: '';
    display: block;
    flex: 1 0;
    margin-right: 30px;
    border-bottom: 1px solid var(--clr-grayLight);
  }

.SearchResult-sorting label {
  font-size: 0.9rem;
}

.SearchResult-sorting select {
  margin-left: 8px;
  padding: 4px 8px 4px 6px;
  border: none;
  border-radius: 5px;
  background: var(--clr-highlight);
  background-image: none;
  color: var(--font-clr-primary);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
