.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.wcag-field-error {
	display: block;
	margin-top: 4px;
	color: rgb(169,68,66);
	font-weight: bold;
}
.wcag-field-error[hidden] {
	display: none;
}
.wcag-field-error:not([hidden]):before {
	content: "Error: ";
}
.wcag-error-summary {
	border: 2px solid rgb(169,68,66);
	padding: 10px 15px;
	margin: 0 0 15px 0;
}
.wcag-error-summary h2,
.wcag-error-summary h3,
.wcag-error-summary h4 {
	margin: 0 0 8px 0;
	font-size: 1.1em;
}
.wcag-error-summary ul {
	margin: 0;
	padding-left: 20px;
}
/* Checkout rows are label | input flex rows, so the inline message was a third item beside the input.
   A row showing an error becomes a two-column grid sized like the flex row (the label shrinks to about
   23% of the row, never below its text), and the message takes the input column on the next line.
   Rows without an error are left alone. */
@media (min-width: 768px) {
	.checkout-pay-area .checkout-form-row:has(> .wcag-field-error:not([hidden])) {
		display: grid !important;
		grid-template-columns: minmax(min-content, 23.077%) minmax(0, 1fr);
		align-items: center;
	}
	.checkout-pay-area .checkout-form-row:has(> .wcag-field-error:not([hidden])) > label {
		width: auto;
	}
	.checkout-pay-area .checkout-form-row > .wcag-field-error {
		grid-column: 2;
	}
}
.checkout-pay-area .checkout-form-row > .wcag-field-error {
	align-self: stretch;
}
.checkout-pay-area .checkout-input-group > .wcag-field-error {
	flex: 0 0 100%;
}
