/* ========================================
   KOSZYK
======================================== */

body.woocommerce-cart #pxl-main {
    padding-top: 70px !important;
    padding-bottom: 80px !important;
}

body.woocommerce-cart #pxl-main .container,
body.woocommerce-cart #pxl-content-area,
body.woocommerce-cart #pxl-content-main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.woocommerce-cart .woocommerce {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 40px 24px 70px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 70px !important;
    align-items: start !important;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce-cart-form {
    grid-column: 1 !important;
}

body.woocommerce-cart .cart-collaterals {
    grid-column: 2 !important;
}

/* Tabela koszyka */
body.woocommerce-cart table.shop_table {
    width: 100%;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 18px;
    margin: 0 !important;
}

body.woocommerce-cart table.shop_table thead th {
    padding: 0 18px 22px !important;
    border: none !important;
    border-bottom: 2px solid #5d8f52 !important;
    color: #073b08;
    font-size: 17px;
    font-weight: 800;
}

body.woocommerce-cart table.shop_table tbody tr.cart_item {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 16px 45px rgba(20, 58, 24, 0.06);
}

body.woocommerce-cart table.shop_table td {
    padding: 24px 18px !important;
    border: none !important;
    vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 12px;
}

body.woocommerce-cart table.shop_table .product-name a {
    color: #073b08;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
    color: #073b08;
    font-size: 17px;
    font-weight: 800;
}

body.woocommerce-cart table.shop_table .product-remove a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffc742 !important;
    color: #073b08 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    text-decoration: none !important;
}

/* Kupon / przyciski */
body.woocommerce-cart .coupon {
    display: flex;
    gap: 14px;
    align-items: center;
    float: left;
}

body.woocommerce-cart .coupon input.input-text {
    width: 280px !important;
    height: 58px;
    padding: 0 24px !important;
    border-radius: 999px;
    border: 1px solid rgba(7, 59, 8, 0.18);
}

body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-cart input.button {
    min-height: 58px;
    padding: 0 34px !important;
    border-radius: 999px !important;
    background: #5d8f52 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
}

body.woocommerce-cart .button:hover,
body.woocommerce-cart button.button:hover,
body.woocommerce-cart input.button:hover {
    background: #4f7b45 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart input[name="update_cart"] {
    float: right;
    background: #ffc742 !important;
    color: #073b08 !important;
}

/* Suma koszyka */
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart-collaterals .cart_totals .cart_totals-box,
body.woocommerce-cart .cart_totals .cart_totals-box,
body.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: 420px !important;
    min-width: 420px !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals .cart_totals-box,
body.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 34px 38px !important;
    min-height: auto !important;
    border-radius: 18px !important;
    border: 1px solid #5d8f52 !important;
    background: #fff !important;
    box-shadow: 0 18px 55px rgba(20, 58, 24, 0.07) !important;
}

body.woocommerce-cart .cart_totals:has(.cart_totals-box) {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.woocommerce-cart .cart_totals h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
    margin: 0 0 28px !important;
    color: #073b08 !important;
    font-weight: 900 !important;
}

body.woocommerce-cart .cart_totals table,
body.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    table-layout: auto !important;
    border: none !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

body.woocommerce-cart .cart_totals table tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 24px !important;
    padding: 14px 0 !important;
    border: none !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
    width: auto !important;
    display: block !important;
    padding: 0 !important;
    border: none !important;
}

body.woocommerce-cart .cart_totals table th {
    flex: 0 0 38%;
    color: #073b08 !important;
    font-weight: 900 !important;
    text-align: left !important;
}

body.woocommerce-cart .cart_totals table td {
    flex: 1;
    text-align: right !important;
    color: #34403a !important;
    line-height: 1.45 !important;
}

