
/*
---------------------
Products-selection
---------------------
*/

.products-selection {
  padding    : 25px 0;
  margin-bottom: 15px;
  margin-top: 15px;
  transition:background-color 0.1s ease;
}

.products-selection.active {
  background-color: #ffffff;
}

.products-selection.active .af_filter,.products-selection.active .products-sort-order {
  background-color: #ffffff;
}
/*
----------------------------------
Part - Products-sort-order
----------------------------------
*/

.products-selection .sort-by-row {
  display           : -webkit-box;
  display           : -ms-flexbox;
  display           : flex;
  -webkit-box-align : center;
  -ms-flex-align    : center;
  align-items       : center;
  display: none;
}

.products-selection .sort-by {
  white-space : normal;
  word-break  : break-word;
  margin-right: 0.5em;
}

/*#sort-by {*/
/*  position: absolute;*/
/*  top: 17px;*/
/*  left: 50%;*/
/*  transform: translateX(calc(-50% + 310px));*/
/*}*/

.products-sort-order {
  position : relative;
  color    : var(--color-grey-font-default)
}
.products-sort-order .af_filter_content {
  display: flex;
  flex-direction: column;
  width: 170px;
}

.products-sort-order .select-title {
  display    : flex;
  align-items: center;
  cursor     : pointer;
  color: var(--color-primary);
  font-weight: 500;
}

.products-sort-order .select-list {
  padding-left: 5px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.14px;
  font-family: Urbanist,sans-serif;
}

/*.products-sort-order .select-list:hover {*/
/*  background      : var(--color-secondary);*/
/*  color           : #fff;*/
/*  text-decoration : none*/
/*}*/

.products-sort-order.open > .dropdown-menu  {
  display: flex;
  flex-direction: column;
  padding: 5px 10px;
  background-color: var(--color-grey-default);
}

.products-sort-order.open {
  height: 100%;
  max-height: 200px;
}



.selectedFilters_duplicate_top.inline {
  margin: 15px 0 5px 0;
  text-align: left;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.selectedFilters_duplicate_top .cf {
  background: #dad9d9;
  border-radius: 15px;
  padding: 2px 7px 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  line-height: 1;
}

.total-products {
  text-align: right;
}

sort-by-row mobile_only
/*
----------------------------------
Media Queries
----------------------------------
*/

@media (max-width : 575px) {

  .products-selection .filter-button {
    padding-left : 0
  }

}

@media (max-width : 767px) {

  .products-selection h1 {
    padding-top   : 0;
    text-align    : center;
    margin-bottom : 1rem
  }

  .products-selection .showing {
    padding-top : 1rem
  }

  .products-sort-order .select-title {
    margin-left : 0
  }

}

@media screen and (min-width: 1024px) {
  .products-sort-order .dropdown-menu {
    width : 16.88rem;
  }
  .selectedFilters.inline{
    display: none !important;
  }

  .products-sort-order {
    height: 36px;
    max-height: 36px;
    padding: 7px 20px;
    min-width: 200px;
    border-radius: 20px;
    border: 1px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    background: #f7f7f7;
    transition: 0.3s ease;
  }

  .products-sort-order .dropdown-menu {
    left          : auto;
    background    : #f6f6f6;
    border        : none;
    border-radius : 0;
    box-shadow    : 2px 2px 4px 0 rgba(0, 0, 0, .1);
    margin        : 0
  }

  .sort-by-row.mobile_only {
    display: none;
  }
}

@media (max-width: 1023px) {
  .products-selection {
    top: 0 !important;
  }

}

@media (max-width: 768px) {
  .products-selection {
    margin-bottom: 0 !important;
    margin-top: 45px;
  }
}
