.search-filters .facets-widget-checkbox .select-control {
  background-color: #fff;
  display: block;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  min-width: 230px;
  max-height: 52px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 45px 15px 25px;
  border: 2px solid #000;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 16px;
}

@media screen and (min-width: 767px) and (max-width: 1024px) {
  .search-filters .facets-widget-checkbox .select-control {
    font-size: 0.875rem;
  }
}

.search-filters .js-facets-checkbox-links {
  display: none;
  top: 50px;
  width: 100%;
  max-width: 100%;
  min-width: 230px;
  overflow-y: auto;
  list-style: none;
  min-height: 100px;
  max-height: 355px;
  z-index: 5;
  position: absolute;
  font-weight: 400;
  padding: 0 23px 0 25px;
  border: 2px solid #000;
  border-top: none;
  background-color: #fff;
}

.search-filters .facets-widget-checkbox {
  position: relative;
}

.facet-item {
  margin: 0;
  font-size: 1.25rem;
  padding-left: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  list-style-type: none;
}

.facet-item label {
  padding: 15px 52px 15px 0;
}

.facet-item:not(.facet-item--expanded):hover {
  color: #4b5564;
}

.facet-item--expanded:hover {
  color: #4b5564;
}


.facet-item input {
  top: 17px;
  right: 0;
  height: 16px;
  cursor: pointer;
  position: absolute;
  z-index: 1;
}

.select-control::after {
  top: 50%;
  content: "";
  right: 22px;
  width: 18px;
  height: 12px;
  position: absolute;
  transform: translateY(-50%);
  transition: all 0.2s ease-in-out;
  background: url("../images/icon-arrow-down-red.svg") no-repeat;
  background-size: contain;
}

.facet-item--expanded {
  padding-right: 0;
}

.facet-item--expanded > label {
  display: block;
  position: relative;
  margin-right: 40px;
  z-index: 2;
}

.facet-item--expanded > label::after {
  top: 20px;
  content: "";
  right: -10px;
  width: 18px;
  height: 12px;
  position: absolute;
  transition: all 0.2s ease-in-out;
  background: url("../images/icon-arrow-down-red.svg") no-repeat;
  background-size: contain;
}

.facet-item--expanded .facets-widget- {
  display: none;
}

.open-submenu .facets-widget- {
  display: block;
}

.open-submenu label::after {
  transform: rotate(-180deg);
  transition: all 0.2s ease-in-out;
}

.open-facet .select-control::after {
  transform: rotate(-180deg);
  transition: all 0.2s ease-in-out;
  top: 20px;
}

.open-facet .js-facets-checkbox-links {
  display: block;
}

.open-facet .select-control {
  border-bottom: 0 !important;
}

.facets-widget- ul {
  padding-left: 40px;
  color: #55606f;
}

.active-filters {
  margin-bottom: 20px;
}

.active-filters .tag {
  margin-bottom: 15px;
}

.active-filters .filter {
  font-size: 1rem;
  cursor: pointer;
  margin: 0 0.75rem 0.75rem 0;
}

.active-filters .tag {
  color: #55606e;
  font-size: 1rem;
  font-weight: 600;
  padding-top: 1rem;
  text-transform: uppercase;
}

.facet-item::marker {
  content: "";
  display: none;
}

.mobile-filters-close,
.open-filters .mobile-filters-open {
  display: none;
}

.search-filters.open-filters .mobile-filters-close {
  display: block;
}

.search-filters .btn {
  border: none;
  color: #fff;
  cursor: pointer;
  background: #d12800;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-transform: uppercase;
  padding: 14px 25px;
  width: 100%;
}

.btn.blue {
  background: #006eb5;
}

