/* Wybór ilości (− 1 +): ten sam wygląd na stronie produktu i w koszyku (przyciski − / + dodaje motyw, tu tylko styl). Od 1.41.0. */
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:not(.hidden),
html body.single-product:not(#sd) form.cart .quantity:not(.hidden){--sd-qh:42px;display:inline-flex;align-items:stretch;box-sizing:border-box;width:auto;height:var(--sd-qh);margin:0;padding:0;border:1px solid #cdddcf;border-radius:999px;background:#fff;overflow:hidden;vertical-align:middle}
html body.single-product:not(#sd) form.cart .quantity:not(.hidden){--sd-qh:50px;margin:0 14px 0 0}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity br{display:none}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:not(.hidden) :is(.minus,.plus),
html body.single-product:not(#sd) form.cart .quantity:not(.hidden) :is(.minus,.plus){display:flex;flex:0 0 40px;align-items:center;justify-content:center;box-sizing:border-box;width:40px;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#17683c;font-family:inherit;font-size:19px;font-weight:700;line-height:1;text-decoration:none;cursor:pointer;transition:background-color .15s ease,color .15s ease}
/* motyw wstawia "-" (krótki łącznik, mniejszy od "+"), więc oba znaki rysujemy sami w tej samej wielkości */
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:not(.hidden) :is(.minus,.plus),
html body.single-product:not(#sd) form.cart .quantity:not(.hidden) :is(.minus,.plus){font-size:0}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:not(.hidden) .minus::before,
html body.single-product:not(#sd) form.cart .quantity:not(.hidden) .minus::before{content:"\2212";font-size:20px;font-weight:600;line-height:1}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:not(.hidden) .plus::before,
html body.single-product:not(#sd) form.cart .quantity:not(.hidden) .plus::before{content:"+";font-size:20px;font-weight:600;line-height:1}
/* najechanie: limonka, tylko na komputerze (mysz); na dotyku kolor by się "przyklejał" po kliknięciu */
@media (hover:hover) and (pointer:fine){
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:not(.hidden) :is(.minus,.plus):hover,
html body.single-product:not(#sd) form.cart .quantity:not(.hidden) :is(.minus,.plus):hover{background:#d9f26b;color:#103923}
}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:not(.hidden) :is(.minus,.plus):focus-visible,
html body.single-product:not(#sd) form.cart .quantity:not(.hidden) :is(.minus,.plus):focus-visible{outline:2px solid #287a46;outline-offset:-3px}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:not(.hidden) input.qty,
html body.single-product:not(#sd) form.cart .quantity:not(.hidden) input.qty{flex:0 0 46px;box-sizing:border-box;width:46px;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:inset 1px 0 #e3ece4,inset -1px 0 #e3ece4;color:#173d28;font-family:inherit;font-size:15px;font-weight:700;line-height:1;text-align:center;-moz-appearance:textfield;appearance:textfield}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity input.qty::-webkit-outer-spin-button,
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity input.qty::-webkit-inner-spin-button,
html body.single-product:not(#sd) form.cart .quantity input.qty::-webkit-outer-spin-button,
html body.single-product:not(#sd) form.cart .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form .quantity:focus-within,
html body.single-product:not(#sd) form.cart .quantity:focus-within{border-color:#287a46;box-shadow:0 0 0 3px #d9f26b66}

/* koszyk: zmiana ilości odświeża koszyk sama, więc "Aktualizuj koszyk" znika, a w jego miejscu jest "Opróżnij koszyk" */
html body.sd-ilosc-auto.woocommerce-cart:not(#sd) td.actions button[name=update_cart]{display:none}
html body.sd-ilosc-auto.woocommerce-cart:not(#sd) td.actions a.sd-empty-cart{float:right;clear:none;box-sizing:border-box;min-height:46px;margin:0;padding:12px 22px}
@media(max-width:768px){html body.sd-ilosc-auto.woocommerce-cart:not(#sd) td.actions a.sd-empty-cart{float:none;display:flex;justify-content:center;width:100%;margin:12px 0 0}}
@media(prefers-reduced-motion:reduce){html body:not(#sd) .quantity :is(.minus,.plus){transition:none}}
