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 ExpertsHow 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
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.).
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
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:
- Getting Started with Custom CSS: Learn how to safely add custom CSS in Upcart.
- Intro to Customizations in Upcart: Understand how customization works and where to start.
- Use AI to Write Custom Code for Upcart: Get help writing CSS or JavaScript using simple prompts.
- Best Practices to Increase Cart Conversions: Optimize your cart design with proven tips.