/* Hide header and footer on checkout page */
body.woocommerce-checkout header,
body.woocommerce-checkout #masthead,
body.woocommerce-checkout .site-header,
body.woocommerce-checkout footer,
body.woocommerce-checkout #colophon,
body.woocommerce-checkout .site-footer {
  display: none !important;
}

/* Hide header and footer on cart/jz7-checkout page */
body.woocommerce-cart header,
body.woocommerce-cart #masthead,
body.woocommerce-cart .site-header,
body.woocommerce-cart footer,
body.woocommerce-cart #colophon,
body.woocommerce-cart .site-footer {
  display: none !important;
}

/* Mobile fix for cart/checkout actions */
@media (max-width: 768px) {
  body.woocommerce-cart .shop_table.cart,
  body.woocommerce-cart .shop_table.cart tbody,
  body.woocommerce-cart .shop_table.cart tr,
  body.woocommerce-cart .shop_table.cart td,
  body.woocommerce-cart .shop_table.cart th {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .shop_table.cart td.actions,
  body.woocommerce-cart .shop_table.cart .actions {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .shop_table.cart td.actions .coupon,
  body.woocommerce-cart .shop_table.cart td.actions .coupon *,
  body.woocommerce-cart .shop_table.cart td.actions button[name="apply_coupon"],
  body.woocommerce-cart .shop_table.cart td.actions button[name="update_cart"],
  body.woocommerce-cart input[name="update_cart"] {
    display: none !important;
  }

  body.woocommerce-cart .shop_table.cart td.actions .coupon {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.woocommerce-cart .jz-actions-row,
  body.woocommerce-cart .jz-buttons-right,
  body.woocommerce-cart .actions-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .jz-buttons-right > :not(.jz-checkout-cta),
  body.woocommerce-cart .actions-right > :not(.jz-checkout-cta) {
    display: none !important;
  }

  body.woocommerce-cart .jz-checkout-cta,
  body.woocommerce-cart .actions-right .checkout-btn,
  body.woocommerce-cart .wc-proceed-to-checkout a,
  body.woocommerce-cart a.checkout-button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    border-radius: 14px !important;
    background: #22c55e !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }
}
