/* SMIT SIDEBAR WARENKORB */
html.smit-sw-lock, html.smit-sw-lock body { overflow: hidden; }
.smit-sw { --smit-sw-color: #1f2937; --smit-sw-width: 440px; --smit-sw-dur: 300ms; --smit-sw-ease: cubic-bezier(.22, 1, .36, 1); position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; font-size: 15px; line-height: 1.4; color: #1f2937; }
.smit-sw.is-open { pointer-events: auto; }
.smit-sw-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity var(--smit-sw-dur) ease; will-change: opacity; }
.smit-sw.is-open .smit-sw-backdrop { opacity: 1; }
.smit-sw-panel { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; height: 100dvh; width: min(var(--smit-sw-width), 100vw); max-width: 100vw; background: #fff; display: flex; flex-direction: column; box-shadow: none; visibility: hidden; transform: translate3d(100%, 0, 0); transition: transform var(--smit-sw-dur) var(--smit-sw-ease), visibility 0s linear var(--smit-sw-dur); will-change: transform; backface-visibility: hidden; contain: layout paint; outline: none; overflow: hidden; }
.smit-sw-left .smit-sw-panel { right: auto; left: 0; transform: translate3d(-100%, 0, 0); }
/* Schatten und Sichtbarkeit nur im geöffneten Zustand (sonst schimmert der Schatten am Bildschirmrand) */
.smit-sw.is-open .smit-sw-panel { transform: translate3d(0, 0, 0); visibility: visible; transition: transform var(--smit-sw-dur) var(--smit-sw-ease), visibility 0s; box-shadow: -12px 0 40px rgba(15, 23, 42, .18); }
.smit-sw-left.is-open .smit-sw-panel { box-shadow: 12px 0 40px rgba(15, 23, 42, .18); }
/* Inhalt nach dem Öffnen sanft einblenden statt hart vom Ladekreis umspringen */
.smit-sw-body.smit-sw-fadein > * { animation: smit-sw-in calc(var(--smit-sw-dur) * .8 + 100ms) ease-out both; }
@keyframes smit-sw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.smit-sw-noanim .smit-sw-panel, .smit-sw-noanim .smit-sw-backdrop { transition: none !important; }
.smit-sw-noanim .smit-sw-body > * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .smit-sw-panel, .smit-sw-backdrop { transition: none; } .smit-sw-body > * { animation: none !important; } }

