.mfo_product_filter {
  border-bottom: 1px solid #D2D2D2;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  /*margin-bottom: 43px;*/
  margin-bottom: 25px;
  /*background: white;*/
}

.mfo_product_filter .filter_item {
  padding: 18px 0px;
  display: grid;
  place-items: center;
  position: relative;
}

.mfo_product_filter .filter_item .count {
  color: var( --colorOrange);
}

.mfo_product_filter .filter_wrapper {
  display: flex;
}

.mfo_product_filter .filter_wrapper .filter_item {
  margin-right: 60px;
}

.mfo_product_filter .filter_wrapper .filter_item .item_button {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.mfo_product_filter .filter_wrapper .filter_item .item_button .menuOpen{
  font-weight: 700;
}
.mfo_product_filter .filter_wrapper .filter_item .arrow {
  width: 19px;
  height: 12px;
  display: inline-block;
  background-image: url('../assets/material/filterVector.svg');
  background-repeat: no-repeat;
  background-size: 100%;
  margin-left: 12px;
}

.mfo_product_filter .filter_wrapper .filter_item span.menuOpen {
  font-weight: 700;
  /*/text-decoration: underline;*/
}

.mfo_product_filter .filter_wrapper .filter_item .arrow.menuOpen {
  transform: rotate(180deg);
}

.mfo_product_filter .filter_item .filter_menu {
  width: 400px;
  position: absolute;
  left: 0;
  top: calc(100% + 1px);
  background: white;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  z-index: 10;
  cursor: initial;
  z-index: 120;
}
.mfo_product_filter .optionsBlock_outer{
  max-height: 350px;
  overflow-y: auto;
}
.mfo_product_filter  .optionsBlock_outer::-webkit-scrollbar {
  width: 8px;
  background-color: #eee;
}

.mfo_product_filter  .optionsBlock_outer::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px #eee;
    background-color: #eee;
}

.mfo_product_filter  .optionsBlock_outer::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}
.mfo_product_filter .filter_item .filter_menu .optionsBlock div:first-child {
  padding: 18px 30px;
  line-height: 26px;
  border-bottom: 1px solid #d2d2d2;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  color: #1B1B1B;
}

.mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-bottom: 0;
}

.mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child fieldset {
  padding: 18px 30px;
  margin-bottom: 0;
}

.mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child fieldset .mfo_checkbox_wrapper {
  font-size: 18px;
  margin-bottom: 0;
}

.mfo_product_filter .filter_item .sort_menu .mfo_radio_group {
  width: 100%;
  margin-bottom: 0;
}

.mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child .mfo_radio_group .radio_item_wrapper,
.mfo_product_filter .filter_item .sort_menu .mfo_radio_group .radio_item_wrapper {
  border: none;
  width: 100%;
  padding: 18px 30px 18px 60px;
  margin: 0;
  color: #1B1B1B;
  font-size: 18px;
  line-height: 26px;
}

.mfo_product_filter .filter_item .sort_menu .mfo_radio_group .radio_item_wrapper {
  padding: 18px 18px 18px 60px;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 57px;
  display: flex;
  align-items: center;
  align-items: center;
  position: relative;
}

.mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child .mfo_radio_group .radio_item_wrapper .checkmark,
.mfo_product_filter .filter_item .sort_menu .mfo_radio_group .radio_item_wrapper .checkmark {
  left: 30px;
  top: 19px;
}

.mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child .mfo_radio_group .radio_item_wrapper:nth-child(even) {
  padding: 18px 30px 18px 30px;
}

.mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child .mfo_radio_group .radio_item_wrapper:nth-child(even) .checkmark {
  left: 0px;
}

.mfo_product_filter .filter_item .sort_menu {
  position: absolute;
  left: 0;
  top: calc(100% + 1px);
  background: white;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  z-index: 10;
  cursor: initial;
  width: 184px;
  z-index: 188;
}

.mfo_product_filter .filter_item .mobile_heading {
  display: none;
}

.mfo_product_filter .filter_item .sort_menu .mobile_buttons {
  display: none;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
  background: white;
  width: 100%;
  padding: 12px 18px;
}

.mfo_product_filter .filter_item .filter_menu .mobile_buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
  background: white;
  width: 100%;
  padding: 12px 18px;
}

.mfo_product_filter .filter_item .filter_menu .mobile_buttons > div,
.mfo_product_filter .filter_item .sort_menu .mobile_buttons > div {
  font-size: 16px;
  color: #4286DE;
  text-decoration: underline;
  display: grid;
  place-items: center;
  flex: 0.5;
  cursor: pointer;
}

