/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
 Version: 1.0.2
 Text Domain: hello-elementor-child
*/
/* put custom css below */

/* ════════════════════════════════════════════════════════════════════════
   CHECKOUT ORDER REVIEW — SHIPPING ROW FIXES
   ════════════════════════════════════════════════════════════════════════ */

/* 1. Hide the "Shipment" <th> label in the order review table */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th {
    display: none;
}

/* 2. The existing CSS hides the <input> and <label> for omnivalt_pt but
      leaves the <li> wrapper in the DOM as display:list-item with its
      bottom margin intact — this creates blank vertical space in the
      shipping row even though the option appears invisible.
      Fix: hide the entire <li> so it contributes zero height/margin.

      These rules target the same body-class conditions used on the cart. */

/* 5+ items in cart */
.more-5-products #shipping_method li:has(#shipping_method_0_omnivalt_pt) {
    display: none !important;
}

/* "bez-pakomatiem" shipping class present */
.shipping-class-bez-pakomatiem #shipping_method li:has(#shipping_method_0_omnivalt_pt) {
    display: none !important;
}

/* "bez-pakomatiem-un-kurjera" class — hides pakomat li too */
.shipping-class-bez-pakomatiem-un-kurjera #shipping_method li:has(#shipping_method_0_omnivalt_pt) {
    display: none !important;
}

/* Also target the courier (omnivalt_c) li when bez-pakomatiem-un-kurjera is active */
.shipping-class-bez-pakomatiem-un-kurjera #shipping_method li:has(#shipping_method_0_omnivalt_c) {
    display: none !important;
    margin: 0 !important;
}

/* Fallback margin fix: the existing CSS hides the li contents to 0px height
   but leaves the li as display:list-item with an 8px bottom margin — causing
   a blank gap in the shipping row. Zero that out in all hiding scenarios. */
.shipping-class-bez-pakomatiem #shipping_method li:has(#shipping_method_0_omnivalt_pt),
.shipping-class-bez-pakomatiem-un-kurjera #shipping_method li:has(#shipping_method_0_omnivalt_pt),
.more-5-products #shipping_method li:has(#shipping_method_0_omnivalt_pt) {
    margin: 0 !important;
    overflow: hidden !important;
}

/* ════════════════════════════════════════════════════════════════════════
   CHECKOUT — SHIPPING ROW ALIGNMENT & FULL-WIDTH DIVIDERS
   An Elementor rule offsets the shipping row with a negative left margin
   and oversized width, causing misalignment and short dividers. Fix it.
   ════════════════════════════════════════════════════════════════════════ */

/* Scoped to checkout page only — the cart page uses the same class but relies
   on the margin-top: 110px for its absolutely-positioned coupon layout */
.woocommerce-checkout .woocommerce-shipping-totals.shipping {
    display: table-row !important; /* Elementor sets display:table — restoring table-row allows borders to span full table width */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important; /* borders on tr don't render with display:table-row; moved to cells below */
}

/* Apply borders to both cells (th is hidden but still contributes width) so the
   divider lines span the full table width */
.woocommerce-checkout .woocommerce-shipping-totals.shipping th,
.woocommerce-checkout .woocommerce-shipping-totals.shipping td {
    border-top: 1px solid rgb(217, 225, 234) !important;
    border-bottom: 1px solid rgb(217, 225, 234) !important;
}

.woocommerce-checkout .woocommerce-shipping-totals.shipping td {
    padding: 15px 12px 15px 0px !important;
}

/* ════════════════════════════════════════════════════════════════════════
   CHECKOUT — HIDE ADVANCED COUPONS STORE CREDIT BLOCK
   ════════════════════════════════════════════════════════════════════════ */

#acfw-checkout-ui-block {
    display: none !important;
}