.barcode-trigger,.mobile-barcode-trigger{cursor:pointer;touch-action:manipulation}
.store-actions .barcode-trigger{display:flex;flex-direction:column;gap:4px;min-width:0;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;white-space:nowrap;font-size:12px;font-weight:700;line-height:1.25}.store-actions .barcode-trigger small{color:var(--muted);font-size:9px;font-weight:400}
.mobile-barcode-trigger{display:none;min-height:42px;padding:8px 12px;border:0;border-radius:5px;background:#ff9d00;color:#111;font-weight:800}
.barcode-scanner[hidden]{display:none!important}.barcode-scanner{position:fixed;inset:0;z-index:500;background:rgba(8,12,15,.82);display:grid;place-items:center;padding:18px}
.barcode-scanner__panel{width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.38)}
.barcode-scanner__panel>header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:4px solid #ff9d00}.barcode-scanner__panel>header small{color:#9a6500;font-size:10px;font-weight:900;letter-spacing:1.4px}.barcode-scanner__panel h2{margin:4px 0 0;font-size:26px}.barcode-scanner__panel>header button{width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#edf0f2;color:#111;font-size:28px;cursor:pointer}
.barcode-scanner__camera{position:relative;height:320px;background:#111;overflow:hidden}.barcode-scanner__camera video{width:100%;height:100%;object-fit:cover}.barcode-scanner__camera>p{position:absolute;left:14px;right:14px;bottom:12px;margin:0;padding:9px 12px;background:rgba(0,0,0,.72);color:#fff;text-align:center;font-size:13px}
.barcode-scanner__target{position:absolute;inset:50% auto auto 50%;width:min(76%,420px);height:112px;transform:translate(-50%,-50%);border:2px solid #ff9d00;border-radius:10px;box-shadow:0 0 0 999px rgba(0,0,0,.18)}.barcode-scanner__target::before{content:'';position:absolute;left:8%;right:8%;top:50%;height:2px;background:#ff9d00;box-shadow:0 0 10px #ff9d00}.barcode-scanner__target span::before,.barcode-scanner__target span::after{content:'';position:absolute;top:-3px;width:24px;height:24px;border-top:5px solid #fff}.barcode-scanner__target span::before{left:-3px;border-left:5px solid #fff}.barcode-scanner__target span::after{right:-3px;border-right:5px solid #fff}
.barcode-scanner__methods{margin:14px 16px 0;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #f0c56f;background:#fff8e8}.barcode-scanner__methods b{font-size:13px;color:#6f4700}.barcode-scanner__methods span{color:#5d6870;font-size:11px;text-align:right}
.barcode-scanner__status{margin:14px 16px 0;padding:12px 14px;border-left:4px solid #89939a;background:#f1f3f4;display:flex;flex-direction:column;gap:3px}.barcode-scanner__status b{font-size:15px}.barcode-scanner__status span{font-size:12px;color:#647079}.barcode-scanner__status[data-state="success"]{border-color:#1e9b50;background:#e8f7ee}.barcode-scanner__status[data-state="success"] b{color:#14743a}.barcode-scanner__status[data-state="error"]{border-color:#cf2929;background:#fff0f0}.barcode-scanner__status[data-state="error"] b{color:#a71e1e}
.barcode-scanner__counter{display:flex;justify-content:space-between;gap:10px;padding:12px 16px;color:#59646c;font-size:12px}.barcode-scanner__counter b{color:#111}
.barcode-scanner__manual{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 16px;border-top:1px solid #e2e6e8}.barcode-scanner__manual label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:900}.barcode-scanner__manual input{height:46px;border:1px solid #cbd2d6;padding:0 12px;font-size:17px}.barcode-scanner__manual button{align-self:end;height:46px;border:0;background:#1e2428;color:#fff;padding:0 18px;font-weight:900;cursor:pointer}
.barcode-scanner__finish{display:flex;align-items:center;justify-content:center;min-height:52px;margin:0 16px 18px;background:#ff9d00;color:#111;font-weight:900}
body.barcode-scanner-open{overflow:hidden}
@media(max-width:720px){:root{--mobile-store-header-height:239px}.store-header{min-height:0!important;grid-template-rows:auto 43px auto 42px!important;align-content:stretch!important}.store-actions .barcode-trigger{display:none!important}.store-header .mobile-barcode-trigger{display:flex;align-items:center;justify-content:center;grid-column:1/2;grid-row:4;width:100%;min-width:0;justify-self:stretch}.store-header .mobile-menu{display:flex;align-items:center;justify-content:center;grid-column:2;grid-row:4;width:46px;min-height:42px;padding:8px}.store-actions{grid-row:3!important}.store-actions>a{min-height:42px!important}.barcode-scanner{padding:0}.barcode-scanner__panel{width:100%;height:100%;max-height:none;display:flex;flex-direction:column}.barcode-scanner__panel>header{padding:12px 14px}.barcode-scanner__panel h2{font-size:22px}.barcode-scanner__camera{height:auto;min-height:230px;flex:1}.barcode-scanner__methods{margin:9px 12px 0;padding:9px 10px;align-items:flex-start;flex-direction:column;gap:3px}.barcode-scanner__methods span{text-align:left}.barcode-scanner__status{margin:9px 12px 0;padding:9px 11px}.barcode-scanner__counter{padding:8px 12px}.barcode-scanner__counter span{display:none}.barcode-scanner__manual{padding:9px 12px}.barcode-scanner__finish{min-height:48px;margin:0 12px 10px}.barcode-scanner__target{height:96px}}
@media(max-width:390px){.barcode-scanner__camera{min-height:220px}.barcode-scanner__manual{grid-template-columns:1fr 92px}.barcode-scanner__manual button{padding:0 8px;font-size:12px}}
@media(max-width:720px){.store-header.guest-header{grid-template-rows:auto 43px 42px!important}.guest-header .store-actions{display:grid!important;grid-column:1;grid-row:3!important;grid-template-columns:minmax(0,1fr)!important;width:100%;gap:0}.guest-header .store-actions>a{display:flex!important;min-height:42px!important;align-items:center!important;justify-content:center!important;padding:8px 12px!important;border:1px solid var(--line);border-radius:5px;white-space:nowrap}.guest-header .store-actions>a b{font-size:11px;white-space:nowrap}.guest-header .mobile-menu{grid-column:2;grid-row:3}.guest-header+.mobile-category-strip{top:191px!important}}
