Hello,
You are right, please change the code to –
body:not(.logged-in) .disable-for-non-logged-in { display: none !important; }
Regards