/* Native shopper notices only. WooCommerce retains markup and all behavior. */
body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info, .wc-block-components-notice-banner) {
	--lbm-notice-accent: var(--wp--preset--color--burgundy);
	--lbm-notice-surface: var(--wp--preset--color--linen);
	--lbm-notice-text: var(--wp--preset--color--body-text);

	border-color: var(--lbm-notice-accent);
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--lbm-notice-surface);
	color: var(--lbm-notice-text);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

body .woocommerce-error,
body .wc-block-components-notice-banner.is-error {
	--lbm-notice-accent: var(--wp--preset--color--burgundy-deep);
	--lbm-notice-surface: color-mix(in srgb, var(--wp--preset--color--burgundy) 8%, var(--wp--preset--color--background));
	--lbm-notice-text: var(--wp--preset--color--burgundy-deep);

	border-color: var(--lbm-notice-accent);
	background-color: var(--lbm-notice-surface);
	color: var(--lbm-notice-text);
}

body .wc-block-components-notice-banner:is(.is-success, .is-info, .is-default) {
	border-color: var(--lbm-notice-accent);
	background-color: var(--lbm-notice-surface);
	color: var(--lbm-notice-text);
}

body .wc-block-components-notice-banner.is-warning {
	--lbm-notice-accent: var(--wp--preset--color--gold);
	--lbm-notice-surface: var(--wp--preset--color--background);

	border-color: var(--lbm-notice-accent);
	background-color: var(--lbm-notice-surface);
	color: var(--lbm-notice-text);
}

body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info)::before {
	color: var(--lbm-notice-accent);
}

body .wc-block-components-notice-banner > svg {
	fill: var(--wp--preset--color--white);
	background-color: var(--lbm-notice-accent);
}

body .wc-block-components-notice-banner:is(.is-success, .is-error, .is-info, .is-default, .is-warning) > svg {
	background-color: var(--lbm-notice-accent);
}

body .wc-block-components-notice-banner.is-warning > svg {
	fill: var(--wp--preset--color--body-text);
}

body .wc-block-components-notice-banner__content {
	min-width: 0;
}

body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info, .wc-block-components-notice-banner) a {
	color: var(--wp--preset--color--burgundy-deep);
	font-family: inherit;
	text-underline-offset: 0.15em;
}

/* Upstream marks this native action color important.
 * This does not override Gutenberg block color controls. */
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	color: var(--wp--preset--color--burgundy-deep) !important;
}

body .wc-block-components-notice-banner > .wc-block-components-button svg {
	fill: var(--wp--preset--color--burgundy-deep);
	color: var(--wp--preset--color--burgundy-deep);
}

/* The native snackbar has no semantic status class: keep a neutral surface. */
body .wc-block-components-notice-snackbar {
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--wp--preset--color--linen);
	box-shadow: inset 3px 0 0 var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--body-text);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

body .wc-block-components-notice-snackbar :is(a, .components-button) {
	color: var(--wp--preset--color--burgundy-deep);
	font-family: inherit;
}