.mfo_product_filter .filter_item .filter_menu .mobile_buttons > div > p,
.mfo_product_filter .filter_item .sort_menu .mobile_buttons > div > p {
  cursor: pointer;
}

.mfo_product_filter .filter_item .filter_menu .mobile_buttons > button,
.mfo_product_filter .filter_item .sort_menu .mobile_buttons > button {
  flex: 0.5;
}
.mfo_product_filter .filter_wrapper .filter_item .filter_menu {
  display: none;
}

.mfo_product_filter .filter_wrapper .filter_item .sort_menu {
  display: none;
}

.mfo_product_filter .filter_wrapper .filter_item.menuOpen .filter_menu {
  display: block;
}

.mfo_product_filter .filter_wrapper .filter_item.menuOpen .sort_menu {
  display: block;
}

@media (max-width: 767px) {
  .mfo_product_filter {
    /*border-bottom: none;*/
    font-size: 12px;
    line-height: 17.38px;
    margin-bottom: 10px;
    width: 100%;
  }
  .mfo_product_filter .filter_item {
    padding: 10px 0;
  }
  .mfo_product_filter .filter_wrapper .filter_item {
    padding: 10px 10px 10px 0;
    margin-right: 10px;
  }
  .mfo_product_filter .filter_wrapper .filter_item .arrow {
    margin-left: 6px;
    width: 12px;
    height: 7px;
  }
  
  .mfo_product_filter .filter_item .filter_menu,
  .mfo_product_filter .filter_item .sort_menu {
    position: fixed;
    /*top: 62px;*/
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    /*overflow: auto;*/
    /*-ms-overflow-style: none;*/  /* IE and Edge */
    /*scrollbar-width: none;*/  /* Firefox */
    z-index: 999;
  }
  /* for Chrome, Safari and Opera */
  .mfo_product_filter .filter_item .filter_menu::-webkit-scrollbar {
    display: none;
  }

  .mfo_product_filter .filter_item .filter_menu .mobile_heading,
  .mfo_product_filter .filter_item .sort_menu .mobile_heading {
    display: block;
    padding: 22px 0 15px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #d2d2d2;
    text-align: center;
    line-height: 23px;
    position: relative;
  }

  .mfo_product_filter .filter_item .mobile_heading .close,
  .mfo_product_filter .filter_item .mobile_heading .close {
    position: absolute;
    top: 26px;
    right: 32px;
    z-index: 11;
    width: 14px;
    height: 14px;
    cursor: pointer;
  }
  .mfo_product_filter .filter_item .mobile_heading .close::before,
  .mfo_product_filter .filter_item .mobile_heading .close::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 16px;
    height: 2px;
    background-color: black;
  }
  .mfo_product_filter .filter_item .mobile_heading .close::before {
    transform: rotate(45deg);
  }
  .mfo_product_filter .filter_item .mobile_heading .close::after {
    transform: rotate(135deg);
  }
  .mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child .mfo_radio_group .radio_item_wrapper {
    font-size: 14px;
    font-weight: 500;
    line-height: 20.2px;
    padding: 18px 30px 18px 68px;
  }

  .mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child .mfo_radio_group .radio_item_wrapper .checkmark {
    top: 19px;
    left: 38px;
  }
  .mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child {
    grid-template-columns: 1fr;
  }
  .mfo_product_filter .filter_item .filter_menu .optionsBlock div:last-child fieldset .mfo_checkbox_wrapper {
    font-size: 16px;
  }
  .mfo_product_filter .filter_item .filter_menu .mobile_buttons {
    padding: 8px 30px;
    position: fixed;
    bottom: 0;
  }
  .mfo_product_filter .filter_item .sort_menu .mobile_buttons {
    position: fixed;
    bottom: 0;
    display: flex;
  } 
  .mfo_product_filter .filter_item .filter_menu .mobile_buttons .plan{
    display: block;
  }
  .mfo_product_filter  .optionsBlock_outer{
    overflow-y: auto;
    max-height: calc(100vh - 61px - 74px );
    padding-bottom: 100px;
  }
  .mfo_product_filter  .optionsBlock_outer::-webkit-scrollbar {
    width: 5px;
    background-color: #eee;
  }

  .mfo_product_filter  .optionsBlock_outer::-webkit-scrollbar-track {
      box-shadow: inset 0 0 10px #eee;
      background-color: #eee;
  }

  .mfo_product_filter  .optionsBlock_outer::-webkit-scrollbar-thumb {
      background-color: #ccc;
      border-radius: 5px;
  }
}
