/**
 * Bulk pleated filters: mega menu, size browser tabs, and product-page
 * MERV / Box-Pallet card pickers. Loaded site-wide (menu lives in the
 * header); product-picker rules only ever match on pleated product pages.
 * Palette (1.32.4): site style only -- navy #031675 ("blue board"), red #d42422
 * active/hover links, 10% grey at 30% fade (rgba(229,229,229,0.3)) fills, black
 * step-header boxes. No green anywhere per client direction 2026-08-07.
 */

/* =====================================================================
 * Mega menu
 * =================================================================== */

li.rpi-pe-has-mega {
	position: relative;
}

li.rpi-pe-has-mega > .rpi-pe-mega {
	display: none;
	position: absolute;
	top: calc(100% + 14px); /* 1.32.14: dropped below the Get A Quote button */
	left: 0;
	z-index: 9999;
	min-width: 720px;
	max-width: 92vw;
	background: #fff;
	border: 1px solid #e3e7e5;
	border-top: 1px solid #031675; /* 1.32.14: navy board thinned to a hairline */
	border-radius: 0 0 10px 10px;
	box-shadow: 0 18px 40px rgba(23, 46, 32, 0.16);
	padding: 0;
	text-align: left;
}

/* Invisible hover bridge across the 14px gap between the nav item and the
 * lowered panel, so moving the mouse down into the menu doesn't leave the
 * li's hover state and snap the dropdown shut. */
li.rpi-pe-has-mega > .rpi-pe-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -16px;
	height: 16px;
}

li.rpi-pe-has-mega:hover > .rpi-pe-mega,
li.rpi-pe-has-mega:focus-within > .rpi-pe-mega,
li.rpi-pe-has-mega.rpi-pe-mega-open > .rpi-pe-mega {
	display: block;
}

.rpi-pe-mega-inner {
	display: flex;
	align-items: stretch;
}

.rpi-pe-mega-rail {
	list-style: none;
	margin: 0;
	padding: 14px 0;
	min-width: 190px;
	border-right: 1px solid #e9edeb;
	background: #fafbfa;
	border-radius: 0 0 0 10px;
}

.rpi-pe-mega-rail li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rpi-pe-mega-rail-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 18px;
	background: none;
	border: 0;
	border-left: 3px solid transparent;
	font-size: 15px;
	font-weight: 600;
	color: #263238;
	cursor: pointer;
	text-align: left;
	line-height: 1.3;
}

.rpi-pe-mega-rail-item:hover,
.rpi-pe-mega-rail-item.is-active {
	color: #d42422;
	border-left-color: #d42422;
	background: #fff;
}

.rpi-pe-mega-rail-arrow {
	font-size: 18px;
	line-height: 1;
	color: #b7bdd1;
}

/* 1.37.3: the Custom Size rail entry is a real link (<a>), not a panel
 * button -- the theme's menu-anchor rules (".fl-menu a" display:block,
 * ".fl-node-X .menu a" padding overrides) would otherwise reshape it.
 * Pin the layout so it reads exactly like its sibling rail items. */
a.rpi-pe-mega-rail-item,
a.rpi-pe-mega-rail-item:visited {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 11px 18px !important;
	text-decoration: none !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: #263238;
}

.rpi-pe-mega-panels {
	flex: 1 1 auto;
	padding: 18px 22px;
}

.rpi-pe-mega-panel {
	display: none;
}

.rpi-pe-mega-panel.is-active {
	display: block;
}

.rpi-pe-mega-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(110px, 1fr));
	gap: 2px 28px;
}

.rpi-pe-mega-grid li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rpi-pe-mega-grid a {
	display: block;
	padding: 7px 4px;
	font-size: 15px;
	color: #171f32;
	text-decoration: none;
	border-radius: 4px;
	white-space: nowrap;
}

.rpi-pe-mega-grid a:hover {
	color: #d42422;
	background: rgba(229, 229, 229, 0.3);
	text-decoration: none;
}

.rpi-pe-mega-all {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #d42422;
	text-decoration: none;
}

.rpi-pe-mega-all:hover {
	text-decoration: underline;
	color: #031675;
}

