Hello,
1/ Change the code to:
.products-grid .product-type-variable .product-details .button:not(.compare) { font-size: 0; }
Regards