/* Cart and checkout: quieter presentation; native totals and notices remain. */
body.woocommerce-cart #main,
body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) #main {
  background: #fff !important;
}
body.woocommerce-cart #main > .container > .section-padding.border-top.section-margin:has(.site-iconbox),
body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) #main > .container > .section-padding.border-top.section-margin:has(.site-iconbox) {
  display: none !important;
}
body.woocommerce-cart #main .woocommerce-cart-form,
body.woocommerce-cart #main .cart-collaterals .cart_totals {
  background: #fff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: none !important;
}
body.woocommerce-cart #main .cart-collaterals .cart_totals {
  max-width: 760px !important;
}
body.woocommerce-cart #main .cart-collaterals .cart_totals::after {
  content: none !important;
  display: none !important;
}
/* The tariff remains visible in the order summary; remove only its promo bar. */
body.woocommerce-cart #main .woocommerce-cart-form > .klb-free-shipping,
body.woocommerce-checkout .gemobile-checkout-page .klb-free-shipping {
  display: none !important;
}
body.woocommerce-cart #main table.shop_table.cart .product-thumbnail {
  width: 112px !important;
}
body.woocommerce-cart #main table.shop_table.cart .product-thumbnail img {
  display: block !important;
  width: 96px !important;
  height: 120px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
  border-radius: 8px !important;
  transform: none !important;
}
body.woocommerce-cart #main table.shop_table.cart .product-name a {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  letter-spacing: normal !important;
}
body.woocommerce-cart #main .cart-collaterals .cart_totals h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
body.woocommerce-cart #main .wc-proceed-to-checkout .checkout-button {
  min-height: 50px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: #111 !important;
  color: #fff !important;
}
body.woocommerce-cart #main .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: baseline !important;
}
body.woocommerce-cart #main .cart-collaterals .cart_totals table.shop_table th,
body.woocommerce-cart #main .cart-collaterals .cart_totals table.shop_table td {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 12px 0 !important;
  font-weight: 600 !important;
}
body.woocommerce-cart #main .cart-collaterals .cart_totals table.shop_table td {
  text-align: right !important;
}
body.woocommerce-cart #main .cart-collaterals .cart_totals .order-total .amount {
  font-size: 28px !important;
  font-weight: 750 !important;
}
/* Updating quantities stays available; an inactive action adds no extra row. */
body.woocommerce-cart #main table.shop_table.cart tr:last-child td.actions {
  min-height: 0 !important;
  padding: 12px 0 0 !important;
}
body.woocommerce-cart #main table.shop_table.cart tr:last-child td.actions:has(button[name="update_cart"]:disabled) {
  display: none !important;
}
body.woocommerce-cart #main table.shop_table.cart tr:last-child td.actions:has(button[name="update_cart"]:not(:disabled)) {
  display: table-cell !important;
}
body.woocommerce-cart #main table.shop_table.cart td.actions button[name="update_cart"] {
  min-height: 44px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}
@media (max-width: 900px) {
  body.woocommerce-cart #main .woocommerce-cart-form,
  body.woocommerce-cart #main .cart-collaterals .cart_totals {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  body.woocommerce-cart #main table.shop_table.cart tr.cart_item {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr) 28px !important;
    gap: 10px 12px !important;
    align-items: start !important;
  }
  body.woocommerce-cart #main table.shop_table.cart tr.cart_item td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
  }
  body.woocommerce-cart #main table.shop_table.cart .product-thumbnail {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    width: 80px !important;
  }
  body.woocommerce-cart #main table.shop_table.cart .product-thumbnail img {
    width: 80px !important;
    height: 104px !important;
  }
  body.woocommerce-cart #main table.shop_table.cart .product-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding-right: 0 !important;
  }
  body.woocommerce-cart #main table.shop_table.cart .product-name a {
    font-size: 15px !important;
  }
  body.woocommerce-cart #main table.shop_table.cart tr.cart_item .product-price {
    display: none !important;
  }
  body.woocommerce-cart #main table.shop_table.cart .product-subtotal {
    grid-column: 2 / 4 !important;
    grid-row: 2 !important;
    text-align: left !important;
  }
  body.woocommerce-cart #main table.shop_table.cart .product-quantity {
    grid-column: 2 / 4 !important;
    grid-row: 3 !important;
    text-align: left !important;
  }
  body.woocommerce-cart #main table.shop_table.cart .product-remove {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    transform: none !important;
  }
  body.woocommerce-cart #main table.shop_table.cart tr.cart_item td::before {
    display: none !important;
  }
}