@media screen and (min-width: 767px) {
  .mobile-filters-open {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .search-filters:not(.open-filters) .block-facet--checkbox,
  .search-filters:not(.open-filters) .active-filters {
    display: none;
  }
}

/* Search page theming */

.results-and-filters-container {
  display: flex;
  position: relative;
  padding-top: 150px;
  flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
  .results-and-filters-container {
    padding-top: 90px;
  }
}

.results-and-filters-container .search-results {
  padding-left: 25px;
  flex: 0 0 calc(100% - 22.16rem);
  max-width: calc(100% - 22.16rem);
}

@media screen and (max-width: 768px) {
  .results-and-filters-container .search-results {
    padding-left: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }
}
@media screen and (min-width: 767px) and (max-width: 1024px) {
  .results-and-filters-container .search-results {
    flex: 0 0 calc(100% - 15.9375rem);
    max-width: calc(100% - 15.9375rem);
  }
}

.search-filters {
  flex: 0 0 22.16rem;
  max-width: 22.16rem;
}

@media screen and (max-width: 768px) {
  .search-filters {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media screen and (min-width: 767px) and (max-width: 1024px) {
  .search-filters {
    max-width: 15.9375rem;
    flex: 0 0 15.9375rem;
  }
}

.search-results .views-exposed-form {
  position: absolute;
  top: 0;
  right: 22px;
  left: 0;
  width: 100%;
}

/* .search-input {
  position: unset !important;
} */

.search-input.big-search input {
  height: auto;
}

.search-input.big-search .icon {
  top: 15px;
  left: 0;
}

@media screen and (min-width: 767px) and (max-width: 1025px) {
  .search-input.big-search .icon {
    top: 30px;
  }
}

@media screen and (min-width: 1025px) {
  .search-input.big-search .icon {
    top: 35px;
  }
}

.search-results .views-infinite-scroll-header {
  padding-bottom: 25px;
  font-size: 1rem;
}

.search-results .item-list li {
  padding: 22px 0 24px;
  border-top: 2px solid #000;
  margin-left: 0;
}

@media screen and(max-width: 768px) {
  .search-results .item-list li {
    padding: 22px 25px 24px;
  }
}

.search-results .item-list li::marker {
  content: '';
}

.search-results .item-list ul {
  padding-left: 0;
}

.search-results .item-list .views-field-type-str {
  font-size: 0.75rem;
  line-height: 1.33;
  font-weight: 700;
  text-transform: uppercase;
}

.search-results .item-list .views-field-title {
  margin-top: 10px;
  padding-right: 60px;
  display: block;
  line-height: 1.2;
  font-weight: 400;
}

@media screen and (max-width: 1025px) {
  .search-results .item-list .views-field-title {
    padding-right: 0;
  }
}

.search-results .views-field-title a {
  font-size: 1.5625rem;
}

.search-results .views-field-search-api-excerpt {
  margin-top: 25px;
  padding-right: 50px;
  line-height: 1.3;
  font-size: 1rem;
  font-weight: 400;
}

@media screen and (max-width: 1025px) {
  .search-results .views-field-search-api-excerpt {
    padding-right: 0;
  }
}

.search-results .item-list .views-field-title a:hover {
  color: #55606f;
}

.mobile-filters-open,
.mobile-filters-close {
  margin-bottom: 30px;
}

.show-results .popular-search-blocks,
.hide-popular-search .popular-search-blocks {
  display: none !important;
}

.modal-popular-search {
  overflow-x: hidden;
}

.modal-popular-search:not(.show-results) .mobile-filters-open,
.modal-popular-search:not(.show-results) .mobile-filters-close {
  display: none;
}

.search-results .views-infinite-scroll-content-wrapper {
  padding-right: 30px;
  overflow-y: auto;
  max-height: calc(100vh - 345px);
}

@media screen and (max-width: 768px) {
  .search-results .views-infinite-scroll-content-wrapper {
    padding-right: 30px;
  }
}

@media screen and (min-width: 767px) {
  .modal-popular-search .results-and-filters-container .search-results .views-infinite-scroll-content-wrapper::-webkit-scrollbar-thumb {
    background-color: #000;
  }

  .modal-popular-search .results-and-filters-container .search-results .views-infinite-scroll-content-wrapper::-webkit-scrollbar {
    width: 5px;
    background: linear-gradient(90deg,transparent 10%,#000 33%,transparent 0);
  }
}

.search-results .views-exposed-form .js-form-type-select {
  display: none;
}

.modal-popular-search:not(.show-results) .country-checkbox,
.country-checkbox:not(.show-checkbox),
.modal-popular-search:not(.show-cname) .views-infinite-scroll-header .country-name,
body:not(.path-group) .views-infinite-scroll-header .country-name {
  display: none;
}

.search-results .country-name {
  font-weight: bold;
}

.search-filters .country-name {
  padding-right: 0;
}

@media screen and (max-width: 768px) {
  .show-results .grid-container {
    top: 30px !important;
  }
}

@media screen and (min-width: 767px) {
  .show-results .grid-container {
    top: 30px !important;
    transform: translate(-50%) !important;
  }
}

.country-checkbox label {
  display: inline-block;
}

.views-field-mid {
  font-size: 0.75rem;
  line-height: 1.33;
  font-weight: 700;
  text-transform: uppercase;
}

.search-results .js-pager__items {
  display: none;
}

.facet-item.show-checkbox {
  border-top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

body:not(.path-group) .search-results.fullwidth-results {
  padding-left: 0;
  flex: 0 0 100%;
  max-width: 100%;
}
