/* Console «Ordini» · design «Scuro premium» (docs/sviluppo/DESIGN-V6.md). Tokens and shared components
   (.page, .tabs, .segmented, .search, .pill, .tag, .count, .banner, .btn, .modal, .drawer) come from styles.css. */

/* Layout: list of comande + detail panel (a drawer below 1180 px) */
.om-page { min-width: 0; }
.om-example-note { margin-bottom: 16px; }
.om-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.om-main { min-width: 0; }
.om-detail { display: none; }
@media (min-width: 1180px) {
  .om-layout { grid-template-columns: minmax(0, 1fr) 400px; }
  /* Height leaves room for the page header above, so total and actions are on screen without scrolling. */
  .om-detail { display: flex; flex-direction: column; position: sticky; top: calc(var(--sticky-top, 64px) + 16px); max-height: max(440px, calc(100dvh - var(--sticky-top, 64px) - 124px)); overflow: hidden; }
  .om-detail > .om-detail-inner { flex: 1 1 auto; min-height: 0; }
}
@media (min-width: 1440px) { .om-layout { grid-template-columns: minmax(0, 1fr) 440px; } }
.om-tabs { margin-bottom: 14px; }
.om-tabs .tab { padding: 0 9px; gap: 6px; }
.om-tabs .tab.is-active::after { left: 7px; right: 7px; }
.om-toolbar { margin-bottom: 14px; }
/* Rows that scroll sideways fade where more tabs or categories are hidden (orders.js edgeFade). */
.om-fade-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.om-fade-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.om-fade-start.om-fade-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.om-toolbar .om-search { flex: 1 1 220px; width: auto; min-width: 180px; max-width: 360px; }
.om-sources > button .icon { color: var(--text-3); }
.om-sources > [aria-pressed="true"] .icon { color: var(--text-2); }
.om-bottom-note { display: flex; align-items: flex-start; gap: 8px; margin: 20px 2px 0; font-size: 13px; line-height: 18px; color: var(--text-3); }
.om-bottom-note .icon { margin-top: 1px; }
.om-empty { padding: 40px 20px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.om-results-count { margin: 14px 2px 0; font-size: 13px; color: var(--text-3); }

/* Order cards */
.om-order-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.om-order-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: start;
  padding: 14px 16px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line), var(--highlight), 0 1px 2px rgba(0, 0, 0, .25);
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.om-order-card:hover { background: #191C21; box-shadow: inset 0 0 0 1px var(--line-strong), var(--highlight), 0 1px 2px rgba(0, 0, 0, .25); }
.om-order-card.is-selected { background: #1B1714; box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 3px rgba(255, 131, 63, .07); }
.om-order-card.om-order-pending { box-shadow: inset 0 0 0 1px var(--amber-line), var(--highlight); }
.om-order-card.om-order-closed, .om-order-card.om-order-cancelled { background: var(--bg-1); }
.om-card-open { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.om-card-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.om-card-table {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text-1); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.om-order-card.is-selected .om-card-table { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.om-card-main { min-width: 0; display: grid; gap: 3px; }
.om-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.om-order-number { font-size: 15px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.om-source { max-width: 100%; }
.om-source .icon { color: var(--text-3); }
.om-source-qr { color: var(--amber); background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); }
.om-source-qr .icon { color: var(--amber); }
.om-card-meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.om-card-lines { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.om-card-lines > li { display: flex; gap: 8px; min-width: 0; font-size: 13.5px; line-height: 19px; }
.om-line-qty { flex: none; min-width: 22px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.om-line-text { min-width: 0; }
.om-line-name { color: var(--text-1); font-weight: 500; }
.om-mods { display: block; font-size: 13px; line-height: 18px; }
.om-mod.is-option, .om-mod-sep { color: var(--text-2); }
.om-mod.is-addon { color: var(--green); }
.om-mod.is-removed { color: var(--red); font-weight: 500; }
.om-mod.is-note { color: var(--amber); font-style: italic; }
.om-card-more { color: var(--text-2); font-size: 13px; padding-left: 30px; }
.om-order-note { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--amber); }
.om-order-note .icon { flex: none; }
.om-order-note span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.om-card-time { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-card-time.is-slow { color: var(--amber); }
.om-card-time.is-late { color: var(--red); font-weight: 500; }
.om-card-total { font-size: 16px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-card-accept {
  grid-column: 1 / -1; position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 8px -16px -14px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--amber-line); border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: rgba(232, 182, 90, .07); color: var(--amber); font-size: 13.5px;
}
.om-card-accept > span { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; }

/* Detail panel (also the content of the drawer) */
.om-detail-inner { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.om-detail-placeholder { justify-content: center; padding: 20px; }
.om-detail-inner > .om-detail-head { flex: none; padding: 20px 20px 14px; border-bottom: 1px solid var(--line-soft); }
.om-detail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; padding: 16px 20px; }
.om-detail-foot { flex: none; display: grid; gap: 12px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }
.om-detail-placeholder .om-empty { background: none; box-shadow: none; padding: 48px 12px; }
.om-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.om-detail-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.om-detail-title h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.02em; }
.om-detail-sub { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--text-2); }
.om-detail-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.om-detail-chips .tag { height: 26px; padding: 0 9px; font-size: 12.5px; }
.om-course .icon { color: var(--text-3); }
.om-banner { margin: 0; }
.om-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 14px 0 12px; list-style: none; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.om-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.om-step + .om-step::before { content: ""; position: absolute; top: 9px; right: calc(50% + 13px); left: calc(-50% + 13px); height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .1); }
.om-step.is-done + .om-step::before { background: var(--accent); }
.om-step-dot { position: relative; z-index: 1; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-ink); background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--text-4); }
.om-step.is-done .om-step-dot { background: var(--accent); box-shadow: none; }
.om-step.is-current .om-step-dot { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.om-step.is-current .om-step-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.om-step-label { max-width: 100%; font-size: 12.5px; line-height: 16px; font-weight: 500; color: var(--text-2); }
.om-step.is-done .om-step-label, .om-step.is-current .om-step-label { color: var(--text-1); }
.om-step-time { font-size: 12px; line-height: 16px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.om-cancel-note { margin: 0; }
.om-detail-section { display: grid; gap: 4px; }
.om-detail-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.om-detail-section-title h3 { margin: 0; font-size: 14px; font-weight: 600; }
.om-detail-section-title span { font-size: 13px; color: var(--text-2); }
.om-detail-lines { list-style: none; margin: 0; padding: 0; }
.om-detail-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.om-detail-line:last-child { border-bottom: 0; }
.om-qty-chip { min-width: 34px; height: 26px; display: grid; place-items: center; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.om-detail-line-main { min-width: 0; display: grid; gap: 2px; padding-top: 3px; }
.om-detail-line-name { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.om-detail-line-total { padding-top: 3px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-unit { font-size: 12.5px; color: var(--text-3); }
.om-detail-empty { padding: 16px 0; color: var(--text-2); }
.om-note-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); color: var(--amber); }
.om-note-box .icon { flex: none; margin-top: 2px; }
.om-note-box p { margin: 0; font-size: 13.5px; line-height: 20px; color: var(--text-1); white-space: pre-wrap; overflow-wrap: anywhere; }
.om-note-box b { color: var(--amber); font-weight: 600; }
.om-detail-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.om-detail-total span { display: block; font-size: 14px; font-weight: 500; }
.om-detail-total small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.om-detail-total strong { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-detail-actions { display: grid; gap: 8px; }
/* Secondary actions two by two, so the lines keep most of the panel on short windows. */
.om-detail-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.om-detail-secondary > .btn { min-width: 0; padding: 0 10px; }
.om-detail-secondary > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.om-detail-secondary > .btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.om-detail-actions .om-cancel-button { color: var(--red); }
.om-detail-actions .om-cancel-button:hover { background: var(--red-soft); color: var(--red); }
.om-modal-error { margin: 0; }
.om-operational-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; line-height: 18px; color: var(--text-3); }
.om-operational-note .icon { flex: none; margin-top: 1px; }
.om-drawer { overflow: hidden; }
.om-drawer > .om-detail-inner { flex: 1; min-height: 0; }
.om-drawer .om-detail-foot { border-radius: 0 0 var(--r-xl) var(--r-xl); }

/* Customisations in the reading order (contract §3): + add-ons, options, − senza, «note» */
.om-page .cz-variant, .om-new-order .cz-variant, .om-drawer .cz-variant { color: var(--text-2); font-weight: 400; }
.cz-details { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 1px; }
.cz-d { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.cz-d-text { min-width: 0; overflow-wrap: anywhere; }
.cz-d.is-addon .cz-d-text { color: var(--green); }
.cz-d.is-removed .cz-d-text { color: var(--red); font-weight: 500; }
.cz-d.is-note .cz-d-text { color: var(--amber); font-style: italic; }
.cz-d-price { flex: none; color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cz-free { color: var(--green); font-weight: 500; }
.ordn { font-size: .64em; line-height: 0; vertical-align: .52em; margin-left: .5px; }

/* Nuova comanda */
.om-new-order-dialog { width: min(980px, calc(100% - 32px)); }
.om-new-order .field { margin-bottom: 0; }
.om-form-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.om-reserved-hint { margin-top: 12px; }
.om-compose { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin: 16px 0 12px; align-items: start; }
.om-compose-menu { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.om-compose-tools { display: grid; gap: 8px; min-width: 0; }
.om-compose-cats { max-width: 100%; }
.om-compose-items { list-style: none; margin: 0; padding: 0; max-height: min(440px, 52dvh); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-lg); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.om-compose-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--line-soft); }
.om-compose-item:last-child { border-bottom: 0; }
.om-compose-item.is-selected { background: rgba(255, 131, 63, .05); }
.om-compose-item.is-soldout h4 { color: var(--text-2); }
.om-compose-item-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.om-menu-category { font-size: 12px; line-height: 16px; color: var(--text-3); }
.om-compose-item h4 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.om-compose-price { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.om-compose-summary { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; line-height: 18px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-compose-summary .icon { color: var(--accent); }
.om-compose-item-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.om-customize-button.has-lines { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); background: var(--accent-soft); }
.om-compose-no-results { margin: 0; padding: 24px 10px; text-align: center; font-size: 13.5px; color: var(--text-2); }
.om-stepper { display: inline-flex; align-items: center; height: 34px; border-radius: var(--r-md); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.om-stepper button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-md); background: none; color: var(--text-1); }
.om-stepper button:hover:not(:disabled) { background: var(--bg-4); }
.om-stepper button:disabled { opacity: .35; }
.om-stepper button[data-qty-change="1"]:not(:disabled), .om-stepper button[data-cz-qty="1"]:not(:disabled) { color: var(--accent); }
.om-stepper output { min-width: 28px; text-align: center; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.om-stepper.is-sm { height: 30px; }
.om-stepper.is-sm button { width: 30px; height: 30px; }
.om-compose-cart { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; border-radius: var(--r-lg); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.om-compose-heading { display: flex; align-items: center; gap: 8px; }
.om-compose-heading h3 { margin: 0; font-size: 15px; font-weight: 600; }
.om-cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: min(320px, 40dvh); overflow-y: auto; overscroll-behavior: contain; }
.om-cart-line { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.om-cart-line-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.om-cart-line-name { min-width: 0; font-size: 14px; font-weight: 500; }
.om-cart-line-head strong { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-cart-line-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.om-cart-line-tools .text-button { color: var(--accent); }
.om-cart-empty { display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 19px; color: var(--text-2); }
.om-cart-empty .icon { flex: none; color: var(--text-3); }
.om-optional { color: var(--text-3); font-weight: 400; }
.om-compose-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.om-compose-total span { display: block; font-size: 14px; font-weight: 500; }
.om-compose-total small { display: block; font-size: 12.5px; color: var(--text-3); }
.om-compose-total strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Customisation dialog (above «Nuova comanda») and the customize.js panel inside it */
.om-cz-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: var(--r-xl); background: var(--bg-2); color: var(--text-1); box-shadow: var(--shadow-pop); overflow: hidden; }
.om-cz-dialog[open] { display: flex; animation: modal-in var(--t-med) var(--ease); }
.om-cz-dialog::backdrop { background: rgba(4, 5, 7, .6); }
.om-cz-form { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 48px); }
.om-cz-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 14px 14px 22px; border-bottom: 1px solid var(--line-soft); }
.om-cz-head > div { flex: 1; min-width: 0; }
.om-cz-head h2 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.om-cz-head p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.om-cz-body { display: grid; gap: 18px; padding: 16px 22px 20px; overflow-y: auto; overscroll-behavior: contain; }
.om-cz-body .field { margin: 0; }
.om-cz-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.om-cz-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.om-cz-issue { flex-basis: 100%; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--amber); }
.om-cz-dialog .cz { display: grid; gap: 18px; }
.om-cz-dialog .cz-group { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.om-cz-dialog .cz-legend { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 0; margin-bottom: 8px; }
.om-cz-dialog .cz-legend-name { font-size: 14.5px; font-weight: 600; }
.om-cz-dialog .cz-rule { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); white-space: nowrap; }
.om-cz-dialog .cz-rule.is-required { color: var(--amber); background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); }
.om-cz-dialog .cz-choices, .om-cz-dialog .cz-addons { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.om-cz-dialog .cz-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-md); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.om-cz-dialog .cz-choice:hover { background: var(--bg-3); }
.om-cz-dialog .cz-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.om-cz-dialog .cz-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.om-cz-dialog .cz-mark { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.om-cz-dialog .cz-mark.is-box { border-radius: 5px; }
.om-cz-dialog .cz-choice.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.om-cz-dialog .cz-choice.is-on .cz-mark { box-shadow: inset 0 0 0 5px var(--accent); }
.om-cz-dialog .cz-choice.is-on .cz-mark.is-box { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0E06' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.om-cz-dialog .cz-choice.is-off { opacity: .5; cursor: not-allowed; }
.om-cz-dialog .cz-choice-name { flex: 1; min-width: 0; display: grid; font-size: 14px; font-weight: 500; }
.om-cz-dialog .cz-why { font-size: 12px; font-weight: 400; color: var(--text-2); }
.om-cz-dialog .cz-choice-price { flex: none; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.om-cz-dialog .cz-addon { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 6px 6px 12px; border-radius: var(--r-md); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.om-cz-dialog .cz-addon.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.om-cz-dialog .cz-addon-main { flex: 1; min-width: 0; display: grid; }
.om-cz-dialog .cz-addon-name { font-size: 14px; font-weight: 500; }
.om-cz-dialog .cz-addon-price { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.om-cz-dialog .cz-stepper { display: flex; align-items: center; gap: 2px; flex: none; }
.om-cz-dialog .cz-step { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-md); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-1); }
.om-cz-dialog .cz-step:hover:not(:disabled) { background: var(--bg-4); }
.om-cz-dialog .cz-step[data-cz-step="1"]:not(:disabled) { color: var(--accent); }
.om-cz-dialog .cz-qty { min-width: 28px; text-align: center; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.om-cz-dialog .cz-removals { display: flex; flex-wrap: wrap; gap: 6px; }
.om-cz-dialog .cz-removal { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-1); font-size: 13.5px; font-weight: 500; }
.om-cz-dialog .cz-removal:hover { background: var(--bg-3); }
.om-cz-dialog .cz-removal small { color: var(--text-2); font-size: 12px; }
.om-cz-dialog .cz-removal[aria-pressed="true"] { color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-line); }
.om-cz-dialog .cz-removal[aria-pressed="true"] .cz-removal-name { text-decoration: line-through; }
.om-cz-dialog .cz-removal[aria-pressed="true"]::before { content: "Senza"; font-size: 12px; font-weight: 600; }
.om-cz-dialog .cz-error { margin: 0; font-size: 13px; font-weight: 500; color: var(--red); }
.om-cz-dialog .cz-group.is-invalid .cz-legend-name { color: var(--red); }

/* Responsive */
@media (max-width: 1100px) {
  .om-compose { grid-template-columns: minmax(0, 1fr); }
  .om-compose-cart { position: static; }
}
@media (max-width: 768px) {
  .om-toolbar { flex-direction: column; align-items: stretch; }
  .om-toolbar .om-search { flex: none; width: 100%; max-width: none; min-width: 0; }
  .om-toolbar .toolbar-spacer { display: none; }
  .om-order-card { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .om-card-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 12px; margin-top: 6px; }
  .om-card-total { margin-left: auto; }
  .om-card-accept { margin: 8px -14px -14px; }
  .om-form-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .om-stepper, .om-stepper button { height: 40px; }
  .om-stepper button { width: 40px; }
  .om-compose-item { flex-wrap: wrap; }
  .om-compose-item-actions { width: 100%; justify-content: flex-end; }
  .om-detail-inner > .om-detail-head, .om-detail-scroll, .om-detail-foot { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 420px) {
  .om-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .om-step-label { font-size: 12px; }
  .om-card-table { min-width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .om-order-card, .om-cz-dialog[open] { transition: none; animation: none; } }
