/* OEZ Premium · Barcode-Scanner-Dialog (Plugin oez_haendler_dashboard, S10 Kundenportal, 12.11.2026)
   Eigenständig: lädt lazy über den Header-Button (scanner-header.js) auf jeder Shopseite und als <link> im Dashboard/auf /barcode-scanner.
   Nur System-Tokens aus premium-tokens.css, keine Hex-Werte, kein @import. Alle Regeln unter #oez-scanner-root (ID-Gewicht schlägt Snackys- und
   Alt-Plugin-Regeln wie #oez-studio .st-btn). Klassen .st-scan-* erzeugt zum Teil scanner.js (Verlauf, Trefferkarte, Mengenwahl, Mengen-Editor,
   Alternativen) – Namen nicht ändern. Backdrop: .oez-modal::backdrop (premium-components.css 16). Kein Dark-Mode (Spec 10 F11). */
#oez-scanner-root { color: var(--oez-ink); font-family: var(--oez-font-text); font-size: var(--oez-fs-16); line-height: var(--oez-lh-text); }
#oez-scanner-root *, #oez-scanner-root *::before, #oez-scanner-root *::after { box-sizing: border-box; }
#oez-scanner-root [hidden] { display: none !important; }

/* Dialog-Rahmen = .oez-modal; .st-dialog ist der Scroll-Container mit klebendem Kopf und Fuß */
#oez-scanner-root .st-scanner { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; width: min(calc(100vw - 16px), 640px); max-width: none; height: fit-content; max-height: calc(100dvh - 16px); border-radius: var(--oez-r-lg); background: var(--oez-white); color: var(--oez-ink); box-shadow: var(--oez-shadow-lg); overflow: hidden; z-index: var(--oez-z-modal); }
#oez-scanner-root .st-scanner:not([open]) { display: none; }
#oez-scanner-root .st-scanner .st-dialog { display: flex; flex-direction: column; max-width: none; max-height: calc(100dvh - 16px); padding: 0; margin: 0; border-radius: 0; background: var(--oez-white); overflow-y: auto; overscroll-behavior: contain; }
#oez-scanner-root .st-scanner .st-dialog-head { flex: 0 0 auto; position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--oez-s-3); margin: 0; padding: var(--oez-s-4) var(--oez-s-4) var(--oez-s-3) var(--oez-s-5); background: var(--oez-white); border-bottom: 1px solid var(--oez-line); }
#oez-scanner-root .st-scanner .st-scan-heading { min-width: 0; padding-top: 2px; }
#oez-scanner-root .st-scanner .st-kicker { margin: 0 0 var(--oez-s-1); font-size: var(--oez-fs-12); font-weight: var(--oez-fw-label); letter-spacing: var(--oez-ls-caps); text-transform: uppercase; color: var(--oez-ink-2); }
#oez-scanner-root .st-scanner .st-dialog-head h2 { margin: 0; font-family: var(--oez-font-text); font-size: var(--oez-fs-20); font-weight: var(--oez-fw-strong); line-height: var(--oez-lh-tight); letter-spacing: 0; text-transform: none; color: var(--oez-ink); }
#oez-scanner-root .st-scanner .st-scan-body { flex: 0 0 auto; min-height: auto; display: grid; gap: var(--oez-s-4); padding: var(--oez-s-4) var(--oez-s-5) var(--oez-s-5); color: var(--oez-ink); }
#oez-scanner-root .st-scanner .st-scan-body > * { min-width: 0; margin: 0; }
#oez-scanner-root .st-scanner p { margin: 0; }
#oez-scanner-root .st-scanner p:empty { display: none; }
#oez-scanner-root .st-scanner h3 { margin: 0; font-family: var(--oez-font-text); font-size: var(--oez-fs-16); font-weight: var(--oez-fw-strong); line-height: var(--oez-lh-tight); letter-spacing: 0; text-transform: none; color: var(--oez-ink); }

