The code you’re referring to is a CSS code and this code might be in your product.liquid file. Make sure that you add this code in tag or if you want you can remove it as well but I suggest you to add it in the tag as it’s the best way to hide code and apply the CSS. Also, before making any changes in the code, make sure you duplicate the theme first for safety precautions. If you’re not familiar with coding then I suggest you to hire a Shopify developer who can perform this task for you smoothly. Let me know if you require any further assistance.
If I managed to help you then, don’t forget to Like it and Mark it as Solution!