Woocommerce单品:如果产品尺寸为x,则隐藏选项

I am searching for the code, to solve this problem in woocommerce: + If my product has the size 90-140, it has 1 firmness to choose + If my product has the size 160-200, it has 2 firmnesses to choose

Or with other words: IF "size" = 90, 100, 120, 140 THEN hide "firmness 2"

It should also be disabled in the card

Do you have any ideas?