/* Global defaults. Individual block styles and Header Builder row settings remain editable. */
body.hg-site {
 --wc-form-color-background:var(--hg-surface);--wc-form-color-text:var(--hg-text);--wc-form-border-color:var(--hg-border);--wc-form-border-radius:2px;--wc-form-border-width:1px;
 --wd-primary-color:var(--hg-accent); --wd-main-bgcolor:var(--hg-bg);
 --wd-text-font:var(--hg-body-font); --wd-text-color:var(--hg-text); --wd-text-font-size:var(--hg-body-size);
 --wd-title-font:var(--hg-heading-font); --wd-title-color:var(--hg-text);
 --wd-entities-title-font:var(--hg-heading-font); --wd-entities-title-color:var(--hg-text); --wd-entities-title-color-hover:var(--hg-accent);
 --wd-widget-title-font:var(--hg-heading-font); --wd-widget-title-color:var(--hg-text);
 --wd-link-color:var(--hg-accent); --wd-link-color-hover:var(--hg-text);
 --wd-form-color:var(--hg-text); --wd-form-bg:var(--hg-surface); --wd-form-brd-color:var(--hg-border); --wd-form-brd-color-focus:var(--hg-accent); --wd-form-placeholder-color:var(--hg-muted);
 --bgcolor-white:var(--hg-bg); --bgcolor-gray-100:var(--hg-surface); --bgcolor-gray-200:var(--hg-surface); --bgcolor-gray-300:var(--hg-surface);
 --brdcolor-gray-200:var(--hg-border); --brdcolor-gray-300:var(--hg-border); --brdcolor-gray-400:var(--hg-border);
 --color-gray-400:var(--hg-muted); --color-gray-500:var(--hg-muted); --color-gray-600:var(--hg-text); --color-gray-700:var(--hg-text); --color-gray-800:var(--hg-text); --color-gray-900:var(--hg-text);
 background:var(--hg-bg);color:var(--hg-text);font-family:var(--hg-body-font);font-size:var(--hg-body-size);line-height:1.65;
}
:where(body.hg-site) :where(h1,h2,h3,h4,h5,h6){font-family:var(--hg-heading-font);color:var(--hg-text);line-height:1.15;}
:where(body.hg-site) :where(h1){font-size:var(--hg-heading-size);}
:where(body.hg-site) :where(a){color:var(--hg-accent);}
body.hg-site :where(.main-page-wrapper,.website-wrapper,.footer-container,.copyrights-wrapper){background-color:var(--hg-bg);color:var(--hg-text);}
:where(body.hg-site) :where(input,select,textarea){font:inherit;accent-color:var(--hg-accent);}
:where(body.hg-site) :where(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]),select,textarea){background-color:var(--hg-surface);color:var(--hg-text);border:1px solid var(--hg-border);border-radius:2px;}
:where(body.hg-site) :where(input,textarea)::placeholder{color:var(--hg-muted);opacity:1;}
:where(body.hg-site) :where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--hg-accent);outline-offset:3px;}
/* Classic WooCommerce public components, including product/account/cart views. */
body.hg-site .woocommerce :where(a.button,button.button,input.button),body.hg-site :where(.wc-block-components-button:not(.is-link)){
 background:var(--hg-accent);color:var(--hg-on-accent);border:1px solid transparent;border-radius:0;font-family:var(--hg-heading-font);font-weight:500;padding:14px 24px;line-height:1.4;
}
body.hg-site .woocommerce :where(a.button,button.button,input.button):hover,body.hg-site :where(.wc-block-components-button:not(.is-link)):hover{filter:brightness(1.1);}
body.hg-site :where(button:disabled,.button.disabled){opacity:.55;cursor:not-allowed;}
body.hg-site .woocommerce :where(.price,.amount){color:var(--hg-accent);}
body.hg-site .woocommerce :where(table.shop_table,.woocommerce-MyAccount-navigation,.woocommerce-checkout-payment,.woocommerce-info,.woocommerce-message){background-color:var(--hg-surface);color:var(--hg-text);border-color:var(--hg-border);}
body.hg-site .woocommerce :where(td,th){border-color:var(--hg-border);}
body.hg-site .woocommerce :where(.woocommerce-error){background-color:#391c1c;color:#ffe8e8;border-color:#e88383;}
body.hg-site .woocommerce :where(input.input-text,select,textarea){background:var(--hg-surface);color:var(--hg-text);border-color:var(--hg-border);}
/**** Documented WooCommerce Blocks theme hooks (no layout/checkout template replacement). ****/
body.hg-site .wc-block-cart__submit-container{background-color:var(--hg-bg);}
body.hg-site .wc-block-components-order-summary-item__quantity{background:var(--hg-surface);border-color:var(--hg-border);box-shadow:0 0 0 2px var(--hg-bg);color:var(--hg-text);}
/* Select2 dropdowns are mounted outside the checkout form. */
body.hg-site :where(.select2-dropdown,.select2-container--default .select2-selection--single){background:var(--hg-surface);color:var(--hg-text);border-color:var(--hg-border);}
body.hg-site .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--hg-text);}
body.hg-site .select2-results__option--highlighted[aria-selected]{background:var(--hg-accent);color:var(--hg-on-accent);}
/* Shared defaults for the editable landing and new reusable patterns. */
:where(body.hg-site,.editor-styles-wrapper) :where(.hg-native-section){background:var(--hg-bg);color:var(--hg-text);font-family:var(--hg-body-font);}
:where(body.hg-site,.editor-styles-wrapper) :where(.hg-native-section h1,.hg-native-section h2,.hg-native-section h3,.hg-native-section h4){font-family:var(--hg-heading-font);}
:where(body.hg-site,.editor-styles-wrapper) :where(.hg-section){padding-block:var(--hg-section-space);}
:where(body.hg-site,.editor-styles-wrapper) :where(.hg-card){padding:28px;border:1px solid var(--hg-border);background:var(--hg-surface);}
@media(max-width:767px){
 body.hg-site{--wd-text-font-size:var(--hg-mobile-size);font-size:var(--hg-mobile-size);}
 :where(body.hg-site) :where(h1){font-size:var(--hg-mobile-heading);}
 :where(body.hg-site,.editor-styles-wrapper) :where(.hg-section){padding-block:var(--hg-mobile-space);}
}
@media(prefers-reduced-motion:reduce){:where(body.hg-site){scroll-behavior:auto;}}
body.hg-site.hg-page {
 --background:var(--hg-bg);--foreground:var(--hg-text);--card:var(--hg-surface);--card-foreground:var(--hg-text);
 --popover:var(--hg-surface);--popover-foreground:var(--hg-text);--primary:var(--hg-accent);--primary-foreground:var(--hg-on-accent);
 --secondary:var(--hg-surface);--secondary-foreground:var(--hg-text);--muted:var(--hg-surface);--muted-foreground:var(--hg-muted);
 --accent:var(--hg-accent);--accent-foreground:var(--hg-on-accent);--border:var(--hg-border);--input:var(--hg-border);--ring:var(--hg-accent);
 --font-sans:var(--hg-body-font);--gradient-green:linear-gradient(100deg,color-mix(in srgb,var(--hg-accent),white 25%),var(--hg-accent),color-mix(in srgb,var(--hg-accent),black 15%));
}
/* Narrow-screen compatibility for WooCommerce 11.2's fixed cart grid.
   Keep this small adapter isolated; recheck when WooCommerce changes its cart markup. */
@media(max-width:480px){
 body.hg-site .wp-block-woocommerce-cart-line-items-block{border-collapse:collapse;}
 body.hg-site .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row{grid-template-columns:48px minmax(0,1fr) auto;column-gap:10px;}
 body.hg-site .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product{grid-column:2;min-width:0;overflow-wrap:anywhere;}
 body.hg-site .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__quantity{flex-wrap:wrap;padding-right:0;gap:8px;}
 body.hg-site .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image{padding-right:0;}
}
body.hg-site .woocommerce #payment{background:var(--hg-surface);color:var(--hg-text);}
body.hg-site .woocommerce #payment div.payment_box{background:var(--hg-bg);color:var(--hg-text);}
body.hg-site .woocommerce #payment div.payment_box::before{border-bottom-color:var(--hg-bg);}
.hg-global-footer{border-top:1px solid var(--hg-border);background:var(--hg-bg);color:var(--hg-text);}
.hg-shared-footer{max-width:1200px;margin-inline:auto;padding-inline:24px;box-sizing:border-box;font-family:var(--hg-body-font);}
.hg-shared-footer .max-w-7xl{max-width:1200px;}.hg-shared-footer .mx-auto{margin-inline:auto;}.hg-shared-footer img{max-width:100%;height:auto;}
.hg-standalone-form .hg-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden;}
.hg-standalone-form .hg-field{display:block;margin-block:12px;border-color:var(--hg-border);}
.hg-standalone-form .hg-field:focus-within{border-color:var(--hg-accent);}
.hg-standalone-form .hg-field input,.hg-standalone-form .hg-field textarea{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;box-sizing:border-box;}
.hg-standalone-form button[type=submit]{padding:14px 24px;border:0;background:var(--hg-accent);color:var(--hg-on-accent);font:500 18px var(--hg-heading-font);cursor:pointer;}
.hg-purchase-panel{grid-column:1/-1;padding:24px;border:1px solid var(--hg-accent);background:var(--hg-surface);margin-block:24px;}
.hg-purchase-panel button{padding:14px 24px;border:0;background:var(--hg-accent);color:var(--hg-on-accent);font:500 18px var(--hg-heading-font);cursor:pointer;}
.hg-purchase-panel button:disabled{opacity:.5;cursor:not-allowed;}.hg-purchase-panel a{display:inline-block;text-decoration:underline;}.hg-purchase-panel a[hidden]{display:none;}