body.woocommerce-cart .cart_totals .woocommerce-Price-amount {
    white-space: nowrap !important;
    font-weight: 900 !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-totals,
body.woocommerce-cart .cart_totals .shipping {
    border-top: 1px solid rgba(47, 95, 31, 0.14) !important;
    border-bottom: 1px solid rgba(47, 95, 31, 0.14) !important;
}

body.woocommerce-cart .cart_totals .order-total {
    padding-top: 20px !important;
}

body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount {
    font-size: 24px !important;
    color: #073b08 !important;
}

body.woocommerce-cart .cart_totals .includes_tax,
body.woocommerce-cart .cart_totals .woocommerce-price-suffix,
body.woocommerce-cart .cart_totals small {
    display: block !important;
    margin-top: 6px !important;
    color: #426143 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    white-space: normal !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-methods,
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    width: 100% !important;
    max-width: 420px !important;
    min-width: 420px !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100% !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
}

/* Responsywność */
@media (max-width: 1180px) {
    body.woocommerce-cart .woocommerce {
        display: block !important;
        max-width: 960px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body.woocommerce-cart .cart-collaterals {
        margin-top: 44px !important;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals,
    body.woocommerce-cart .cart-collaterals .cart_totals .cart_totals-box,
    body.woocommerce-cart .cart_totals .cart_totals-box,
    body.woocommerce-cart .cart_totals,
    body.woocommerce-cart .wc-proceed-to-checkout {
        max-width: 560px !important;
        min-width: 0 !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 768px) {
    body.woocommerce-cart .woocommerce {
        padding: 24px 16px 60px !important;
    }

    body.woocommerce-cart .cart_totals .cart_totals-box,
    body.woocommerce-cart .cart-collaterals .cart_totals {
        padding: 28px 22px !important;
    }

    body.woocommerce-cart .cart_totals table tr {
        display: grid !important;
        grid-template-columns: 1fr !important;
        row-gap: 8px !important;
    }

    body.woocommerce-cart .cart_totals table th,
    body.woocommerce-cart .cart_totals table td {
        text-align: left !important;
    }
}

/* ========================================
   POPRAWKI UI KOSZYKA – podsumowanie i CTA
   - stabilne kolumny
   - bez dziwnego łamania VAT
   - ikona przycisku zawsze po prawej
======================================== */

body.woocommerce-cart .cart_totals .cart_totals-box,
body.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 36px 38px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(93, 143, 82, 0.85) !important;
    box-shadow: 0 18px 50px rgba(20, 58, 24, 0.06) !important;
}

body.woocommerce-cart .cart_totals h2 {
    margin-bottom: 34px !important;
    letter-spacing: -0.03em !important;
}

body.woocommerce-cart .cart_totals table tr {
    display: grid !important;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr) !important;
    column-gap: 22px !important;
    align-items: start !important;
    padding: 18px 0 !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
    min-width: 0 !important;
}

body.woocommerce-cart .cart_totals table th {
    width: auto !important;
    flex: none !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
}

body.woocommerce-cart .cart_totals table td {
    width: auto !important;
    flex: none !important;
    text-align: right !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-totals,
body.woocommerce-cart .cart_totals .shipping {
    border-top: 1px solid rgba(47, 95, 31, 0.22) !important;
    border-bottom: 1px solid rgba(47, 95, 31, 0.22) !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-methods label,
body.woocommerce-cart .cart_totals .shipping td,
body.woocommerce-cart .cart_totals .shipping td p {
    white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals .order-total {
    padding-top: 28px !important;
}

body.woocommerce-cart .cart_totals .order-total th {
    padding-top: 4px !important;
}

body.woocommerce-cart .cart_totals .order-total td {
    color: #073b08 !important;
}

body.woocommerce-cart .cart_totals .order-total td > strong > .woocommerce-Price-amount {
    font-size: 22px !important;
    line-height: 1.15 !important;
    color: #073b08 !important;
}

body.woocommerce-cart .cart_totals .includes_tax,
body.woocommerce-cart .cart_totals .woocommerce-price-suffix,
body.woocommerce-cart .cart_totals small {
    display: block !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #426143 !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals .includes_tax .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .woocommerce-price-suffix .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals small .woocommerce-Price-amount {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 900 !important;
    color: #073b08 !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals .includes_tax br,
body.woocommerce-cart .cart_totals .woocommerce-price-suffix br,
body.woocommerce-cart .cart_totals small br {
    display: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.alt {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 60px !important;
    padding: 0 64px 0 34px !important;
    border-radius: 999px !important;
    background: #5d8f52 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::before {
    content: none !important;
    display: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
    content: "↗" !important;
    position: absolute !important;
    right: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover::after {
    transform: translate(3px, -3px) !important;
}

@media (max-width: 768px) {
    body.woocommerce-cart .cart_totals .cart_totals-box,
    body.woocommerce-cart .cart-collaterals .cart_totals {
        padding: 30px 28px !important;
    }

    body.woocommerce-cart .cart_totals table tr {
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr) !important;
        column-gap: 16px !important;
        row-gap: 0 !important;
    }

    body.woocommerce-cart .cart_totals table th,
    body.woocommerce-cart .cart_totals table td {
        text-align: inherit !important;
    }

    body.woocommerce-cart .cart_totals table th {
        text-align: left !important;
    }

    body.woocommerce-cart .cart_totals table td {
        text-align: right !important;
    }

    body.woocommerce-cart .cart_totals .includes_tax,
    body.woocommerce-cart .cart_totals .woocommerce-price-suffix,
    body.woocommerce-cart .cart_totals small {
        font-size: 12.5px !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }

    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button,
    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.alt {
        min-height: 60px !important;
        padding-left: 28px !important;
        padding-right: 58px !important;
    }

    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
        right: 24px !important;
    }
}

@media (max-width: 420px) {
    body.woocommerce-cart .cart_totals .cart_totals-box,
    body.woocommerce-cart .cart-collaterals .cart_totals {
        padding: 28px 22px !important;
    }

    body.woocommerce-cart .cart_totals table tr {
        grid-template-columns: 1fr !important;
        row-gap: 8px !important;
    }

    body.woocommerce-cart .cart_totals table td {
        text-align: left !important;
    }

    body.woocommerce-cart .cart_totals .woocommerce-shipping-methods label,
    body.woocommerce-cart .cart_totals .shipping td,
    body.woocommerce-cart .cart_totals .shipping td p {
        white-space: normal !important;
    }
}

/* ========================================
   FINAL FIX 1.0.8 — koszyk bez boxa w boxie
   - zewnętrzny wrapper transparentny
   - karta tylko na .cart_totals-box albo bezpośrednio na .cart_totals, gdy boxa nie ma
   - CTA zawsze pod kartą, bez nachodzenia
   - jedna ikona po prawej
======================================== */

body.woocommerce-cart .cart-collaterals {
    overflow: visible !important;
}

/* Zewnętrzny kontener nigdy nie może wyglądać jak karta, gdy zawiera .cart_totals-box */
body.woocommerce-cart .cart-collaterals .cart_totals:has(.cart_totals-box),
body.woocommerce-cart .cart_totals:has(.cart_totals-box) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
}

/* Karta podsumowania — dokładnie jeden box */
body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box,
body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)) {
    display: block !important;
    width: 100% !important;
    max-width: 420px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 36px 38px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(93, 143, 82, 0.9) !important;
    background: #fff !important;
    box-shadow: 0 18px 50px rgba(20, 58, 24, 0.06) !important;
    box-sizing: border-box !important;
}

/* Przyciski poza kartą, zawsze niżej */
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout,
body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
    clear: both !important;
    display: block !important;
    width: 100% !important;
    max-width: 420px !important;
    min-width: 0 !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.alt {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 64px 0 34px !important;
    border-radius: 999px !important;
    background: #5d8f52 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

/* Usuwa dodatkowe ikonki dodawane przez motyw nadrzędny */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button i,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button svg,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button .pxl-icon,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button .button-icon,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button .icon {
    display: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::before {
    content: none !important;
    display: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
    content: "↗" !important;
    position: absolute !important;
    right: 28px !important;
    top: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover::after {
    transform: translate(3px, calc(-50% - 3px)) !important;
}

/* Stabilne łamanie tekstów w podsumowaniu */
body.woocommerce-cart .cart_totals table tr {
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr) !important;
}

body.woocommerce-cart .cart_totals table td,
body.woocommerce-cart .cart_totals table th {
    min-width: 0 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

body.woocommerce-cart .cart_totals .includes_tax,
body.woocommerce-cart .cart_totals .woocommerce-price-suffix,
body.woocommerce-cart .cart_totals small {
    white-space: nowrap !important;
}

@media (max-width: 1180px) {
    body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box,
    body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)),
    body.woocommerce-cart .cart_totals .wc-proceed-to-checkout,
    body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
        max-width: 560px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 768px) {
    body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box,
    body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)) {
        padding: 30px 28px !important;
    }

    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button,
    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.alt {
        padding-left: 28px !important;
        padding-right: 58px !important;
    }

    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
        right: 24px !important;
    }
}

@media (max-width: 420px) {
    body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box,
    body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)) {
        padding: 28px 22px !important;
    }

    body.woocommerce-cart .cart_totals .includes_tax,
    body.woocommerce-cart .cart_totals .woocommerce-price-suffix,
    body.woocommerce-cart .cart_totals small,
    body.woocommerce-cart .cart_totals .woocommerce-shipping-methods label,
    body.woocommerce-cart .cart_totals .shipping td,
    body.woocommerce-cart .cart_totals .shipping td p {
        white-space: normal !important;
    }
}

