#barcode-scanner{box-sizing:border-box;width:min(94vw,38rem);max-height:90dvh;overflow:auto;padding:1.25rem;border:1px solid #b69c54;border-radius:1rem;background:#f9faf6;color:#252c24;font-size:1rem}
#barcode-scanner::backdrop{background:rgb(0 0 0 / .7)}
#barcode-scanner .scanner-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}
#barcode-scanner h2{font:inherit;font-size:1.45rem;font-weight:700;margin:.2rem 0}
#barcode-scanner button{min-height:44px;padding:.65rem .8rem;border:1px solid #68715f;border-radius:.5rem;background:#edf0e8;color:#252c24;font:inherit;cursor:pointer}
#barcode-scanner button:disabled{opacity:.55;cursor:wait}
#barcode-scanner video{display:block;width:100%;max-height:35dvh;object-fit:contain;border-radius:.5rem;background:#151915}
#barcode-scanner [hidden]{display:none!important}
#barcode-scanner .scanner-actions{display:flex;flex-wrap:wrap;gap:.5rem}
#barcode-scanner form{display:grid;gap:.65rem;margin-top:1rem}
#barcode-scanner input{width:100%;box-sizing:border-box;min-width:0;padding:.8rem;border:1px solid #68715f;border-radius:.5rem;background:#fff;color:#252c24;font:inherit}
#barcode-scanner .scanner-help{font-size:.875rem;line-height:1.5;color:#4b5547;margin-bottom:0}
#barcode-scanner :focus-visible{outline:3px solid #a27d21;outline-offset:3px}
