.fr-toc__list {
    list-style: none;
    padding-left: 0;
    counter-reset: process-counter;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.fr-toc, div:has(> .fr-toc) {
    width: 100%;
}


.fr-toc__list:not(:first-child) {
    padding-left: 10px;
}

.fr-toc__list-link {
    text-decoration: none;
    display: block;
    width: 100%
}

.fr-toc__list-link::before {
    counter-increment: process-counter;
    content: counter(process-counter) '. ';
}


.fr-toc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    gap: 30px;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
}


.fr-toc__header[aria-expanded="true"] .fr-toc__icon {
    transform: rotate(180deg);
}

[aria-expanded="false"] + .fr-toc__body {
    visibility: hidden;
}

.fr-toc__body {
    overflow: hidden;
    transition: 0.3s ease;
}

.fr-toc__icon {
    transition: 0.3s ease;
    border-radius: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fr-toc__body--open {
    visibility: visible;
}

.brx-body.iframe
.fr-toc__list.fr-builder {
    display: block;
}

.fr-toc__list.fr-builder {
    display: none;
}

/* type of list */
[data-fr-toc-list-type="lower-alpha"] ol > li > .fr-toc__list-link::before {
    counter-increment: process-counter;
    content: counter(process-counter, lower-alpha) ') ';
}

[data-fr-toc-list-type="decimal"] ol > li > .fr-toc__list-link::before {
    counter-increment: process-counter;
    content: counter(process-counter, decimal) '. ';
}

[data-fr-toc-list-type="none"] ol > li > .fr-toc__list-link::before {
    counter-increment: process-counter;
    content: counter(process-counter, none);

}

[data-fr-toc-sublist-type="lower-alpha"] ol ol .fr-toc__list-link::before {
    counter-increment: process-counter;
    content: counter(process-counter, lower-alpha) ') ';
}

[data-fr-toc-sublist-type="none"] ol ol .fr-toc__list-link::before {
    counter-increment: process-counter;
    content: counter(process-counter, none);

}

[data-fr-toc-sublist-type="decimal"] ol ol .fr-toc__list-link::before {
    counter-increment: process-counter;
    content: counter(process-counter, decimal) '. ';
}