/* Inline (shortcode) variant: a normal block, not a dropdown. */
.rpi-pe-mega--inline {
	position: static;
	display: block;
	min-width: 0;
	border-radius: 10px;
	border-top-width: 3px;
	box-shadow: none;
}

@media ( max-width: 991px ) {
	li.rpi-pe-has-mega > .rpi-pe-mega {
		position: static;
		min-width: 0;
		box-shadow: none;
		border-radius: 0;
	}

	li.rpi-pe-has-mega > .rpi-pe-mega::before {
		display: none; /* no dropdown gap to bridge when the menu is inline */
	}

	.rpi-pe-mega-inner {
		flex-direction: column;
	}

	.rpi-pe-mega-rail {
		display: flex;
		min-width: 0;
		padding: 6px;
		border-right: 0;
		border-bottom: 1px solid #e9edeb;
	}

	.rpi-pe-mega-rail-item {
		border-left: 0;
		border-bottom: 3px solid transparent;
		padding: 9px 12px;
	}

	/* Keep the Custom Size link's pinned padding in step with the
	 * stacked mobile rail. */
	a.rpi-pe-mega-rail-item,
	a.rpi-pe-mega-rail-item:visited {
		border-left: 0 !important;
		padding: 9px 12px !important;
	}

	.rpi-pe-mega-rail-item:hover,
	.rpi-pe-mega-rail-item.is-active {
		border-bottom-color: #d42422;
	}

	.rpi-pe-mega-grid {
		grid-template-columns: repeat(2, minmax(100px, 1fr));
	}
}

/* =====================================================================
 * Size browser ([rpi_pe_filter_sizes])
 * =================================================================== */

.rpi-pe-size-browser {
	margin: 0 0 2em;
}

.rpi-pe-size-browser-heading {
	text-align: center;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: 1em;
}

.rpi-pe-size-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border-bottom: 2px solid #e3e7e5;
	margin-bottom: 0;
}

.rpi-pe-size-tab {
	appearance: none;
	background: #f2f4f3;
	border: 1px solid #e3e7e5;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #4a5161;
	cursor: pointer;
}

.rpi-pe-size-tab:hover {
	color: #d42422;
}

.rpi-pe-size-tab.is-active {
	background: #fff;
	color: #d42422;
	position: relative;
	top: 2px;
	border-bottom: 2px solid #fff;
}

.rpi-pe-size-panel {
	display: none;
	padding: 4px 0 0;
}

.rpi-pe-size-panel.is-active {
	display: block;
}

.rpi-pe-size-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(140px, 1fr));
	gap: 0;
}

.rpi-pe-size-grid li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rpi-pe-size-grid a {
	display: block;
	padding: 15px 18px;
	font-size: 16px;
	color: #171f32;
	text-decoration: none;
	border-bottom: 1px solid #eef1ef;
}

.rpi-pe-size-grid li:nth-child(8n + 5) a,
.rpi-pe-size-grid li:nth-child(8n + 6) a,
.rpi-pe-size-grid li:nth-child(8n + 7) a,
.rpi-pe-size-grid li:nth-child(8n + 8) a {
	background: rgba(229, 229, 229, 0.3);
}

/* 1.32.15: hover must NOT reuse the zebra-stripe grey -- on a white row it
 * made the hovered cell blend into the striped rows, reading like a whole
 * block of sizes was selected. A light navy wash is distinct from both row
 * backgrounds, so exactly one cell ever looks active. The li-qualified
 * selector matches the specificity of the stripe rules above so hover wins
 * on striped cells too (source order breaks the tie). */
.rpi-pe-size-grid li a:hover,
.rpi-pe-size-grid li a:focus {
	color: #d42422;
	background: rgba(3, 22, 117, 0.07);
	text-decoration: none;
}

@media ( max-width: 767px ) {
	.rpi-pe-size-grid {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
	}

	.rpi-pe-size-tab {
		padding: 10px 14px;
		font-size: 13px;
	}
}

/* =====================================================================
 * Product page: MERV + package card pickers
 * =================================================================== */

