/* Bulk Wholesale — site-specific CSS. Enqueued by custom.php. */

/*
 * Theme leaks into the .bw design markup (style audit 2026-10-13). The design sets none of these,
 * so its elements must behave like the browser defaults the prototype was drawn with.
 */
/* Blocksy gives every heading its own line-height; the design's headings inherit (body 1.45). */
.bw h1,.bw h2,.bw h3,.bw h4,.bw h5,.bw h6{line-height:inherit}
/* blocksy-child style.css sets b,strong{font-weight:500}; the design relies on the UA's 700. */
.bw b,.bw strong{font-weight:700}
/* Blocksy label{margin-bottom:.5em} pushed price boxes and sort options out of line. */
.bw label{margin-bottom:0}
/* Performance Lab's dominant-colour placeholder shows as grey bars wherever an image doesn't fill its box. */
body .bw img[data-dominant-color]{background-color:transparent}
/* Blocksy img{max-width:100%;vertical-align:middle} squashed the brand logos and tightened their rows. */
.bw .m-brands img{max-width:none;vertical-align:baseline}

/* Shared product card (bw_product_card): WooCommerce markup inside the design card. */
/* Catalogue photos are square, the design's image box is 1:0.93: lay .i1 out like .i2 so it fits instead of being clipped. */
.bw .card .img .i1{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain}
.bw .card a.btn-navy{display:block;text-align:center}
.bw .card a.btn-navy.loading{opacity:.6}
.bw .card a.added_to_cart{display:block;text-align:center;font-size:13px;margin-top:4px;text-decoration:underline}
/* design order is "$15.00 $45.00(struck)"; WC prints <del> first */
.bw .card .price .sale-price,.bw .card .price:has(> del){display:inline-flex;align-items:baseline;flex-wrap:wrap}
.bw .card .price del{color:var(--ink-2);font-size:.62em;font-weight:500;margin-left:4px;order:2}
.bw .card .price ins{text-decoration:none}
.bw .card .price .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bw .card .inst .woocommerce-Price-amount{font-weight:inherit}

/* Breadcrumb links at least 24px tall (WCAG 2.5.8): "Home" was 19px on mobile (E2E QA run 1, z8udzkhbj7). */
.bw .crumbs,.bw .pdp-crumbs,.bw-pages .bw-pg-hero .bw-crumbs{align-items:center}
.bw .crumbs a,.bw .pdp-crumbs a,.bw-pages .bw-pg-hero .bw-crumbs a{display:inline-flex;align-items:center;min-height:24px}

/*
 * iOS Safari zooms the page when a field under 16px gets focus (QA 86eyxbtqj, 86eyxbtrg, z8udzkgmbx).
 * Site-wide on touch screens, not only .bw: checkout (Fluid Checkout), Contact Form 7 and My Account
 * fields sit outside the .bw wrapper and were 13.5-14.5px too. !important because the per-surface
 * field rules are more specific than this one.
 */
@media (pointer:coarse){
	input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]),
	select,textarea{font-size:16px!important}
}

/* Header search box: visible keyboard focus. The design sets outline:0 on the input (E2E QA run 2, z8udzkhbj7). */
.bw .search:focus-within{border-color:var(--navy)}
.bw .search:has(input:focus-visible){outline:2px solid var(--red);outline-offset:2px}

/* iPhone Safari: 100vh includes the area under its toolbar, so panels sized with it were cut off. Same values, dvh. */
@supports (height:100dvh){
	.bw .mega-p{max-height:calc(100dvh - 190px)}
	.bw .plp-side{max-height:calc(100dvh - 132px)}
	@media (min-width:641px){
		.bw .srch-p,.bw .cmp-p{max-height:calc(100dvh - 48px)}
	}
}
/* Older Safari only knows the prefixed user-select (phone numbers select in one tap). */
.bw .talk .big,.bw .mhelp .ph,.bw .cpage .big,.bw .ck-hdr .meta b{-webkit-user-select:all}
