How to block dynamic checkout cart buttons with a terms and conditions button in cart

I have customized code in my dawn theme to add a terms and conditions checkbox. However, my Shoppay and Google pay buttons are bypassing this mandatory checkbox.

The code is in Edit code> Templates> cart-termsbox.liquid for anyone that can help:

{{ block.settings.prelink_text }} {{ block.settings.link_text }} {{ block.settings.postlink_text }}

#termsbox_id { transform: scale({{ block.settings.checkbox_scale }}); } {% if block.settings.mandatory %} #dynamic-checkout-cart, [name="checkout",][type="submit"] { {% if cart.attributes[block.settings.internal_label] != "No" %} pointer-events: auto; opacity: 1.0; {% else %} pointer-events: none; opacity: 0.5; {% endif %} } {% endif %}

Hey @CFTechsupport ,

Maybe put the buy now buttons in display none on page load and then through a JS click event, check if the box is ticked and switch them to display: block?