{"title":"Item details styling reference","slug":"pos-item-details-styling-reference","url":"https://support.storeconnect.com/articles/pos-item-details-styling-reference","url_markdown":"https://support.storeconnect.com/articles/pos-item-details-styling-reference.md","subtitle":null,"summary":"Every part, attribute, and component property for restyling the text of an item\u0026#39;s row in the POS with CSS, the name, code, description, and notes on the rows of the cart and on an order, with tested examples such as bolder names or the alert notes in your own red, and the list of what can\u0026#39;t be styled yet.","type":"Developer_Documentation","video_url":"","keywords":"pos item details css, pos cart row text css, pos order item css, item-details-root, item-details-name, item-details-code, item-details-description, item-details-caption, data-size, data-theme, --sc-item-details-gap, pos styling api, pos parts","last_modified":"2026-11-26T05:52:23+0000","body_markdown":"The item details are the text on an item's row in the cart or on an order: the item name, with\nthe code, description, and notes under it. You can change the size, weight, and color of each line\nof text, the space between the lines, etc. Follow the [POS styling API](pos-styling-api#rules) rules when you style the item\ndetails.\n\n## Where the item details appear\n\nThe item details appear in these places:\n\n- The rows of the cart, including a bundle row and the items in a bundle\n- The card at the top of an item screen\n- The item picker, when you choose what to fulfill\n- The items and bundles on an order screen\n\nOn an item row in the cart, the item details are also named `cart-item-card-details`. Set a\nproperty on `cart-item-card-details` to change the rows of the cart only. A bundle row and the rows\non an order have no separate name yet.\n\nThe notes under an item are [labeled values](pos-labeled-value-styling-reference), such as a status\nthat needs attention or an order being prepared. Alert notes are red, and success notes are green.\nNeutral and primary notes have the same color as the item name. A color you set on\n`item-details-caption` replaces the color of the note theme. The badge on a note has the tone of\nthe note theme. To style the loading dots, see the\n[loading dots styling reference](pos-loading-dots-styling-reference).\n\n## Parts\n\n| Part | What it is | Available from |\n| --- | --- | --- |\n| `item-details-root` | The whole block: the item's name over the code, description, and captions, and the space between them. | v22.0.17 |\n| `item-details-name` | The item's name, such as a product's or a bundle's. | v22.0.17 |\n| `item-details-code` | The line under the name with the item's product code and serial numbers, when there are any. | v22.0.17 |\n| `item-details-description` | The line with how the item is fulfilled, the quantity and unit price, or why it was cancelled, when there is one. | v22.0.17 |\n| `item-details-caption` | Each note under the item, such as a status that needs attention or an order being prepared. It is a labeled value, so the icon and badge are the labeled value's parts. | v22.0.17 |\n\nThe **Available from** column shows the first release that carries the name.\n\n## Attributes\n\nNarrow `item-details-root` by `data-size`, inside `:where()`, to style one size of item details,\nand `item-details-caption` by `data-theme` to style one kind of note.\n\n| Attribute | Values | Default | Available from |\n| --- | --- | --- | --- |\n| `data-size` | `small`, `medium`, `large` | `medium` | v22.0.17 |\n| `item-details-caption[data-theme]` | `neutral`, `primary`, `alert`, `success` | `neutral` | v22.0.17 |\n\nEach size has a different type for the name, and the large size also has a larger code. A type you\nset on `item-details-name` applies at every size, so narrow by `data-size` to change one size\nonly. The name wraps to two lines at most, or one line on a bundle row in the cart. The code and\ndescription are slightly dimmed, so set `opacity` when you set their color.\n\n## Component properties\n\nSet this on `item-details-root` to change every item, or on `cart-item-card-details` to change the\nrows of the cart only.\n\n| Property | What it sets | Default | Available from |\n| --- | --- | --- | --- |\n| `--sc-item-details-gap` | The space between the lines. | 2px | v22.0.17 |\n\n## Examples\n\nEach example is tested against the POS on every change.\n\n**\"Make the item names bolder.\"**\n\n```css\n\n[part~='item-details-name'] {\n  font-weight: 700;\n}\n```\n\n**\"Make the names on the large rows bigger, and leave the rest.\"** Narrow by the size:\n\n```css\n\n[part~='item-details-root']:where([data-size='large']) [part~='item-details-name'] {\n  font-size: 18px;\n  line-height: 24px;\n}\n```\n\n**\"Make the codes and descriptions darker.\"**\n\n```css\n\n[part~='item-details-code'],\n[part~='item-details-description'] {\n  opacity: 1;\n  color: #334155;\n}\n```\n\n**\"Show the alert notes in our own red, and leave the other notes alone.\"** Narrow by the theme:\n\n```css\n\n[part~='item-details-caption']:where([data-theme='alert']) {\n  color: #b42318;\n}\n```\n\n**\"Give the lines more room.\"**\n\n```css\n\n[part~='item-details-root'] {\n  --sc-item-details-gap: 4px;\n}\n```\n\n## What can't be styled yet\n\n- One item's details on their own, beyond the rows of the cart: a bundle's own row and the rows\n  on an order have no name yet\n- The name, code, description, or notes in the cart apart from those on an order: the parts reach\n  both\n- The tag beside the name, such as Partly paid on an order\n- The promotions and discounts under an item\n- The space between the name and the tag, and between the notes\n- A note's icon, badge, or loading dots for one theme apart from the text: the icon takes the\n  note's color, the badge takes the theme's tone, and `labeled-value-icon` and\n  `labeled-value-badge` reach every note\n\n## Retired\n\nNone yet."}