#ewTopFiltersAnchor {
  margin: 20px 0;
  position: relative;
  z-index: 999;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#ewTopFilters {
  position: relative;
  z-index: 999;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#ewTopFilters *,
#ewTopFilters *::before,
#ewTopFilters *::after {
  box-sizing: border-box;
}

#ewTopFilters #filters,
#ewTopFilters .filters,
#ewTopFilters .ew-filters-root {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#ewTopFilters .filter-sections,
#ewTopFilters #category-filter-hover {
  display: contents !important;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#ewTopFilters .ew-original-control-hidden,
#ewTopFilters .filters-unveil-button-wrapper,
#ewTopFilters .filter-section-button,
#ewTopFilters .toggle-filters,
#ewTopFilters .filter-section-count {
  display: none !important;
}

#ewTopFilters #price-filter-form {
  display: none !important;
}

#ewTopFilters .ew-filter-section {
  position: relative;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  z-index: 1;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#ewTopFilters .ew-filter-section.is-open {
  z-index: 1000;
}

#ewTopFilters .ew-filter-section-title {
  min-width: 140px;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 44px 0 24px !important;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 52px;
  text-align: left;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  border-radius: 0;
}

#ewTopFilters .ew-filter-section-title:hover {
  background: #f5f5f5;
}

#ewTopFilters .ew-filter-section.is-active .ew-filter-section-title {
  border-width: 2px;
}

#ewTopFilters .ew-filter-section.is-open .ew-filter-section-title {
  border-bottom-color: #fff;
}

#ewTopFilters .ew-section-active-count {
  display: inline;
}

#ewTopFilters .ew-section-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translateY(-65%) rotate(45deg);
}

#ewTopFilters .ew-filter-section.is-open .ew-section-chevron {
  transform: translateY(-35%) rotate(225deg);
}

#ewTopFilters .ew-section-body {
  display: none;
  position: absolute;
  left: 0;
  top: 51px;
  min-width: 280px;
  max-height: 420px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 14px 16px;
  border: 1px solid #111;
  background: #fff;
  z-index: 1001;
}

#ewTopFilters .ew-filter-section.is-open > .ew-section-body {
  display: block !important;
}

#ewTopFilters .ew-section-body form,
#ewTopFilters .ew-section-body fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#ewTopFilters .ew-section-body fieldset > div,
#ewTopFilters .ew-section-body .param-filter-top fieldset > div,
#ewTopFilters .ew-section-body .advanced-filters-wrapper > div,
#ewTopFilters .ew-section-body .div--collapsable {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  clear: both !important;
  position: relative !important;
  float: none !important;
}

#ewTopFilters .ew-section-body .advanced-parameter {
  display: none !important;
}

#ewTopFilters .ew-section-body input[type="checkbox"] {
  position: static !important;
  float: none !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
}

#ewTopFilters .ew-section-body input[type="checkbox"].no-display {
  display: inline-block !important;
}

#ewTopFilters .ew-section-body label.filter-label,
#ewTopFilters .ew-section-body label.filter-label.no-display {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  position: static !important;
  float: none !important;
  cursor: pointer;
  white-space: normal !important;
}

#ewTopFilters .ew-section-body .filter-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  height: 24px !important;
  margin-left: auto !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #f3f3f3 !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  position: static !important;
  float: none !important;
  flex: 0 0 auto !important;
}

#ewTopFilters .ew-filter-section[data-filter-type="price"] .ew-section-body {
  min-width: 320px;
}

#ewTopFilters .ew-filter-section[data-filter-type="price"] .slider-header {
  margin-bottom: 14px;
}

#ewTopFilters .ew-filter-section[data-filter-type="price"] .slider-content {
  padding: 8px 4px 12px 4px;
}

#ewTopFilters .filter-more,
#ewTopFilters .filter-more--more,
#ewTopFilters .filter-more--less {
  display: none !important;
}

.ew-source-filter-hidden {
  display: none !important;
}

/* Pojistka: nikdy neschovávat obsah kategorie ani produkty */
.category-content-wrapper.ew-source-filter-hidden,
.content-wrapper-in.ew-source-filter-hidden,
#content.ew-source-filter-hidden,
.products.ew-source-filter-hidden,
.products-block.ew-source-filter-hidden {
  display: block !important;
}

#content,
#content-wrapper,
.content-wrapper-in,
.content,
.category-top {
  overflow: visible !important;
}

@media (max-width: 767px) {
  #ewTopFiltersAnchor {
    margin: 16px 0;
    padding: 14px;
    background: #f7f7f7;
    overflow: visible !important;
  }

  #ewTopFilters #filters,
  #ewTopFilters .filters,
  #ewTopFilters .ew-filters-root {
    display: block !important;
    overflow: visible !important;
  }

  #ewTopFilters .ew-filter-section {
    margin-bottom: 10px !important;
  }

  #ewTopFilters .ew-filter-section-title {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    line-height: 44px;
  }

  #ewTopFilters .ew-section-body {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 320px;
    border-top: 0;
    padding: 12px 12px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  #ewTopFilters .ew-filter-section.is-open .ew-filter-section-title {
    border-bottom-color: #111;
  }

  #ewTopFilters .ew-filter-section[data-filter-type="price"] .ew-section-body {
    min-width: 0;
  }
}