/* GENGA TOMMY COMMERCE PARITY — isolated 2026-12-04 */ add_action('wp_enqueue_scripts', function (): void { wp_add_inline_style('gengalegends-system', <<<'CSS' body.single-product div.product .summary.entry-summary form.cart{display:grid!important;grid-template-columns:134px minmax(0,1fr)!important;gap:10px!important;align-items:stretch!important;width:100%!important} body.single-product div.product .summary.entry-summary form.cart>.quantity.genga-pdp-quantity{grid-column:1!important;order:1!important;width:134px!important;max-width:134px!important;height:50px!important;margin:0!important} body.single-product div.product .summary.entry-summary form.cart>.single_add_to_cart_button{grid-column:2!important;order:1!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:50px!important;margin:0!important;padding:0 18px!important;border-radius:14px!important;color:#fff!important;font-size:.9rem!important;font-weight:900!important;line-height:1!important;letter-spacing:.02em!important;text-indent:0!important;white-space:nowrap!important} body.single-product div.product .summary.entry-summary form.cart>.single_add_to_cart_button:before,body.single-product div.product .summary.entry-summary form.cart>.single_add_to_cart_button:after{display:none!important;content:none!important} body.single-product div.product .summary.entry-summary form.cart>.genga-buy-now-button{grid-column:1/-1!important;order:2!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:54px!important;margin:0!important;border-radius:14px!important} body.single-product div.product .summary.entry-summary form.cart>.xcotton-product-detail-banner-container{grid-column:1/-1!important;order:3!important;width:100%!important} body.single-product div.product .summary.entry-summary form.cart>#awx-express-checkout-button-separator{grid-column:1/-1!important;order:4!important;width:100%!important;margin:2px 0!important} body.single-product div.product .summary.entry-summary form.cart>#awx-express-checkout-wrapper{grid-column:1/-1!important;order:5!important;display:block!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;padding:0!important} body.single-product #awx-express-checkout-button{display:block!important;width:100%!important} body.single-product #awx-express-checkout-button .awx-ec-button{display:block!important;width:100%!important;margin:0 0 10px!important;border-radius:12px!important;overflow:hidden!important} body.single-product #awx-express-checkout-button .awx-ec-button iframe{display:block!important;width:100%!important;min-height:48px!important} body.single-product .genga-fast-pay-fallback{display:none!important} body.single-product div.product .summary.entry-summary form.cart>.genga-more-payment-methods{grid-column:1/-1!important;order:6!important;width:100%!important;margin:0!important} body.woocommerce-checkout .genga-checkout-select,body.woocommerce-checkout .genga-checkout-select__trigger,body.woocommerce-checkout .genga-checkout-select__menu{display:none!important} body.woocommerce-checkout select{visibility:visible!important;opacity:1!important;pointer-events:auto!important} @media(max-width:600px){body.single-product div.product .summary.entry-summary form.cart{grid-template-columns:118px minmax(0,1fr)!important;gap:9px!important}body.single-product div.product .summary.entry-summary form.cart>.quantity.genga-pdp-quantity{width:118px!important;max-width:118px!important}body.single-product div.product .summary.entry-summary form.cart>.single_add_to_cart_button{padding:0 10px!important;font-size:.8rem!important}} CSS ); wp_add_inline_script('gengalegends-site', <<<'JS' (function(){ function removeFallbacks(root){(root||document).querySelectorAll('.genga-fast-pay-fallback').forEach(function(el){el.remove();});} function makeHeaderCartLink(){document.querySelectorAll('[data-genga-cart-toggle]').forEach(function(btn){if(btn.tagName==='A')return;var a=document.createElement('a');Array.from(btn.attributes).forEach(function(attr){if(attr.name!=='type'&&attr.name!=='aria-expanded'&&attr.name!=='aria-controls')a.setAttribute(attr.name,attr.value);});a.href='/cart/';a.innerHTML=btn.innerHTML;a.setAttribute('aria-label',btn.getAttribute('aria-label')||'View cart');btn.replaceWith(a);});} function boot(){ makeHeaderCartLink(); removeFallbacks(document); var wrap=document.getElementById('awx-express-checkout-wrapper'); if(wrap){new MutationObserver(function(){removeFallbacks(wrap);}).observe(wrap,{childList:true,subtree:true});} document.querySelectorAll('body.single-product form.cart').forEach(function(form){var add=form.querySelector('.single_add_to_cart_button');if(add){add.textContent='ADD TO CART';add.setAttribute('aria-label','Add to cart');}var sep=form.querySelector('#awx-express-checkout-button-separator');if(sep)sep.textContent='— OR PAY WITH —';}); } if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot(); })(); JS , 'after'); }, 1300);