/* Redesign Phase 6: Side-Cart (CheckoutWC 11.4/11.5), nur Redesign-Modus, nie auf der Kasse. Vorlage .cdialog. Kein Inline-SVG. Gesperrte Kindzeilen (Montage-Sets) blendet der Skin nicht ein. */
html body #cfw-side-cart{width:440px;max-width:100vw;border-left:1px solid var(--wkr-line-l);color:var(--wkr-ink);font-family:var(--wkr-f-body)}
@media (max-width:639.98px){html body #cfw-side-cart{width:100vw;border-left:0}}
#cfw-side-cart :focus-visible{outline:3px solid var(--wkr-ink);outline-offset:2px}
#cfw-side-cart{scroll-padding-top:61px;scroll-padding-bottom:270px}

/* Kopf: WARENKORB + Zahl + Schliessen */
#cfw-side-cart .cfw-side-cart-contents-header{display:flex;align-items:center;gap:12px;margin:0;padding:8px 8px 8px 20px;border-bottom:1px solid var(--wkr-line-l)}
#cfw-side-cart .cfw-side-cart-quantity-wrap{flex:1;display:flex;align-items:baseline;gap:12px;color:var(--wkr-ink)}
#cfw-side-cart .cfw-side-cart-quantity-wrap::before{content:"Warenkorb";order:0;font:800 1.25rem/1.1 var(--wkr-f-display);letter-spacing:-.01em;text-transform:uppercase}
#cfw-side-cart .cfw-side-cart-quantity-wrap>svg{display:none}
#cfw-side-cart .cfw-side-cart-quantity{order:1;position:static;min-width:0;height:auto;padding:0;background:none;color:var(--wkr-muted);font:400 .875rem/1.2 var(--wkr-f-body)}
#cfw-side-cart .cfw-side-cart-quantity::after{content:" Artikel"}
html body.admin-bar #cfw-side-cart{top:32px;height:calc(100vh - 32px);height:calc(100dvh - 32px)}
@media (max-width:782px){html body.admin-bar #cfw-side-cart{top:46px;height:calc(100vh - 46px);height:calc(100dvh - 46px)}}
@media (max-width:600px){html body.admin-bar #cfw-side-cart{top:0;height:100vh;height:100dvh}}
html body #cfw-side-cart #cfw-side-cart-form{padding-top:0}
html body #cfw-side-cart #cfw-side-cart-form{display:block;height:auto;min-height:100%;overflow:visible}
#cfw-side-cart .cfw-side-cart-contents-header{position:sticky;top:0;z-index:2;background:var(--wkr-white)}
html body #cfw-side-cart #cfw-side-cart-form .cfw-side-cart-close-btn{position:static;margin:0;flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;color:var(--wkr-ink);background:none;border:0;border-radius:var(--wkr-r-btn)}
#cfw-side-cart .cfw-side-cart-close-btn:hover{background:var(--wkr-hover-l)}
#cfw-side-cart .cfw-side-cart-contents{margin:0;padding:0;overscroll-behavior:contain}
#cfw-side-cart .cfw-cart-table .cart-item-row>td.cfw-cart-item-quantity{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Leer-Zustand */
#cfw-side-cart #cfw-side-cart-container #cfw_empty_side_cart_message{margin:0;padding:32px 20px 16px;font:800 1.5rem/1.15 var(--wkr-f-display);letter-spacing:-.01em;text-align:left!important}
#cfw-side-cart .wkr-sc-cta{display:inline-flex;align-items:center;justify-content:center;min-height:52px;margin:0 20px;padding:0 24px;border-radius:var(--wkr-r-btn);background:var(--wkr-accent);color:var(--wkr-on-accent);font-weight:700;text-decoration:none}
#cfw-side-cart .wkr-sc-cta:hover{background:var(--wkr-accent-hover)}

/* Positionen */
#cfw-side-cart .cfw-cart-table{display:block;width:100%;margin:0;padding:0;border:0}
#cfw-side-cart .cfw-cart-table tbody{display:block}
#cfw-side-cart .cfw-cart-table .cart-item-row{display:grid;grid-template-columns:72px minmax(0,1fr) minmax(0,6.5rem);gap:4px 12px;padding:16px 20px;width:auto;box-sizing:border-box;position:relative;border-bottom:1px solid var(--wkr-line-l)}
#cfw-side-cart .cfw-cart-table .cart-item-row>td,#cfw-side-cart .cfw-cart-table .cart-item-row>th{padding:0;margin:0;border:0!important;box-shadow:none;text-align:left}
#cfw-side-cart .cfw-cart-table .cart-item-row>td.cfw-cart-item-image{grid-column:1;grid-row:1/span 2;width:72px;margin:0}
html body #cfw-side-cart .cfw-cart-table .cart-item-row .cfw-cart-item-image .cfw-cart-item-image-wrap{position:relative;display:block;width:72px;height:72px;margin-top:0;border:1px solid var(--wkr-line-l);border-radius:var(--wkr-r-card);background:var(--wkr-white);box-sizing:border-box}
html body #cfw-side-cart .cfw-cart-table .cart-item-row .cfw-cart-item-image .cfw-cart-item-quantity-bubble{top:-8px;right:-8px;left:auto;min-width:24px;height:24px;padding:0 6px;line-height:24px;font-size:.75rem;box-shadow:0 0 0 2px var(--wkr-white);z-index:1}
#cfw-side-cart .cfw-cart-item-image-wrap>span:first-child{display:block;height:100%;border:0;overflow:hidden;border-radius:var(--wkr-r-card)}
html body #cfw-side-cart .cfw-cart-table .cart-item-row .cfw-cart-item-image img{display:block;box-sizing:border-box;width:100%!important;max-width:100%;height:100%;border:0;object-fit:contain;padding:4px}
#cfw-side-cart .cfw-cart-table .cart-item-row>th.cfw-cart-item-description{grid-column:2;grid-row:1;min-width:0;width:auto;font-weight:400}
#cfw-side-cart .cfw-cart-item-title{font-size:.875rem;font-weight:500;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
#cfw-side-cart .cfw-cart-item-title a{color:var(--wkr-ink);text-decoration:none}
#cfw-side-cart .cfw-cart-item-data{margin-top:4px;font-size:.8125rem;line-height:1.4;color:var(--wkr-muted);overflow-wrap:anywhere}
#cfw-side-cart .cfw-items-summary-item-discount{margin-top:2px;font-size:.75rem;color:var(--wkr-muted)}
#cfw-side-cart .cfw-items-summary-item-discount del,#cfw-side-cart .cfw-items-summary-item-discount del .amount{color:var(--wkr-muted);font-weight:400}
#cfw-side-cart .cfw-items-summary-item-discount ins{background:none;font-weight:700;text-decoration:none}
#cfw-side-cart:not(:has(.wkr-sc-b2b)) .cfw-items-summary-item-discount ins .amount{color:var(--wkr-sale)}
#cfw-side-cart .cfw-cart-table .cart-item-row>td.cfw-cart-item-subtotal{grid-column:3;width:auto;grid-row:1;text-align:right;font:800 1rem/1.2 var(--wkr-f-display);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap}
#cfw-side-cart:not(:has(.wkr-sc-b2b)) .cart-item-row:has(.cfw-items-summary-item-discount del)>td.cfw-cart-item-subtotal>.amount{color:var(--wkr-sale)}
#cfw-side-cart .cfw-cart-item-subtotal small,#cfw-side-cart .cfw-cart-item-subtotal .wgm-tax{display:block;white-space:normal;overflow-wrap:anywhere;font:400 .75rem/1.3 var(--wkr-f-body);color:var(--wkr-muted)}
#cfw-side-cart .cfw-cart-table .cart-item-row>td.cfw-cart-item-remove{grid-column:2/span 2;width:auto;grid-row:2;justify-self:start}

/* Stepper 44 px */
#cfw-side-cart .cfw-edit-item-quantity-control-wrap{margin-top:8px}
#cfw-side-cart .cfw-quantity-stepper{overflow:hidden;border:1px solid var(--wkr-line-l-ui);border-radius:var(--wkr-r-btn);background:var(--wkr-white);font-size:1rem;opacity:1}
#cfw-side-cart .cfw-quantity-stepper-btn-minus,#cfw-side-cart .cfw-quantity-stepper-btn-plus{flex:none;box-sizing:border-box;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:0;background:none;color:var(--wkr-ink);cursor:pointer}
html body #cfw-side-cart .cfw-quantity-stepper :is(.cfw-quantity-stepper-btn-minus,.cfw-quantity-stepper-btn-plus){border:0}
html body #cfw-side-cart .cfw-quantity-stepper :is(.cfw-quantity-stepper-btn-minus,.cfw-quantity-stepper-btn-plus) svg{width:18px;height:18px;fill:var(--wkr-ink)}
html body #cfw-side-cart .cfw-quantity-stepper :is(.cfw-quantity-stepper-btn-minus,.cfw-quantity-stepper-btn-plus):hover:not(.cfw-disabled){background:var(--wkr-paper)}
html body #cfw-side-cart .cfw-quantity-stepper :is(.cfw-quantity-stepper-btn-minus,.cfw-quantity-stepper-btn-plus):hover:not(.cfw-disabled) svg{fill:var(--wkr-ink)}
html body #cfw-side-cart .cfw-quantity-stepper :is(.cfw-quantity-stepper-btn-minus,.cfw-quantity-stepper-btn-plus):focus-visible{outline:3px solid var(--wkr-focus);outline-offset:-3px}
html body #cfw-side-cart .cfw-quantity-stepper :is(.cfw-quantity-stepper-btn-minus,.cfw-quantity-stepper-btn-plus).cfw-disabled{background:var(--wkr-paper);cursor:not-allowed}
html body #cfw-side-cart .cfw-quantity-stepper :is(.cfw-quantity-stepper-btn-minus,.cfw-quantity-stepper-btn-plus).cfw-disabled svg{fill:var(--wkr-muted);opacity:.45}
#cfw-side-cart .slick-dots li,#cfw-side-cart .slick-dots li button{width:32px;height:32px;margin:0;padding:0}
#cfw-side-cart .slick-dots li button:before{width:32px;height:32px;line-height:32px}
#cfw-side-cart .cfw-quantity-stepper-value-label{display:grid;place-items:center;min-height:44px;min-width:36px;text-align:center;font-weight:700;color:var(--wkr-ink);text-decoration:none;font-variant-numeric:tabular-nums}

/* Entfernen: ueberstimmt custom_css (opacity:0, !important) */
html body #cfw-side-cart #cfw-side-cart-container a.cfw-remove-item-button{position:static!important;display:inline-flex;align-items:center;min-height:44px;padding:0 4px;opacity:1!important;color:var(--wkr-ink)!important;font:500 .875rem/1.2 var(--wkr-f-body)!important;text-decoration:underline;text-decoration-color:var(--wkr-accent);text-decoration-thickness:2px;text-underline-offset:3px}
html body #cfw-side-cart #cfw-side-cart-container a.cfw-remove-item-button>svg{display:none}
html body #cfw-side-cart #cfw-side-cart-container a.cfw-remove-item-button::after{content:"Entfernen"}
html body #cfw-side-cart #cfw-side-cart-container a.cfw-remove-item-button:hover{text-decoration-color:var(--wkr-ink)}
/* MwSt.-Angabe lesbar: ueberstimmt 8px !important des custom_css */
html body #cfw-side-cart .wgm-tax,html body #cfw-side-cart .product-tax,html body #cfw-side-cart .includes_tax{font-size:.75rem!important;line-height:1.3}

/* Fuss: Rabattcode, Summen, Knoepfe */
html body #cfw-side-cart .cfw-side-cart-contents-footer,html body #cfw-side-cart .wc-proceed-to-checkout{display:contents}
#cfw-side-cart #cfw-side-cart-form:has(.wc-proceed-to-checkout){text-align:center}
#cfw-side-cart :is(.cfw-side-cart-contents-header,.cfw-side-cart-contents,.cfw-side-cart-contents-footer>:not(.wc-proceed-to-checkout)){text-align:start}
#cfw-side-cart:has(.wkr-sc-b2b) .cfw-coupon-wrap{display:none}
#cfw-side-cart .cfw-coupon-wrap{border-bottom:1px solid var(--wkr-line-l)}
#cfw-side-cart .cfw-show-coupons-module{display:flex;align-items:center;min-height:48px;padding:0 20px;color:var(--wkr-ink);font-size:.9375rem;font-weight:500;text-decoration:none}
#cfw-side-cart .cfw-coupon-wrap .slide-toggle{padding:0 20px 12px}
#cfw-side-cart .cfw-coupon-wrap input.input-text{min-height:44px;border:1px solid var(--wkr-line-strong);border-radius:var(--wkr-r-btn);background:var(--wkr-white);color:var(--wkr-ink);font-size:1rem}
#cfw-side-cart .cfw-coupon-wrap .cfw-secondary-btn{min-height:44px}
#cfw-side-cart .cfw-side-cart-totals{padding:16px 20px;background:var(--wkr-paper)}
html body #cfw-side-cart .cfw-side-cart-totals{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:2}
@media (max-height:640px){html body #cfw-side-cart .cfw-side-cart-totals{position:static}#cfw-side-cart{scroll-padding-bottom:76px}}
#cfw-side-cart .cfw-totals-list table{width:100%;font-size:.9375rem}
html body #cfw-side-cart .cfw-totals-list,html body #cfw-side-cart .cfw-totals-list :is(table,tbody,tr,th,td,span,div,small){background:transparent!important}
#cfw-side-cart .cfw-totals-list td,#cfw-side-cart .cfw-totals-list th{font-variant-numeric:tabular-nums}
#cfw-side-cart .cfw-totals-list :is(tr.cart-subtotal,tr.shipping) th{font-weight:400}
#cfw-side-cart .cfw-totals-list tr.order-total th{font:700 1rem/1.2 var(--wkr-f-body)}
#cfw-side-cart .cfw-totals-list tr.order-total td{font:800 1.5rem/1.1 var(--wkr-f-display);letter-spacing:-.01em}
#cfw-side-cart .cfw-totals-list .wgm-tax,#cfw-side-cart .wk-cve-hint{font:400 .8125rem/1.4 var(--wkr-f-body);color:var(--wkr-muted)}
#cfw-side-cart .wk-cve-hint{margin:8px 0}
html body #cfw-side-cart .wc-proceed-to-checkout>a.checkout,html body #cfw-side-cart .wc-proceed-to-checkout>a.cfw-primary-btn{position:sticky;bottom:0;z-index:2;display:flex;box-sizing:border-box;width:100%;align-items:center;justify-content:center;min-height:calc(76px + env(safe-area-inset-bottom));margin:0;border-radius:calc(var(--wkr-r-btn) + 20px)/calc(var(--wkr-r-btn) + 12px);border:solid var(--wkr-white);border-width:12px 20px;border-bottom-width:calc(12px + env(safe-area-inset-bottom));background:var(--wkr-accent);background-clip:padding-box;color:var(--wkr-on-accent);font-weight:700;text-decoration:none}
#cfw-side-cart .wc-proceed-to-checkout>a.checkout:hover,#cfw-side-cart .wc-proceed-to-checkout>a.cfw-primary-btn:hover{background:var(--wkr-accent-hover);color:var(--wkr-on-accent)}
html body #cfw-side-cart .cfw-side-cart-close-trigger,html body #cfw-side-cart .wk-share-cart-btn{vertical-align:top;width:auto;max-width:calc(100% - 40px);margin:0 10px calc(12px + env(safe-area-inset-bottom));display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 4px;border:0;background:none;color:var(--wkr-ink);font:500 .9375rem/1.2 var(--wkr-f-body);text-decoration:underline;text-decoration-color:var(--wkr-accent);text-decoration-thickness:2px;text-underline-offset:3px;box-shadow:none}
#cfw-side-cart .cfw-side-cart-close-trigger:hover,#cfw-side-cart .wk-share-cart-btn:hover{background:none;color:var(--wkr-ink);text-decoration-color:var(--wkr-ink)}

#cfw-side-cart .wc-proceed-to-checkout>a:focus-visible{outline-offset:-15px}

/* Vorschlaege */
#cfw-side-cart .cfw-suggested-products-wrap{display:block;box-sizing:border-box;min-width:0;overflow:hidden;margin:0 20px calc(12px + env(safe-area-inset-bottom));padding:16px 0 8px;border-top:1px solid var(--wkr-line-l);border-radius:0;text-align:left;background:none}
html body #cfw-side-cart .cfw-suggested-products-wrap .cfw-suggested-products-heading{margin:0 0 12px;padding:0;text-align:left;font:700 .75rem/1.2 var(--wkr-f-display);letter-spacing:.08em;text-transform:uppercase;color:var(--wkr-muted)}
#cfw-side-cart .cfw-suggested-product>.row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:0 12px;align-items:start;margin:0}
html body #cfw-side-cart .cfw-suggested-product>.row>.col-2{box-sizing:border-box;width:72px;max-width:none;height:72px;padding:0;border:1px solid var(--wkr-line-l);border-radius:var(--wkr-r-card);background:var(--wkr-white);overflow:hidden}
html body #cfw-side-cart .cfw-suggested-product>.row>.col-2 img{display:block;box-sizing:border-box;width:100%;max-width:100%;height:100%;padding:4px;object-fit:contain}
html body #cfw-side-cart .cfw-suggested-product .cfw-suggested-product-description{min-width:0;width:auto;max-width:none;padding:0}
#cfw-side-cart .cfw-suggested-product-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.7em;font-size:.875rem;font-weight:500;line-height:1.35;color:var(--wkr-ink)}
#cfw-side-cart .cfw-suggested-product-price{margin:4px 0 8px;font:800 .9375rem/1.2 var(--wkr-f-display);color:var(--wkr-ink)}
#cfw-side-cart:not(:has(.wkr-sc-b2b)) .cfw-suggested-product-price:has(del) ins .amount{color:var(--wkr-sale)}
#cfw-side-cart .cfw-suggested-product-price ins{background:none;text-decoration:none}
#cfw-side-cart .cfw-suggested-product-price del,#cfw-side-cart .cfw-suggested-product-price del .amount{color:var(--wkr-muted);font-weight:400}
#cfw-side-cart .cfw-suggested-product-add-to-cart{min-height:44px;border-radius:var(--wkr-r-btn)}
html body #cfw-side-cart .cfw-suggested-product-add-to-cart.cfw-secondary-btn{width:100%;padding:0 10px;font-size:.8125rem;background:var(--wkr-ink);border:1px solid var(--wkr-ink);color:var(--wkr-white)!important}
html body #cfw-side-cart .cfw-suggested-product-add-to-cart.cfw-secondary-btn:hover{background:var(--wkr-accent);border-color:var(--wkr-accent);color:var(--wkr-on-accent)!important}
html body #cfw-side-cart .cfw-suggested-products-wrap .slick-dots{position:static;margin:4px 0 0}
#cfw-side-cart .cfw-suggested-products-wrap .slick-dots :is(li,button){height:20px;line-height:20px}
@media (max-width:359px){#cfw-side-cart .cfw-cart-table .cart-item-row>td.cfw-cart-item-image{grid-row:1/span 3}#cfw-side-cart .cfw-cart-table .cart-item-row>th.cfw-cart-item-description{grid-column:2/span 2}#cfw-side-cart .cfw-cart-table .cart-item-row>td.cfw-cart-item-subtotal{grid-column:2/span 2;grid-row:2;text-align:left}#cfw-side-cart .cfw-cart-table .cart-item-row>td.cfw-cart-item-remove{grid-row:3}}