/* Buttons: .st-btn = Sekundär (wie .oez-btn--secondary), .st-btn.orange und Template-.oez-btn ohne Modifikator = Primär */
#oez-scanner-root .st-scanner .st-btn { position: static; float: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--oez-s-2); min-height: var(--oez-control); margin: 0; padding: 0 var(--oez-s-4); border: 1.5px solid var(--oez-ink); border-radius: var(--oez-r-md); background: transparent; color: var(--oez-ink); font-family: var(--oez-font-text); font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); line-height: 1.2; text-align: center; text-decoration: none; white-space: normal; cursor: pointer; box-shadow: none; transition: background var(--oez-t-fast) var(--oez-ease), border-color var(--oez-t-fast) var(--oez-ease), color var(--oez-t-fast) var(--oez-ease); }
#oez-scanner-root .st-scanner a.st-btn { text-decoration: none !important; }
#oez-scanner-root .st-scanner .st-btn:hover { background: var(--oez-ink); border-color: var(--oez-ink); color: var(--oez-white); }
#oez-scanner-root .st-scanner :is(.st-btn.orange, .st-btn.oez-btn:not(.oez-btn--secondary)) { background: var(--oez-orange); border-color: var(--oez-orange); color: var(--oez-ink); }
#oez-scanner-root .st-scanner :is(.st-btn.orange, .st-btn.oez-btn:not(.oez-btn--secondary)):hover { background: var(--oez-orange-hover); border-color: var(--oez-orange-hover); color: var(--oez-ink); }
#oez-scanner-root .st-scanner :is(.st-btn.orange, .st-btn.oez-btn:not(.oez-btn--secondary)):active { background: var(--oez-orange-active); border-color: var(--oez-orange-active); }
#oez-scanner-root .st-scanner .st-btn:disabled { background: var(--oez-surface-4); border-color: var(--oez-surface-4); color: var(--oez-ink-3); cursor: not-allowed; }
#oez-scanner-root .st-scanner .st-icon { position: static; float: none; display: inline-grid; place-content: center; flex: 0 0 var(--oez-control); width: var(--oez-control); height: var(--oez-control); margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--oez-surface-2); color: var(--oez-ink); cursor: pointer; box-shadow: none; }
#oez-scanner-root .st-scanner .st-icon:hover { background: var(--oez-surface-3); }
#oez-scanner-root .st-scanner .st-icon:disabled { color: var(--oez-ink-3); background: var(--oez-surface-2); opacity: .55; cursor: default; }
#oez-scanner-root .st-scanner .oez-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; }
#oez-scanner-root .st-scanner :is(button, a, input, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--oez-focus); }

/* Kamera (Hauptweg mobil) mit Rahmen und Hinweis; ohne Kamera bleibt der Bereich verborgen */
#oez-scanner-root .st-scan-camera { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; max-height: min(300px, 38dvh); border-radius: var(--oez-r-md); background: var(--oez-ink); overflow: hidden; }
#oez-scanner-root .st-scan-camera video { display: block; width: 100%; height: 100%; object-fit: cover; }
#oez-scanner-root .st-scan-guide { position: absolute; inset: 22% 10% 26%; border: 2px solid var(--oez-orange); border-radius: var(--oez-r-sm); box-shadow: 0 0 0 999px color-mix(in srgb, var(--oez-ink) 45%, transparent); pointer-events: none; }
#oez-scanner-root .st-scan-instruction { position: absolute; left: 50%; bottom: var(--oez-s-3); transform: translateX(-50%); max-width: calc(100% - 24px); padding: var(--oez-s-1) var(--oez-s-3); border-radius: var(--oez-r-pill); background: color-mix(in srgb, var(--oez-ink) 75%, transparent); color: var(--oez-white); font-size: var(--oez-fs-13); font-weight: var(--oez-fw-label); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Status (role=status): ruhig; Fehler/ohne Kamera als Hinweisbox (Spec 10 §7: .oez-alert) */
#oez-scanner-root .st-scanner .st-scan-status { display: block; min-height: 1.5em; font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); color: var(--oez-ink-2); }
#oez-scanner-root .st-scanner .st-scan-status[data-error="true"] { padding: var(--oez-s-3) var(--oez-s-4); border-left: 4px solid var(--oez-warn); border-radius: var(--oez-r-md); background: var(--oez-warn-bg); color: var(--oez-ink); font-weight: var(--oez-fw-ui); }