.smit-sw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e5e7eb; flex: 0 0 auto; }
.smit-sw-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #111827; }
.smit-sw-count { font-size: .9rem; font-weight: 500; color: #6b7280; }
.smit-sw-close { width: 38px; height: 38px; border: 1px solid #e5e7eb; border-radius: 50%; background: #fff; color: #374151; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: border-color .15s, color .15s; }
.smit-sw-close:hover, .smit-sw-close:focus-visible { border-color: var(--smit-sw-color); color: var(--smit-sw-color); }
.smit-sw-close svg { width: 18px; height: 18px; }

.smit-sw-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow-x: hidden; }
.smit-sw.is-loading .smit-sw-items { opacity: .55; pointer-events: none; transition: opacity .15s; }
.smit-sw-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 20px; overscroll-behavior: contain; }
.smit-sw-loading { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px; }
.smit-sw-loading span { width: 28px; height: 28px; border: 3px solid #e5e7eb; border-top-color: var(--smit-sw-color); border-radius: 50%; animation: smit-sw-spin .8s linear infinite; }
@keyframes smit-sw-spin { to { transform: rotate(360deg); } }

.smit-sw-item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 32px; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f1f5f9; transition: opacity .2s; }
.smit-sw-item.is-removing { opacity: .35; }
.smit-sw-img { display: block; width: 76px; height: 76px; border: 1px solid #eef0f3; border-radius: 10px; background: #fff; overflow: hidden; }
.smit-sw-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.smit-sw-info { min-width: 0; }
.smit-sw-name { display: block; color: #111827; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.smit-sw-name:hover { color: var(--smit-sw-color); text-decoration: none; }
.smit-sw-artnr, .smit-sw-vars { font-size: .8rem; color: #6b7280; margin-top: 2px; overflow-wrap: anywhere; }
.smit-sw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.smit-sw-price { font-size: 1rem; white-space: nowrap; color: #111827; }
.smit-sw-qty { display: inline-flex; align-items: center; border: 1px solid #d1d5db; border-radius: 999px; overflow: hidden; height: 36px; }
.smit-sw-qty button { width: 34px; height: 100%; border: 0; background: transparent; color: #374151; font-size: 1.05rem; cursor: pointer; padding: 0; }
.smit-sw-qty button:hover { color: var(--smit-sw-color); background: #f8fafc; }
.smit-sw-qty input { width: 54px; height: 100%; border: 0; text-align: center; font-weight: 600; font-size: .95rem; color: #111827; background: transparent; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.smit-sw-qty input::-webkit-outer-spin-button, .smit-sw-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.smit-sw-qty input:focus { outline: none; background: #f8fafc; }
.smit-sw-qty-text { font-size: .9rem; color: #4b5563; }
.smit-sw-del { align-self: start; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #9ca3af; cursor: pointer; padding: 6px; transition: color .15s, background .15s; }
.smit-sw-del:hover, .smit-sw-del:focus-visible { color: #dc2626; background: #fef2f2; }
.smit-sw-del svg { width: 20px; height: 20px; }

/* Positionen anderer Plugins (z. B. Pfand) direkt unter dem Artikel, im Rahmen –
   die Trennlinie kommt erst nach dem letzten Kärtchen */
.smit-sw-item:has(+ .smit-sw-sub) { border-bottom: 0; padding-bottom: 10px; }
.smit-sw-sub + .smit-sw-item { border-top: 1px solid #f1f5f9; margin-top: 8px; }
.smit-sw-sub { display: flex; justify-content: space-between; gap: 12px; margin: 0 34px 8px 90px; /* rechts: Papierkorb-Spalte 32 + Abstand 14 − Innenabstand 12 → Preis bündig mit dem Artikelpreis */ padding: 8px 12px; border: 1px dashed #d1d5db; border-radius: 8px; background: #f9fafb; font-size: .82rem; color: #4b5563; }
.smit-sw-sub span:last-child { white-space: nowrap; font-weight: 600; }

.smit-sw-foot { flex: 0 0 auto; border-top: 1px solid #e5e7eb; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(15, 23, 42, .05); }
.smit-sw-extra { display: flex; justify-content: space-between; font-size: .9rem; color: #4b5563; margin-bottom: 6px; }
.smit-sw-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.smit-sw-sum strong { font-size: 1.3rem; color: #111827; }
.smit-sw-tax { font-size: .8rem; color: #6b7280; margin: 2px 0 14px; text-align: right; }
.smit-sw-note { font-size: .85rem; color: #374151; background: #f8fafc; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.smit-sw-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid var(--smit-sw-color); transition: filter .15s, background .15s, color .15s; }
.smit-sw-btn + .smit-sw-btn { margin-top: 10px; }
.smit-sw-btn-primary { background: var(--smit-sw-color, #1f2937); color: #fff !important; }
.smit-sw-btn-primary:hover, .smit-sw-btn-primary:focus-visible { color: #fff; filter: brightness(.92); text-decoration: none; }
.smit-sw-btn-ghost { background: #fff; color: var(--smit-sw-color, #1f2937) !important; }
.smit-sw-btn-ghost:hover, .smit-sw-btn-ghost:focus-visible { background: var(--smit-sw-color, #1f2937); color: #fff !important; text-decoration: none; }

.smit-sw-notice { margin: 12px 20px 0; padding: 10px 12px; border-radius: 8px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .88rem; }
.smit-sw-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 28px; color: #6b7280; }
.smit-sw-empty svg { width: 64px; height: 64px; color: #cbd5e1; margin-bottom: 14px; }
.smit-sw-empty p { font-size: 1.05rem; margin: 0 0 20px; }
.smit-sw-empty .smit-sw-btn { max-width: 260px; }

@media (max-width: 575.98px) {
    .smit-sw-head { padding: 14px 16px; }
    .smit-sw-items { padding: 4px 16px; }
    .smit-sw-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
    .smit-sw-item { grid-template-columns: 64px minmax(0, 1fr) 30px; gap: 12px; }
    .smit-sw-img { width: 64px; height: 64px; }
    .smit-sw-sub { margin-left: 76px; margin-right: 30px; }
}
#pushed-success.smit-sw-hidden { display: none !important; }
