/* filler.pt category-scoped filter facets */
.hyla-filter-cat.is-dim {
  opacity: 0.42;
  filter: grayscale(0.35);
  cursor: not-allowed;
  pointer-events: none;
  order: 99;
}

.hyla-filter-cats[data-hyla-facet] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hyla-filter-cats[data-hyla-facet] .hyla-filter-cat:not(.is-dim) {
  order: 1;
}

/* Visible checkbox on the left of facet pills (empty / checked). */
.hyla-filter-cats[data-hyla-facet] .hyla-filter-cat {
  gap: 0.45rem;
}

.hyla-filter-cats[data-hyla-facet] .hyla-filter-cat input[type="checkbox"] {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 1.05rem !important;
  height: 1.05rem !important;
  min-width: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(26, 20, 24, 0.35);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.hyla-filter-cats[data-hyla-facet] .hyla-filter-cat input[type="checkbox"]:checked {
  border-color: var(--blue, #2f5bff);
  background-color: var(--blue, #2f5bff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
  background-size: 0.72rem 0.72rem;
  background-position: center;
  background-repeat: no-repeat;
}

.hyla-filter-cats[data-hyla-facet].is-list .hyla-filter-cat.is-on,
.hyla-filter-cats[data-hyla-facet].is-list .hyla-filter-cat:has(input:checked) {
  background: color-mix(in srgb, var(--blue, #2f5bff) 14%, #fff);
  border-color: color-mix(in srgb, var(--blue, #2f5bff) 55%, transparent);
  color: #1a1418;
}

.hyla-filter-cats[data-hyla-facet].is-list .hyla-filter-cat.is-on .hyla-filter-cat-label,
.hyla-filter-cats[data-hyla-facet].is-list .hyla-filter-cat:has(input:checked) .hyla-filter-cat-label,
.hyla-filter-cats[data-hyla-facet].is-list .hyla-filter-cat.is-on .hyla-filter-cat-count,
.hyla-filter-cats[data-hyla-facet].is-list .hyla-filter-cat:has(input:checked) .hyla-filter-cat-count {
  color: #1a1418;
}

.hyla-filter-cats[data-hyla-facet].is-tiles .hyla-filter-cat {
  flex-direction: column;
  align-items: center;
}

.hyla-filter-cats[data-hyla-facet].is-tiles .hyla-filter-cat input[type="checkbox"] {
  order: -1;
  margin-bottom: 0.1rem;
}

.hyla-filter-more {
  display: contents;
}

.hyla-filter-more[hidden] {
  display: none !important;
}

.hyla-filter-more-btn {
  order: 100;
  margin-top: 0.35rem;
  width: 100%;
  border: 1px dashed var(--line, #d8d4d6);
  background: transparent;
  color: var(--blue, #2f5bff);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.hyla-filter-more-btn:hover {
  background: var(--bg-tile, #f6f4f5);
}

.hyla-filter-more-btn.is-open {
  border-style: solid;
}

.hyla-filter-more-count {
  opacity: 0.7;
  margin-left: 0.25rem;
}

.hyla-canvas-sec-facet .hyla-canvas-sec-title {
  margin-bottom: 0.55rem;
}

/* View toggle in filter canvas / sheet bar (match menu canvas) */
#dnx-hyla-canvas-filters .dnx-hyla-canvas-bar .hyla-filter-view-bar,
.hyla-sheet-filters .hyla-sheet-bar .hyla-filter-view-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

#dnx-hyla-canvas-filters .dnx-hyla-canvas-bar .hyla-filter-view-bar .hyla-brands-view-btn,
.hyla-sheet-filters .hyla-sheet-bar .hyla-filter-view-bar .hyla-brands-view-btn {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
}

#dnx-hyla-canvas-filters .dnx-hyla-canvas-bar .hyla-filter-view-bar .hyla-brands-view-btn.is-active,
.hyla-sheet-filters .hyla-sheet-bar .hyla-filter-view-bar .hyla-brands-view-btn.is-active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.hyla-sheet-filters .hyla-sheet-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hyla-sheet-filters .hyla-sheet-bar h2 {
  flex: 1;
  min-width: 0;
}
