.ct-simple-filter {
  --ct-filter-collapsed: 56px;
  --ct-filter-expanded: 380px;
  position: fixed;
  z-index: 100020;
  top: 50%;
  left: 18px;
  width: var(--ct-filter-collapsed);
  max-width: calc(100vw - 36px);
  transform: translateY(-153px);
  color: #151515;
  font-family: inherit;
  transition: width 220ms ease;
}

.fusion-post-cards .ct-product-hidden,
.fusion-post-cards .ct-dedicated-side-group[hidden],
.fusion-post-cards .product-category-section[hidden] {
  display: none !important;
}

html body .fusion-post-cards .product-grid-view.product.ct-simple-filter-hidden,
html body .ct-dedicated-side-group.ct-simple-filter-group-hidden,
html body .product-category-section.ct-simple-filter-section-hidden,
html body .fusion-separator.ct-simple-filter-separator-hidden,
html body .ct-product-group-divider.ct-simple-filter-divider-hidden,
html body .product-category-section .ct-menuboard-subcategory-divider.ct-simple-filter-divider-hidden {
  display: none !important;
}

.dedykowane-submenu a[hidden] {
  display: none !important;
}

.product-category-section,
.ct-dedicated-side-group {
  scroll-margin-top: 104px;
}

.ct-dedicated-side-group__cards > .ct-simple-product-row-break {
  grid-column: 1 / -1;
  width: 100%;
  height: 0;
  min-height: 0;
  margin: -15px 0;
  padding: 0;
  border: 0;
  list-style: none;
  pointer-events: none;
}

.ct-simple-filter:hover,
.ct-simple-filter:focus-within,
.ct-simple-filter.is-open {
  width: var(--ct-filter-expanded);
}

.ct-simple-filter__toggle {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #e2e2e2;
  border-bottom: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: none;
}

.ct-simple-filter:hover .ct-simple-filter__toggle,
.ct-simple-filter:focus-within .ct-simple-filter__toggle,
.ct-simple-filter.is-open .ct-simple-filter__toggle {
  width: 100%;
  min-height: 50px;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  box-shadow: none;
}

.ct-simple-filter__toggle-icon {
  position: relative;
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
}

.ct-simple-filter__toggle-icon::before,
.ct-simple-filter__toggle-icon::after,
.ct-simple-filter__toggle-icon span {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: '';
}

.ct-simple-filter__toggle-icon::before { top: 0; }
.ct-simple-filter__toggle-icon span { top: 7px; width: 16px; }
.ct-simple-filter__toggle-icon::after { top: 14px; width: 10px; }

.ct-simple-filter__toggle-label,
.ct-simple-filter__toggle-count {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 220ms ease, opacity 160ms ease;
}

.ct-simple-filter__toggle-label {
  margin-right: auto;
  font-size: 11px;
  font-weight: 700;
}

.ct-simple-filter__toggle-count {
  font-size: 9px;
  letter-spacing: .08em;
  color: #cfcfcf;
}

.ct-simple-filter:hover .ct-simple-filter__toggle-label,
.ct-simple-filter:focus-within .ct-simple-filter__toggle-label,
.ct-simple-filter.is-open .ct-simple-filter__toggle-label,
.ct-simple-filter:hover .ct-simple-filter__toggle-count,
.ct-simple-filter:focus-within .ct-simple-filter__toggle-count,
.ct-simple-filter.is-open .ct-simple-filter__toggle-count {
  max-width: 190px;
  opacity: 1;
}

.ct-simple-filter__rail {
  display: grid;
  width: 56px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-top: 0;
  border-radius: 0 0 2px 2px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .1);
}

.ct-simple-filter__rail-item {
  display: flex;
  width: 54px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ededed;
  background: #fff;
  color: #171717;
  transition: background-color 150ms ease, color 150ms ease;
}

.ct-simple-filter__rail-item:last-child {
  border-bottom: 0;
}

.ct-simple-filter__rail-item svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-simple-filter__rail-item:hover {
  background: #111;
  color: #fff;
}

.ct-simple-filter:hover .ct-simple-filter__rail,
.ct-simple-filter:focus-within .ct-simple-filter__rail,
.ct-simple-filter.is-open .ct-simple-filter__rail {
  display: none;
}

.ct-simple-filter__panel {
  display: none;
  max-height: min(60vh, 690px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e2e2e2;
  border-radius: 0 0 2px 2px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .11);
  scrollbar-width: thin;
  scrollbar-color: #bcbcbc transparent;
}

.ct-simple-filter:hover .ct-simple-filter__panel,
.ct-simple-filter:focus-within .ct-simple-filter__panel,
.ct-simple-filter.is-open .ct-simple-filter__panel {
  display: block;
}

.ct-simple-filter__head {
  display: flex;
  max-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 0 16px;
  border-bottom: 0 solid #ececec;
  opacity: 0;
  transition: max-height 220ms ease, padding 220ms ease, opacity 160ms ease;
}

.ct-simple-filter:hover .ct-simple-filter__head,
.ct-simple-filter:focus-within .ct-simple-filter__head,
.ct-simple-filter.is-open .ct-simple-filter__head {
  max-height: 52px;
  padding: 13px 16px 11px;
  border-bottom-width: 1px;
  opacity: 1;
}

