/* Bag, checkout and quote panels */
html:has(dialog[open]){overflow:hidden}
.panel{border:0;padding:0;margin:0 0 0 auto;width:min(100%,460px);max-width:none;height:100dvh;max-height:none;background:#fff;color:#000;overscroll-behavior:contain}
.panel[open]{display:flex;flex-direction:column;animation:panel-in .26s cubic-bezier(.2,.8,.2,1)}
.panel::backdrop{background:rgba(0,0,0,.62)}
@keyframes panel-in{from{transform:translateX(40px);opacity:0}}
.panel :focus-visible{outline:2px solid #000;outline-offset:3px}
.panel-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 18px}
.panel-head h2{font-size:44px}
.panel-head h2:focus{outline:none}
.close{flex:none;width:44px;height:44px;margin-right:-10px;border:0;background:none;color:inherit;cursor:pointer;display:grid;place-items:center}
.panel-body{flex:1;overflow:auto;padding:0 24px 24px}
.panel-foot{flex:none;padding:18px 24px max(24px,env(safe-area-inset-bottom));border-top:1px solid #000}
.panel[hidden],.panel [hidden]{display:none!important}

.lines{list-style:none;margin:0;padding:0}
.line{display:grid;grid-template-columns:84px 1fr auto;gap:4px 16px;padding:18px 0;border-top:1px solid #E2E2E2}
.line img{grid-row:1/4;width:84px;height:84px;object-fit:cover;background:var(--grey-1);border-radius:4px}
.line p{margin:0}.line .name{font-weight:600}.line .opt{grid-column:2/4;color:var(--muted);font-size:14px}.line .amt{font-weight:600;text-align:right}
.line-tools{grid-column:2/4;display:flex;align-items:center;justify-content:space-between;margin-top:4px}
.qty{display:inline-flex;align-items:center}
.qty button{width:44px;height:44px;border:0;background:none;color:#000;font:500 20px var(--body);cursor:pointer}
.qty button:first-child{margin-left:-15px}
.qty button:disabled{color:#B5B5B5;cursor:default}
.qty output{min-width:24px;text-align:center;font-variant-numeric:tabular-nums}
.txt{border:0;background:none;padding:0;min-height:44px;color:inherit;font:500 14px var(--body);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;cursor:pointer}
.empty{margin:0;max-width:300px;font-size:20px;line-height:1.35}

.sums{margin:0 0 16px}
.sums div{display:flex;justify-content:space-between;gap:16px;padding:3px 0}
.sums dt{color:var(--muted)}.sums dd{margin:0;font-variant-numeric:tabular-nums}
.sums .total dt,.sums .total dd{color:#000;font-weight:600;font-size:18px}
.go{width:100%;min-height:52px;border:0;border-radius:999px;background:#000;color:#fff;font:500 16px var(--body);cursor:pointer;display:flex;align-items:center;justify-content:center;text-decoration:none}
.go:disabled{background:#6B6B6B;cursor:wait}
.fine{margin:12px 0 0;font-size:13px;color:var(--muted)}
.msg{margin:0 0 18px;padding:14px 16px;border-radius:4px;background:#000;color:#fff;font-size:15px}

.form{display:grid;grid-template-columns:1fr 1fr;gap:16px 14px}
.field{grid-column:1/-1;display:flex;flex-direction:column;gap:6px;min-width:0}
.field.half{grid-column:auto}
.field label{font-size:14px;font-weight:500}
.field input,.field select,.field textarea{width:100%;min-height:48px;padding:11px 14px;border:1px solid #8A8A8A;border-radius:4px;background:#fff;color:#000;font:16px/1.4 var(--body)}
.field textarea{min-height:84px;resize:vertical}
.field [aria-invalid="true"]{border:2px solid var(--orange);padding:10px 13px}
.field .err{margin:0;font-size:13px;font-weight:500}
.field .err:empty{display:none}

.pick{display:flex;flex-direction:column;gap:2px;width:100%}
.pick-row{display:flex;align-items:center;gap:4px;font-size:14px;color:var(--muted)}
.pick-row>span:first-child{width:44px}
.sw{width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.sw i{width:26px;height:26px;border-radius:50%;border:1px solid #8A8A8A}
.sw[aria-pressed="true"] i{outline:2px solid #000;outline-offset:3px}
.pick-row .pick-name{color:#000;margin-left:4px}
.add:disabled{background:var(--grey-3);color:#5C5C5C;cursor:not-allowed}
@media (prefers-reduced-motion:reduce){.panel[open]{animation:none}}
@media (max-width:359px){.field.half{grid-column:1/-1}}
