Hello the code string works “partially”, in the sense that when the product is out of stock the word ADD TO CART disappears correctly but (unfortunately) the button (plus and minus) remains to select the quantities [.product-image-summary div.quantity].
.single_add_to_cart_button.disabled.wc-variation-is-unavailable {
display: none;
}