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
/* ✅ Correct usage */   
.upcart-public-header {     
    font-size: 18px;     
    font-weight: bold;   
}
DON’T: Override internal classnames or use deep selectors
/* ❌ Avoid this */   
.upcart-internal-header {     
    font-size: 18px;     
    font-weight: bold;   
}    
  
/* ❌ Avoid this */   
.upcart-public-upsell div a {     
   font-size: 18px;     
   font-weight: bold;   
}

CSS Selectors

General Components

CSS SelectorDescription
.upcart-public-skeletonGeneral skeleton loader wrapper for the cart.
.upcart-public-component__buttonGeneral button component used across modules.
.upcart-public-component-loaderLoading spinner component.
.upcart-public-component-tagTag component wrapper.
.upcart-public-component-tag__iconIcon inside a tag.
.upcart-public-component-tag__textText content of a tag.
.upcart-public-component-collapse__dropdown-containerContainer for collapsible dropdown sections.
.upcart-public-component-collapse__expand-iconIcon that indicates expand/collapse state.

Header module

CSS SelectorDescription
.upcart-public-headerMain container for the cart header.
.upcart-public-header__close-buttonButton used to close the cart drawer.
.upcart-public-header__close-button-iconIcon displayed inside the close button.

Announcements module

CSS SelectorDescription
.upcart-public-announcementBanner or announcement section within the cart.

Recommendation and Upsell modules

CSS SelectorDescription
.upcart-public-component-upsell-tileCard layout for each upsell/recommendation product.
.upcart-public-component-upsell-tile__image-containerContainer for the upsell product image.
.upcart-public-component-upsell-tile__imageImage of the upsell product.
.upcart-public-component-upsell-tile__infoInformation section of the upsell tile.
.upcart-public-component-upsell-tile__title-linkLink wrapper for the product title.
.upcart-public-component-upsell-tile__titleTitle of the upsell product.
.upcart-public-component-upsell-tile__rating-rowRow containing product ratings.
.upcart-public-component-upsell-tile__starsStar rating display.
.upcart-public-component-upsell-tile__star--partialPartial star for fractional ratings.
.upcart-public-component-upsell-tile__reviewsReview count display.
.upcart-public-component-upsell-tile__price-rowRow containing price information.
.upcart-public-component-upsell-tile__price-compare-atOriginal (strikethrough) price for the upsell.
.upcart-public-component-upsell-tile__priceCurrent price of the upsell item.
.upcart-public-component-upsell-tile__variant-rowRow containing variant selection.
.upcart-public-upsell__skeletonSkeleton placeholder for upsell module.
.upcart-public-upsell__skeleton-titleSkeleton for upsell section title.
.upcart-public-upsell__skeleton-imageSkeleton for upsell product image.
.upcart-public-upsell__skeleton-product-titleSkeleton for upsell product title.
.upcart-public-upsell__skeleton-product-priceSkeleton for upsell product price.

Notes module

CSS SelectorDescription
.upcart-public-notesMain container for the notes section.
.upcart-public-notes__text-containerContainer for the notes text area.
.upcart-public-notes__textareaText input area for adding a custom note to the cart.

Discount code module

CSS SelectorDescription
.upcart-public-discount-codeMain container for the discount code section.
.upcart-public-discount-code__formForm wrapper for discount code input.
.upcart-public-discount-code__input-wrapperWrapper for the discount code input field.
.upcart-public-discount-code__inputInput field for entering discount codes.
.upcart-public-discount-code__suffixSuffix element for the input field.
.upcart-public-discount-code__errorError message display for invalid codes.
.upcart-public-discount-code__buttonButton to apply discount code.
.upcart-public-discount-code__skeletonSkeleton placeholder for discount code module.
.upcart-public-discount-code__skeleton-inputSkeleton for discount code input field.
.upcart-public-discount-code__skeleton-buttonSkeleton for discount code apply button.

Trust badges module

CSS SelectorDescription
.upcart-public-trust-badgesContainer for the trust badges.
.upcart-public-trust-badges__imageImage element used in a trust badge.

Tiered rewards module

CSS SelectorDescription
.upcart-public-rewardsMain container for the rewards section.
.upcart-public-rewards__messageDisplays progress messages related to rewards.
.upcart-public-rewards__barContainer for the rewards progress bar.
.upcart-public-component-segmented-progress-barSegmented progress bar component.
.upcart-public-component-segmented-progress-bar__segments-containerContainer for all progress bar segments.
.upcart-public-component-segmented-progress-bar__segmentIndividual segment of the progress bar.
.upcart-public-component-segmented-progress-bar__segment-fillFill portion of a progress bar segment.
.upcart-public-component-segmented-progress-bar__segment-labelLabel for a progress bar segment.
.upcart-public-component-segmented-progress-bar__milestoneMilestone marker on the progress bar.
.upcart-public-component-segmented-progress-bar__milestone--bottomMilestone positioned at the bottom.
.upcart-public-component-segmented-progress-bar__milestone--topMilestone positioned at the top.
.upcart-public-component-segmented-progress-bar__milestone--middleMilestone positioned in the middle.
.upcart-public-component-segmented-progress-bar__milestone-iconIcon displayed at a milestone.
.upcart-public-component-segmented-progress-bar__milestone-labelLabel text for a milestone.
.upcart-public-component-segmented-progress-bar__milestone-label--align-rightRight-aligned milestone label.
.upcart-public-component-segmented-progress-bar__milestone-label--align-centerCenter-aligned milestone label.
.upcart-public-rewards__skeletonSkeleton container for the rewards section.
.upcart-public-rewards__skeleton-messageSkeleton for the rewards progress message.
.upcart-public-rewards__skeleton-barSkeleton for the rewards progress bar.

