/* Modern category filters and sorting for the Optima theme. */
#search_filters.js-search-filters {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  box-shadow: 0 5px 22px rgba(29, 55, 84, .045);
}

#search_filters .sk-facets-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  padding: 0 0 14px;
  border-bottom: 1px solid #edf0f3;
}

#search_filters .sk-facets-heading .h6 {
  margin: 0;
  color: #172f49;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

#search_filters .sk-facets-heading .js-search-filters-clear-all {
  padding: 5px 0;
  color: #53708d;
  font-size: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#search_filters .sk-facet {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
}

#search_filters .sk-facet:last-child {
  border-bottom: 0;
}

#search_filters .sk-facet-toggle {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 1px;
  color: #183b5c;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: color .18s ease;
}

#search_filters .sk-facet-toggle:hover,
#search_filters .sk-facet-toggle:focus {
  color: #087e8b;
  background: transparent;
  outline: none;
  box-shadow: none;
}

#search_filters .sk-facet-toggle .facet-title {
  margin: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

#search_filters .sk-facet-toggle .material-icons {
  flex: 0 0 auto;
  color: #8292a2;
  font-size: 19px;
  transition: transform .2s ease, color .2s ease;
}

#search_filters .sk-facet-toggle[aria-expanded="true"] .material-icons {
  color: #087e8b;
  transform: rotate(180deg);
}

#search_filters .sk-facet-content {
  padding: 0 0 14px;
}

#search_filters .sk-facet-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#search_filters .sk-facet-content ul > li {
  padding: 5px 0;
}

#search_filters .sk-facet-content .facet-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #40546a;
  font-size: 13px;
  line-height: 1.45;
}

#search_filters .sk-facet-content .facet-label a {
  flex: 1 1 auto;
  color: inherit;
  transition: color .15s ease;
}

#search_filters .sk-facet-content .facet-label a:hover,
#search_filters .sk-facet-content .facet-label.active a {
  color: #087e8b;
}

#search_filters .sk-facet-content .magnitude {
  color: #93a0ad;
  font-size: 12px;
}

#search_filters .sk-facet-content input[type="checkbox"],
#search_filters .sk-facet-content input[type="radio"] {
  accent-color: #087e8b;
}

#search_filters .sk-facet-content .facet-dropdown {
  width: 100%;
  padding: 0;
}

#search_filters .sk-facet-content .facet-dropdown .select-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: #334a60;
  background: #f7f9fb;
  border: 1px solid #e5eaf0;
  border-radius: 7px;
}

.sk-listing-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  margin-bottom: 12px;
}

.sk-listing-sort .products-sort-order {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.sk-listing-sort .products-sort-order > span {
  color: #617286;
  font-size: 13px;
}

.sk-listing-sort .products-sort-order .select-title {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  color: #183b5c;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 7px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.sk-listing-sort .products-sort-order .select-title:hover,
.sk-listing-sort .products-sort-order .select-title[aria-expanded="true"] {
  border-color: #9ab4c9;
  box-shadow: 0 2px 8px rgba(29, 55, 84, .06);
}

@media (max-width: 767px) {
  #search_filters.js-search-filters {
    padding: 14px 16px;
    border-radius: 10px;
  }

  .sk-listing-sort {
    justify-content: flex-start;
    margin: 8px 0 12px;
  }
}
