/* stylelint-disable scss/operator-no-unspaced */
/* stylelint-enable scss/operator-no-unspaced */
/**
 * Category filter component
 * @define category-filter
 */
.ecl-category-filter {
  max-width: 18rem;
}

.ecl-category-filter__list-item {
  position: relative;
}

.ecl-category-filter__item-icon {
  color: #0e47cb;
  margin: -3px 0;
}

.ecl-category-filter__item {
  border-bottom: 1px solid #cfdaf5;
  color: #262b38;
  display: flex;
  font: normal normal 400 0.875rem/1rem arial, sans-serif;
  justify-content: space-between;
  padding: 0.75rem;
  text-decoration: none;
}
.ecl-category-filter__item:hover {
  text-decoration: underline;
}
.ecl-category-filter__item:focus-visible {
  outline: 2px solid #0e47cb;
  outline-offset: -2px;
  text-decoration: underline;
}
.ecl-category-filter__item.ecl-category-filter__item--level-1 .ecl-category-filter__item-icon {
  margin: 0 0 0 0.5rem;
}
.ecl-category-filter__item.ecl-category-filter__item--level-2 {
  justify-content: initial;
  -webkit-padding-start: 2rem;
          padding-inline-start: 2rem;
}
.ecl-category-filter__item.ecl-category-filter__item--level-2.ecl-category-filter__item--has-children {
  -webkit-padding-start: 0.5rem;
          padding-inline-start: 0.5rem;
}
.ecl-category-filter__item.ecl-category-filter__item--level-3 {
  justify-content: initial;
  -webkit-padding-start: 3rem;
          padding-inline-start: 3rem;
}
.ecl-category-filter__item.ecl-category-filter__item--level-3.ecl-category-filter__item--has-children {
  -webkit-padding-start: 1.5rem;
          padding-inline-start: 1.5rem;
}
.ecl-category-filter__item.ecl-category-filter__item--level-4 {
  justify-content: initial;
  -webkit-padding-start: 4rem;
          padding-inline-start: 4rem;
}

.ecl-category-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecl-category-filter__list .ecl-category-filter__list .ecl-category-filter__item {
  border-bottom: 0;
}

.ecl-category-filter__list-item:last-child .ecl-category-filter__item {
  border-bottom: 0;
}

.ecl-category-filter__list-item[aria-expanded=false] .ecl-category-filter__list {
  display: none;
}

.ecl-category-filter__list-item[aria-expanded=true] .ecl-category-filter__item {
  border-bottom: 0;
}
.ecl-category-filter__list-item[aria-expanded=true] > .ecl-category-filter__item .ecl-category-filter__item-icon {
  transform: rotate(180deg);
}
.ecl-category-filter__list-item[aria-expanded=true] .ecl-category-filter__item--level-1 .ecl-category-filter__item-icon {
  transform: rotate(0deg);
}
.ecl-category-filter__list-item[aria-expanded=true] > .ecl-category-filter__list {
  display: block;
}

.ecl-category-filter__list-item[aria-expanded=true],
.ecl-category-filter__item--current {
  background-color: #e7edfa;
}
.ecl-category-filter__list-item[aria-expanded=true]::before,
.ecl-category-filter__item--current::before {
  background-color: #0e47cb;
  content: "";
  display: inline-block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
  z-index: 1;
}

.ecl-category-filter__item--current {
  font-weight: 700;
}

.ecl-category-filter > .ecl-category-filter__list > .ecl-category-filter__list-item[aria-expanded=true] {
  border-bottom: 1px solid #cfdaf5;
}

.no-js .ecl-category-filter__list-item .ecl-category-filter__item {
  border-bottom: 0;
}
.no-js .ecl-category-filter__list-item .ecl-category-filter__list {
  display: block;
}

.ecl-category-filter__item-icon.sc-ecl-category-filter-eu {
  margin: -3px 0 !important;
}