/**
 * WooCommerce notices (success, info, error) in the theme's style.
 *
 * The site's custom CSS gives every notice the same dark red background with
 * !important, so these rules use a more specific selector and !important too.
 * Each type keeps its own colour for the left bar, icon and button outline:
 * success green, info lime (the site accent), error red.
 */

body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
	--oxy-nt-color: #DCEF6F;

	position: relative !important;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px !important;
	width: auto !important;
	margin: 0 0 24px !important;
	padding: 14px 18px 14px 50px !important;
	border: 1px solid #2B2B2B !important;
	border-left: 3px solid var(--oxy-nt-color) !important;
	border-radius: 5px;
	background: #111111 !important;
	color: var(--e-global-color-primary, #fff) !important;
	font-family: "Google Sans", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	list-style: none !important;
	text-align: left;
}
body .woocommerce-message {
	--oxy-nt-color: #3DD68C;
}
body .woocommerce-error {
	--oxy-nt-color: #E06C6C;

	flex-direction: column;
	align-items: flex-start;
	gap: 4px !important;
}

/* WooCommerce's icon font, recoloured and centred vertically with the text
   and button. Errors can list several lines, so their icon stays beside the
   first line. */
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before {
	position: absolute !important;
	top: 50% !important;
	left: 18px !important;
	display: block !important;
	color: var(--oxy-nt-color) !important;
	font-size: 18px;
	line-height: 1;
	transform: translateY(-50%);
}
body .woocommerce-error::before {
	top: 17px !important;
	transform: none;
}
/* WooCommerce's info icon is a window glyph; use an "i" badge instead. */
body .woocommerce-info::before {
	content: "i" !important;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--oxy-nt-color);
	color: #000 !important;
	font-family: "Google Sans", sans-serif !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
/* WooCommerce's clearfix would be an empty flex item. */
body .woocommerce-message::after,
body .woocommerce-info::after,
body .woocommerce-error::after {
	display: none !important;
}

body .woocommerce-error li,
body .woocommerce-info li,
body .woocommerce-message li {
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
}

/* Links in the text. */
body .woocommerce-message a:not(.button),
body .woocommerce-info a:not(.button),
body .woocommerce-error a:not(.button) {
	color: var(--oxy-nt-color) !important;
	text-decoration: underline;
}

/* Action buttons ("View cart", "Resend", …): the theme's button (Elementor
   kit: lime, black uppercase text, white on hover), at the right end. */
body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button {
	order: 2;
	float: none !important;
	flex: none;
	margin: 0 0 0 auto !important;
	padding: 10px 15px !important;
	border: 0 !important;
	border-radius: 5px !important;
	background: var(--e-global-color-secondary, #DCEF6F) !important;
	box-shadow: none !important;
	color: var(--e-global-color-f32d6a3, #000) !important;
	font-family: var(--e-global-typography-accent-font-family, "Google Sans"), sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color .2s ease;
}
body .woocommerce-message .button:hover,
body .woocommerce-info .button:hover,
body .woocommerce-error .button:hover,
body .woocommerce-message .button:focus-visible,
body .woocommerce-info .button:focus-visible,
body .woocommerce-error .button:focus-visible {
	background: var(--e-global-color-primary, #fff) !important;
	color: var(--e-global-color-f32d6a3, #000) !important;
}

/* My Account: notices span the content column instead of shrinking to fit. */
body.woocommerce-account .woocommerce-notices-wrapper {
	max-width: none !important;
	margin: 0 !important;
}
body.woocommerce-account .woocommerce-notices-wrapper:empty {
	display: none;
}