.ct-simple-filter__result {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ct-simple-filter__clear {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ct-simple-filter__groups {
  padding: 7px 6px 9px;
}

.ct-simple-filter__group {
  margin: 0;
  padding: 4px 0;
  border: 0;
}

.ct-simple-filter__group + .ct-simple-filter__group {
  border-top: 1px solid #efefef;
}

.ct-simple-filter__legend {
  display: block;
  overflow: hidden;
  max-height: 0;
  margin: 0;
  padding: 0 8px;
  opacity: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: max-height 220ms ease, margin 220ms ease, opacity 160ms ease;
}

.ct-simple-filter:hover .ct-simple-filter__legend,
.ct-simple-filter:focus-within .ct-simple-filter__legend,
.ct-simple-filter.is-open .ct-simple-filter__legend {
  max-height: 24px;
  margin: 7px 0 5px;
  opacity: 1;
}

.ct-simple-filter__option {
  position: relative;
  display: grid;
  min-height: 34px;
  grid-template-columns: 30px 0 0;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  padding: 2px 0;
  cursor: pointer;
  transition: grid-template-columns 220ms ease, gap 220ms ease, background-color 140ms ease;
}

.ct-simple-filter:hover .ct-simple-filter__option,
.ct-simple-filter:focus-within .ct-simple-filter__option,
.ct-simple-filter.is-open .ct-simple-filter__option {
  min-height: 44px;
  grid-template-columns: 38px 16px minmax(0, 1fr);
  justify-content: stretch;
  gap: 9px;
  padding: 3px 8px;
}

.ct-simple-filter__option:hover {
  background: #f5f5f5;
}

.ct-simple-filter__option.is-disabled,
.ct-simple-filter__option.is-disabled:hover {
  color: #aaa;
  background: transparent;
  cursor: not-allowed;
}

.ct-simple-filter__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.ct-simple-filter__thumb {
  position: relative;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  background: #fafafa;
  transition: width 220ms ease, height 220ms ease, border-color 140ms ease;
}

.ct-simple-filter:hover .ct-simple-filter__thumb,
.ct-simple-filter:focus-within .ct-simple-filter__thumb,
.ct-simple-filter.is-open .ct-simple-filter__thumb {
  width: 38px;
  height: 38px;
}

.ct-simple-filter__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ct-simple-filter__option.is-disabled .ct-simple-filter__thumb {
  border-color: #ededed;
  opacity: .42;
  filter: grayscale(1);
}

.ct-simple-filter__check {
  width: 13px;
  height: 13px;
  border: 1px solid #a8a8a8;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.ct-simple-filter:hover .ct-simple-filter__check,
.ct-simple-filter:focus-within .ct-simple-filter__check,
.ct-simple-filter.is-open .ct-simple-filter__check {
  opacity: 1;
}

.ct-simple-filter__option input:checked ~ .ct-simple-filter__thumb {
  border-color: #111;
}

.ct-simple-filter__option input:checked ~ .ct-simple-filter__check {
  border-color: #111;
  background: #111;
  box-shadow: inset 0 0 0 3px #fff;
}

.ct-simple-filter__option.is-disabled .ct-simple-filter__check,
.ct-simple-filter__option.is-disabled input:checked ~ .ct-simple-filter__check {
  border-color: #b8b8b8;
  background: #b8b8b8;
  box-shadow: none;
}

.ct-simple-filter__option-text {
  overflow: hidden;
  min-width: 0;
  opacity: 0;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

.ct-simple-filter__option.is-disabled .ct-simple-filter__option-text {
  color: #aaa;
}

.ct-simple-filter:hover .ct-simple-filter__option-text,
.ct-simple-filter:focus-within .ct-simple-filter__option-text,
.ct-simple-filter.is-open .ct-simple-filter__option-text {
  opacity: 1;
  text-overflow: clip;
  white-space: normal;
}

.ct-simple-filter__empty {
  display: none;
  margin: 28px auto 12px;
  padding: 18px 22px;
  border: 1px solid #e7e7e7;
  text-align: center;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ct-simple-filter__empty.is-visible {
  display: block;
}

@media (max-width: 1024px), (hover: none) {
  .ct-simple-filter {
    top: auto;
    bottom: 16px;
    left: 12px;
    width: min(380px, calc(100vw - 24px));
    transform: none;
    pointer-events: none;
  }

  .ct-simple-filter__toggle {
    width: 116px;
    min-height: 46px;
    border: 0;
    border-radius: 2px;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  }

  .ct-simple-filter__rail {
    display: none !important;
  }

  .ct-simple-filter__toggle-label {
    max-width: 80px;
    margin-right: 0;
    opacity: 1;
  }

  .ct-simple-filter__toggle-count {
    display: none;
  }

  .ct-simple-filter__panel {
    display: none;
    width: 100%;
    max-height: min(72vh, 650px);
    pointer-events: auto;
  }

  .ct-simple-filter:not(.is-open) .ct-simple-filter__panel {
    display: none;
  }

  .ct-simple-filter.is-open .ct-simple-filter__toggle {
    width: 100%;
    border-radius: 2px 2px 0 0;
  }

  .ct-simple-filter.is-open .ct-simple-filter__panel {
    display: block;
  }

  .ct-simple-filter__head {
    max-height: 52px;
    padding: 13px 16px 11px;
    border-bottom-width: 1px;
    opacity: 1;
  }

  .ct-simple-filter__legend {
    max-height: 24px;
    margin: 7px 0 5px;
    opacity: 1;
  }

  .ct-simple-filter__option {
    min-height: 44px;
    grid-template-columns: 38px 16px minmax(0, 1fr);
    justify-content: stretch;
    gap: 9px;
    padding: 3px 8px;
  }

  .ct-simple-filter__thumb {
    width: 38px;
    height: 38px;
  }

  .ct-simple-filter__check,
  .ct-simple-filter__option-text {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .ct-simple-filter {
    bottom: 10px;
    left: 10px;
    width: calc(100vw - 20px);
  }

  .ct-simple-filter__panel {
    max-height: 68vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-simple-filter,
  .ct-simple-filter * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
