/* Al Mahjar Core — a field's error, beside it (registration, login, checkout). Logical properties: right-to-left too. */
.almahjar-ferr,
.woocommerce-checkout .checkout-inline-error-message {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 7px 0 0 !important;
	padding: 8px 11px;
	border-radius: 10px;
	background: color-mix(in srgb, #c62828 8%, transparent);
	color: #a31515;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 500;
	text-align: start;
}
.almahjar-ferr svg {
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	margin-top: 1px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}
.almahjar-ferr span {
	min-width: 0;
	overflow-wrap: anywhere;
}
/* the field itself */
.almahjar-fld.has-error :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .almahjar-sel-btn),
.woocommerce-checkout .form-row.has-error :is(input.input-text, select, textarea, .select2-selection) {
	border-color: #c62828 !important;
	box-shadow: 0 0 0 1px #c62828 !important;
}
.almahjar-fld.has-error :is(input, select, textarea):focus,
.woocommerce-checkout .form-row.has-error :is(input.input-text, select, textarea):focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, #c62828 22%, transparent) !important;
}
.almahjar-fld.has-error > label,
.woocommerce-checkout .form-row.has-error > label {
	color: #a31515;
}
.almahjar-fld.has-error .almahjar-ccp-row {
	border-color: #c62828;
}
/* the phone field keeps its own note for typing hints: the error box replaces it */
.almahjar-fld.has-error .almahjar-ph-note,
.woocommerce-checkout .form-row.has-error .almahjar-ph-note {
	display: none;
}
/* block checkout: WooCommerce's own message under a field, in the same box */
.wp-block-woocommerce-checkout .wc-block-components-validation-error {
	margin-top: 6px;
}
.wp-block-woocommerce-checkout .wc-block-components-validation-error > p {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
	padding: 8px 11px;
	border-radius: 10px;
	background: color-mix(in srgb, #c62828 8%, transparent);
	color: #a31515;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 500;
	text-align: start;
}
.wp-block-woocommerce-checkout .wc-block-components-validation-error > p svg {
	flex: 0 0 auto;
	margin-top: 1px;
	fill: currentColor;
}
.wp-block-woocommerce-checkout .wc-block-components-validation-error > p span {
	min-width: 0;
	overflow-wrap: anywhere;
}
