.brx-wc-ca-wrapper {
  width: 100%;
}

.brx-wc-ca-list,
.brx-wc-ca-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brx-wc-ca-item {
  margin: 0;
}

.brx-wc-ca-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: auto;
  box-sizing: border-box;
  cursor: pointer;
  /* Default indentation from Behavior > Indent per level. */
  padding-left: var(--brx-wc-ca-level-indent, 0px);
}

.brx-wc-ca-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  text-decoration: none;
  color: inherit;
}


/**
 * v1.4.2: A single spacing system for automatic AND manually added category
 * trees. The row grows naturally when a label wraps to a second line.
 *
 * Dedicated Bricks Style controls write optional custom properties on this
 * element; when unset, sensible defaults are used (no data migration).
 * !important on line-height deliberately replaces obsolete saved 50px/2
 * Typography line heights; adjustments use the new Line height controls.
 */
.brx-wc-ca-wrapper .brx-wc-ca-item:not(:is(.level-1, .level-2, .level-3)) > .brx-wc-ca-row {
  min-height: var(--brx-wc-ca-main-min-height, 50px);
  padding-block: var(--brx-wc-ca-main-padding-y, 10px);
}

.brx-wc-ca-wrapper .brx-wc-ca-item:not(:is(.level-1, .level-2, .level-3)) > .brx-wc-ca-row > .brx-wc-ca-label {
  line-height: var(--brx-wc-ca-main-line-height, 1.25) !important;
}

.brx-wc-ca-wrapper .brx-wc-ca-item:is(.level-1, .level-2, .level-3) > .brx-wc-ca-row {
  min-height: var(--brx-wc-ca-child-min-height, 28px);
  padding-block: var(--brx-wc-ca-child-padding-y, 4px);
}

.brx-wc-ca-wrapper .brx-wc-ca-item:is(.level-1, .level-2, .level-3) > .brx-wc-ca-row > .brx-wc-ca-label {
  line-height: var(--brx-wc-ca-child-line-height, 1.4) !important;
}


/* Icon button */
.brx-wc-ca-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Icon container */
.brx-wc-ca-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 16px;
  flex: 0 0 auto;
}

/* Font icons grow through font-size. The two native SVG picker controls
   generate their own width, height, fill and stroke rules per icon state. */
.brx-wc-ca-icon i {
  font-size: inherit;
  width: auto;
  height: auto;
}

/* Base SVG layout must NOT override dimensions entered inside
   Bricks' Open/Closed icon pickers. :where() has zero specificity so the
   selector CSS Bricks generates can always win, regardless of load order. */
.brx-wc-ca-icon svg,
.brx-wc-ca-icon img {
  display: block;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
}
:where(.brx-wc-ca-icon svg, .brx-wc-ca-icon img) {
  width: 1em;
  height: 1em;
}

.brx-wc-ca-icon svg {
  overflow: visible;
}

/* (jei darysi product count stilių, gali praplėst) */
.brx-wc-ca-count {
  opacity: 0.7;
  font-size: 0.9em;
}

/* Disclosure state is correct before JavaScript runs; no two-icon flash. */
.brx-wc-ca-wrapper .brx-wc-ca-icon-open {
  display: none;
}
.brx-wc-ca-wrapper .brx-wc-ca-item.is-open > .brx-wc-ca-row .brx-wc-ca-icon-open {
  display: inline-flex;
}
.brx-wc-ca-wrapper .brx-wc-ca-item.is-open > .brx-wc-ca-row .brx-wc-ca-icon-closed {
  display: none;
}
.brx-wc-ca-wrapper .brx-wc-ca-sublist[hidden] {
  display: none !important;
}
/* Native keyboard-operable label in row-toggle mode, without button chrome. */
.brx-wc-ca-wrapper .brx-wc-ca-row-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.brx-wc-ca-wrapper .brx-wc-ca-toggle:focus-visible,
.brx-wc-ca-wrapper .brx-wc-ca-label:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
