/* Bag, checkout and orders for the connector mode (existing 8rees shop accounts). Plain classes only: the page policy allows no inline styles. */
#shopBagDialog{border:0;padding:0;max-width:min(560px,100vw);width:100%;height:100dvh;max-height:100dvh;margin:0 0 0 auto;background:#fffaf2;color:#2b1d2f;box-shadow:-8px 0 40px rgba(43,29,47,.25)}
#shopBagDialog::backdrop{background:rgba(43,29,47,.45)}
.sb-wrap{display:flex;flex-direction:column;height:100%;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.sb-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #eadfcf}
.sb-head h2{margin:0;font:600 22px/1.2 Georgia,'Times New Roman',serif}
.sb-x{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;min-width:44px;min-height:44px;color:inherit}
.sb-body{flex:1;overflow:auto;padding:14px 18px}
.sb-foot{padding:14px 18px;border-top:1px solid #eadfcf;background:#fff}
.sb-line{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #f0e6d6}
.sb-line img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:10px}
.sb-name{font-weight:600}.sb-pack,.sb-muted{color:#6d5c70;font-size:13px}
.sb-price{text-align:right;font-weight:600;white-space:nowrap}
.sb-qty{display:inline-flex;align-items:center;gap:4px;margin-top:6px}
.sb-qty button{width:36px;height:36px;border:1px solid #cdbba0;background:#fff;border-radius:8px;font-size:18px;cursor:pointer}
.sb-qty span{min-width:28px;text-align:center}
.sb-qty .sb-link{width:auto;height:auto;min-height:36px;border:0;background:transparent;border-radius:6px;font-size:14px;color:#8a3b5c;text-decoration:underline;padding:0 6px;margin-left:10px}
.sb-qty .sb-link:hover{color:#4a2349}
.sb-link{border:0;background:transparent;color:#8a3b5c;text-decoration:underline;cursor:pointer;padding:6px;font:inherit}
.sb-row{display:flex;justify-content:space-between;gap:12px;padding:3px 0}
.sb-total{font-weight:700;font-size:17px;border-top:1px solid #eadfcf;margin-top:6px;padding-top:8px}
.sb-primary{display:block;width:100%;min-height:48px;border:0;border-radius:12px;background:#4a2349;color:#fff;font:600 16px system-ui;cursor:pointer;margin-top:10px}
.sb-primary[disabled]{opacity:.55;cursor:default}
.sb-box{border:1px solid #eadfcf;background:#fff;border-radius:12px;padding:12px;margin:12px 0}
.sb-box h3{margin:0 0 8px;font-size:15px}
.sb-field{display:block;margin:8px 0}.sb-field span{display:block;font-size:13px;color:#6d5c70;margin-bottom:3px}
.sb-field input,.sb-field select{width:100%;min-height:44px;padding:8px 10px;border:1px solid #cdbba0;border-radius:8px;font:16px system-ui;box-sizing:border-box;background:#fff}
.sb-inline{display:flex;gap:8px}.sb-inline input{flex:1}.sb-inline button{min-height:44px;padding:0 14px;border:1px solid #4a2349;background:#fff;color:#4a2349;border-radius:8px;cursor:pointer}
.sb-choice{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid #eadfcf;border-radius:10px;margin:6px 0;cursor:pointer;background:#fff}
.sb-choice input{margin-top:4px}.sb-choice.sb-off{opacity:.55;cursor:default}
.sb-msg{min-height:20px;margin:8px 0 0;font-size:14px;color:#8a1f3d}.sb-ok{color:#1d6b43}
.sb-ordercard{width:100%;text-align:left;border:1px solid #eadfcf;background:#fff;border-radius:12px;padding:12px;margin:8px 0;cursor:pointer;font:inherit;color:inherit}
.sb-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#2b1d2f;color:#fff;padding:10px 16px;border-radius:999px;z-index:2147483000;font:14px system-ui;max-width:90vw}
@media(max-width:560px){#shopBagDialog{max-width:100vw}.sb-line{grid-template-columns:56px 1fr auto}.sb-line img{width:56px;height:56px}}
@media(prefers-reduced-motion:no-preference){#shopBagDialog[open]{animation:sbIn .22s ease-out}@keyframes sbIn{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}}
