.single-product .wp-block-post-title { font-size: 1.85rem; }
#wcpay-express-checkout-element, #wcpay-express-checkout-element iframe { height: 40px !important; }
#ppc-button-ppcp-gateway, #ppc-button-ppcp-gateway iframe { height: 40px !important; overflow: hidden; }

/* Checkout express payment buttons: 2-column grid on desktop only.
   Below 1000px the buttons are too narrow for PayPal/Pay-in-4 branding to render without clipping, so stack them full-width instead. */
@media (min-width: 1000px) {
  .woocommerce-checkout .wc-block-components-express-payment__event-buttons { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 999px) {
  .woocommerce-checkout .wc-block-components-express-payment__event-buttons { grid-template-columns: 1fr !important; }
}

/* Footer: fix horizontal overflow on mobile/tablet.
   The Contact Us / Follow Us columns used nowrap flex rows with an unbreakable email link,
   which forced the whole site ~160px wider than the viewport. Scoped to the footer template
   part tag itself (not a body/page-specific class) so it applies on every template that uses it. */
@media (max-width: 999px) {
  footer.wp-block-template-part .is-layout-flex { flex-wrap: wrap !important; }
  footer.wp-block-template-part .is-layout-flex > * { min-width: 0 !important; }
  footer.wp-block-template-part a { overflow-wrap: break-word; word-break: break-word; }
  footer.wp-block-template-part > .is-layout-flex.alignfull { flex-direction: column !important; align-items: stretch !important; }
  footer.wp-block-template-part > .is-layout-flex.alignfull > * { width: 100% !important; }
}



/* GGH purple accents: preserve existing layout and typography. */
body.home .wp-site-blocks main .wp-block-heading { color: #3F8F66 !important; }
body.home .wp-site-blocks main .wp-block-button:not(.is-style-outline) .wp-block-button__link { background-color: #6546A3 !important; color: #FFFCF5 !important; }
body.home .wp-site-blocks main .wp-block-button.is-style-outline .wp-block-button__link { color: #6546A3 !important; border-color: #6546A3 !important; }
body.home .wp-site-blocks main .wp-block-button__link:hover { background-color: #503582 !important; color: #FFFCF5 !important; }
header.wp-block-template-part .wp-block-navigation a { color: #FFFFFF !important; }
footer.wp-block-template-part a { color: #FFFFFF !important; }
body.home .wp-site-blocks main a:focus-visible { outline: 2px solid #6546A3; outline-offset: 4px; }

header.wp-block-template-part > .wp-block-group:first-child { background-color: #503582 !important; }
footer.wp-block-template-part > .wp-block-group { background-color: #503582 !important; }


/* GGH Blog card: whole card clicks through to /blog/, via an invisible stretched button link added to the card. */
.wp-block-buttons:has(.ggh-card-stretched-link) {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  z-index: 2;
}
.ggh-card-stretched-link {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ggh-card-stretched-link .wp-block-button__link {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* GGH Blog listing: excerpt clamped to a fixed number of lines with an ellipsis, roughly matching the featured image height, instead of a hard pixel cutoff mid-word. */
.ggh-blog-excerpt-col .wp-block-post-date {
  margin: 0 0 4px 0;
}
.ggh-blog-excerpt-col .wp-block-post-excerpt {
  margin-top: 0;
}
.ggh-blog-excerpt-col .wp-block-post-excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* GGH product page tweaks 2026-09-17: title size, express-pay spacing, description headings, meta stacking, related products heading */
.single-product .wcpay-express-checkout-wrapper,
.single-product .ppc-button-wrapper {
  border-radius: 8px !important;
  overflow: hidden !important;
}
.single-product .wcpay-express-checkout-wrapper {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}
.single-product .ppc-button-wrapper {
  margin-top: 14px !important;
  margin-bottom: 10px !important;
}
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #3F8F66 !important;
  margin: 1.5em 0 0.5em !important;
}
.single-product .wp-block-woocommerce-product-meta .wp-block-group.is-nowrap {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
}
.single-product .wp-block-woocommerce-product-meta .wp-block-group.is-nowrap > * {
  width: 100% !important;
}
.single-product .wp-block-woocommerce-related-products h2.wp-block-heading {
  font-size: 1.85rem !important;
}


/* GGH: hide broken product-page Apple Pay express button (2026-09) */
.single-product .wcpay-express-checkout-wrapper {
  display: none !important;
}


/* GGH: restore natural PayPal button spacing on product page (undo the checkout-only 40px squeeze) */
.single-product #ppc-button-ppcp-gateway,
.single-product #ppc-button-ppcp-gateway iframe {
  height: auto !important;
  overflow: visible !important;
}


/* GGH: Place Order button - match other primary buttons' padding (was too thin/narrow) */
.wc-block-components-checkout-place-order-button {
  padding: 14px 32px !important;
  min-height: 48px !important;
}