/* Hide the theme checkout title banner, keeping the checkout form headings. */
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-hero.page-hero-section,
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-hero-container-inner,
body.woocommerce-checkout:not(.woocommerce-order-received) article.page > .entry-header,
body.woocommerce-checkout:not(.woocommerce-order-received) article.page > .entry-content-wrap > .entry-header,
body.woocommerce-checkout:not(.woocommerce-order-received) .lf-page-title-wrap {
    display: none !important;
}

/* Classic Cart: summary first, then full-width totals on every screen. */
body.woocommerce-cart .kadence-woo-cart-form-wrap > form,
body.woocommerce-cart .kadence-woo-cart-form-wrap .cart-collaterals {
 float:none!important;
 width:100%!important;
 max-width:100%!important;
 padding-left:0!important;
 padding-right:0!important;
 box-sizing:border-box;
}
body.woocommerce-cart .kadence-woo-cart-form-wrap .cart-collaterals {
 clear:both!important;
 margin-top:15px!important;
}
body.woocommerce-cart .cart-collaterals .cart_totals {
 float:none!important;
 width:100%!important;
 max-width:100%!important;
}

/* 1.2.40: compact classic-cart cards on mobile; desktop is unchanged. */
@media (max-width:767px) {
 body.woocommerce-cart .kadence-woo-cart-form-wrap h2,
 body.woocommerce-cart .cart_totals > h2 {font-size:22px!important;line-height:1.3;margin:0 0 12px!important;}
 body.woocommerce-cart table.woocommerce-cart-form__contents {border:0!important;margin-bottom:12px;}
 body.woocommerce-cart table.woocommerce-cart-form__contents > tbody {display:block;}
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item {
  display:grid!important;grid-template-columns:72px minmax(0,1fr) minmax(0,1fr);
  gap:10px 8px;position:relative;padding:12px!important;margin:0 0 12px;
  border:1px solid #e2e6e5;border-radius:10px;background:#fff!important;
 }
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td {
  width:auto!important;min-width:0;padding:0!important;margin:0!important;border:0!important;
  background:transparent!important;float:none!important;box-sizing:border-box;
 }
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-remove {
  position:absolute;top:4px;right:4px;display:block!important;z-index:1;
 }
 body.woocommerce-cart table.woocommerce-cart-form__contents .product-remove a {
  display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:22px;
 }
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-thumbnail {
  display:block!important;grid-column:1;grid-row:1;align-self:start;
 }
 body.woocommerce-cart table.woocommerce-cart-form__contents .product-thumbnail img {
  width:64px!important;max-width:64px!important;height:80px!important;object-fit:contain;border-radius:6px;margin:0;
 }
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-name {
  grid-column:2 / 4;grid-row:1;display:block!important;text-align:left!important;
  padding-right:22px!important;font-size:14px;line-height:1.5;overflow-wrap:anywhere;
 }
 body.woocommerce-cart table.woocommerce-cart-form__contents .product-name > a {font-weight:600;text-decoration:none;}
 body.woocommerce-cart table.woocommerce-cart-form__contents .product-name::before,
 body.woocommerce-cart table.woocommerce-cart-form__contents .product-thumbnail::before,
 body.woocommerce-cart table.woocommerce-cart-form__contents .product-remove::before {display:none!important;}
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-price,
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-quantity,
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-subtotal {
  display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;
  text-align:center!important;gap:5px;font-size:14px;line-height:1.4;
  border-top:1px solid #edf0ef!important;padding-top:8px!important;grid-row:2;
 }
 body.woocommerce-cart table.woocommerce-cart-form__contents td.product-price {grid-column:1;}
 body.woocommerce-cart table.woocommerce-cart-form__contents td.product-quantity {grid-column:2;}
 body.woocommerce-cart table.woocommerce-cart-form__contents td.product-subtotal {grid-column:3;}
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-price::before,
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-quantity::before,
 body.woocommerce-cart table.woocommerce-cart-form__contents tr.cart_item > td.product-subtotal::before {
  float:none!important;font-size:12px;font-weight:600;
 }
 body.woocommerce-cart .woocommerce-cart-form__contents .quantity {margin:0!important;max-width:100%;min-width:0;}
 body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty {width:34px!important;min-width:24px;padding:4px 0!important;font-size:14px;}
 body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.plus,
 body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.minus {width:26px;min-width:24px;padding:0;}
 body.woocommerce-cart .co-cart-editors {margin:6px 0 0!important;}
 body.woocommerce-cart .co-cart-editors .co-group,
 body.woocommerce-cart .co-cart-editors .co-field {margin:0 0 5px!important;padding:0!important;}
 body.woocommerce-cart .co-cart-editors .co-label {font-size:12px;margin-bottom:4px;}
 body.woocommerce-cart .co-cart-editors .co-choices {display:flex!important;flex-wrap:wrap;gap:4px!important;}
 body.woocommerce-cart .co-cart-editors .co-choice {width:auto!important;min-width:44px!important;min-height:34px;font-size:12px;padding:5px 6px!important;margin:0!important;}
 body.woocommerce-cart .co-update-status:empty {display:none;}
 body.woocommerce-cart .cart_totals {padding:12px;border:1px solid #e2e6e5;border-radius:10px;background:#fff;box-sizing:border-box;}
 body.woocommerce-cart .cart_totals table {font-size:14px;margin-bottom:10px;}
 body.woocommerce-cart .cart_totals table td,
 body.woocommerce-cart .cart_totals table th {padding:9px 6px!important;line-height:1.5;}
 body.woocommerce-cart .cart_totals .woocommerce-shipping-destination {font-size:12px;margin:5px 0;}
 body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {padding:8px 0 0;}
 body.woocommerce-cart .cart_totals .checkout-button {margin:0!important;padding:12px!important;min-height:44px;font-size:16px!important;border-radius:6px;}
}

/* 1.2.41: remove leftover Kadence title-area spacing on checkout only. */
html body.woocommerce-checkout:not(.woocommerce-order-received) #primary.content-area {
 margin-top:8px!important;
 padding-top:0!important;
}
html body.woocommerce-checkout:not(.woocommerce-order-received) #main > article.page,
html body.woocommerce-checkout:not(.woocommerce-order-received) article.page > .entry-content-wrap,
html body.woocommerce-checkout:not(.woocommerce-order-received) article.page .entry-content {
 margin-top:0!important;
 padding-top:0!important;
}
html body.woocommerce-checkout:not(.woocommerce-order-received) article.page .entry-content > .woocommerce,
html body.woocommerce-checkout:not(.woocommerce-order-received) .wcf-embed-checkout-form,
html body.woocommerce-checkout:not(.woocommerce-order-received) .wcf-embed-checkout-form .wcf-order-wrap {
 margin-top:0!important;
 padding-top:0!important;
}
html body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout {
 margin-top:0!important;
}

