/* Site-level fidelity fixes shared by Etch pages and WindSensor tools. */
body.admin-bar .ws-header {
	inset-block-start: 32px;
}

body.admin-bar .ws-product-detail__nav,
body.admin-bar .wst-ed2h-tabs__nav--header {
	inset-block-start: 107px;
}

.ws-product-detail__heading {
	background: linear-gradient(#eee, #eee) no-repeat left bottom / 230px 30px !important;
}

.ws-product-detail__heading::after {
	position: absolute;
	inset-inline-start: 230px;
	inset-block-end: 0;
	border-block-end: 30px solid #eee;
	border-inline-end: 30px solid transparent;
	content: "";
}

/* Keep SureForms' floating labels clear of entered values on the contact form. */
#srfm-form-129 .srfm-block-single:focus-within .srfm-block-label,
#srfm-form-129 .srfm-block-single:has(.srfm-input-common:not(:placeholder-shown)) .srfm-block-label,
#srfm-form-129 .srfm-block-single:has(.srfm-input-common:-webkit-autofill) .srfm-block-label {
	transform: translate(7px, -6px) scale(.7) !important;
}

#srfm-form-129 .srfm-block-single:focus-within input.srfm-input-common,
#srfm-form-129 .srfm-block-single:has(input.srfm-input-common:not(:placeholder-shown)) input.srfm-input-common,
#srfm-form-129 .srfm-block-single:has(input.srfm-input-common:-webkit-autofill) input.srfm-input-common {
	padding-block: 15px 5px !important;
}

#srfm-form-129 .srfm-block-single:focus-within textarea.srfm-input-common,
#srfm-form-129 .srfm-block-single:has(textarea.srfm-input-common:not(:placeholder-shown)) textarea.srfm-input-common {
	padding-block: 15px 12px !important;
}

/* Keep the P2546D replacement note below its wrapping product label. */
.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.ws-order-row.ws-order-row--has-note > .srfm-block-label {
	grid-row: 1;
	align-self: start;
}

/* Align images, labels and quantity controls to the top of each order row. */
.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.ws-order-row {
	align-items: start;
}

.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.ws-order-row > .srfm-block-label,
.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.ws-order-row > .srfm-block-wrap {
	align-self: start;
}

.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.srfm-slug-calibration-quantity > .srfm-block-label {
	grid-row: 1;
}

.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.srfm-slug-calibration-quantity > .srfm-description {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	margin-block-start: 2px;
}

.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.srfm-slug-calibration-quantity > .srfm-error-wrap {
	grid-column: 2 / -1;
	grid-row: 3;
}

@media (max-width: 700px) {
	.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.srfm-slug-calibration-quantity {
		grid-template-rows: auto auto auto auto;
	}

	.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.srfm-slug-calibration-quantity > .ws-order-preview {
		grid-row: 1 / span 3;
	}

	.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.srfm-slug-calibration-quantity > .srfm-block-wrap {
		grid-column: 2;
		grid-row: 3;
	}

	.ws-inquiry-order-form #srfm-form-312 .srfm-number-block.srfm-slug-calibration-quantity > .srfm-error-wrap {
		grid-row: 4;
	}
}

@media (min-width: 783px) and (max-width: 999px) {
	body.admin-bar .ws-product-detail__nav,
	body.admin-bar .wst-ed2h-tabs__nav--header {
		inset-block-start: 137px;
	}
}

@media (min-width: 768px) and (max-width: 782px) {
	body.admin-bar .ws-header {
		inset-block-start: 46px;
	}

	body.admin-bar .ws-product-detail__nav,
	body.admin-bar .wst-ed2h-tabs__nav--header {
		inset-block-start: 151px;
	}
}

@media (max-width: 767px) {
	body.admin-bar .ws-header {
		inset-block-start: 0;
	}
}
