/* Classic cart only. Retain the native submit node for WooCommerce's handler.
   No hiding until the auto-update controller has initialized successfully.
   No-JS / unavailable-engine / failed-request cases retain the native fallback. */
body.woocommerce-cart form.woocommerce-cart-form.hprc-cart-auto-update-ready button[name="update_cart"],
body.woocommerce-cart form.woocommerce-cart-form.hprc-cart-auto-update-ready input[type="submit"][name="update_cart"] {
    display: none !important;
}

/* Routine feedback is announced without adding another permanent cart panel. */
body.woocommerce-cart .hprc-cart-auto-status:not(.is-error) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
body.woocommerce-cart .hprc-cart-auto-status.is-error {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 12px 0;
    padding: 12px 16px;
    border: 1px solid #d9b1a6;
    border-radius: 4px;
    color: #703d30;
    background: #fff9f7;
    overflow-wrap: anywhere;
}
