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.
: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).
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.