/* Manuelle EAN-Eingabe (gleichwertig, öffnet sich ohne Kamera automatisch) */
#oez-scanner-root .st-scan-manual { border: 1px solid var(--oez-line); border-radius: var(--oez-r-md); background: var(--oez-surface-2); }
#oez-scanner-root .st-scan-manual > summary { display: flex; align-items: center; gap: var(--oez-s-2); min-height: var(--oez-control); padding: 0 var(--oez-s-4); list-style: none; cursor: pointer; font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); color: var(--oez-ink); border-radius: var(--oez-r-md); }
#oez-scanner-root .st-scan-manual > summary::-webkit-details-marker { display: none; }
#oez-scanner-root .st-scan-manual > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--oez-t-fast) var(--oez-ease); }
#oez-scanner-root .st-scan-manual[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
#oez-scanner-root .st-scan-manual form { display: grid; gap: var(--oez-s-2); margin: 0; padding: 0 var(--oez-s-4) var(--oez-s-4); }
#oez-scanner-root .st-scan-manual label { display: block; position: static; float: none; width: auto; height: auto; margin: 0; font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); color: var(--oez-ink); }
#oez-scanner-root .st-scan-manual-row { display: flex; flex-wrap: wrap; gap: var(--oez-s-2); }
#oez-scanner-root .st-scan-manual-row > .st-field { flex: 1 1 180px; min-width: 0; width: auto; height: var(--oez-control); min-height: var(--oez-control); margin: 0; padding: 0 var(--oez-s-4); border: 1.5px solid var(--oez-line-strong); border-radius: var(--oez-r-md); background: var(--oez-white); color: var(--oez-ink); font-family: var(--oez-font-text); font-size: var(--oez-fs-16); font-variant-numeric: tabular-nums; letter-spacing: .02em; box-shadow: none; }
#oez-scanner-root .st-scan-manual-row > .st-field::placeholder { color: var(--oez-ink-3); opacity: 1; letter-spacing: 0; }
#oez-scanner-root .st-scan-manual-row > .st-field:hover { border-color: var(--oez-ink-3); }
#oez-scanner-root .st-scan-manual-row > .st-field:focus-visible { border-color: var(--oez-ink); box-shadow: 0 0 0 3px var(--oez-orange-200); }
#oez-scanner-root .st-scan-manual-row > .st-btn { flex: 0 0 auto; padding-inline: var(--oez-s-5); white-space: nowrap; }

