#algolia-search-results * {
  box-sizing: border-box;
}


#algolia-search-results h1,
#algolia-search-results h2 {
  margin: 0;
  padding: 0;
}


#algolia-search-results h2 {
  color: #21243d;
  font-family: Hind, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Containers */

#algolia-search-results.container {
  display: flex;
  margin: 0 auto;
  max-width: 1300px;
  padding: 2rem 1rem;
}

#algolia-search-results .container-filters {
  flex: 1;
  margin-right: 60px;
  max-width: 260px;
}

#algolia-search-results .container-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 80px;
}

#algolia-search-results .container-results {
  flex: 3;
}

#algolia-search-results .container-options {
  border-bottom: 1px solid #ebecf3;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
  padding: 30px 0;
}

  #algolia-search-results .container-options .container-option:not(:first-child) {
    margin-left: 48px;
  }

  #algolia-search-results .container-options select {
    min-width: 100px;
  }

#algolia-search-results .container-footer {
  margin: 4rem 0;
}

/* Styles the SFFV highlightings */

#algolia-search-results em {
  font-style: normal;
}

#algolia-search-results em,
#algolia-search-results mark {
  background: rgba(226, 164, 0, 0.4);
}

/* Clear refinements container */

#algolia-search-results .clear-filters {
  align-items: center;
  display: flex;
}

  #algolia-search-results .clear-filters svg {
    margin-right: 8px;
  }

/* Panel */

.container-body .ais-Panel {
  border-top: 1px solid #ebecf3;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.ais-Panel-header {
  font-family: Hind, sans-serif;
}

/* Search box */

.header .ais-SearchBox {
  height: 64px;
  width: 740px;
}

  .header .ais-SearchBox .ais-SearchBox-input {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 48px 0 rgba(0, 0, 0, 0.2);
    font-family: Hind, sans-serif;
    height: 64px;
    /*
    The "Hind" font family is vertically off-balance.
    Adding 4px of padding top makes it more vertically aligned.
  */
    padding: 4px 48px 0 64px;
  }

#algolia-search-results .search-box {
  margin-bottom: 30px;
}

.ais-SearchBox-submit {
  padding: 0 1rem 0 2rem;
  width: 64px;
}

.ais-SearchBox .ais-SearchBox-input::placeholder {
  color: rgba(33, 36, 61, 0.24);
  opacity: 1; /* Firefox */
}

.ais-SearchBox-input:-ms-input-placeholder {
  color: rgba(33, 36, 61, 0.24);
}

.ais-SearchBox-input::-ms-input-placeholder {
  color: rgba(33, 36, 61, 0.24);
}

.ais-SearchBox-submit {
  color: #0371B5;
}

.ais-RefinementList .ais-SearchBox-input {
  font-family: Hind, sans-serif;
  /*
    The "Hind" font family is vertically off-balance.
    Adding some padding top makes it more vertically aligned.
  */
  padding-top: 2px;
}

/* Hits */

#algolia-search-results .hit {
  color: #21243d;
  font-size: 14px;
  line-height: 18px;
}

#algolia-search-results .hit h1 {
  font-size: 14px;
}

#algolia-search-results .hit-link {
  display: flex;
}

#algolia-search-results .hit-category {
  color: #21243d;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.7;
  text-transform: uppercase;
}

#algolia-search-results .hit-description {
  margin-top: 2px;
}

#algolia-search-results .hit-info-container {
  overflow-wrap: break-word;
  word-break: break-word;
  width: 80%;
}

#algolia-search-results .hit-image-container {
  align-items: center;
  display: flex;
  height: 120px;
  justify-content: center;
  margin: auto;
  width: 120px;
}

#algolia-search-results .hit-image {
  height: auto;
  max-height: 100%;
  max-width: 100%;
}

#algolia-search-results .hit-em {
  color: #0371B5;
  font-size: 11px;
  font-weight: 600;
}

#algolia-search-results .hit-rating {
  border: 1px solid #0371B5;
  border-radius: 4px;
  margin-left: 4px;
  padding: 0 4px;
}

#algolia-search-results .hits-empty-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: auto;
  max-width: 300px;
}

#algolia-search-results .hits-empty-state-title {
  font-family: Hind;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0;
  text-align: center;
}

#algolia-search-results .hits-empty-state-description {
  color: rgba(35, 37, 51, 0.6);
  font-size: 0.875rem;
  text-align: center;
}

#algolia-search-results .hits-empty-state .ais-ClearRefinements {
  margin-top: 1rem;
}

#algolia-search-results .hits-empty-state .ais-ClearRefinements-button--disabled {
  display: none;
}

#algolia-search-results .hits-empty-state .ais-ClearRefinements-button {
  background: rgba(10, 8, 41, 0.04);
  border-radius: 3px;
  color: #21243d;
  min-height: 48px;
  padding: 16px 24px;
}

/* ToggleRefinement */

.ais-ToggleRefinement-label {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.ais-ToggleRefinement-checkbox {
  font: inherit;
  margin-left: 1rem;
  margin-right: 0;
  position: relative;
}

  .ais-ToggleRefinement-checkbox:checked::before {
    color: #0371B5;
  }

  .ais-ToggleRefinement-checkbox::before {
    align-items: center;
    color: rgba(33, 36, 61, 0.32);
    content: 'No';
    display: flex;
    font-size: 0.8rem;
    height: 16px;
    position: absolute;
    right: 38px;
  }

  .ais-ToggleRefinement-checkbox:checked::before {
    content: 'Yes';
  }

.ais-ToggleRefinement-count {
  display: none;
}

/* RatingMenu */

.ais-RatingMenu-item:not(.ais-RatingMenu-item--selected) {
  opacity: 0.5;
}

.ais-RatingMenu-starIcon {
  margin-right: 0.5rem;
}

/* Hide all mobile-specific design on desktop */

@media (min-width: 900px) {
  #algolia-search-results [data-layout='mobile'] {
    display: none;
  }
}
