How to Apply Code Only to Product Pages with Variant Picker?

Hello,

I currently have a code that works well for product pages without products that have variant options. However, when I add a variant picker to certain products, it interferes with my previous code.

No variant picker:

With variant picker:

To resolve this, I’ve written the following new CSS code specifically for product pages that include a variant picker, to make products pages with variant pickers look normal again:


So what I need help with is how to do so it only applies to the product pages that have variant options enabled. But without the original code getting affected.

My product page: https://kidos.se/products/akpase-rondane-frost-mountain-grey

code: kidos24

Thanks in advance!

Yes?