/* Keep the real provider button in its original form/SDK container. */
.cvco-product-actions-ready .cvpd-buy-now { display:none!important; }
.cvco-other-payment { width:100%; min-height:52px; display:block; background:#111416; color:#fff; border:0; cursor:pointer; letter-spacing:.12em; }
.cvco-other-payment:focus-visible { outline:2px solid #1263bb; outline-offset:3px; }
.cvco-product-actions-ready .single_add_to_cart_button { min-height:55px!important; margin-bottom:16px!important; }
.cvco-product-actions-ready #ppc-button-ppcp-gateway,.cvco-product-actions-ready .ppc-button-wrapper { margin-top:0!important; margin-bottom:16px!important; }
.cvco-other-payment { min-height:55px!important; margin-top:0!important; margin-bottom:16px!important; }

/* Match the provider's 55px button height; gaps do not include theme margins. */
.cvco-product-actions-ready .single_add_to_cart_button,
.cvco-other-payment {height:55px!important;min-height:55px!important;padding:0 16px!important;line-height:1.25!important;font-size:16px!important;box-sizing:border-box!important;}
.cvco-product-actions-ready form.cart{margin-bottom:0!important;}
.cvco-product-actions-ready .cvpd-variation-help.is-complete{display:none!important;}
.cvco-product-actions-ready .ppc-button-wrapper #ppc-button-ppcp-gateway{margin-bottom:0!important;}

/* Reserve space while the provider initializes; support current and legacy containers. */
.cvco-product-actions-ready #ppc-button-ppcp-gateway-v6,
.cvco-product-actions-ready #ppc-button-ppcp-gateway {min-height:48px;margin:0 0 16px;}
.cvco-product-actions-ready .cvpd-payment-toggle.cvco-other-payment {display:block;width:100%;}

/* 1.1: one gap per boundary, no text line inside the three-button stack. */
.cvco-product-actions-ready .cvpd-variation-help:not(.has-error){position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;margin:0!important;padding:0!important;}
.cvco-product-actions-ready .cvpd-variation-help.has-error{display:block!important;color:#b42318;margin:0 0 12px!important;font-size:13px;}
.cvco-product-actions-ready > .ppc-button-wrapper{margin:0 0 16px!important;padding:0!important;}
.cvco-product-actions-ready .ppc-button-wrapper :is(#ppc-button-ppcp-gateway-v6,#ppc-button-ppcp-gateway){min-height:55px;margin:0!important;}
.cvco-product-actions-ready :is(#ppc-button-ppcp-gateway-v6,#ppc-button-ppcp-gateway):empty::before{content:'';display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:55px;width:100%;background:transparent;color:#666;font:14px/1.4 Arial,sans-serif;border-radius:4px;}
.cvco-product-actions-ready .single_variation_wrap,.cvco-product-actions-ready .woocommerce-variation-add-to-cart{margin-bottom:0!important;padding-bottom:0!important;}
.cvco-product-actions-ready + .cvpd-payment{margin-top:0!important;}
.cvco-product-actions-ready :is(#ppc-button-ppcp-gateway-v6,#ppc-button-ppcp-gateway).cvco-provider-slow:empty::before{content:'Payment is taking longer. Please use Other Payment Methods.';text-align:center;padding:8px 14px;font-size:12px;}
/* SDK v6 uses a 48px native button; keep each surrounding control and slot identical. */
.cvco-product-actions-ready .single_add_to_cart_button,.cvco-other-payment{height:48px!important;min-height:48px!important;}
.cvco-product-actions-ready .ppc-button-wrapper :is(#ppc-button-ppcp-gateway-v6,#ppc-button-ppcp-gateway){min-height:48px;}
.cvco-product-actions-ready :is(#ppc-button-ppcp-gateway-v6,#ppc-button-ppcp-gateway):empty::before{min-height:48px;}

/* Keep provider loading explicit rather than an unexplained empty button slot. */
.cvco-product-actions-ready :is(#ppc-button-ppcp-gateway-v6,#ppc-button-ppcp-gateway):empty::before{content:'Loading PayPal…';text-align:center;}
.cvco-product-actions-ready :is(#ppc-button-ppcp-gateway-v6,#ppc-button-ppcp-gateway).cvco-provider-slow:empty::before{content:'PayPal is still loading. You can use Other Payment Methods.';}