/* ========================================
   FINAL FIX 1.0.9 — ukrycie kalkulatora wysyłki w koszyku
   Sklep ma stałe opcje: odbiór osobisty / dowóz po uzgodnieniu,
   więc komunikat WooCommerce i link „Oblicz koszty wysyłki” są zbędne.
======================================== */
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .shipping-calculator-button,
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator,
body.woocommerce-cart .cart_totals form.woocommerce-shipping-calculator,
body.woocommerce-cart .cart_totals section.shipping-calculator-form {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.woocommerce-cart .cart_totals .shipping td,
body.woocommerce-cart .cart_totals .woocommerce-shipping-totals td {
    color: #1f2937 !important;
}

/* ========================================
   FINAL UI 1.1.0 — spójne tło i premium polish koszyka
======================================== */
body.woocommerce-cart,
body.woocommerce-cart #page,
body.woocommerce-cart .site,
body.woocommerce-cart .site-content,
body.woocommerce-cart main,
body.woocommerce-cart .content-area {
    background: #f7faf6 !important;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
    background: transparent !important;
}

body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box,
body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)) {
    background: #fbfdfb !important;
    border-color: rgba(93, 143, 82, .72) !important;
    border-radius: 22px !important;
    box-shadow: 0 22px 58px rgba(20, 58, 24, .055) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.alt {
    font-size: clamp(16px, 1.25vw, 18px) !important;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, filter .22s ease !important;
    will-change: transform !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
    transition: transform .22s ease, opacity .22s ease !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.alt:hover {
    background: #4f8547 !important;
    box-shadow: 0 18px 42px rgba(47, 95, 31, .24) !important;
    transform: translateY(-2px) !important;
    filter: saturate(1.04) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(0) scale(.99) !important;
    box-shadow: 0 10px 24px rgba(47, 95, 31, .18) !important;
}

/* Czytelniejsza tabela produktów w koszyku */
body.woocommerce-cart table.shop_table.cart td,
body.woocommerce-cart table.shop_table.cart th {
    vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table.cart .product-name a {
    font-weight: 800 !important;
    color: #003b12 !important;
    text-decoration: none !important;
}

body.woocommerce-cart table.shop_table.cart .product-name a:hover {
    color: #5d8f52 !important;
}


/* ========================================
   FINAL FIX 1.1.3 — VAT inline w koszyku
======================================== */
body.woocommerce-cart .cart_totals .includes_tax,
body.woocommerce-cart .cart_totals small.includes_tax,
body.woocommerce-cart .cart_totals .woocommerce-price-suffix,
body.woocommerce-cart .cart_totals small {
    display: inline !important;
    margin: 0 0 0 6px !important;
    white-space: nowrap !important;
    font-size: .9em !important;
    line-height: 1.2 !important;
    opacity: .78 !important;
}

body.woocommerce-cart .cart_totals br,
body.woocommerce-cart .cart_totals .includes_tax br,
body.woocommerce-cart .cart_totals small.includes_tax br,
body.woocommerce-cart .cart_totals .woocommerce-price-suffix br {
    display: none !important;
}

/* VAT alignment fix */
body.woocommerce-cart table.shop_table .product-subtotal,
body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart .cart_totals td,
body.woocommerce-cart .cart_totals .amount {white-space: nowrap !important;}
body.woocommerce-cart table.shop_table .woocommerce-Price-amount {display:inline-block!important;white-space:nowrap!important;}
body.woocommerce-cart table.shop_table .tax_label, body.woocommerce-cart .cart_totals .includes_tax {display:inline-block!important;white-space:nowrap!important;font-size:14px!important;}
body.woocommerce-cart table.shop_table td.product-subtotal {min-width:170px;}

/* ========================================
   FINAL FIX 1.1.4 — subtotal VAT one line
   Keeps product subtotal amount and "(z VAT)" readable on desktop.
======================================== */
body.woocommerce-cart table.shop_table.cart td.product-subtotal,
body.woocommerce-cart table.shop_table.cart th.product-subtotal {
    min-width: 190px !important;
    width: 190px !important;
    white-space: nowrap !important;
    text-align: right !important;
}

body.woocommerce-cart table.shop_table.cart td.product-subtotal > *,
body.woocommerce-cart table.shop_table.cart td.product-subtotal .amount,
body.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-Price-amount,
body.woocommerce-cart table.shop_table.cart td.product-subtotal .tax_label,
body.woocommerce-cart table.shop_table.cart td.product-subtotal small,
body.woocommerce-cart table.shop_table.cart td.product-subtotal .includes_tax,
body.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-price-suffix {
    display: inline-flex !important;
    align-items: baseline !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
    vertical-align: baseline !important;
}

body.woocommerce-cart table.shop_table.cart td.product-subtotal .tax_label,
body.woocommerce-cart table.shop_table.cart td.product-subtotal .includes_tax,
body.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-price-suffix {
    margin-left: 6px !important;
    font-size: 14px !important;
}

@media (min-width: 1025px) {
    body.woocommerce-cart table.shop_table.cart {
        table-layout: auto !important;
    }

    body.woocommerce-cart table.shop_table.cart td.product-name {
        width: 36% !important;
    }

    body.woocommerce-cart table.shop_table.cart td.product-price {
        width: 15% !important;
    }

    body.woocommerce-cart table.shop_table.cart td.product-quantity {
        width: 18% !important;
    }

    body.woocommerce-cart table.shop_table.cart td.product-subtotal {
        width: 21% !important;
    }
}

/* ========================================
   FINAL FIX 1.1.5 — VAT w kolumnie „Suma” produktu
   Problem dotyczy lewej tabeli koszyka, nie boxa podsumowania.
   Wymusza jedną linię dla kwoty i etykiety „(z VAT)”.
======================================== */
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart {
    table-layout: auto !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart th.product-subtotal,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal {
    width: 170px !important;
    min-width: 170px !important;
    max-width: none !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .includes_tax,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .tax_label,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal small,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal bdi {
    display: inline !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: inherit !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .includes_tax,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .tax_label,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal small {
    margin: 0 0 0 6px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #073b08 !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal br {
    display: none !important;
}

@media (max-width: 1180px) {
    body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart th.product-subtotal,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal {
        width: 150px !important;
        min-width: 150px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .includes_tax,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .tax_label,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal small {
        font-size: 13px !important;
    }
}

/* ========================================
   FINAL FIX 1.1.6 — usuń „(z VAT)” z lewej tabeli koszyka
   Zostawia informację VAT w prawym podsumowaniu koszyka.
======================================== */
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .tax_label,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .includes_tax,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal .woocommerce-price-suffix,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal small {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* ========================================
   FINAL FIX 1.0.12 — białe tło strony koszyka
   Koszyk ma mieć takie samo neutralne białe tło jak strona Zamówienie.
======================================== */
body.woocommerce-cart,
body.woocommerce-cart #page,
body.woocommerce-cart #pxl-main,
body.woocommerce-cart #pxl-main .container,
body.woocommerce-cart #pxl-content-area,
body.woocommerce-cart #pxl-content-main,
body.woocommerce-cart .pxl-main,
body.woocommerce-cart .site-content,
body.woocommerce-cart .content-area,
body.woocommerce-cart .woocommerce {
    background: #ffffff !important;
}

body.woocommerce-cart #pxl-main::before,
body.woocommerce-cart #pxl-main::after,
body.woocommerce-cart #pxl-content-area::before,
body.woocommerce-cart #pxl-content-area::after {
    background: transparent !important;
}


/* ========================================
   FINAL FIX 1.0.13 — tło bloku Koszyk jak Zamówienie
   Prawy blok podsumowania na stronie koszyka ma mieć kolor #f7faf6.
======================================== */
body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box,
body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)),
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart_totals .cart_totals-box {
    background-color: #f7faf6 !important;
    background: #f7faf6 !important;
}


/* ========================================
   FINAL FIX 1.0.14 — spójne tła i obramowania: Koszyk = Zamówienie
   Prawy blok podsumowania na stronie koszyka ma identyczną estetykę
   jak blok „Twoje zamówienie” na stronie checkout.
======================================== */
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart_totals .cart_totals-box,
body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)),
body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box {
    background: #f7faf6 !important;
    background-color: #f7faf6 !important;
    border: 1px solid rgba(47, 95, 31, 0.28) !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 60px rgba(20, 58, 24, 0.08) !important;
    padding: 38px !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals:has(.cart_totals-box) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.woocommerce-cart .cart_totals h2 {
    color: #073b08 !important;
}

body.woocommerce-cart .cart_totals table tr {
    border-bottom: 1px solid rgba(47, 95, 31, 0.14) !important;
}

body.woocommerce-cart .cart_totals table tr:last-child {
    border-bottom: none !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-totals,
body.woocommerce-cart .cart_totals .shipping {
    border-top: 1px solid rgba(47, 95, 31, 0.14) !important;
    border-bottom: 1px solid rgba(47, 95, 31, 0.14) !important;
}

@media (max-width: 768px) {
    body.woocommerce-cart .cart-collaterals .cart_totals,
    body.woocommerce-cart .cart_totals .cart_totals-box,
    body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)),
    body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box {
        padding: 28px 22px !important;
        border-radius: 20px !important;
    }
}


/* ========================================
   FINAL FIX 1.0.15 — blok Koszyk: układ kwot i VAT jak na Zamówieniu
   - tło #f7faf6
   - jedna ramka
   - VAT w "Do zapłaty" w osobnej linii pod kwotą
   - subtotal z "(z VAT)" pozostaje w jednej linii
======================================== */
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart_totals .cart_totals-box,
body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)),
body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box {
    background: #f7faf6 !important;
    background-color: #f7faf6 !important;
    border: 1px solid rgba(47, 95, 31, 0.30) !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    padding: 38px !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals:has(.cart_totals-box) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.woocommerce-cart .cart_totals table tr {
    display: grid !important;
    grid-template-columns: minmax(115px, 38%) minmax(0, 1fr) !important;
    column-gap: 18px !important;
    align-items: start !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid rgba(47, 95, 31, 0.16) !important;
}

body.woocommerce-cart .cart_totals table tr:last-child {
    border-bottom: 0 !important;
}

body.woocommerce-cart .cart_totals table th {
    text-align: left !important;
    color: #073b08 !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

body.woocommerce-cart .cart_totals table td {
    text-align: right !important;
    color: #34403a !important;
    line-height: 1.35 !important;
    min-width: 0 !important;
}

body.woocommerce-cart .cart_totals .cart-subtotal td,
body.woocommerce-cart .cart_totals .cart-subtotal td *,
body.woocommerce-cart .cart_totals .shipping td,
body.woocommerce-cart .cart_totals .shipping td * {
    white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals .cart-subtotal .woocommerce-price-suffix,
body.woocommerce-cart .cart_totals .cart-subtotal small,
body.woocommerce-cart .cart_totals .cart-subtotal .includes_tax {
    display: inline !important;
    margin-left: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #426143 !important;
    opacity: 0.85 !important;
}

body.woocommerce-cart .cart_totals .order-total td {
    text-align: right !important;
}

body.woocommerce-cart .cart_totals .order-total td > strong {
    display: block !important;
    text-align: right !important;
}

body.woocommerce-cart .cart_totals .order-total td > strong .woocommerce-Price-amount {
    display: inline-block !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #073b08 !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals .order-total .includes_tax,
body.woocommerce-cart .cart_totals .order-total small.includes_tax,
body.woocommerce-cart .cart_totals .order-total .woocommerce-price-suffix {
    display: block !important;
    margin: 8px 0 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #426143 !important;
    opacity: 1 !important;
}

body.woocommerce-cart .cart_totals .order-total .includes_tax .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .order-total small.includes_tax .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .order-total .woocommerce-price-suffix .woocommerce-Price-amount {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 900 !important;
    color: #426143 !important;
}

body.woocommerce-cart .cart_totals .order-total br,
body.woocommerce-cart .cart_totals .order-total .includes_tax br {
    display: none !important;
}

@media (max-width: 420px) {
    body.woocommerce-cart .cart-collaterals .cart_totals,
    body.woocommerce-cart .cart_totals .cart_totals-box,
    body.woocommerce-cart .cart-collaterals .cart_totals:not(:has(.cart_totals-box)),
    body.woocommerce-cart .cart_totals:has(.cart_totals-box) .cart_totals-box {
        padding: 28px 22px !important;
    }

    body.woocommerce-cart .cart_totals table tr {
        grid-template-columns: 1fr !important;
        row-gap: 8px !important;
    }

    body.woocommerce-cart .cart_totals table td,
    body.woocommerce-cart .cart_totals .order-total td,
    body.woocommerce-cart .cart_totals .order-total td > strong,
    body.woocommerce-cart .cart_totals .order-total .includes_tax {
        text-align: left !important;
    }
}