/* Ergebnis: Trefferkarte (.st-scan-card-main), Auswahlkarten (mehrere Treffer), Mengen-Editor */
#oez-scanner-root .st-scan-result { display: grid; gap: var(--oez-s-3); }
#oez-scanner-root .st-scan-result:empty { display: none; }
#oez-scanner-root .st-scan-card { min-width: 0; margin: 0; padding: var(--oez-s-4); border: 1px solid var(--oez-line); border-radius: var(--oez-r-lg); background: var(--oez-white); box-shadow: var(--oez-shadow-sm); }
#oez-scanner-root .st-scan-card > div:not([class]) { min-width: 0; display: grid; gap: var(--oez-s-1); align-content: start; }
#oez-scanner-root .st-scan-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: var(--oez-s-1); border: 1px solid var(--oez-line); border-radius: var(--oez-r-md); background: var(--oez-white); mix-blend-mode: multiply; }
#oez-scanner-root .st-scan-card h3 { font-size: var(--oez-fs-16); line-height: 1.35; overflow-wrap: anywhere; }
#oez-scanner-root .st-scan-card .st-scan-meta { font-size: var(--oez-fs-13); color: var(--oez-ink-3); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#oez-scanner-root .st-scan-card .st-scan-price { margin-top: var(--oez-s-1); font-size: var(--oez-fs-18); font-weight: var(--oez-fw-num); font-variant-numeric: tabular-nums; color: var(--oez-ink); }
#oez-scanner-root .st-scan-card .st-scan-stock { display: flex; align-items: baseline; gap: .45em; font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); color: var(--oez-warn-text); }
#oez-scanner-root .st-scan-card .st-scan-stock::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--oez-warn); transform: translateY(-1px); }
#oez-scanner-root .st-scan-card .st-scan-stock[data-available="true"] { color: var(--oez-ok-text); }
#oez-scanner-root .st-scan-card .st-scan-stock[data-available="true"]::before { background: var(--oez-ok); }
#oez-scanner-root .st-scan-card .st-scan-stock:empty { display: none; }
#oez-scanner-root .st-scan-card-main { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--oez-s-3) var(--oez-s-4); align-items: start; }
#oez-scanner-root .st-scan-card-main:not(:has(> img)) { grid-template-columns: minmax(0, 1fr); }
#oez-scanner-root .st-scan-card-main > :not(img):not(div:not([class])) { grid-column: 1 / -1; }
#oez-scanner-root .st-scan-result > .st-scan-card:not(.st-scan-card-main) { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--oez-s-3); align-items: start; }
#oez-scanner-root .st-scan-result > .st-scan-card:not(.st-scan-card-main):not(:has(> img)) { grid-template-columns: minmax(0, 1fr); }
#oez-scanner-root .st-scan-result > .st-scan-card:not(.st-scan-card-main) > .st-btn { grid-column: 1 / -1; justify-self: start; }
#oez-scanner-root .st-scanner .st-scan-repeat { padding: var(--oez-s-2) var(--oez-s-3); border-radius: var(--oez-r-sm); background: var(--oez-orange-50); color: var(--oez-ink); font-size: var(--oez-fs-13); }

/* Mengenwahl und Übernahme: Stepper 44 px, Button daneben, mobil darunter */
#oez-scanner-root .st-scan-buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--oez-s-3); padding-top: var(--oez-s-3); border-top: 1px solid var(--oez-line); }
#oez-scanner-root .st-scan-buy > label { display: grid; gap: var(--oez-s-1); position: static; float: none; width: auto; min-width: 0; max-width: 100%; height: auto; margin: 0; font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); color: var(--oez-ink); }
#oez-scanner-root .st-scan-quantity { display: grid !important; grid-template-columns: var(--oez-control) minmax(56px, 72px) var(--oez-control); width: max-content; max-width: 100%; height: auto; margin: 0; padding: 0; gap: 0; border: 1.5px solid var(--oez-line-strong); border-radius: var(--oez-r-md); background: var(--oez-white); overflow: hidden; }
#oez-scanner-root .st-scan-quantity > input { display: block; position: static !important; float: none; transform: none; width: 100% !important; min-width: 0; max-width: none; height: var(--oez-control); margin: 0 !important; padding: 0 2px !important; border: 0; border-inline: 1px solid var(--oez-line); border-radius: 0; background: var(--oez-white); color: var(--oez-ink); font-family: var(--oez-font-text); font-size: var(--oez-fs-16); font-weight: var(--oez-fw-label); font-variant-numeric: tabular-nums; text-align: center; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
#oez-scanner-root .st-scan-quantity > input::-webkit-inner-spin-button, #oez-scanner-root .st-scan-quantity > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#oez-scanner-root .st-scan-quantity > input:focus-visible { box-shadow: inset 0 0 0 2px var(--oez-orange-text); }
#oez-scanner-root .st-scanner .st-scan-quantity > .st-btn { position: static !important; float: none; transform: none; width: var(--oez-control) !important; min-width: var(--oez-control); max-width: var(--oez-control); height: var(--oez-control); min-height: 0; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 0; background: var(--oez-surface-2); color: var(--oez-ink); font-size: var(--oez-fs-20); font-weight: var(--oez-fw-label); line-height: 1; }
#oez-scanner-root .st-scanner .st-scan-quantity > .st-btn:hover { background: var(--oez-surface-3); color: var(--oez-ink); }
#oez-scanner-root .st-scanner .st-scan-quantity > .st-btn:focus-visible { box-shadow: inset 0 0 0 2px var(--oez-orange-text); }
#oez-scanner-root .st-scanner .st-scan-quantity > .st-btn:disabled, #oez-scanner-root .st-scan-quantity > input:disabled { background: var(--oez-surface-2); color: var(--oez-ink-3); }
#oez-scanner-root .st-scanner .st-scan-buy > .st-btn { flex: 1 1 180px; }
#oez-scanner-root .st-scan-edit > .st-scan-meta, #oez-scanner-root .st-scan-edit > .st-scan-feedback { flex-basis: 100%; }
#oez-scanner-root .st-scan-edit > .st-scan-meta { font-size: var(--oez-fs-13); color: var(--oez-ink-3); }
#oez-scanner-root .st-scanner .st-scan-feedback { font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); color: var(--oez-ok-text); }
#oez-scanner-root .st-scanner .st-scan-feedback[data-error="true"] { color: var(--oez-err-text); }

