/* SMART Drobne: koszyk w stylu kasy (tylko wygląd, strona /koszyk/) */
html body.woocommerce-cart:not(#sd) #main{background:#f6f8f3}
html body.woocommerce-cart:not(#sd) .woocommerce:has(>.woocommerce-cart-form){display:grid;grid-template-columns:minmax(0,1fr) 400px;align-items:start;gap:0 28px;max-width:1180px;margin:24px auto 48px;color:#103923}
html body.woocommerce-cart:not(#sd) .woocommerce:has(>.woocommerce-cart-form)>.woocommerce-notices-wrapper{grid-column:1/-1}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form{grid-column:1;grid-row:2;box-sizing:border-box;min-width:0;margin:0;padding:28px;background:#fff;border:1px solid #dbe6dc;border-radius:24px;box-shadow:0 12px 36px -28px #123b2455}
html body.woocommerce-cart:not(#sd) .sd-bundle-slot{grid-column:1;grid-row:3;min-width:0;margin-top:22px}
html body.woocommerce-cart:not(#sd) .cart-collaterals{grid-column:2;grid-row:2 / span 2;float:none;width:100%;margin:0;position:sticky;top:96px}
html body.woocommerce-cart:not(#sd) .cart-collaterals .cart_totals{float:none;width:100%;box-sizing:border-box;margin:0;padding:28px;background:#fff;border:1px solid #dbe6dc;border-radius:24px;box-shadow:0 12px 36px -28px #123b2455}

/* tabela produktów */
html body.woocommerce-cart:not(#sd) table.shop_table.cart{width:100%;margin:0;border:0;border-collapse:separate;border-spacing:0;background:transparent}
html body.woocommerce-cart:not(#sd) table.shop_table.cart th,html body.woocommerce-cart:not(#sd) table.shop_table.cart td{border:0;border-bottom:1px solid #e3ebe2;padding:14px 10px;background:transparent;color:#254331;font-size:14px;line-height:1.6;text-transform:none;vertical-align:middle}
html body.woocommerce-cart:not(#sd) table.shop_table.cart thead th{background:#f0f5ed;border-bottom:0;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#254331}
html body.woocommerce-cart:not(#sd) table.shop_table.cart thead th:first-child{border-radius:12px 0 0 12px}
html body.woocommerce-cart:not(#sd) table.shop_table.cart thead th:last-child{border-radius:0 12px 12px 0}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-name a{color:#103923;font-weight:600;text-decoration:none;text-transform:none}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-name a:hover{color:#17683c;text-decoration:underline;text-underline-offset:3px}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-thumbnail img{width:54px;max-width:54px;height:auto;border-radius:9px;display:block}
html body.woocommerce-cart:not(#sd) table.shop_table.cart .amount,html body.woocommerce-cart:not(#sd) table.shop_table.cart .amount bdi{color:#103923;font-weight:650;white-space:nowrap;text-transform:none}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-remove a.remove{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #cdddcf;border-radius:50%;background:#fff;color:#64776b !important;font-size:16px;line-height:1;text-decoration:none}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-remove a.remove:hover{border-color:#b33b36;background:#fdf1f0;color:#b33b36 !important}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.actions{border-bottom:0;padding:18px 0 0}

/* kupon i przycisk aktualizacji */
html body.woocommerce-cart:not(#sd) td.actions .coupon{display:inline-flex;align-items:center;gap:10px;float:left}
html body.woocommerce-cart:not(#sd) td.actions .coupon input.input-text{box-sizing:border-box;width:230px;max-width:100%;min-height:46px;margin:0;border:1px solid #cdddcf;border-radius:10px;padding:11px 13px;background:#fff;color:#173d28;font-size:15px;box-shadow:none}
html body.woocommerce-cart:not(#sd) td.actions .coupon input.input-text:focus{border-color:#287a46;outline:3px solid #d9f26b66;outline-offset:1px}
html body.woocommerce-cart:not(#sd) td.actions .button{box-sizing:border-box;min-height:46px;margin:0;padding:12px 22px;border:1.5px solid #17683c;border-radius:999px;background:#fff;color:#17683c;box-shadow:none;font-size:14px;font-weight:700;text-transform:none;letter-spacing:0;line-height:1.3}
html body.woocommerce-cart:not(#sd) td.actions .button:hover:not(:disabled){background:#17683c;color:#fff}
html body.woocommerce-cart:not(#sd) td.actions button[name=update_cart]{float:right}
html body.woocommerce-cart:not(#sd) td.actions button[name=update_cart]:disabled,html body.woocommerce-cart:not(#sd) td.actions button[name=update_cart][disabled]{border-color:#cdddcf;background:#f3f6f1;color:#8a9a8f;opacity:1;cursor:default}

/* "Opróżnij koszyk": wygląd linku jest w class-sd-koszyk-oproznij.php; tutaj tylko miejsce w koszyku */
html body.woocommerce-cart:not(#sd) td.actions a.sd-empty-cart{clear:both;float:none;margin-top:18px}

/* podsumowanie koszyka */
html body.woocommerce-cart:not(#sd) .cart_totals h2{margin:0 0 20px;padding:0 0 16px;border:0;border-bottom:1px solid #dce7d9;background:transparent;color:#103923;font-size:21px;font-weight:700;line-height:1.35;letter-spacing:0;text-transform:none;text-align:left}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table{width:100%;margin:0 0 20px;border:0;border-collapse:separate;border-spacing:0;background:transparent;table-layout:auto}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table th,html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table td{border:0;border-bottom:1px solid #e3ebe2;padding:16px 12px;background:transparent;color:#254331;font-size:14px;line-height:1.65;text-transform:none;vertical-align:middle}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table th{font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:13px;width:auto}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table td{text-align:right}
html body.woocommerce-cart:not(#sd) .cart_totals .amount,html body.woocommerce-cart:not(#sd) .cart_totals .amount bdi{color:#103923;font-weight:650;white-space:nowrap;text-transform:none}
html body.woocommerce-cart:not(#sd) .cart_totals tr.order-total th,html body.woocommerce-cart:not(#sd) .cart_totals tr.order-total td{background:#edf5e4;border-bottom:0;text-transform:none}
html body.woocommerce-cart:not(#sd) .cart_totals tr.order-total th{border-radius:12px 0 0 12px;letter-spacing:.02em;font-size:14px}
html body.woocommerce-cart:not(#sd) .cart_totals tr.order-total td{border-radius:0 12px 12px 0}
html body.woocommerce-cart:not(#sd) .cart_totals tr.order-total td>strong .amount,html body.woocommerce-cart:not(#sd) .cart_totals tr.order-total td>strong .amount bdi{font-size:23px;font-weight:750}
html body.woocommerce-cart:not(#sd) .cart_totals .wc-proceed-to-checkout{padding:0;margin:0}
html body.woocommerce-cart:not(#sd) .cart_totals .wc-proceed-to-checkout a.checkout-button{box-sizing:border-box;display:block;width:100%;margin:0;min-height:52px;padding:15px 20px;border:0;border-radius:999px;background:#d9f26b;color:#103923;box-shadow:0 8px 20px -12px #647c28;font-size:14px;font-weight:700;line-height:1.3;text-align:center;text-transform:none;letter-spacing:0}
html body.woocommerce-cart:not(#sd) .cart_totals .wc-proceed-to-checkout a.checkout-button:hover{background:#cbea55;color:#103923}
html body.woocommerce-cart:not(#sd) .cart_totals .wc-proceed-to-checkout a.checkout-button:focus-visible{outline:3px solid #287a46;outline-offset:3px}

/* informacja o VAT: wysunięta w lewo nad pustą część komórki, żeby nie rozpychała tabeli na wąskich ekranach */
html body.woocommerce-cart:not(#sd) .cart_totals tr.order-total .includes_tax{margin-left:-160px;text-align:right}

/* wiersz kuponu w podsumowaniu: nazwa kodu w normalnej wielkości liter, zawija się tylko gdy musi */
html body.woocommerce-cart:not(#sd) .cart_totals tr.cart-discount th{text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;overflow-wrap:anywhere}
html body.woocommerce-cart:not(#sd) .cart_totals tr.cart-discount td{white-space:nowrap}
@media(max-width:768px){html body.woocommerce-cart:not(#sd) .cart_totals tr.cart-discount td{white-space:normal;width:38%}}
html body.woocommerce-cart:not(#sd) .cart_totals tr.cart-discount td a{color:#17683c;text-decoration:underline;text-underline-offset:3px}
/* link "Cofnij" w komunikacie po usunięciu produktu: przycisk (wcześniej biały tekst na jasnym tle) */
html body.woocommerce-cart:not(#sd) .woocommerce-message a.restore-item{display:inline-flex;align-items:center;margin-left:auto;padding:8px 18px;border-radius:999px;background:#17683c !important;color:#fff !important;font-size:13px;font-weight:700;line-height:1.3;text-decoration:none !important}
html body.woocommerce-cart:not(#sd) .woocommerce-message a.restore-item:hover{background:#0f4d2a !important}

/* tablet i telefon: jedna kolumna */
@media(max-width:900px){
html body.woocommerce-cart:not(#sd) .woocommerce:has(>.woocommerce-cart-form){grid-template-columns:minmax(0,1fr);max-width:690px}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form,html body.woocommerce-cart:not(#sd) .sd-bundle-slot,html body.woocommerce-cart:not(#sd) .cart-collaterals{grid-column:1}
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form{grid-row:2}
html body.woocommerce-cart:not(#sd) .sd-bundle-slot{grid-row:3}
html body.woocommerce-cart:not(#sd) .cart-collaterals{grid-row:4;position:static;margin-top:22px}
}
@media(max-width:768px){
html body.woocommerce-cart:not(#sd) .woocommerce-cart-form,html body.woocommerce-cart:not(#sd) .cart-collaterals .cart_totals{padding:18px;border-radius:18px}
html body.woocommerce-cart:not(#sd) table.shop_table.cart thead{display:none}
html body.woocommerce-cart:not(#sd) table.shop_table.cart tr.cart_item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;grid-template-areas:"thumb name remove" "thumb price price" "thumb qty sub";gap:4px 12px;align-items:center;padding:16px 0;border-bottom:1px solid #e3ebe2}
html body.woocommerce-cart:not(#sd) table.shop_table.cart tr.cart_item td{display:block;border:0;padding:0;text-align:left}
html body.woocommerce-cart:not(#sd) table.shop_table.cart tr.cart_item td:before{display:none}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-thumbnail{grid-area:thumb;align-self:start}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-thumbnail img{width:64px;max-width:64px}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-name{grid-area:name;font-size:14px}
html body.woocommerce-cart:not(#sd) table.shop_table.cart tr.cart_item td.product-name:before{display:block;float:none;width:auto;content:attr(data-title);margin:0 0 3px;color:#64776b;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-remove{grid-area:remove;align-self:start;text-align:right}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-price{grid-area:price;font-size:13px;color:#64776b}
html body.woocommerce-cart:not(#sd) table.shop_table.cart tr.cart_item td.product-price:before{display:inline;float:none;content:"Cena: ";color:#64776b;font-weight:500;font-size:13px}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-quantity{grid-area:qty}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.product-subtotal{grid-area:sub;text-align:right;font-size:15px}
html body.woocommerce-cart:not(#sd) table.shop_table.cart td.actions{display:block;padding:16px 0 0}
html body.woocommerce-cart:not(#sd) td.actions .coupon{display:flex;float:none;width:100%;flex-wrap:wrap}
html body.woocommerce-cart:not(#sd) td.actions .coupon input.input-text{width:100%;flex:1 1 100%}
html body.woocommerce-cart:not(#sd) td.actions .coupon .button,html body.woocommerce-cart:not(#sd) td.actions button[name=update_cart]{float:none;width:100%;margin-top:10px}
html body.woocommerce-cart:not(#sd) td.actions a.sd-empty-cart{display:flex;justify-content:center;width:100%;margin:12px 0 0}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table tr{display:table-row}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table th,html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table td{display:table-cell;text-align:right}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table th{text-align:left;white-space:nowrap}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table td:before{display:none}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table th,html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table td{padding-left:8px;padding-right:8px}
html body.woocommerce-cart:not(#sd) .cart_totals table.shop_table tr.cart-discount th{white-space:normal;overflow-wrap:anywhere;font-size:12px}
html body.woocommerce-cart:not(#sd) .cart_totals tr.cart-discount td,html body.woocommerce-cart:not(#sd) .cart_totals tr.cart-discount td .amount{font-size:13px}
}

/* 1.42.7: na telefonie i małym tablecie awatar (Smart Mini Avatar, #sma-widget) w koszyku i płatności zasłaniał kwoty, zgody i przyciski - tutaj go chowamy (na komputerze i innych stronach zostaje) */
@media (max-width:768px){html body:not(#sd) #sma-widget{display:none !important}}
