/* MaBricole: separate category artwork, labels and expand controls in LTR/RTL. */
.category-tree li > a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 40px;
  padding-block: 6px;
  padding-inline-end: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 20px;
}
.category-tree li > a.name-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-tree > ul > li > a.name-with-icon::before {
  content: none;
  display: none;
}
.category-tree > ul > li > a.name-with-icon > img {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  margin: 0;
  object-fit: contain;
}
.category-tree > ul > li > a.name-with-icon > span {
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
}
.category-tree li > .collapse-icons,
.category-tree > ul > li > a.name-with-icon + .collapse-icons {
  position: absolute;
  inset-inline-start: auto;
  inset-inline-end: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
