body.type-category #filters-wrapper,
body.type-category #filters-wrapper * {
  box-sizing: border-box;
}

body.type-category #filters-wrapper {
  margin: 18px 0 26px;
}

body.type-category #filters-wrapper .filters-unveil-button-wrapper .btn.unveil-button {
  min-height: 56px;
  padding: 16px 22px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

body.type-category #filters-wrapper .filters-unveil-button-wrapper .btn.unveil-button:before {
  color: #fff;
}

body.type-category.filters-visible #filters-wrapper .filters-unveil-button-wrapper .btn.unveil-button {
  border-radius: 8px 8px 0 0;
}

body.m81-filter-enhanced #filters {
  overflow: visible;
  margin: 0 0 24px;
  padding: 14px;
  background: #f2f4f7;
  border: 1px solid #e1e5ec;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

body.m81-filter-enhanced #filters .filter-sections {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding: 0 !important;
  background: transparent !important;
}

body.m81-filter-enhanced #filters #category-filter-hover {
  display: contents !important;
}

body.m81-filter-enhanced #filters .filter-section-button {
  display: none !important;
}

body.m81-filter-enhanced #filters .slider-wrapper,
body.m81-filter-enhanced #filters .filter-section-boolean,
body.m81-filter-enhanced #filters .filter-sections > .filter-section:not(.filter-section-count),
body.m81-filter-enhanced #filters #category-filter-hover > .filter-section:not(.filter-section-count) {
  position: relative;
  flex: 0 1 216px;
  width: auto !important;
  min-width: 190px;
  max-width: 260px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

body.m81-filter-enhanced #filters .m81-filter-card > h4 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 48px;
  width: 100%;
  margin: 0 !important;
  padding: 13px 14px !important;
  background: #fff !important;
  color: #15171d !important;
  border: 1px solid #d7dde7 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
}

body.m81-filter-enhanced #filters .m81-filter-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.m81-filter-enhanced #filters .m81-filter-badge {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff1d3e;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

body.m81-filter-enhanced #filters .m81-filter-card > h4:after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  margin-top: -4px;
}

body.m81-filter-enhanced #filters .m81-filter-card.m81-selected > h4,
body.m81-filter-enhanced #filters .m81-filter-card.m81-open > h4 {
  border-color: #ff1d3e !important;
  box-shadow: 0 0 0 2px rgba(255, 29, 62, .14);
}

body.m81-filter-enhanced #filters .m81-filter-card.m81-open > h4:after {
  transform: rotate(225deg);
  margin-top: 4px;
}

body.m81-filter-enhanced #filters .m81-filter-body {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: min(340px, calc(100vw - 32px));
  max-height: 390px;
  padding: 12px;
  background: #fff;
  color: #111;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  overflow: auto;
}

body.m81-filter-enhanced #filters .m81-open > .m81-filter-body {
  display: block;
}

body.m81-filter-enhanced #filters .slider-wrapper .m81-filter-body {
  width: min(440px, calc(100vw - 32px));
  padding: 18px;
}

body.m81-filter-enhanced #filters form,
body.m81-filter-enhanced #filters fieldset,
body.m81-filter-enhanced #filters .param-filter-top {
  position: static !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow: visible !important;
}

body.m81-filter-enhanced #filters .m81-filter-search {
  width: 100%;
  min-height: 42px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #f8fafc;
  color: #111;
  font-size: 14px;
  outline: none;
}

body.m81-filter-enhanced #filters .m81-filter-search:focus {
  border-color: #ff1d3e;
  background: #fff;
}

body.m81-filter-enhanced #filters fieldset > div:not(.advanced-filters-wrapper) {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
}

body.m81-filter-enhanced #filters fieldset > div.m81-hidden-option {
  display: none !important;
}

body.m81-filter-enhanced #filters fieldset > div.m81-zero-option {
  display: none !important;
}

body.m81-filter-enhanced #filters .filter-label {
  display: flex !important;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: #15171d;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

body.m81-filter-enhanced #filters .filter-count {
  margin-left: 5px;
  color: #737b89;
  font-weight: 700;
}

body.m81-filter-enhanced #filters input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  accent-color: #ff1d3e;
}

body.m81-filter-enhanced #filters .filter-section-count {
  flex: 1 1 240px;
  min-height: 48px;
  margin: 0 !important;
  padding: 13px 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  background: transparent !important;
  color: #737b89;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 767px) {
  body.type-category.m81-filter-enhanced {
    overflow-x: hidden;
  }

  body.type-category.m81-filter-enhanced #content-wrapper,
  body.type-category.m81-filter-enhanced .content-wrapper,
  body.type-category.m81-filter-enhanced .overall-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.m81-filter-enhanced #filters {
    padding: 10px;
  }

  body.m81-filter-enhanced #filters .slider-wrapper,
  body.m81-filter-enhanced #filters .filter-section-boolean,
  body.m81-filter-enhanced #filters .filter-sections > .filter-section:not(.filter-section-count),
  body.m81-filter-enhanced #filters #category-filter-hover > .filter-section:not(.filter-section-count) {
    flex: 1 1 100%;
    max-width: none;
  }

  body.m81-filter-enhanced #filters .m81-filter-body {
    position: static;
    width: 100%;
    max-height: 320px;
    margin-top: 8px;
    box-shadow: none;
  }

  body.m81-filter-enhanced #filters .filter-section-count {
    justify-content: flex-start;
  }
}