/* Alternativen: waagrechte Reihe (scanner.js blättert per scrollBy), Pfeile 44 px */
#oez-scanner-root .st-scan-alternatives { display: grid; gap: var(--oez-s-2); padding-top: var(--oez-s-2); }
#oez-scanner-root .st-scan-alternatives .st-section-head { display: flex; justify-content: space-between; align-items: center; gap: var(--oez-s-3); margin: 0; }
#oez-scanner-root .st-scan-alternatives .st-controls { display: flex; gap: var(--oez-s-2); flex: 0 0 auto; }
#oez-scanner-root .st-scan-alternatives [data-scan-alternatives-note] { font-size: var(--oez-fs-14); color: var(--oez-ink-2); }
#oez-scanner-root .st-scan-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(184px, 78%); gap: var(--oez-s-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px var(--oez-s-3); scrollbar-width: thin; }
#oez-scanner-root .st-scan-rail:empty, #oez-scanner-root .st-scan-alternatives:has(.st-scan-rail:empty) .st-controls { display: none; }
#oez-scanner-root .st-scan-rail:focus-visible { border-radius: var(--oez-r-md); }
#oez-scanner-root .st-scan-rail .st-scan-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--oez-s-2); padding: var(--oez-s-3); box-shadow: none; }
#oez-scanner-root .st-scan-rail .st-scan-card img { max-height: 120px; }
#oez-scanner-root .st-scan-rail .st-scan-card h3 { font-size: var(--oez-fs-14); }
#oez-scanner-root .st-scan-rail .st-btn { margin-top: auto; width: 100%; }
#oez-scanner-root .st-scan-rail .st-empty { grid-column: 1 / -1; padding: var(--oez-s-4); border: 1px dashed var(--oez-line-strong); border-radius: var(--oez-r-md); background: var(--oez-surface-2); font-size: var(--oez-fs-14); color: var(--oez-ink-2); }

