Skip to main content
⚠️ IMPORTANT NOTICE These selectors apply only to Version 2 (V2) of the Upcart cart modules. If you are using Version 1 (V1), these selectors will not work. For V1 carts, please refer to the Version 1 CSS Selectors documentation, which covers the legacy module structure and selectors. To check which version you’re using, go to Upcart > Cart Editor > Settings > Cart versioning. For more information about migrating from V1 to V2, see the V2.0 migration guide.

Overview

If you want to change the appearance of your cart, such as hiding a price, adjusting text size, or repositioning a button, this is the place to begin. This CSS selector library provides the tools you need to make those changes with your own custom code. All available CSS selectors are grouped in this article, along with links to helpful resources for writing and testing your styles.

NOTE

While we provide this library for your convenience, the Upcart support team cannot help with building or fixing custom code. This is part of our Customization Policy. We recommend consulting with a Shopify Expert for custom code solutions. See Shopify Experts

How to Use Upcart CSS Selectors

This article is a library of CSS selectors you can use to style and customize your Upcart cart drawer. Each selector targets a specific part of the cart—like the header, product rows, upsells, rewards module, and more. You can use these selectors to:
  • Hide or restyle elements
  • Change spacing, fonts, or colors
  • Adjust layout based on your store’s branding
To apply your CSS, go to Upcart > Settings > Custom CSS, and paste your styles into the editor.

What to Know Before Adding CSS

Before jumping into your custom styles, here are a few tips to help things go smoothly. These will make it easier to test changes, avoid surprises, and get the look you want without breaking anything in your cart.

CSS Customization Checklist:

  • Test in a safe environment: Use a preview or unpublished theme when possible before going live.
  • Start small: Make one change at a time so it’s easier to track what worked or didn’t.
  • Paste styles in the right place: Use the Upcart Editor > Settings > Custom CSS field to add your code.
  • Use Inspect Tool: Right-click on elements in your browser and select Inspect to find and test selectors live.
  • Avoid assumptions: Not every element appears on all carts—test with different carts (with/without rewards, upsells, etc.).
The following selectors work with Version 2 of Upcart cart modules. V2 introduces a structured naming system with public and internal class prefixes.

Important guidelines for V2 selectors

⚠️ Use only public selectors for customization
  • Public selectors (prefixed with upcart-public-) are part of the stable API and safe to use for custom styling
  • Internal selectors (prefixed with upcart-internal-) are reserved for internal use and may change without notice
DO: Use public class names for styling
DON’T: Override internal classnames or use deep selectors

CSS Selectors

General Components

Header module

Announcements module

Recommendation and Upsell modules

Notes module

Discount code module

Trust badges module

Tiered rewards module

Cart items module

Add-ons module

Express payments module

Cart summary module

Helpful resources to get started: