/* S121 mobile cart: each price and stepper has its own grid area. */
@media(max-width:850px){
 body.premium[data-screen="koszyk"] .checkout-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 body.premium[data-screen="koszyk"] .checkout-grid>*{min-width:0;max-width:100%;box-sizing:border-box}
 body.premium[data-screen="koszyk"] .cart-head{display:none}
 body.premium[data-screen="koszyk"] .cart-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto) 44px;grid-template-areas:"product product product" "unit unit remove" "qty total remove";gap:10px 8px;align-items:center;padding:20px 0;min-width:0;max-width:100%;box-sizing:border-box}
 body.premium[data-screen="koszyk"] .cart-row>.cart-product{grid-area:product;display:flex;align-items:flex-start;min-width:0;gap:12px;overflow-wrap:anywhere}
 body.premium[data-screen="koszyk"] .cart-product>div{min-width:0}
 body.premium[data-screen="koszyk"] .cart-product img{width:clamp(60px,19vw,90px);height:clamp(60px,19vw,90px);flex:none;object-fit:cover}
 body.premium[data-screen="koszyk"] .cart-row>.unit-price{grid-area:unit;justify-self:start;display:block;font-size:12px;line-height:1.4;color:#617d96;white-space:normal}
 body.premium[data-screen="koszyk"] .cart-row>.unit-price:before{content:"Cena za szt.: "}
 body.premium[data-screen="koszyk"] .cart-row>.quantity-control{grid-area:qty;justify-self:start;display:grid;grid-template-columns:32px minmax(28px,1fr) 32px;width:110px;max-width:100%;height:44px;margin:0;padding:0;box-sizing:border-box;overflow:hidden}
 body.premium[data-screen="koszyk"] .cart-row>.quantity-control button{width:100%;min-width:0;max-width:100%;height:100%;padding:0;display:grid;place-items:center;box-sizing:border-box}
 body.premium[data-screen="koszyk"] .cart-row>.quantity-control input{width:100%;min-width:0;max-width:100%;padding:0;text-align:center;appearance:textfield;-moz-appearance:textfield;box-sizing:border-box}
 body.premium[data-screen="koszyk"] .cart-row>.quantity-control input::-webkit-inner-spin-button,body.premium[data-screen="koszyk"] .cart-row>.quantity-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
 body.premium[data-screen="koszyk"] .cart-row>.line-total{grid-area:total;justify-self:end;text-align:right;margin:0;font-size:16px;max-width:100%;overflow-wrap:anywhere}
 body.premium[data-screen="koszyk"] .cart-row>.remove-item{grid-area:remove;justify-self:end;width:44px;min-height:44px;min-width:0;margin:0;padding:0}
 body.premium[data-screen="koszyk"] .order-summary{position:static}
 body.premium[data-screen="koszyk"] .cart-bottom{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:360px){body.premium[data-screen="koszyk"] .checkout-grid>.panel{padding:16px}body.premium[data-screen="koszyk"] .cart-row>.quantity-control{grid-template-columns:27px minmax(24px,1fr) 27px;width:94px}}

/* S122: visible pending state and reliable touch target. */
body[data-screen="koszyk"] .remove-item {touch-action:manipulation;cursor:pointer;position:relative;z-index:1;display:grid;place-items:center;min-height:44px}
body[data-screen="koszyk"] .remove-item svg,body[data-screen="koszyk"] .remove-item svg *{pointer-events:none}
body[data-screen="koszyk"] .cart-row[data-fkm-removing]{opacity:.55}
body[data-screen="koszyk"] .remove-item[data-fkm-pending] {cursor:wait}
body[data-screen="koszyk"] .remove-item[data-fkm-pending] svg{visibility:hidden}
body[data-screen="koszyk"] .remove-item[data-fkm-pending]::after{content:"";position:absolute;width:18px;height:18px;border:2px solid #d5e0ed;border-top-color:#1765ae;border-radius:50%;animation:fkm-cart-spin .7s linear infinite}
@keyframes fkm-cart-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){body[data-screen="koszyk"] .remove-item[data-fkm-pending]::after{animation:none}}

/* One project row; print quantity is read-only, not a cart stepper. */
body[data-screen="koszyk"] .fkm-project-quantity{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
@media(max-width:850px){
 body.premium[data-screen="koszyk"] .cart-row.fkm-print-project{grid-template-areas:"product product product" "qty total remove"}
 body.premium[data-screen="koszyk"] .cart-row.fkm-print-project>.fkm-project-unit{display:none}
 body.premium[data-screen="koszyk"] .cart-row>.fkm-project-quantity{grid-area:qty;justify-self:start}
}
