Customize Ubercart checkout page CSS when certain products are in cart?
I have two ideas:

1) render the code of the article in the class attribute of the cart div. you can do that "intercepting" the render function in your template.php file.

2) using jquery