/* Cart page: mobile shipping-methods + layout overrides.
 * Extracted 2026-05-12 from functions.php inline <style> block.
 * Hand-written component CSS — NOT Tailwind output — unaffected by the no-rebuild constraint on style.css.
 * Loads only on is_cart() via wp_enqueue_scripts (mirrors the checkout.css pattern in functions.php).
 */

.woocommerce-shipping-totals td::before {
    display: none !important;
}
.woocommerce-shipping-totals td {
    text-align: left !important;
}
.woocommerce-shipping-totals strong {
    text-align: left !important;
}
.woocommerce-shipping-methods {
    text-align: left !important;
}
.woocommerce-shipping-methods li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    text-align: left !important;
}
.woocommerce-shipping-methods li input[type=radio] {
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: #BF360C;
    width: 16px !important;
    height: 16px !important;
}
.woocommerce-shipping-methods li label {
    cursor: pointer;
    text-align: left !important;
    flex: 1;
}
.fk-pickup-location-selector {
    flex-basis: 100% !important;
    margin-left: 0 !important;
}

/* 1. Hide Produkt/Kwota column headers on mobile */
@media (max-width: 767px) {
    .woocommerce-cart-form__contents > div:first-child > .grid {
        display: none !important;
    }
}

/* 2. Reduce gap between last product and Podsumowanie koszyka */
@media (max-width: 767px) {
    .woocommerce-cart-form__contents > .py-8 {
        padding-bottom: 0 !important;
    }
    .woocommerce-cart-form__contents .border-t {
        padding-top: 0.5rem !important;
        margin-top: 0 !important;
    }
    .cart-collaterals {
        padding-top: 0 !important;
    }
}

/* 3. Left-align Dostawa heading (it's a <span> inside <td>, not <th>) */
.woocommerce-shipping-totals td,
.woocommerce-shipping-totals td > span {
    text-align: left !important;
}

/* 4. Reduce whitespace after proceed-to-checkout button */
@media (max-width: 767px) {
    .wc-proceed-to-checkout {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .cart_totals {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .cart-collaterals {
        padding: 1rem !important;
    }
    .woocommerce-cart section {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .woocommerce-cart .woocommerce {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .woocommerce-cart .grid {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}