/* Hide the native attribute dropdown rows once the cards are in place.
 * The selects stay in the DOM and keep driving the variation logic. */
form.variations_form.rpi-pe-pleated-enhanced table.variations {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.rpi-pe-pleated-step {
	margin: 0 0 22px;
}

.rpi-pe-pleated-step-heading {
	background: #1c1e1d;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 11px 16px;
	border-radius: 6px 6px 0 0;
	margin: 0 0 14px;
}

.rpi-pe-pleated-help {
	margin: 10px 2px 0;
	font-size: 13px;
	color: #78909c;
}

.rpi-pe-merv-cards,
.rpi-pe-package-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.rpi-pe-merv-card,
.rpi-pe-package-card {
	appearance: none;
	background: #fff;
	border: 1px solid #dfe5e2;
	border-radius: 8px;
	padding: 14px 12px 12px;
	min-width: 128px;
	flex: 0 1 148px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* The !important background/color pins are deliberate: the Beaver Builder
 * child theme styles generic button:hover/:focus with a dark red fill and
 * white text, which otherwise bleeds into these card <button>s. */
.rpi-pe-merv-card:hover,
.rpi-pe-merv-card:focus,
.rpi-pe-package-card:hover,
.rpi-pe-package-card:focus {
	border-color: rgba(3, 22, 117, 0.35);
	background: #fff !important;
	color: #263238 !important;
}

.rpi-pe-merv-card:hover *,
.rpi-pe-merv-card:focus *,
.rpi-pe-package-card:hover *,
.rpi-pe-package-card:focus * {
	color: inherit;
}

.rpi-pe-merv-card:hover .rpi-pe-merv-ribbon,
.rpi-pe-merv-card:focus .rpi-pe-merv-ribbon {
	color: #fff;
}

/* The gold MERV 13 ribbon keeps navy text in every state. */
.rpi-pe-merv-card--m13:hover .rpi-pe-merv-ribbon,
.rpi-pe-merv-card--m13:focus .rpi-pe-merv-ribbon {
	color: #031675;
}

.rpi-pe-merv-card:hover .rpi-pe-merv-card-desc,
.rpi-pe-package-card:hover .rpi-pe-package-card-qty {
	color: #90a4ae;
}

.rpi-pe-merv-card:hover .rpi-pe-package-card-price,
.rpi-pe-package-card:hover .rpi-pe-package-card-price {
	color: #031675;
}

.rpi-pe-size-tab:hover,
.rpi-pe-size-tab:focus {
	background: #fff !important;
	color: #d42422 !important;
}

.rpi-pe-mega-rail-item:hover,
.rpi-pe-mega-rail-item:focus,
.rpi-pe-mega-rail-item.is-active {
	background: #fff !important;
	color: #d42422 !important;
}

.rpi-pe-merv-card.is-selected,
.rpi-pe-package-card.is-selected {
	border: 2px solid #031675;
	box-shadow: 0 2px 10px rgba(3, 22, 117, 0.14);
	padding: 13px 11px 11px;
}

/* Ribbon badge, colored per rating tier. */
.rpi-pe-merv-ribbon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 64px;
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
	margin-bottom: 6px;
}

.rpi-pe-merv-ribbon-word {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	margin-bottom: 3px;
	margin-top: -6px;
}

.rpi-pe-merv-ribbon-num {
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

/* 1.38.3: tier colors — red / silver / navy / gold. The bright gold
 * MERV 13 ribbon carries navy text (white fails contrast on #F6BB08);
 * that navy is asserted for hover and the embedded context below. */
.rpi-pe-merv-card--m8 .rpi-pe-merv-ribbon {
	background: linear-gradient(180deg, #d42422, #9f1815);
}

.rpi-pe-merv-card--m10 .rpi-pe-merv-ribbon {
	background: linear-gradient(180deg, #adb3bb, #7f858d);
}

.rpi-pe-merv-card--m11 .rpi-pe-merv-ribbon {
	background: linear-gradient(180deg, #2a3f9e, #031675);
}

.rpi-pe-merv-card--m13 .rpi-pe-merv-ribbon {
	background: linear-gradient(180deg, #f6bb08, #d19d00);
	color: #031675;
}

.rpi-pe-merv-card-label {
	font-size: 15px;
	font-weight: 700;
	color: #263238;
}

.rpi-pe-merv-card.is-selected .rpi-pe-merv-card-label,
.rpi-pe-merv-card.is-selected .rpi-pe-merv-card-tier {
	color: #031675;
}

.rpi-pe-merv-card-tier {
	font-size: 13px;
	color: #4a5161;
}

.rpi-pe-merv-card-desc {
	font-size: 11.5px;
	line-height: 1.35;
	color: #90a4ae;
}

.rpi-pe-package-card {
	flex: 0 1 200px;
	padding-top: 16px;
}

.rpi-pe-package-card-icon {
	font-size: 26px;
	line-height: 1;
	color: #031675; /* 1.34.0: strokes the inline SVG icons */
}

.rpi-pe-package-card-icon svg {
	width: 30px;
	height: 30px;
	display: block;
	margin: 0 auto;
}

.rpi-pe-package-card.is-selected .rpi-pe-package-card-icon,
.rpi-pe-package-card:hover .rpi-pe-package-card-icon {
	color: #d42422;
}

.rpi-pe-package-card-label {
	font-size: 16px;
	font-weight: 700;
	color: #263238;
}

.rpi-pe-package-card.is-selected .rpi-pe-package-card-label {
	color: #031675;
}

.rpi-pe-package-card-qty {
	font-size: 12.5px;
	color: #78909c;
}

.rpi-pe-package-card-price {
	font-size: 18px;
	font-weight: 800;
	color: #031675;
	margin-top: 4px;
}

.rpi-pe-package-card-per {
	font-size: 12px;
	color: #6b7280;
	font-weight: 600;
}

@media ( max-width: 480px ) {
	.rpi-pe-merv-card,
	.rpi-pe-package-card {
		flex: 1 1 calc(50% - 12px);
		min-width: 0;
	}
}

/* =====================================================================
 * Gallery visibility (1.32.7)
 * =================================================================== */

/* WooCommerce ships the single-product gallery with inline `opacity: 0`,
 * revealed by wc-single-product.js on slider init. On this site that
 * script is (a) not enqueued by the Themer layout (fixed in 1.32.6) and
 * (b) still subject to a delay-JS optimizer whose queue is not reliable,
 * so a JS-dependent reveal can leave shoppers with a permanently blank
 * image column. Show the gallery unconditionally: uninitialized it reads
 * as a clean stacked image list; when the slider script does run, it
 * takes over in place. */
.single-product .woocommerce-product-gallery,
.woocommerce-product-gallery {
	opacity: 1 !important;
}

/* Light spacing/sizing so the uninitialized (pre-slider) gallery looks
 * intentional rather than raw. Scoped to the pre-init state only: once
 * flexslider adds its viewport wrapper these selectors no longer match
 * the same layout. */
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	margin-bottom: 14px;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	border: 1px solid #eef0f4;
	border-radius: 8px;
}

/* Custom Size tab (1.32.13): rendered as an anchor but styled to match
 * the ordinary size tabs exactly -- same grey box, same border, same
 * type treatment -- and it sits inline right after the last size tab.
 * !important pins beat the theme's generic anchor styles (underlines,
 * link colors) that would otherwise make it look different. */
.rpi-pe-size-tab--custom {
	display: inline-flex;
	align-items: center;
	background: #f2f4f3 !important;
	border-color: #e3e7e5;
	color: #4a5161 !important;
	text-decoration: none !important;
}

.rpi-pe-size-tab--custom:hover,
.rpi-pe-size-tab--custom:focus {
	background: #fff !important;
	color: #d42422 !important;
}

/* =====================================================================
 * Picker refinements (1.35.0)
 * =================================================================== */

/* Inline "please choose your options" notice, shown directly under the
 * option cards instead of WooCommerce's page-top alert (the failed
 * submit is intercepted client-side, so the page never reloads). */
.rpi-pe-picker-alert {
	margin-top: 14px;
	padding: 12px 16px;
	border: 1px solid #d42422;
	border-radius: 8px;
	background: rgba( 212, 36, 34, 0.06 );
	color: #d42422;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.45;
}

/* The chosen variation's price in its own box, sitting between the
 * quantity field and the Add To Cart button. WooCommerce still owns
 * showing/hiding this element as variations resolve. */
.rpi-pe-price-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	min-height: 46px; /* 1.35.8: matches the quantity stepper's outer height */
	box-sizing: border-box;
	border: 1px solid #e3e7e5;
	border-radius: 10px;
	background: #fff;
	margin: 0 12px 0 10px;
}

.rpi-pe-price-box .woocommerce-variation-price,
.rpi-pe-price-box .price {
	color: #031675;
	font-weight: 700;
	font-size: 19px;
	line-height: 1;
	white-space: nowrap;
}

.rpi-pe-price-box .woocommerce-variation-availability,
.rpi-pe-price-box .woocommerce-variation-description {
	display: none; /* availability already lives in the green pill above */
}

/* Purchase-area layout (1.35.5): CSS grid --
 *   [ qty ] [ price ]   |  SKIP THE LINE -- EXPRESS CHECKOUT
 *   [  Add To Cart   ]  |        [ G Pay button ]
 * The express column is empty until a variation is chosen; the Add To
 * Cart button spans the qty+price columns. */
form.variations_form.rpi-pe-pleated-enhanced .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: auto auto 1fr;
	grid-template-areas:
		"qty price express"
		"btn btn   express";
	align-items: center;
	gap: 14px 16px;
}

form.variations_form.rpi-pe-pleated-enhanced .woocommerce-variation-add-to-cart > .quantity {
	grid-area: qty;
}

form.variations_form.rpi-pe-pleated-enhanced .woocommerce-variation-add-to-cart > .rpi-pe-price-box {
	grid-area: price;
	justify-self: start;
	margin: 0;
}

form.variations_form.rpi-pe-pleated-enhanced .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
	grid-area: btn;
	width: 100%;
}

form.variations_form.rpi-pe-pleated-enhanced .woocommerce-variation-add-to-cart > .rpi-pe-express-wrap {
	grid-area: express;
	justify-self: end;
	align-self: end; /* 1.35.7: bottom edge flush with Add To Cart's bottom */
}

form.variations_form.rpi-pe-pleated-enhanced .wc-stripe-clear {
	display: none; /* Stripe plugin clearing div; meaningless inside grid */
}

@media ( max-width: 860px ) {
	form.variations_form.rpi-pe-pleated-enhanced .woocommerce-variation-add-to-cart {
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"qty     price"
			"btn     btn"
			"express express";
	}

	form.variations_form.rpi-pe-pleated-enhanced .woocommerce-variation-add-to-cart > .rpi-pe-express-wrap {
		justify-self: center;
	}
}

/* =====================================================================
 * Quantity stepper + express checkout placement (1.35.1)
 * =================================================================== */

form.variations_form.rpi-pe-pleated-enhanced .quantity.rpi-pe-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #e3e7e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

form.variations_form.rpi-pe-pleated-enhanced .rpi-pe-qty input.qty {
	border: 0;
	width: 54px;
	height: 44px; /* 1.35.8: same height as the +/- buttons... */
	padding: 0 2px; /* ...and no theme padding pushing the digit high */
	line-height: 44px;
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	color: #171f32;
	-moz-appearance: textfield;
	appearance: textfield;
	background: #fff;
}

form.variations_form.rpi-pe-pleated-enhanced .rpi-pe-qty input.qty::-webkit-outer-spin-button,
form.variations_form.rpi-pe-pleated-enhanced .rpi-pe-qty input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rpi-pe-qty-btn {
	width: 40px;
	min-height: 44px;
	border: 0 !important;
	background: #fff !important;
	color: #031675 !important;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.rpi-pe-qty-btn:hover,
.rpi-pe-qty-btn:focus {
	background: rgba( 3, 22, 117, 0.07 ) !important;
	color: #d42422 !important;
}

/* Express checkout (G Pay / Apple Pay): hidden until a variation is
 * chosen; placed by the purchase-area grid above. */
.rpi-pe-express-wrap {
	display: none;
	flex-direction: column;
	align-items: center;
}

.rpi-pe-express-wrap.is-visible {
	display: flex;
}

.rpi-pe-express-label {
	margin: 0 0 6px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #031675;
}

form.variations_form .wc-stripe-product-checkout-container.rpi-pe-express {
	width: 100%;
	min-width: 300px;
	max-width: 520px; /* 1.35.5: wide enough to sit as its own right column */
	margin: 0;
	float: none;
}

@media ( max-width: 860px ) {
	form.variations_form .wc-stripe-product-checkout-container.rpi-pe-express {
		min-width: 0;
		max-width: 360px;
	}
}

/* =====================================================================
 * Custom-size order form (1.37.0) -- [rpi_pe_custom_filter]. Reuses the
 * pleated picker's card/step/qty styles; rules here cover only what is
 * unique to the form.
 * =================================================================== */

form.rpi-pe-custom {
	max-width: 980px;
	margin: 0 auto;
}

.rpi-pe-custom-note {
	color: #4a5161;
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 14px;
}

.rpi-pe-custom-dims {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
}

.rpi-pe-custom-dim {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 700;
	color: #171f32;
	font-size: 15px;
}

.rpi-pe-custom-dim-selects {
	display: inline-flex;
	gap: 8px;
}

.rpi-pe-custom-dim select {
	padding: 10px 14px;
	border: 1px solid #e3e7e5;
	border-radius: 10px;
	background: #fff;
	font-size: 16px;
	color: #171f32;
	min-width: 90px;
}

.rpi-pe-custom-dim select:focus {
	border-color: #031675;
	outline: none;
}

.rpi-pe-custom-buy {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 22px;
}

form.rpi-pe-custom .quantity.rpi-pe-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #e3e7e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

form.rpi-pe-custom .rpi-pe-qty input.qty {
	border: 0;
	width: 54px;
	height: 44px;
	padding: 0 2px;
	line-height: 44px;
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	color: #171f32;
	-moz-appearance: textfield;
	appearance: textfield;
	background: #fff;
}

form.rpi-pe-custom .rpi-pe-qty input.qty::-webkit-outer-spin-button,
form.rpi-pe-custom .rpi-pe-qty input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rpi-pe-custom-total {
	font-weight: 700;
	font-size: 19px;
	color: #031675;
}

.rpi-pe-custom-submit {
	min-width: 280px;
}

.rpi-pe-custom-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rpi-pe-custom-alert[hidden],
.rpi-pe-custom-total[hidden] {
	display: none;
}

.rpi-pe-custom-alert {
	flex-basis: 100%;
	margin: 0;
}

.rpi-pe-custom-footnote {
	margin-top: 26px;
	font-size: 14px;
	color: #4a5161;
}

/* =====================================================================
 * Delivery chooser (1.38.0) -- one-time vs subscribe & auto-ship.
 * Rendered as a picker step on pleated product pages (built by
 * pleated-product.js) and inside the custom-size form (rendered by PHP).
 * =================================================================== */

.rpi-pe-sub-choice {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rpi-pe-sub-option {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 560px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #dfe5e2;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #263238;
	line-height: 1.4;
}

.rpi-pe-sub-option:has(input:checked) {
	border: 2px solid #031675;
	padding: 11px 13px;
	box-shadow: 0 2px 10px rgba(3, 22, 117, 0.14);
}

.rpi-pe-sub-option input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #031675;
	flex: 0 0 auto;
}

.rpi-pe-sub-interval {
	padding: 8px 12px;
	border: 1px solid #e3e7e5;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	color: #171f32;
}

.rpi-pe-sub-interval:disabled {
	opacity: 0.55;
}

.rpi-pe-sub-interval:focus {
	border-color: #031675;
	outline: none;
}

.rpi-pe-sub-note {
	margin: 2px 2px 0;
	font-size: 13px;
	color: #78909c;
}

/* =====================================================================
 * Embedded-context hardening (1.37.2). On the bulk page the shortcode
 * sits inside a Beaver Builder Text Editor module whose typography
 * settings apply to EVERY descendant (".fl-node-X.fl-rich-text *" at
 * (0,4,0)+ specificity), flattening the form's text to the module's
 * color/size/weight: the white step headings rendered slate, the MERV
 * ribbon numerals shrank to body size, weights collapsed to 400. The
 * !important pins below re-assert only the properties that carry the
 * form's visual language, scoped to form.rpi-pe-custom so the
 * product-page picker (form.variations_form) is untouched. On pages
 * with no builder override they assert the same values as the base
 * rules above, so they are visually inert there.
 * =================================================================== */

form.rpi-pe-custom .rpi-pe-pleated-step-heading {
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

form.rpi-pe-custom .rpi-pe-merv-ribbon,
form.rpi-pe-custom .rpi-pe-merv-ribbon-word,
form.rpi-pe-custom .rpi-pe-merv-ribbon-num {
	color: #fff !important;
}

/* The gold MERV 13 ribbon needs navy text; higher specificity than
 * the #fff pin above, so it wins in the embedded context too. */
form.rpi-pe-custom .rpi-pe-merv-card--m13 .rpi-pe-merv-ribbon,
form.rpi-pe-custom .rpi-pe-merv-card--m13 .rpi-pe-merv-ribbon-word,
form.rpi-pe-custom .rpi-pe-merv-card--m13 .rpi-pe-merv-ribbon-num {
	color: #031675 !important;
}

form.rpi-pe-custom .rpi-pe-merv-ribbon-word {
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

form.rpi-pe-custom .rpi-pe-merv-ribbon-num {
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
}

form.rpi-pe-custom .rpi-pe-merv-card-label {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #263238 !important;
	line-height: 1.35 !important;
}

form.rpi-pe-custom .rpi-pe-merv-card-tier {
	font-size: 13px !important;
	color: #4a5161 !important;
	line-height: 1.35 !important;
}

form.rpi-pe-custom .rpi-pe-merv-card-desc {
	font-size: 11.5px !important;
	line-height: 1.35 !important;
	color: #90a4ae !important;
}

form.rpi-pe-custom .rpi-pe-package-card-label {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #263238 !important;
	line-height: 1.35 !important;
}

form.rpi-pe-custom .rpi-pe-package-card-qty {
	font-size: 12.5px !important;
	color: #78909c !important;
	line-height: 1.35 !important;
}

form.rpi-pe-custom .rpi-pe-package-card-price {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #031675 !important;
}

form.rpi-pe-custom .rpi-pe-package-card-per {
	font-size: 12px !important;
	color: #6b7280 !important;
}

form.rpi-pe-custom .rpi-pe-custom-dim {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #171f32 !important;
}

form.rpi-pe-custom .rpi-pe-custom-dim select {
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #171f32 !important;
	line-height: 1.4 !important;
}

form.rpi-pe-custom .rpi-pe-qty-btn {
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

form.rpi-pe-custom .rpi-pe-qty input.qty {
	font-size: 17px !important;
	font-weight: 600 !important;
	color: #171f32 !important;
	line-height: 44px !important;
}

form.rpi-pe-custom .rpi-pe-custom-total {
	font-size: 19px !important;
	font-weight: 700 !important;
	color: #031675 !important;
	line-height: 1 !important;
}

form.rpi-pe-custom .rpi-pe-custom-submit {
	color: #fff !important;
}

form.rpi-pe-custom .rpi-pe-picker-alert {
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #d42422 !important;
}

form.rpi-pe-custom .rpi-pe-custom-note {
	font-size: 15px !important;
	color: #4a5161 !important;
	line-height: 1.55 !important;
}

form.rpi-pe-custom .rpi-pe-custom-footnote {
	font-size: 14px !important;
}

form.rpi-pe-custom .rpi-pe-sub-option {
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #263238 !important;
	line-height: 1.4 !important;
}

form.rpi-pe-custom .rpi-pe-sub-interval {
	font-size: 15px !important;
	font-weight: 400 !important;
	color: #171f32 !important;
}

form.rpi-pe-custom .rpi-pe-sub-note {
	font-size: 13px !important;
	color: #78909c !important;
}

/* A Beaver Builder Box module lays ALL of its children into the same
 * grid cell (grid-area: 1/1/-1/-1 via a zero-specificity :where()
 * rule) -- it is an overlay canvas, not a stack. When the custom form
 * lives in such a box, the sibling heading modules physically overlap
 * the form and only hand-tuned offset margins keep them apart (until
 * the heading wraps onto another line). Give a box that contains the
 * form normal one-item-per-row flow, and replace the offset margins
 * with an even gap. */
.fl-module-box:has(form.rpi-pe-custom) {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fl-module-box:has(form.rpi-pe-custom) > .fl-module {
	grid-area: auto;
	margin-top: 0;
	margin-bottom: 0;
}

@media ( max-width: 767px ) {
	.rpi-pe-custom-dims {
		flex-direction: column;
	}

	.rpi-pe-custom-submit {
		min-width: 0;
		flex: 1 1 100%;
	}
}

/* -------------------------------------------------------------------------
 * 1.39.0: Capacity cards (Standard / High Capacity), between the MERV and
 * Package steps on DC Filter pleated products. Styled to match the other
 * card pickers, including the theme-button hover pins explained above.
 * ---------------------------------------------------------------------- */
.rpi-pe-capacity-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.rpi-pe-capacity-card {
	appearance: none;
	background: #fff;
	border: 1px solid #dfe5e2;
	border-radius: 8px;
	padding: 16px 12px 12px;
	min-width: 128px;
	flex: 0 1 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.rpi-pe-capacity-card:hover,
.rpi-pe-capacity-card:focus {
	border-color: rgba(3, 22, 117, 0.35);
	background: #fff !important;
	color: #263238 !important;
}

.rpi-pe-capacity-card:hover *,
.rpi-pe-capacity-card:focus * {
	color: inherit;
}

.rpi-pe-capacity-card:hover .rpi-pe-capacity-card-desc {
	color: #90a4ae;
}

.rpi-pe-capacity-card.is-selected {
	border: 2px solid #031675;
	box-shadow: 0 2px 10px rgba(3, 22, 117, 0.14);
	padding: 15px 11px 11px;
}

.rpi-pe-capacity-card-label {
	font-size: 15px;
	font-weight: 700;
	color: #263238;
}

.rpi-pe-capacity-card.is-selected .rpi-pe-capacity-card-label {
	color: #031675;
}

.rpi-pe-capacity-card-desc {
	font-size: 11.5px;
	line-height: 1.35;
	color: #90a4ae;
}

.rpi-pe-capacity-card.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	border-style: dashed;
}

.rpi-pe-capacity-card-note {
	font-size: 11px;
	font-weight: 600;
	color: #9f1815;
}

/* =====================================================================
 * 1.41.0 custom-size quote request (custom page in quote mode)
 * =================================================================== */

.rpi-pe-quote-notice {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px solid #031675;
	background: rgba(229, 229, 229, 0.3);
	color: #1a1a1a;
	line-height: 1.5;
}

.rpi-pe-quote-notice.is-error {
	border-color: #d42422;
	color: #8a1514;
}

.rpi-pe-quote-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
	margin: 14px 0 18px;
	max-width: 760px;
}

.rpi-pe-quote-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
	font-size: 15px;
}

.rpi-pe-quote-field input[type="text"],
.rpi-pe-quote-field input[type="email"],
.rpi-pe-quote-field input[type="tel"],
.rpi-pe-quote-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d5d9dd;
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
	background: #fff;
	box-sizing: border-box;
}

.rpi-pe-quote-field input:focus,
.rpi-pe-quote-field textarea:focus {
	outline: 2px solid #031675;
	outline-offset: 0;
	border-color: #031675;
}

.rpi-pe-quote-field--qty,
.rpi-pe-quote-field--wide {
	grid-column: 1 / -1;
}

.rpi-pe-quote-field--qty .rpi-pe-custom-qty {
	align-self: flex-start;
}

.rpi-pe-quote-step .rpi-pe-custom-submit {
	min-width: 240px;
}

@media (max-width: 640px) {
	.rpi-pe-quote-fields {
		grid-template-columns: 1fr;
	}
}
