body.twincammq-cart-error .wc-block-cart__submit-button,
body.twincammq-cart-error .wc-block-checkout__proceed-to-checkout,
body.twincammq-cart-error a.checkout-button,
body.twincammq-cart-error button.checkout-button,
body.twincammq-cart-error div.wc-proceed-to-checkout a.button,
body.twincammq-cart-error div.wc-proceed-to-checkout button.button {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/*
 * Error notices (e.g. quantity limit messages) must not be dismissible without actually
 * resolving the underlying issue, otherwise a customer could simply close the message and
 * bypass the checkout restriction above. Non-error notices (success/info) are unaffected.
 */
.wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__dismiss {
    display: none !important;
}