.wplb-hierarchy {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
}

.wplb-hierarchy > ul.wplb-children-list {
    margin: 0;
    padding: 0;
}

.wplb-children-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wplb-headers-tree {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}

.wplb-headers-tree li {
    margin: 5px 0;
    padding: 0;
    position: relative;
}

/* Кнопка сворачивания */
.wplb-toggle-btn {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    cursor: pointer;
    position: relative;
}

.wplb-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.2s ease;
}

/* Неактивная кнопка */
.wplb-toggle-btn.inactive {
    cursor: default;
}

.wplb-toggle-btn.inactive::before {
    border-color: #999;
    opacity: 0.5;
}

.wplb-toggle-btn.collapsed::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Сворачиваемый контент */
.wplb-collapsible {
    display: block;
    transition: max-height 0.3s ease;
}

.wplb-collapsible.collapsed {
    display: none;
}

/* Вложенные заголовки */
.wplb-headers-tree .wplb-headers-tree {
    margin: 5px 0 5px 20px;
}

/* Стили для ссылок */
.wplb-hierarchy {
    padding: 20px;
    margin-left: 30px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
}
.wplb-hierarchy a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wplb-hierarchy a:hover {
    color: #0073aa;
}

/* Маркеры для элементов списка */
.wplb-headers-tree li::before {
    content: "";
    color: #0073aa;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.wplb-headers-tree .wplb-headers-tree li::before {
    content: "- ";
}

/* НЕ ТРОГАТЬ */
.wplb-hierarchy  > ul.wplb-children-list,
.wplb-hierarchy  > ul.wplb-children-list .wplb-headers-tree:first-child {
    margin:0 !important;
    padding: 0 !important;
}
/* ОКОНЧАНИЕ НЕ ТРОГАТЬ */
