/*
 * Visually de-emphasizes the heavy_quote_request payment method's own row in the
 * Blocks Payment block — never display:none on the input itself, so it stays reachable
 * by keyboard/screen readers (same approach as the classic-checkout CSS). :has() is used
 * rather than a JS-added class to avoid depending on WooCommerce's internal DOM update
 * timing; on the rare browser without :has() support the row simply remains visible,
 * which is a cosmetic degradation, not a functional one.
 */
.wc-block-components-radio-control__option:has(input[value="heavy_quote_request"]) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wc-block-components-radio-control__option:has(input[value="heavy_quote_request"]:focus-visible) {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

.hqw-quote-panel-mount {
	margin: 1em 0;
}

.hqw-quote-panel {
	padding: 1em;
	background: #f8f8f8;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
}

.hqw-quote-message {
	margin: 0 0 0.75em;
	line-height: 1.5;
}

.hqw-request-quote {
	cursor: pointer;
}

.hqw-request-quote:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.hqw-request-quote:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

.hqw-quote-feedback {
	margin-top: 0.5em;
	font-size: 0.9em;
}

.hqw-quote-feedback:not(:empty) {
	display: block;
}
