Skip to main content
The checkout order summary renders each line item with a web component (sc-line-items). Unlike the Slide-Out Cart, it doesn’t have per-element blocks in the editor — you customize it with CSS instead, using the two mechanisms described in Styling the Checkout: CSS variables and CSS parts.
Internal class names inside the component’s shadow DOM aren’t reachable from your CSS. Only the variables and parts documented below are supported hooks.
Add your CSS under Appearance → Customize → Additional CSS, or in your theme’s stylesheet. Scope it to the checkout so the cart and other forms aren’t affected:
To apply a variable globally instead, use the :root:root selector shown in Styling the Checkout. Scoping to sc-line-items doesn’t need that trick — a variable set on a closer element always wins over the global default — and it keeps shared variables (like --sc-input-*) from affecting the rest of the page.

CSS Variables

Layout & image

Text colors

Defaults reference the global palette from Styling the Checkout (for example, --sc-input-help-text-color resolves to --sc-color-gray-500).
--sc-font-size-* and --sc-input-* variables are shared with other checkout elements such as inputs and labels. Scope them to sc-line-items — not :root — unless you intend a global change.

Typography

Bundle details

Borders & shadows

CSS Parts

sc-line-items exposes each element of a line item as a CSS part, so you can target them directly with ::part(). The full list is also available under “Shadow Parts” in the Components Documentation. Example:

Example: match your cart styling

Notes

  • Bundle row quantity and name text has no dedicated part — style it through line-item__details-component (color is inherited), or with the variables above.
  • Behavior settings (removable, editable, show all bundle items, separator character) are block settings on the Line Items block in the checkout editor, not CSS.
  • The order confirmation and customer dashboard render line items with the same component but don’t expose its parts — use CSS variables on those surfaces.