/* 1.8.537 — fixes from the Dec 3 website review (THE-28). Loads last (inc/review-fixes-537.php). */

/* ---- P1-3 phone header: whole logo, never clipped (EN | ES is gone, so there is room) ---- */
@media (max-width: 480px) {
	.site-header .site-branding { overflow: visible; flex: 0 0 auto; min-width: auto; }
	.site-header .site-branding img.site-branding__logo--default,
	.site-header .site-branding img {
		height: 32px !important; width: auto !important; max-width: none !important; margin: 0 !important;
	}
}

/* ---- P1-1 Buy blank / Customize ---- */
.idx-boc-hide,
body.single-product form.cart .idx-boc-hide.idx-boc-hide.idx-boc-hide.idx-boc-hide.idx-boc-hide.idx-boc-hide { display: none !important; } /* beats the 524 two-button row rules */
.idx-eo--blank-or-customize { flex: 0 0 100%; width: 100%; margin: 0 0 1rem; }
.idx-eo--blank-or-customize .idx-eo__title { white-space: normal; overflow: visible; text-overflow: clip; }
.idx-boc__note { margin: .8rem 0 0; font-size: .95rem; line-height: 1.45; color: #0f143a; }
.idx-boc__note[hidden] { display: none; }

/* Never squeeze the buy buttons (was 20 px wide on desktop); no wallet button any more. */
body.single-product form.cart:has(.idx-eo--blank-or-customize) .single_add_to_cart_button,
body.single-product form.cart:has(.idx-eo--blank-or-customize) .idxbvg-cta--idxpd,
body.single-product form.cart:has(.idx-eo--blank-or-customize) .idxpd-customize-button {
	flex: 1 1 14rem !important;
	min-width: 14rem !important;
	white-space: normal !important;
}
body.single-product form.cart:has(.idx-eo--blank-or-customize) .idxbvg-cta--idxpd .idxbvg-signin-btn { width: 100% !important; white-space: normal !important; }
body.single-product form.cart:has(.idx-eo--blank-or-customize),
body.single-product form.cart:has(.idx-eo--blank-or-customize) .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-wrap: wrap;
	gap: .75rem;
}
body.single-product form.cart:has(.idx-eo--blank-or-customize) > .idx-eo--blank-or-customize { order: -1; }

/* ---- P2-8 footer affiliate band ---- */
.woocommerce-cart .footer-affiliate-band,
.woocommerce-checkout .footer-affiliate-band { display: none; }
@media (max-width: 600px) {
	.footer-affiliate-band .omtech-cards { grid-template-columns: 1fr 1fr; gap: .75rem; }
}

/* ---- P3-6 swatches, P3-11 cart thumbnails ---- */
.variable-item-image, .variable-item-contents img { object-fit: cover; }
.woocommerce-cart .product-thumbnail img, .wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { background: #f4f5f8; }

/* 320 px phones: four 40 px buttons leave ~120 px for the logo, so scale it down a notch instead of overlapping the menu button. */
@media (max-width: 340px) {
  .site-header .site-branding img.site-branding__logo--default,
  .site-header .site-branding img { height: 26px !important; }
}

/* P3-4: mega-menu headings are <p> now; keep the h2 line-height they used to inherit. */
p.mega-menu__heading, p.mega-menu__cta-title { line-height: 1.15; }

/* P2-6 (a11y): WooCommerce show-password buttons were 22x22. */
.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input { min-width: 44px; min-height: 44px; }
