.select-tree {
    --bb-select-tree-dropdown-max-height: var(--bb-dropdown-max-height);

    .dropdown-menu {
        max-height: var(--bb-select-tree-dropdown-max-height);

        .tree-view {
            max-height: calc(var(--bb-select-tree-dropdown-max-height) - var(--bs-dropdown-padding-y) * 2 - 2px);
        }
    }
}
