.facet {
  margin-bottom: 1rem;
}

.ais-Panel h5 {
  margin: 2rem 0 1rem;
  font-weight: bold;
}

.ais-RefinementList-count {
  font-size: 1rem;
  padding-left: 0.25rem;
  font-weight: bold;
  color: #aaa;
}

.algolia-powered-by-link {
  float: right;
  margin-right: 5px;
}

.ais-SearchBox-form {
  display: flex;
  margin-bottom: 2rem;
}

.ais-SearchBox-submit {
  position: relative;
  right: 20px;
  cursor: not-allowed;
}

/* hit */

.hit {
  display: flex;
  margin-bottom: 2rem;
}

.hit-image {
  flex: 0 1 auto !important;
  margin-right: 2rem;
}

.hit-image img {
  width: 200px;
  border: solid 1px #eee;
  border-radius: 0.5rem;
}

.hit-content {
  flex: 0 1 auto !important;
  text-align: left;
  margin-bottom: 2rem;
}

.hit-content > .hit-name {
  margin: 0.5rem 0;
  border-bottom: 1px solid #eee !important;
  padding-bottom: 0.5rem;
}

.hit-content > .hit-description {
  margin-bottom: 0.5rem;
}

/* PS */

.ais-SearchBox-input {
  min-width: inherit;
  width: 92%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 10px;
  color: #7a7a7a;
}

/* PS16 */

.ps16-instantsearch div.checker {
  display: inline-block;
}

.ais-SortBy-select {
  display: inline-block;
  color: #232323;
  background: #fff;
  padding: 0.625rem;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.ais-Pagination {
  display: flex;
  justify-content: center;
}

.ais-Pagination-list {
  justify-content: center;
}

@media (min-width: 767px) {
  .sort-by-widget {
    position: relative;
    height: 6rem;
  }

  .sort-by {
    position: absolute;
    right: 0px;
  }
}

#stats {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.xtdir4alg_autocomplete #search-input {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
}

.xtdir4alg_autocomplete .autocomplete-search-results {
  position: absolute;
  display: block;
  z-index: 99;
  right: 0px;
  padding: 15px;
  margin: 0px;
  border-radius: 5px;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
  --bg-opacity: 1;
  background-color: #fff;
  background-color: rgba(255, 255, 255, var(--bg-opacity));
}

.xtdir4alg_autocomplete .hit-image img {
  width: 100px;
}

.xtdir4alg_autocomplete .autocomplete-footer-advanced-search {
  text-align: center;
}

@media (min-width: 768px) {
  .xtdir4alg_autocomplete .autocomplete-search-results {
    width: 75%;
  }
}

.more-search-results-advanced-search {
  text-align: center;
  margin-top: 2rem;
  color: #2fb5d2;
}

.ais-InfiniteHits, .gentle-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1ch;
}

.ais-InfiniteHits-loadMore {
  padding-top: .75rem;
  padding-bottom: .75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
