.filters {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 0px;
  overflow: hidden;
}
.filters.mobile_filters {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 21;
  padding: 48px 24px;
  overflow: scroll;
  background: #fff;
}
.mobile-filter-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 1;
  display: flex;
  padding: 8px 16px;
  background: yellow;
  justify-content: center;
  cursor: pointer;
}
.filters h2 {
  margin-bottom: 24px;
  padding: 8px 24px;
  background-color: #7d7d7d;
  color: #fff;
  font-size: 26px;
  text-transform: uppercase;
}
.show_filters_btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 48%;
  height: 27px;
  margin: -24px 0 0 auto;
  border: none;
  font: 13px/1.55 Helvetica, "PT Sans", Arial, sans-serif;
  font-weight: bold;
  color: rgb(47, 47, 47);
  cursor: pointer;
  text-align: right;
  white-space: nowrap;
}
.show_filters_btn:hover {
  text-decoration: none;
}
.show_filters_btn.show {
  margin-top: 0;
  z-index: 22;
  position: fixed;
  top: 8px;
  right: 16px;
}
.show_filters_btn span {
  display: inline-flex;
}
.show_filters_btn_txt {
  padding-left: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg fill='none' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.399 2.22l-5.088 6.784v5.076a.1.1 0 01-.063.093l-4.04 1.562a.1.1 0 01-.136-.094V9.004L.56 2.249V1.6H15.4v.62zm-6.36 6.36v4.87l-1.695.641V8.58L2.539 2.7h10.997L9.04 8.58z' clip-rule='evenodd' fill='%23333' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 19px;
  background-position: 0 2px;
}
.show_filters_btn img {
  width: 16px;
  margin-right: 12px;
  padding-top: 1px;
}
.filters-count {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 12px;
  background-color: var(--main-red-color);
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
}
.show_filters_btn.show img {
  display: none;
}

.show_filters_btn.show .show_filters_btn_txt {
  font-size: 44px;
  line-height: 1;
  background-image: none;
}
.show_filters_btn.show .filters-count {
  display: none;
}
.filter-nav-subcategories {
  padding: 0 24px 16px;
  border: 1px solid #fff;
}
.filter-nav-subcategories li {
  margin-bottom: 8px;
}
.filter-nav-subcategories ul {
  list-style-type: none;
  padding: 8px 0 0 0;
  overflow: hidden;
}
.filter-nav-subcategories ul li {
  position: relative;
  padding: 0 0 0 24px;
}
.filter-nav-subcategories ul li::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 1px;
  width: 1rem;
  height: 2.1rem;
  border-bottom: 1px solid #999;
  border-left: 1px solid #999;
}
.filter-nav-tree {
  display: flex;
  flex-direction: column;
}
.filter-nav-tree * {
  margin-top: 8px;
}
.filter-nav-tree *:nth-child(2) {
  padding-left: 24px;
}
.filter-nav-tree *:nth-child(3) {
  padding-left: 48px;
}
.filters form {
  position: relative;
}
.preloader {
  display: block;
  margin: 0 auto;
}
.filters-form fieldset {
  /* position: relative; */
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 14px;
  border: none;
}
.filters-form fieldset /* + fieldset */ {
  padding: 0 0 0 0;
  border-top: 1px solid #d8d8d8;
}
.filters-form fieldset {
  flex-direction: row;
  max-height: 415px;
  overflow: auto;
}
fieldset.range {
  flex-direction: column;
}
.filters-form h3 {
  margin-bottom: 16px;
  padding-top: 24px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.mobile_filters h3 {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.filters-form label {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 26px;
  margin-bottom: 10px;
  padding: 0 28px;
  cursor: pointer;
}
.option_label {
  display: flex;
  width: 100%;
  justify-content: space-between;
  line-height: 1.1;
}
.filters-form label:hover .option_label {
  color: var(--main-active-red-color);
}
.filters-form label:hover .input_span {
  box-shadow: 0 0 0 2px var(--main-active-red-color);
  transition: box-shadow 0.1s ease-in;
}
.label_count {
  margin-right: -24px;
  white-space: nowrap;
  color: #777;
}
.filters-form .disabled {
  color: #d8d8d8;
  display: none;
}
.filters-form input[type="checkbox"],
.filters-form input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.filters-form .input_span {
  position: absolute;
  top: 6px;
  left: 2px;
  width: 16px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  background-color: white;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  box-shadow: 0 0 0 2px rgb(204, 204, 204);
}
.filters-form .input_span.radio {
  border-radius: 8px;
}
/* Checked */
.filters-form input[type="checkbox"]:checked + .input_span,
.filters-form input[type="radio"]:checked + .input_span {
  background-color: var(--main-red-color);
  box-shadow: 0 0 0 1px var(--main-red-color);
}
.filters-form input[type="radio"]:checked + .input_span.radio::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background-color: #212121;
}
.filters-form input[type="checkbox"]:checked + .input_span.checkbox::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 8px;
  width: 7px;
  height: 9px;
  z-index: 1;
  border-style: solid;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg) translate(-100%, -25%) scale(1);
  transform: rotate(45deg) translate(-100%, -25%) scale(1);
  color: #fff;
}
/* Focused */
.check__input:focus + .input_box {
  box-shadow: 0 0 0 0.1em #4a90e2, 0 0 0 0.2em #7ed321;
}

.range {
  margin: 16px 0 24px;
  /* padding: 0 2px; */
}
.range-state {
  display: flex;
  justify-content: space-between;
}
.range-state input {
  width: calc(50% - 8px);
  padding: 4px 8px;
  border: 1px solid #b8b8b8;
  border-radius: 3px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  padding: 10px 0;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px 16px;
  padding: 4px 8px;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
}
.filter-tag span {
  padding-left: 6px;
  color: #898f97;
  font-size: 24px;
  line-height: 22px;
  cursor: pointer;
}
.comment_show_btn {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 1px solid #4a90e2;
  border-radius: 8px;
  font-size: 11px;
  color: #4a90e2;
  cursor: pointer;
}
.comment_hidden {
  display: none;
}
.comment_block {
  position: absolute;
  width: 300px;
  border: 1px solid #ccc;
  padding: 24px;
  top: 24px;
  left: 100%;
  background: #fff;
  z-index: 1;
}
label.option_hidden {
  display: none;
}
.show_hidden_btn {
  align-self: flex-start;
  /* border-bottom: 1px dashed #4a90e2; */
  display: list-item;
  list-style-type: "+";
  color: #4a90e2;
  cursor: pointer;
}

/*
 ********************************************************************************************************* */

@media screen and (min-width: 414px) {
  .show_filters_btn {
    font-size: 15px;
  }
}
@media screen and (min-width: 720px) {
  .show_filters_btn {
    margin: -32px 8px 0 auto;
  }
}
@media screen and (min-width: 768px) {
  .show_filters_btn {
    margin: -39px 8px 0 auto;
  }
}
@media screen and (min-width: 1024px) {
  .filters {
    /* position: sticky; */
    top: 0;
    align-self: flex-start;
    width: 260px;
    height: auto;
    margin-top: 24px;
    overflow: visible;
    /* padding: 16px 24px 0; */
    /* border: 1px solid #d8d8d8; */
  }

  .filters form {
    padding: 16px 24px 0 0;
    /* border: 1px solid #d8d8d8; */
    border-radius: 3px;
  }
  .show_filters_btn {
    display: none;
  }
}
