div#subcategory:has(#amazzing_filter) #products {
  margin-left: 5px;
}

div#subcategory:has(#amazzing_filter) #subcategories {
  margin-left: 19%;
}

#amazzing_filter {
  width: 19%;
  float: left;
}

#amazzing_filter.block .title_block {
  display: none;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
}

#amazzing_filter .af_subtitle {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  color: #e71e62;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: solid 1px #d5d5d5;
  padding-bottom: 2%;
  padding-right: 15px;
  font-weight: 700;
  margin-bottom: 5%;
  text-align: left;
}

#amazzing_filter .af_filter {
  border: none;
}

#amazzing_filter label .name {
  width: calc(100% - 30px);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9375rem;
  color: #232323;
}

#amazzing_filter label .name,
#amazzing_filter .af_filter .count {
  margin-top: .250rem;
}

.selected-filters-label {
  display: inline;
  margin-right: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
}

.selectedFilters {
  background: #fafafa;
  padding: .625rem 1.875rem 0;
  margin-bottom: 1.25rem;
}

.selectedFilters .cf {
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);
  color: #e71e62;
  margin-right: .625rem;
  margin-bottom: .625rem;
  background: #fff;
  padding: .625rem;
  padding-right: 1.5rem;
  display: inline-block;
  font-size: .8125rem;
  border-radius: 2em;
}

.selectedFilters .clearAll .txt {
  font-size: 0.8em;
}

.has-compact-filter .selectedFilters .clearAll .txt {
  margin-top: 1.2em;
}

.has-compact-filter #amazzing_filter .selectedFilters {
  display: none;
}

.has-compact-filter .selectedFilters .clearAll {
  display: none;
  text-align: center;
}

.has-compact-filter .block_sort_and_nb_products {
  width: 50%;
  float: left;
  padding-right: 0;
  margin-right: 0;
}

.has-compact-filter .products-selection .sort-by-row {
  display: inline;
}

.has-compact-filter .products-selection .showing {
  clear: both;
}

.has-compact-filter .products-sort-order {
  border: none;
}

.has-compact-filter .products-sort-order button.btn-unstyle.select-title {
  position: relative;
  height: 100%;
  background-color: #FFFFFF;
}

.has-compact-filter .products-sort-order button.btn-unstyle.select-title i {
  display: none;
}

.has-compact-filter .compact-toggle,
.has-compact-filter .products-sort-order button.btn-unstyle.select-title {
  display: block;
  color: #000;
  font-weight: bold;
  transform: none;
  left: auto;
  bottom: auto;
  letter-spacing: 2px;
  padding: 0;
  border: 1px solid #d9d9d9;
  text-align: center;
  font-size: 12px;
}

.has-compact-filter .compact-toggle {
  line-height: 29px;
  box-shadow: none;
  margin-right: 15px;
}

.has-compact-filter #js-product-list-top .compact-toggle {
  background-color: #FFFFFF;
}

.has-compact-filter #js-product-list-top.fixed {
  position: fixed;
  width: 100%;
  z-index: 100;
  background-color: #FFFFFF;
}

.dynamic-product-count {
  display: none;
}

.has-compact-filter #amazzing_filter .compact-toggle {
  left: -130px;
  background: #FFF;
  border: 1px solid #d9d9d9;
  padding: 7px 30px 0px 5px;
  top: 14%;
}

.compact-toggle-icon {
  display: none;
}

.has-compact-filter .compact-toggle-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  line-height: 32px;
  font-size: unset;
}

.compact-toggle-text {
  position: relative;
  color: #000;
  font-weight: bold;
  transform: none;
  left: auto;
  bottom: auto;
  letter-spacing: 2px;
  line-height: normal;
}

.title_block_compact {
  display: none;
}

.has-compact-filter .title_block_compact {
  display: block;
  border-bottom: solid 1px #d5d5d5;
  color: #000;
  font-weight: bold;
  text-align: center;
  padding: 10px 0;
  font-size: 22px;
  letter-spacing: 2px;
}

.has-compact-filter .title_block_compact span {
  position: absolute;
  right: 45px;
}

.af_filter ul {
  max-height: none;
}

.show-filter .overlay_global {
  z-index: 10000;
}

@media only screen and (max-width: 1560px) {
  #amazzing_filter {
    width: 25%;
  }

  div#subcategory:has(#amazzing_filter) #subcategories {
    margin-left: 25%;
  }
}

@media only screen and (min-width: 1200px) {
  #amazzing_filter.block .title_block {
    display: block;
  }
}

@media only screen and (max-width: 767px) {
  .has-compact-filter .compact-toggle {
    border-left: none;
  }
}

@media only screen and (min-width: 576px) {
  .has-compact-filter #js-product-list-top.fixed {
    left: 0;
    margin-left: 15px;
  }

  .has-compact-filter #js-product-list-top.fixed .block_sort_and_nb_products {
    padding-left: 0;
  }

  .has-compact-filter #js-product-list-top.fixed .compact-toggle,
  .has-compact-filter .compact-toggle.fixed {
    margin-right: 0;
  }
}

@media only screen and (min-width: 768px) {
  .has-compact-filter .block_sort_and_nb_products,
  .has-compact-filter .compact-toggle {
    width: 35%;
  }

  .has-compact-filter .compact-toggle {
    margin-left: auto;
  }
}