/* Scan-Verlauf als Zeilen (.oez-rows-Optik) */
#oez-scanner-root .st-scan-history { display: grid; gap: var(--oez-s-2); padding: var(--oez-s-4); border: 1px solid var(--oez-line); border-radius: var(--oez-r-lg); background: var(--oez-white); }
#oez-scanner-root .st-scan-history-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--oez-s-3); }
#oez-scanner-root .st-scan-history-head > span { font-size: var(--oez-fs-13); color: var(--oez-ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
#oez-scanner-root .st-scanner .st-scan-history-summary { font-size: var(--oez-fs-13); color: var(--oez-ink-2); }
#oez-scanner-root .st-scan-history-list { list-style: none; margin: 0; padding: 0; max-height: 228px; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--oez-r-sm); }
#oez-scanner-root .st-scan-history-row { display: flex; align-items: flex-start; gap: var(--oez-s-3); margin: 0; padding: var(--oez-s-3) 0; border-top: 1px solid var(--oez-line); }
#oez-scanner-root .st-scan-history-row img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; padding: 2px; border: 1px solid var(--oez-line); border-radius: var(--oez-r-sm); background: var(--oez-white); mix-blend-mode: multiply; }
#oez-scanner-root .st-scan-history-detail { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
#oez-scanner-root .st-scan-history-detail strong { font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); line-height: 1.35; }
#oez-scanner-root .st-scan-history-ean { font-size: var(--oez-fs-12); color: var(--oez-ink-3); font-variant-numeric: tabular-nums; }
#oez-scanner-root .st-scan-history-state { font-size: var(--oez-fs-13); color: var(--oez-ink-2); }
#oez-scanner-root .st-scan-history-row[data-state="added"] .st-scan-history-state { color: var(--oez-ok-text); font-weight: var(--oez-fw-label); }
#oez-scanner-root .st-scan-history-row:is([data-state="missing"], [data-state="unavailable"], [data-state="invalid"], [data-state="uncertain"], [data-state="rejected"], [data-state="error"]) .st-scan-history-state { color: var(--oez-warn-text); font-weight: var(--oez-fw-label); }
#oez-scanner-root .st-scanner .st-scan-history-detail .st-scan-edit-link { justify-self: start; min-height: var(--oez-control); margin-top: var(--oez-s-1); padding: 0 var(--oez-s-3); border-color: transparent; color: var(--oez-orange-text); text-decoration: underline; text-underline-offset: .18em; }
#oez-scanner-root .st-scanner .st-scan-history-detail .st-scan-edit-link:hover { background: var(--oez-orange-50); border-color: var(--oez-orange-50); color: var(--oez-ink); }
#oez-scanner-root .st-scan-history > small { display: block; font-size: var(--oez-fs-12); color: var(--oez-ink-3); }

#oez-scanner-root .st-scanner .st-scan-session { font-size: var(--oez-fs-14); font-weight: var(--oez-fw-label); color: var(--oez-ok-text); }
#oez-scanner-root .st-scan-privacy { display: block; font-size: var(--oez-fs-13); line-height: 1.45; color: var(--oez-ink-3); }
#oez-scanner-root .st-scan-noscript { padding: var(--oez-s-3) var(--oez-s-4); border-radius: var(--oez-r-md); background: var(--oez-warn-bg); font-size: var(--oez-fs-14); }

/* Aktionen: klebender Fuß, Primär „Warenkorb prüfen“ rechts (Mockup kundenportal #scanner) */
#oez-scanner-root .st-scanner .st-scan-actions { flex: 0 0 auto; position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--oez-s-2); margin: auto 0 0; padding: var(--oez-s-3) var(--oez-s-5) calc(var(--oez-s-3) + env(safe-area-inset-bottom)); background: var(--oez-white); border-top: 1px solid var(--oez-line); }
#oez-scanner-root .st-scanner .st-scan-actions > .st-btn { flex: 0 1 auto; }

@media (max-width: 599px) {
  #oez-scanner-root .st-scanner .st-dialog-head { padding: var(--oez-s-3) var(--oez-s-3) var(--oez-s-3) var(--oez-s-4); }
  #oez-scanner-root .st-scanner .st-scan-body { padding: var(--oez-s-4); gap: var(--oez-s-3); }
  #oez-scanner-root .st-scan-card-main { grid-template-columns: 72px minmax(0, 1fr); gap: var(--oez-s-3); }
  #oez-scanner-root .st-scanner .st-scan-buy > .st-btn { flex-basis: 100%; }
  #oez-scanner-root .st-scanner .st-scan-actions { display: grid; grid-template-columns: 1fr 1fr; padding-inline: var(--oez-s-4); }
  #oez-scanner-root .st-scanner .st-scan-actions > .st-btn { padding-inline: var(--oez-s-2); }
  /* drei sichtbare Aktionen (Kamera läuft, ohne Licht): Warenkorb über die volle Breite */
  #oez-scanner-root .st-scanner .st-scan-actions:has(> [data-scan-pause]:not([hidden])):has(> [data-scan-torch][hidden]) > .st-scan-cart { grid-column: 1 / -1; }
  #oez-scanner-root .st-scan-manual-row > .st-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #oez-scanner-root .st-scanner *, #oez-scanner-root .st-scanner *::after { transition: none !important; }
}
