/* Winkelmandje dat van rechts inschuift (zie inc/winkelmand.php en assets/js/winkelmand.js). */

html.wm-open{overflow:hidden}
.wm{position:fixed;inset:0;z-index:200;font-family:'Geist',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.wm *,.wm *::before,.wm *::after{box-sizing:border-box}
.wm button{font:inherit;color:inherit}
.wm-bg{position:absolute;inset:0;background:rgba(17,17,17,.32);opacity:0;transition:opacity .28s ease}
.wm.open .wm-bg{opacity:1}
.wm-p{position:absolute;top:10px;right:10px;bottom:10px;width:min(440px,calc(100vw - 20px));display:flex;flex-direction:column;background:var(--paper);border-radius:var(--r-l);box-shadow:0 30px 80px -20px rgba(30,28,72,.45);overflow:hidden;transform:translateX(calc(100% + 20px));transition:transform .32s cubic-bezier(.22,1,.36,1)}
.wm.open .wm-p{transform:none}
@media (prefers-reduced-motion:reduce){.wm-p,.wm-bg{transition:none}}

.wm-kop{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 20px 16px 24px;border-bottom:1px solid rgba(17,17,17,.08)}
.wm-t{margin:0;font-size:26px;line-height:1;display:flex;align-items:center;gap:10px}
.wm-n{min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:var(--ground);font-family:'Geist',ui-sans-serif,system-ui,sans-serif;font-size:13px;font-weight:600;letter-spacing:0;line-height:26px;text-align:center}
.wm .wm-x{width:40px;height:40px;border:0;border-radius:999px;background:transparent;display:grid;place-items:center;color:var(--ink);cursor:pointer;transition:background .2s}
.wm-x:hover{background:var(--ground)}
.wm-melding{margin:0;padding:12px 24px;background:var(--ground);font-size:14px;font-weight:600}

.wm-romp{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px}
.wm.bezig .wm-romp{opacity:.6;pointer-events:none;transition:opacity .2s .15s}

/* laden */
.wm-laden{display:flex;flex-direction:column;gap:12px}
.wm-laden span{height:96px;border-radius:var(--r-m);background:linear-gradient(90deg,var(--ground),#fff,var(--ground));background-size:200% 100%;animation:wm-laden 1.2s linear infinite}
@keyframes wm-laden{to{background-position:-200% 0}}

/* leeg */
.wm-leeg{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:28px}
.wm-leeg-ic{width:64px;height:64px;border-radius:50%;background:var(--ground);display:grid;place-items:center}
.wm-leeg-t{margin:18px 0 0;font-size:24px;line-height:1.1}
.wm-leeg-p{margin:8px 0 0;max-width:300px;font-size:15px;line-height:1.5;color:var(--ink-2)}
.wm-tegels{align-self:stretch;display:flex;flex-direction:column;gap:8px;margin-top:28px;text-align:left}
.wm-tegel{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:14px;padding:8px 16px 8px 8px;border-radius:var(--r-m);box-shadow:inset 0 0 0 1px rgba(17,17,17,.1);color:var(--ink);text-decoration:none;transition:box-shadow .2s,background .2s}
.wm-tegel:hover{box-shadow:inset 0 0 0 1px rgba(17,17,17,.35)}
.wm-tegel-img{width:56px;height:56px;border-radius:var(--r-s);background:var(--ground);display:grid;place-items:center;overflow:hidden}
.wm-tegel-img img{width:82%;height:82%;object-fit:contain;mix-blend-mode:multiply}
.wm-tegel-rep{background:var(--ink);color:#fff}
.wm-tegel-x{display:flex;flex-direction:column;gap:1px}
.wm-tegel-n{font-size:16px;font-weight:600}
.wm-tegel-s{font-size:13px;color:var(--ink-2)}

/* gevuld */
.wm-ophalen{margin:0 0 16px;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:var(--r-s);background:var(--ground);font-size:14px;line-height:1.35}
.wm-ophalen strong{color:#1F7A3F;margin-left:4px}
.wm-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.wm-item{display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;padding:16px 0;border-bottom:1px solid rgba(17,17,17,.08);transition:opacity .2s}
.wm-item:first-child{padding-top:4px}
.wm-item.weg{opacity:.35}
.wm-item-img{width:84px;height:84px;border-radius:var(--r-m);background:var(--paper);box-shadow:inset 0 0 0 1px rgba(17,17,17,.08);display:grid;place-items:center;overflow:hidden}
.wm-item-img img{width:84%;height:84%;object-fit:contain}
.wm-item-x{min-width:0;display:flex;flex-direction:column}
.wm-item-r{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.wm-item-n{font-size:15px;font-weight:600;line-height:1.3;color:var(--ink);text-decoration:none}
.wm-item-n:hover{text-decoration:underline}
.wm-item-p{font-size:15px;font-weight:600;white-space:nowrap}
.wm-item-m{margin:3px 0 0;font-size:13px;line-height:1.4;color:var(--ink-2)}
.wm-item-k{display:flex;align-items:center;gap:16px;margin-top:auto;padding-top:10px}
.wm-stap{display:inline-flex;align-items:center;height:36px;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(17,17,17,.16)}
.wm .wm-stap button{width:36px;height:36px;border:0;border-radius:999px;background:none;font-size:18px;line-height:1;color:var(--ink);cursor:pointer}
.wm-stap button:disabled{opacity:.3;cursor:default}
.wm-stap span{min-width:22px;text-align:center;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.wm-uniek{font-size:13px;color:var(--ink-2)}
.wm .wm-weg{border:0;background:none;padding:0;font-size:13px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.wm-weg:hover{color:var(--ink)}

.wm-extra{margin-top:24px}
.wm-extra-t{margin:0 0 10px;font-size:15px;font-weight:600}
.wm-extra-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.wm-x-item{display:grid;grid-template-columns:48px minmax(0,1fr) 36px;align-items:center;gap:12px;padding:8px 10px 8px 8px;border-radius:var(--r-m);box-shadow:inset 0 0 0 1px rgba(17,17,17,.1)}
.wm-x-img{width:48px;height:48px;border-radius:var(--r-s);background:var(--ground);display:grid;place-items:center;overflow:hidden}
.wm-x-img img{width:84%;height:84%;object-fit:contain}
.wm-x-x{display:flex;flex-direction:column;min-width:0}
.wm-x-n{font-size:14px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wm-x-p{font-size:13px;color:var(--ink-2)}
.wm .wm-x-plus{width:36px;height:36px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-size:20px;line-height:1;cursor:pointer;transition:transform .2s}
.wm-x-plus:hover{transform:scale(1.06)}
.wm-x-plus:disabled{opacity:.4}

/* voet */
.wm-voet{padding:18px 24px 22px;border-top:1px solid rgba(17,17,17,.08);display:flex;flex-direction:column;gap:6px;background:var(--paper)}
.wm-sub{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font-size:16px;font-weight:600}
.wm-sub strong{font-size:26px;letter-spacing:-.03em}
.wm-btw{margin:0 0 10px;font-size:13px;color:var(--ink-2)}
.wm-voet .wm-af{justify-content:space-between;height:56px;padding-left:24px}
.wm-wagen{align-self:center;margin-top:8px;font-size:15px}

/* Knop op de productpagina tijdens toevoegen. */
.pg-product .pd-btn.bezig{opacity:.7}

@media (max-width:760px){
.wm-p{top:auto;left:8px;right:8px;bottom:8px;width:auto;max-height:calc(100dvh - 56px);transform:translateY(calc(100% + 16px))}
.wm-kop{padding:16px 12px 12px 20px}
.wm-romp{padding:16px 20px}
.wm-voet{padding:14px 20px calc(16px + env(safe-area-inset-bottom))}
.wm-item{grid-template-columns:72px minmax(0,1fr);gap:14px}
.wm-item-img{width:72px;height:72px}
}

.wm :focus-visible{outline:2px solid var(--ink);outline-offset:2px}