/* 1.2.42: compact Cart page outer spacing and gap before totals. */
html body.woocommerce-cart #primary.content-area {
 margin-top:0!important;padding-top:0!important;
}
html body.woocommerce-cart #main > article.page,
html body.woocommerce-cart article.page > .entry-content-wrap,
html body.woocommerce-cart article.page .entry-content,
html body.woocommerce-cart article.page .entry-content > .woocommerce {
 margin-top:0!important;padding-top:0!important;
}
html body.woocommerce-cart .kadence-woo-cart-form-wrap > form {
 margin-top:0!important;margin-bottom:0!important;
}
html body.woocommerce-cart .kadence-woo-cart-form-wrap > form > h2 {
 margin-top:0!important;margin-bottom:10px!important;
}
html body.woocommerce-cart .woocommerce-cart-form__contents {margin-bottom:8px!important;}
html body.woocommerce-cart .kadence-woo-cart-form-wrap .cart-collaterals {
 clear:both!important;float:none!important;width:100%!important;max-width:none!important;
 margin-top:10px!important;padding-top:0!important;
}
html body.woocommerce-cart .cart-collaterals .cart_totals {
 float:none!important;width:100%!important;max-width:none!important;margin-top:0!important;
}
html body.woocommerce-cart .cart_totals > h2 {margin-top:0!important;margin-bottom:10px!important;}
html body.woocommerce-cart .cart_totals table {margin-bottom:8px!important;}
html body.woocommerce-cart .wc-proceed-to-checkout {padding-top:8px!important;padding-bottom:0!important;}
html body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {margin-bottom:0!important;}