Cart items module

CSS SelectorDescription
.upcart-public-component-product-tileWrapper for an individual product item in the cart.
.upcart-public-component-product-tile__contentContent area of the product tile.
.upcart-public-component-product-tile__image-wrapperWrapper around the product image.
.upcart-public-component-product-tile__imageImage of the product in the cart.
.upcart-public-component-product-tile__infoInformation section of the product tile.
.upcart-public-component-product-tile__headerHeader section of the product tile.
.upcart-public-component-product-tile__product-titleName of the product in the cart.
.upcart-public-component-product-tile__title-linkLink that wraps the product title.
.upcart-public-component-product-tile__remove-buttonButton to remove the product from cart.
.upcart-public-component-product-tile__variantVariant information display.
.upcart-public-component-product-tile__propertiesWrapper for additional product metadata.
.upcart-public-component-product-tile__bundleBundle information section.
.upcart-public-component-product-tile__product-pricingPricing section of the product tile.
.upcart-public-component-product-tile__price-compare-atOriginal (strikethrough) price.
.upcart-public-component-product-tile__priceFinal price shown to the customer.
.upcart-public-component-product-tile__savingsSpecific savings for a cart item.
.upcart-public-component-product-tile__controlsControls section (quantity, etc.).
.upcart-public-component-product-tile__quantity-selectorQuantity selector wrapper.
.upcart-public-component-product-tile__quantity-minusButton to decrease quantity.
.upcart-public-component-product-tile__quantity-plusButton to increase quantity.
.upcart-public-component-product-tile__discount-codesDiscount codes applied to the item.
.upcart-public-component-product-tile__subscription-upgradeSubscription upgrade section.
.upcart-public-component-product-tile__select-wrapperWrapper for select dropdown.
.upcart-public-component-product-tile__selectSelect dropdown element.
.upcart-public-product-properties__subscriptionDisplays subscription details for the item.
.upcart-public-product-properties__itemIndividual product property.
.upcart-public-product-properties__linkLink within product properties.
.upcart-public-cart-items__key-value-pairKey-value pair display for item properties.
.upcart-public-bundle-propertiesContainer for bundle properties.
.upcart-public-bundle-properties__variant-titleVariant title for bundle items.
.upcart-public-bundle-properties__headerHeader for bundle properties section.
.upcart-public-bundle-properties__item-componentsContainer for bundle item components.
.upcart-public-bundle-properties__item-component-rowRow for each bundle item component.
.upcart-public-bundle-properties__image-wrapperWrapper for bundle item image.
.upcart-public-bundle-properties__contentContent area for bundle item.
.upcart-public-bundle-properties__product-titleProduct title for bundle item.

Add-ons module

CSS SelectorDescription
.upcart-public-addonsMain container for the add-ons section.
.upcart-public-addons__image-wrapperWrapper for the add-on image.
.upcart-public-addons__content-wrapperContent wrapper for add-on information.
.upcart-public-addons__content-title-wrapperWrapper for add-on title.
.upcart-public-addons__content-titleTitle of the add-on product.
.upcart-public-addons__content-pricePrice section for add-on.
.upcart-public-addons__compare-at-priceOriginal (strikethrough) price of the add-on.
.upcart-public-addons__priceCurrent price of the add-on product.
.upcart-public-addons__content-descriptionDescription of the add-on product.
.upcart-public-addons__toggle-wrapperWrapper for the add-on toggle.
.upcart-public-addons__toggleToggle switch to add/remove an add-on.
.upcart-public-addons__toggle-switchSwitch element of the toggle.
.upcart-public-addons__toggle-sliderSlider element of the toggle.
.upcart-public-addons__skeletonSkeleton placeholder for add-ons section.
.upcart-public-addons__skeleton-imageSkeleton for add-on product image.
.upcart-public-addons__skeleton-textSkeleton for text content in add-ons.

Cart summary module

CSS SelectorDescription
.upcart-public-cart-summaryMain container for the cart summary.
.upcart-public-cart-summary__discount-codesContainer for discount codes in summary.
.upcart-public-cart-summary__discount-labelLabel for discount section.
.upcart-public-cart-summary__slide-codesSliding container for discount codes.
.upcart-public-cart-summary__total-discountTotal discount amount display.

Helpful resources to get started: