/* =====================================================================
   Maccar Medical — commerce rules every storefront page needs (the cart and quotation drawers live in the layout):
   add-to-quote button, quotation list lines + drawer (from quote.css), shared document helpers, drawers, cart
   lines (from checkout.css) and their reduced-motion final states. Loaded on every page by layouts/main.php;
   quote.css / checkout.css keep only their own pages (RFQ, quotation view, cart, checkout, orders) and load per
   route ($meta['css']). Owner: WS4. Design: DESIGN-DIRECTION.md §4.6–4.7 ("Calibrated"). Order kept: the
   quote rules come first, as when quote.css loaded before checkout.css.
   ===================================================================== */

/* ---------------------------------------------------------------- Add-to-quote button */
.atq-form { display: inline-flex; margin: 0; }
.atq-form--block { display: flex; width: 100%; }
.atq-form--block .atq { width: 100%; }
.atq { position: relative; }
.atq .atq-icon { display: inline-grid; place-items: center; }
.atq .atq-icon--done { display: none; }
.atq.is-added .atq-icon--add { display: none; }
.atq.is-added .atq-icon--done { display: inline-grid; }
/* "In your quotation list": same colours, the check is drawn once (no colour change, no pop) */
.atq.is-added .atq-icon--done svg path,
.atq.is-added .atq-icon--done svg polyline { stroke-dasharray: 24; stroke-dashoffset: 0; }
html.motion-ok .atq.is-pop .atq-icon--done svg path,
html.motion-ok .atq.is-pop .atq-icon--done svg polyline { animation: q-draw 280ms var(--ease-precise) both; }
@keyframes q-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.atq-ghost { display: none !important; }   /* fly-to-icon removed (§6 #10) */

/* ---------------------------------------------------------------- Quotation list lines (drawer + page) */
.ql-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ql {
  display: grid; grid-template-rows: 1fr; border-bottom: 1px solid var(--rule);
  transition: grid-template-rows 280ms var(--ease-standard), opacity 200ms var(--ease-exit);
}
.ql:last-child { border-bottom: 0; }
.ql-in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-block: 20px; }
.ql.is-removing { grid-template-rows: 0fr; opacity: 0; border-bottom-color: transparent; }
.ql.is-saving .ql-qty input { color: var(--text-muted); }
.ql-media { display: block; width: 64px; align-self: start; }
.ql-media .plate { width: 100%; }
.ql-body { min-width: 0; display: grid; gap: 12px; align-content: start; }
.ql-head { min-width: 0; display: grid; gap: 4px; }
.ql-brand { margin: 0; color: var(--text-muted); }
.ql-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--text); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor 0 0) no-repeat var(--ul-from, 0%) 100% / 0 1px;
  transition: background-size var(--t-panel) var(--ease-precise);
}
[dir="rtl"] .ql-name { --ul-from: 100%; }
.ql-name:hover { background-size: 100% 1px; }
.ql-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: var(--fs-data); color: var(--text-muted); }
.ql-meta .mono { font-size: .75rem; letter-spacing: .02em; color: var(--text-body); }
.ql-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.ql-qty.qty { height: 36px; }
.ql-qty.qty button { width: 34px; }
.ql-qty.qty input { width: 44px; font-family: var(--font-mono); font-size: .8125rem; }
.ql-unit { color: var(--text-muted); }
.ql-links { display: inline-flex; align-items: center; gap: 4px 16px; margin-inline-start: auto; }
.ql-note-toggle, .ql-remove {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font-size: .8125rem; font-weight: 500; color: var(--text-body);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule-strong);
  transition: color var(--t-hover) var(--ease-hover), text-decoration-color var(--t-hover) var(--ease-hover);
}
.ql-note-toggle:hover { color: var(--text); text-decoration-color: currentColor; }
.ql-remove:hover { color: var(--danger); text-decoration-color: currentColor; }
/* Line note: expands with grid rows (360 ms); the collapsed textarea is not focusable (visibility) */
.ql-note { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--t-panel) var(--ease-standard), visibility 0s linear var(--t-panel); }
.ql-note.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--t-panel) var(--ease-standard), visibility 0s; }
.ql-note-in { min-height: 0; overflow: hidden; display: grid; gap: 6px; }
.ql-note-label { font-size: .8125rem; color: var(--text-muted); }
.ql-note-input { min-height: 72px; font-size: .875rem; }
.ql-lead { margin: 0; }
/* Page context: a numbered document table */
.ql-list--page { border-top: 1px solid var(--text); }
.ql-list--page .ql-in { grid-template-columns: 28px 96px minmax(0, 1fr); gap: 20px; padding-block: 24px; }
.ql-list--page .ql-media { width: 96px; }
.ql-idx { padding-top: 2px; }
.ql-list--page .ql-name { font-size: var(--fs-body); }
@media (min-width: 1200px) {
  .ql-list--page .ql-body { grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); column-gap: 24px; }
  .ql-list--page .ql-head, .ql-list--page .ql-controls, .ql-list--page .ql-lead { grid-column: 1; }
  .ql-list--page .ql-note { grid-column: 2; grid-row: 1 / span 3; }
  .ql-list--page .ql-links { margin-inline-start: 0; }
}
@media (max-width: 599.98px) {
  .ql-list--page .ql-in { grid-template-columns: 22px 64px minmax(0, 1fr); gap: 12px; }
  .ql-list--page .ql-media { width: 64px; }
}
/* Empty list: an empty plate with registration marks, one sentence, one action */
.ql-empty { display: grid; justify-items: start; gap: 20px; padding-block: 8px 24px; }
.ql-empty-plate { width: min(100%, 320px); }
.ql-empty-plate .plate { width: 100%; }
.ql-empty-title { margin: 0; font-size: var(--fs-h4); font-weight: 520; line-height: 1.3; color: var(--text); }
:lang(ar) .ql-empty-title { font-weight: 600; }
.rfq-lines .ql-empty { padding-block: 32px; border-top: 1px solid var(--text); }

/* ---------------------------------------------------------------- Quotation list drawer */
.qd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qd-title { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: var(--fs-h4); font-weight: 520; letter-spacing: -.006em; color: var(--text); }
:lang(ar) .qd-title { font-weight: 600; letter-spacing: 0; }
.qd-count { font-size: var(--fs-data); font-weight: 400; color: var(--text-muted); }
.qd-count::before { content: "("; }
.qd-count::after { content: ")"; }
.qd-doc { margin: 0; padding: 12px 24px; border-bottom: 1px solid var(--rule); color: var(--text-muted); letter-spacing: .04em; }
:lang(en) .qd-doc { text-transform: uppercase; }
:lang(ar) .qd-doc { letter-spacing: 0; }
.qd-doc [data-quote-doc-count] { color: var(--text); }
.qd-body { padding-block: 0; }
.qd-foot { display: grid; gap: 16px; }
.qd-summary { margin: 0; color: var(--text); }
.qd-note { margin: 0; max-width: 46ch; font-size: .8125rem; line-height: 1.55; color: var(--text-muted); }
.qd-actions { display: grid; gap: 10px; }

/* ---------------------------------------------------------------- Shared: documents & helpers */
.co-opt { color: var(--text-muted); font-weight: 400; font-size: .8125rem; }
.co-req { color: var(--danger); margin-inline-start: 2px; }
.co .mono, .bk .mono, .wl .mono, .ord .mono, .otk .mono, .cd .mono { font-variant-numeric: tabular-nums lining-nums; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }
/* Arabic: mono meta lines often carry Arabic words ("2 عناصر", "د.إ"): no tracking (it breaks joining) and the
   Arabic family, with tabular Western digits */
:lang(ar) :is(.co, .bk, .wl, .ord, .otk, .cd, .quote-drawer, .rfq-wrap, .rfq-hero, .rfq-sent, .qv-page, .acc, .auth, .pay) :is(.meta, .fig) {
  font-family: var(--font-sans); letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums;
}
:lang(ar) :is(.co, .bk, .wl, .ord, .otk, .cd, .quote-drawer, .rfq-wrap, .rfq-sent, .qv-page, .acc, .pay) .mono { letter-spacing: 0; }

/* Fields inside document forms are 52 px (base .input is 48 px) */
.form--doc .input, .form--doc .select { min-height: 52px; }
.form--doc .input.input--sm { min-height: 40px; }
/* Phone numbers, e-mail addresses and codes stay left-to-right inside the Arabic layout */
[dir="rtl"] :is(.co, .otk, .rfq-wrap, .auth, .acc, .qv-accept) :is(input[type="tel"], input[type="email"], .input.mono) { direction: ltr; text-align: end; }

/* Validation messages expand (200 ms) — never shake */
.co .field-error, .otk .field-error, .bs .field-error { display: flex; align-items: flex-start; gap: 6px; }
.co .field-error .icon, .bs .field-error .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
html.motion-ok .co .field-error { animation: ws4-expand 200ms var(--ease-precise) both; }
@keyframes ws4-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Note blocks (status border, tinted ground, 16 px icon, 14 px text) */
.co-notice {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0 0 20px;
  border: 1px solid var(--rule); border-radius: var(--r-1); background: var(--paper-2); color: var(--text-body);
  font-size: .875rem; line-height: 1.55;
}
.co-notice > .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--text); }
.co-notice > div { flex: 1; min-width: 0; }
.co-notice p { margin: 0 0 4px; }
.co-notice p:last-child { margin-bottom: 0; }
.co-notice__title { font-weight: 500; color: var(--text); }
:lang(ar) .co-notice__title { font-weight: 600; }
.co-notice--warn { background: var(--warning-bg); border-color: var(--warning-border); }
.co-notice--warn > .icon { color: var(--warning); }
.co-notice--info { background: var(--signal-tint); border-color: var(--info-border); }
.co-notice--info > .icon { color: var(--signal-press); }
.co-notice .btn { flex: none; align-self: center; }

/* Copy chip (order / quote reference): mono 13 px, hairline, 2 px radius; "Copied" + check for 1.2 s */
.chip-copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: var(--r-1); background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: .8125rem; color: var(--text);
  transition: border-color var(--t-hover) var(--ease-hover);
}
.chip-copy:hover { border-color: var(--rule-strong); }
.chip-copy .icon { width: 16px; height: 16px; stroke-width: 1.5; }
.chip-copy.is-copied { border-color: var(--text); }
@media (pointer: coarse) { .chip-copy { min-height: 44px; } }

/* Ledger: numbered hairline rows (what happens next, next steps) */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); counter-reset: ledger; }
.ledger > li { counter-increment: ledger; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.ledger__idx { padding-top: 3px; }
.ledger__body { display: grid; gap: 4px; min-width: 0; }
.ledger b, .ledger strong { font-weight: 500; color: var(--text); }
:lang(ar) .ledger b, :lang(ar) .ledger strong { font-weight: 600; }
.ledger__body > span, .ledger > li > span { font-size: var(--fs-small); color: var(--text-muted); }
/* rows without an explicit index print a mono counter */
.oc-steps > li { grid-template-rows: auto auto; }
.oc-steps > li::before { content: counter(ledger, decimal-leading-zero); grid-row: 1 / span 2; padding-top: 3px; font-family: var(--font-mono); font-size: var(--fs-data); letter-spacing: .02em; color: var(--text-faint); }
.oc-steps > li > strong { grid-column: 2; }
.oc-steps > li > span { grid-column: 2; }

/* Free-delivery ruler: a measured baseline with ticks; a 2 px ink fill scaled to subtotal / threshold */
.free-ruler { display: grid; gap: 8px; }
.free-ruler__track {
  position: relative; height: 10px;
  background:
    linear-gradient(var(--rule-strong) 0 0) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--text-faint) 0 1px, transparent 1px 40px) 0 100% / 100% 8px no-repeat,
    repeating-linear-gradient(to right, rgb(13 23 38 / .28) 0 1px, transparent 1px 8px) 0 100% / 100% 4px no-repeat;
}
[dir="rtl"] .free-ruler__track {
  background:
    linear-gradient(var(--rule-strong) 0 0) 100% 100% / 100% 1px no-repeat,
    repeating-linear-gradient(to left, var(--text-faint) 0 1px, transparent 1px 40px) 100% 100% / 100% 8px no-repeat,
    repeating-linear-gradient(to left, rgb(13 23 38 / .28) 0 1px, transparent 1px 8px) 100% 100% / 100% 4px no-repeat;
}
.free-ruler__fill { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: var(--pct, 0%); background: var(--text); }
.free-ruler__label { margin: 0; color: var(--text-body); }
.free-ruler.is-reached .free-ruler__label { color: var(--success); }

/* ---------------------------------------------------------------- Drawers (cart + quotation list) */
.cd .drawer-backdrop, .quote-drawer .drawer-backdrop { background: rgb(10 15 23 / .32); transition: opacity var(--t-ui) var(--ease-hover); }
.cd .drawer-panel, .quote-drawer .drawer-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; inset-inline-start: auto;
  width: min(480px, 100vw); max-width: 100vw; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 0; box-shadow: var(--elev-float);
  transform: translateX(calc(100% * var(--dir))); transition: transform 220ms var(--ease-exit);
}
.cd.is-open .drawer-panel, .quote-drawer.is-open .drawer-panel { transform: none; transition: transform var(--t-sheet) var(--ease-precise); }
.cd-head, .qd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 0; padding-inline: 24px 12px; border-bottom: 1px solid var(--rule); }
.cd-close, .qd-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--text); cursor: pointer; transition: background-color var(--t-hover) var(--ease-hover); }
.cd-close:hover, .qd-close:hover { background: var(--paper-2); }
.cd-close .icon, .qd-close .icon { width: 20px; height: 20px; }
.cd-body, .qd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-inline: 24px; }
.cd-foot, .qd-foot { padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper-2); }
@media (max-width: 399.98px) {
  .cd-head, .qd-head { padding-inline: 16px 8px; }
  .cd-body, .qd-body, .qd-doc { padding-inline: 16px; }
  .cd-foot, .qd-foot { padding-inline: 16px; }
}
/* rows enter once when the drawer opens (fade + y 8, stagger 30 ms from 160 ms) */
html.motion-ok .drawer.is-entering :is(.ql, .cl-line) { animation: ws4-row 360ms var(--ease-precise) both; }
.drawer.is-entering :is(.ql, .cl-line):nth-child(1) { animation-delay: 160ms; }
.drawer.is-entering :is(.ql, .cl-line):nth-child(2) { animation-delay: 190ms; }
.drawer.is-entering :is(.ql, .cl-line):nth-child(3) { animation-delay: 220ms; }
.drawer.is-entering :is(.ql, .cl-line):nth-child(4) { animation-delay: 250ms; }
.drawer.is-entering :is(.ql, .cl-line):nth-child(5) { animation-delay: 280ms; }
.drawer.is-entering :is(.ql, .cl-line):nth-child(6) { animation-delay: 310ms; }
.drawer.is-entering :is(.ql, .cl-line):nth-child(7) { animation-delay: 340ms; }
.drawer.is-entering :is(.ql, .cl-line):nth-child(n+8) { animation-delay: 370ms; }
@keyframes ws4-row { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cart drawer */
.cd-title { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: var(--fs-h4); font-weight: 520; letter-spacing: -.006em; color: var(--text); }
:lang(ar) .cd-title { font-weight: 600; letter-spacing: 0; }
.cd-count { font-size: var(--fs-data); font-weight: 400; color: var(--text-muted); }
.cd-count::before { content: "("; }
.cd-count::after { content: ")"; }
.cd-foot { display: grid; gap: 16px; }
.cd-sum { margin: 0; display: grid; gap: 8px; }
.cd-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cd-sum dt { color: var(--text-body); font-size: var(--fs-small); }
.cd-sum dd { margin: 0; display: grid; justify-items: end; gap: 2px; text-align: end; }
.cd-sum__amount { font-size: 1.25rem; color: var(--text); }
.cd-sum__vat { color: var(--text-muted); }
.cd-sum .is-discount dd { color: var(--success); font-family: var(--font-mono); }
.cd-note { margin: 0; font-size: .8125rem; color: var(--text-muted); }
.cd-note--warn { color: var(--warning); }
.cd-actions { display: grid; gap: 10px; }
.cd-panel.is-busy .cd-body { opacity: .6; pointer-events: none; transition: opacity var(--t-hover) var(--ease-hover); }
.cd-empty { display: grid; align-content: start; justify-items: start; gap: 20px; padding-block: 32px; }
.cd-empty__plate { width: 100%; max-width: 360px; }
.cd-empty__plate .plate, .bk-empty__plate .plate { width: 100%; }
.cd-empty__title { margin: 0; font-size: var(--fs-h4); font-weight: 520; line-height: 1.3; color: var(--text); }
:lang(ar) .cd-empty__title { font-weight: 600; }

/* ---------------------------------------------------------------- Cart lines (drawer + page) */
.cl { list-style: none; margin: 0; padding: 0; }
.cl-line { display: grid; grid-template-rows: 1fr; border-bottom: 1px solid var(--rule); transition: grid-template-rows 280ms var(--ease-standard), opacity 200ms var(--ease-exit); }
.cl-line:last-child { border-bottom: 0; }
.cl-in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding-block: 20px; }
.cl-line.is-removing { grid-template-rows: 0fr; opacity: 0; border-bottom-color: transparent; }
.cl-line.is-unavailable .cl-img, .cl-line.is-unavailable .cl-name { opacity: .55; }
.cl-img { display: block; width: 64px; }
.cl-img .plate { width: 100%; }
.cl-info { min-width: 0; display: grid; gap: 4px; align-content: start; }
.cl-brand { margin: 0; color: var(--text-muted); }
.cl-name {
  /* Full name: products of a series differ only at the end of the name (model / option) */
  display: block;
  font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--text); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor 0 0) no-repeat var(--ul-from, 0%) 100% / 0 1px; transition: background-size var(--t-panel) var(--ease-precise);
}
[dir="rtl"] .cl-name { --ul-from: 100%; }
.cl-name:hover { background-size: 100% 1px; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; font-size: .8125rem; color: var(--text-muted); }
.cl-meta .mono { font-size: .75rem; color: var(--text-body); letter-spacing: .02em; }
.cl-unit { margin: 0; }
.cl-was { color: var(--text-muted); margin-inline-start: 6px; }
.cl-msg { margin: 2px 0 0; font-size: .8125rem; color: var(--warning); }
.cl-msg.is-error { color: var(--danger); }
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.cl-qty.qty { height: 36px; }
.cl-qty.qty button { width: 34px; }
.cl-qty.qty input { width: 44px; font-family: var(--font-mono); font-size: .8125rem; }
.cl-qty button[disabled] { opacity: .35; cursor: not-allowed; }
.cl-remove-form { margin: 0; }
.cl-remove {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .8125rem; font-weight: 500; color: var(--text-body);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule-strong);
  transition: color var(--t-hover) var(--ease-hover), text-decoration-color var(--t-hover) var(--ease-hover);
}
.cl-remove:hover { color: var(--danger); text-decoration-color: currentColor; }
.cl-total { display: grid; justify-items: end; gap: 2px; text-align: end; }
.cl-price { font-size: .9375rem; color: var(--text); white-space: nowrap; }
.cl-each { white-space: nowrap; }
.cl-na { color: var(--text-faint); }
.cl-line.is-added .cl-in { box-shadow: inset 2px 0 0 var(--measure); }
[dir="rtl"] .cl-line.is-added .cl-in { box-shadow: inset -2px 0 0 var(--measure); }
/* Cart page: a line table (product · quantity · total) from 768 px */
.cl:not(.cl--compact) .cl-in { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; padding-block: 24px; }
.cl:not(.cl--compact) .cl-img { width: 96px; }
.cl:not(.cl--compact) .cl-name { font-size: var(--fs-body); }
.cl:not(.cl--compact) .cl-price { font-size: 1rem; }
/* Line table only where the product column keeps a readable width (not beside the 1024–1279 px summary column) */
@media (min-width: 768px) and (max-width: 1023.98px), (min-width: 1280px) {
  .cl:not(.cl--compact) .cl-in { grid-template-columns: 96px minmax(0, 1fr) 180px 140px; grid-auto-rows: min-content; column-gap: 20px; row-gap: 4px; }
  .cl:not(.cl--compact) .cl-info { display: contents; }
  .cl:not(.cl--compact) .cl-img { grid-column: 1; grid-row: 1 / span 6; }
  .cl:not(.cl--compact) .cl-info > :not(.cl-actions) { grid-column: 2; }
  .cl:not(.cl--compact) .cl-actions { grid-column: 3; grid-row: 1 / span 6; margin: 0; display: grid; justify-items: start; gap: 4px; align-content: start; }
  .cl:not(.cl--compact) .cl-total { grid-column: 4; grid-row: 1 / span 6; }
}
@media (max-width: 479.98px) {
  .cl:not(.cl--compact) .cl-in { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .cl:not(.cl--compact) .cl-img { width: 72px; }
  .cl:not(.cl--compact) .cl-total { grid-column: 2; justify-items: start; text-align: start; }
  /* Drawer on phones: the line total goes under the name so the full name keeps the width */
  .cl--compact .cl-in { grid-template-columns: 64px minmax(0, 1fr); }
  .cl--compact .cl-total { grid-column: 2; justify-items: start; text-align: start; }
}

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .atq.is-pop, .atq.is-pop .atq-icon--done, [data-quote-count].is-bumped, .is-receiving, .ql.is-saved, .qv-decline[open] .qv-decline-form { animation: none !important; }
  .rfq-done-ring, .rfq-done-tick { animation: none; stroke-dashoffset: 0; }
  .ql, .ql.is-removing { transition: none; transform: none; }
}

/* ---------------------------------------------------------------- Reduced motion: final states */
html.motion-reduced .cl-line, html.motion-reduced .ql, html.motion-reduced .ql-note,
html.motion-reduced .cd .drawer-panel, html.motion-reduced .quote-drawer .drawer-panel { transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) {
  .cl-line, .ql, .ql-note, .co-sum__body, .cd .drawer-panel, .quote-drawer .drawer-panel, .co-progress__line::after { transition-duration: .01ms !important; }
}