/* 1.2.43: compact totals, labels left and amounts aligned to the right. */
html body.woocommerce-cart .kadence-woo-cart-form-wrap .cart-collaterals {margin-top:6px!important;}
html body.woocommerce-cart .cart_totals > h2 {margin-bottom:6px!important;}
html body.woocommerce-cart .cart_totals table.shop_table {width:100%!important;margin-bottom:4px!important;border-collapse:collapse;}
html body.woocommerce-cart .cart_totals table.shop_table th,
html body.woocommerce-cart .cart_totals table.shop_table td {
 padding:7px 10px!important;vertical-align:top!important;line-height:1.45;
}
html body.woocommerce-cart .cart_totals table.shop_table th {text-align:left!important;width:30%;}
html body.woocommerce-cart .cart_totals table.shop_table td {text-align:right!important;}
html body.woocommerce-cart .cart_totals table.shop_table td::before {text-align:left!important;}
html body.woocommerce-cart .cart_totals table.shop_table .amount {white-space:nowrap;}
html body.woocommerce-cart .cart_totals #shipping_method {margin:0!important;padding:0!important;text-align:right!important;}
html body.woocommerce-cart .cart_totals #shipping_method li {margin:0 0 4px!important;padding:0!important;list-style:none;}
html body.woocommerce-cart .cart_totals #shipping_method li label {display:inline;}
html body.woocommerce-cart .cart_totals .woocommerce-shipping-destination {margin:4px 0 0!important;font-size:12px;line-height:1.4;}
html body.woocommerce-cart .cart_totals .shipping-calculator-button {font-size:13px;}
html body.woocommerce-cart .cart_totals .order-total th,
html body.woocommerce-cart .cart_totals .order-total td {font-weight:700;padding-top:9px!important;padding-bottom:9px!important;}
html body.woocommerce-cart .wc-proceed-to-checkout {padding-top:5px!important;}
@media(max-width:767px) {
 html body.woocommerce-cart .cart_totals table.shop_table th,
 html body.woocommerce-cart .cart_totals table.shop_table td {padding:7px 4px!important;}
 html body.woocommerce-cart .cart_totals .woocommerce-shipping-totals td::before {margin-right:8px;}
 html body.woocommerce-cart .cart_totals #shipping_method {overflow:hidden;}
}

/* 1.2.44: delivery names left, individual delivery prices right. */
html body.woocommerce-cart .cart_totals #shipping_method li {
 display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;
 align-items:baseline!important;column-gap:6px!important;width:100%!important;text-align:left!important;
}
html body.woocommerce-cart .cart_totals #shipping_method li > input.shipping_method {
 grid-column:1;margin:0!important;float:none!important;align-self:center;
}
html body.woocommerce-cart .cart_totals #shipping_method li > label {
 grid-column:2;display:flex!important;align-items:baseline;flex-wrap:wrap;gap:4px 8px;
 min-width:0;width:100%!important;margin:0!important;text-align:left!important;
}
html body.woocommerce-cart .cart_totals #shipping_method li > label .amount {
 margin-left:auto!important;float:none!important;text-align:right!important;
}
html body.woocommerce-cart .cart_totals #shipping_method li > input[type=hidden] + label {grid-column:1 / -1;}
/* Remove only the empty action row; enabled Update cart and coupons stay usable. */
html body.woocommerce-cart table.woocommerce-cart-form__contents td.actions {
 padding-top:4px!important;padding-bottom:4px!important;
}
html body.woocommerce-cart table.woocommerce-cart-form__contents tr:has(> td.actions button[name="update_cart"]:disabled):not(:has(.coupon)):not(:has(td.actions > a)):not(:has(td.actions > button:not([name="update_cart"]))) {
 display:none!important;
}
html body.woocommerce-cart .woocommerce-cart-form__contents {margin-bottom:0!important;}
html body.woocommerce-cart .kadence-woo-cart-form-wrap .cart-collaterals {margin-top:4px!important;}
html body.woocommerce-cart .cart_totals > h2 {margin-top:0!important;margin-bottom:4px!important;}
