Hide parent if all children text are empty

[data-parent]:not(:has([data-child]:not(:empty))) {
 display: none;
}

Hide parent if it has no children

[data-hide-if-empty]:empty,
[data-hide-if-empty]:not(:has(> *:not(.w-condition-invisible))) {
 display: none;
}