/* =============================================================
   BugMoat — product page specification list
   Layout follows the Pestyn product page: one selectable row per
   pack size (spec / SKU / saving / price per unit), then a stacked
   block of buy actions. Colours stay on the BugMoat palette.
   ============================================================= */

/* only hide the native pills once the card list has actually been built,
   so a product we cannot handle always keeps a working selector */
html body.pv-app.bm-pdp-on .pv-pills,
html body.pv-app.bm-pdp-on .pv-opt__head {
	display: none !important;
}

/* the price + "N sold" line above the options is duplicated by every spec
   card below (and by the sticky buy bar), so it is removed on request */
html body.pv-app.single-product .pv-pricerow {
	display: none !important;
}

html body.pv-app.single-product .pv-options {
	margin: 0 !important;
}

html body.pv-app.single-product .bm-var-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 18px;
}

html body.pv-app.single-product .bm-var {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 15px 18px;
	border: 1px solid var(--bm-line, #dce5f1);
	border-radius: 12px;
	background: #fff;
	color: var(--bm-ink, #0b1526);
	cursor: pointer;
	text-align: left;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

html body.pv-app.single-product .bm-var:hover {
	border-color: #a9c3dd;
}

html body.pv-app.single-product .bm-var:focus-visible {
	outline: 2px solid var(--bm-navy, #0b1b33);
	outline-offset: 2px;
}

html body.pv-app.single-product .bm-var.is-on {
	border-color: var(--bm-navy, #0b1b33);
	background: #f6f9fd;
	box-shadow: inset 0 0 0 1px var(--bm-navy, #0b1b33);
}

html body.pv-app.single-product .bm-var.is-off {
	opacity: .55;
	cursor: not-allowed;
}

html body.pv-app.single-product .bm-var__dot {
	position: relative;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border: 1.5px solid #c2d2e3;
	border-radius: 50%;
	background: #fff;
	transition: border-color .16s ease;
}

html body.pv-app.single-product .bm-var.is-on .bm-var__dot {
	border-color: var(--bm-navy, #0b1b33);
}

html body.pv-app.single-product .bm-var.is-on .bm-var__dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--bm-navy, #0b1b33);
}

html body.pv-app.single-product .bm-var__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

html body.pv-app.single-product .bm-var__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

html body.pv-app.single-product .bm-var__name {
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--bm-ink, #0b1526);
}

html body.pv-app.single-product .bm-var__unit {
	margin-left: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--bm-muted, #64748b);
}

html body.pv-app.single-product .bm-var__badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--bm-navy, #0b1b33);
	color: var(--bm-lime, #c8f751);
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.55;
	letter-spacing: .04em;
	white-space: nowrap;
}

html body.pv-app.single-product .bm-var__sub,
html body.pv-app.single-product .bm-var__save {
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--bm-muted, #64748b);
}

html body.pv-app.single-product .bm-var__save strong {
	font-weight: 700;
	color: var(--bm-teal-d, #0b7f79);
}

html body.pv-app.single-product .bm-var__price {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	margin-left: auto;
	text-align: right;
}

html body.pv-app.single-product .bm-var__now {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--bm-ink, #0b1526);
	letter-spacing: -.01em;
}

html body.pv-app.single-product .bm-var__was {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	color: #8f9aab;
	text-decoration: line-through;
}

html body.pv-app.single-product .bm-var__each {
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--bm-muted, #64748b);
}

/* ---------- stacked buy actions ---------- */

html body.pv-app.single-product .pv-buy {
	display: flex !important;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
	margin: 0 !important;
}

html body.pv-app.single-product .pv-qty {
	display: none !important;
}

html body.pv-app.single-product .pv-buy .single_add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

html body.pv-app.single-product .pv-buy .bm-pdp-cart {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

html body.pv-app.single-product .bm-buyrow {
	display: flex;
	margin-top: 10px;
}

html body.pv-app.single-product .bm-buynow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

html body.pv-app.single-product .bm-pays {
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 14px;
	text-align: center;
}

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
	html body.pv-app.single-product .bm-var {
		padding: 13px 15px;
		gap: 11px;
	}

	html body.pv-app.single-product .bm-var-list {
		gap: 9px;
	}

	html body.pv-app.single-product .bm-var__now {
		font-size: 18px;
	}

	html body.pv-app.single-product .bm-var__name {
		font-size: 15px;
	}

	html body.pv-app.single-product .bm-var__sub,
	html body.pv-app.single-product .bm-var__save,
	html body.pv-app.single-product .bm-var__each {
		font-size: 12px;
	}
}

@media (max-width: 560px) {
	html body.pv-app.single-product .bm-var {
		padding: 12px 13px;
		gap: 10px;
		border-radius: 10px;
	}

	html body.pv-app.single-product .bm-var__dot {
		flex: 0 0 18px;
		width: 18px;
		height: 18px;
	}

	html body.pv-app.single-product .bm-var__name {
		font-size: 14.5px;
	}

	html body.pv-app.single-product .bm-var__now {
		font-size: 17px;
	}

	html body.pv-app.single-product .bm-var__sub,
	html body.pv-app.single-product .bm-var__save,
	html body.pv-app.single-product .bm-var__each {
		font-size: 11.5px;
	}

	html body.pv-app.single-product .bm-var__badge {
		padding: 1px 7px;
		font-size: 10px;
	}

	html body.pv-app.single-product .bm-var__was {
		font-size: 12px;
	}

	html body.pv-app.single-product .bm-pays__note {
		display: none;
	}
}

/* ---------------------------------------------------------------
   Long-description typography (.pv-prose)
   The theme resets ul/ol to list-style:none and drives rhythm with a
   grid row-gap, so the spec lists read as loose paragraphs.
   --------------------------------------------------------------- */
html body.pv-app.single-product .pv-prose {
	row-gap: 9px;
}

html body.pv-app.single-product .pv-prose h3 {
	margin: 18px 0 4px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	color: inherit;
}

html body.pv-app.single-product .pv-prose h3:first-child {
	margin-top: 0;
}

html body.pv-app.single-product .pv-prose p {
	margin: 0;
	line-height: 1.7;
}

html body.pv-app.single-product .pv-prose ul,
html body.pv-app.single-product .pv-prose ol {
	margin: 0;
	padding-left: 20px;
}

html body.pv-app.single-product .pv-prose ul {
	list-style: disc outside;
}

html body.pv-app.single-product .pv-prose ol {
	list-style: decimal outside;
}

html body.pv-app.single-product .pv-prose li {
	display: list-item;
	margin: 0 0 4px;
	padding-left: 2px;
	line-height: 1.6;
}

html body.pv-app.single-product .pv-prose li::marker {
	color: #6b7a90;
}

html body.pv-app.single-product .pv-prose strong {
	font-weight: 700;
}
