/*
 * Shop messages - .woocommerce-info / -message / -error and the block notices -
 * in the Adriatic style instead of WooCommerce's default blue bar
 * (23 Oct 2026). Navy for information, green for success, red for problems;
 * soft panel, rounded corners, the site's fonts, links and buttons in navy.
 */

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.wc-block-components-notice-banner {
	position: relative;
	margin: 0 0 24px !important;
	padding: 14px 18px 14px 50px !important;
	background: #f7f8fa !important;
	border: 1px solid #e3e6eb !important;
	border-left: 4px solid #242c3f !important;
	border-top-width: 1px !important;
	border-radius: 8px !important;
	color: #242c3f !important;
	font-family: "Avenir", "Avenir Next", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	box-shadow: none !important;
	list-style: none;
}

.woocommerce-message,
.wc-block-components-notice-banner.is-success {
	border-left-color: #1b6b3a !important;
	background: #f3f9f5 !important;
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
	border-left-color: #b3261e !important;
	background: #fdf4f3 !important;
}

/* The icon: a simple round badge in the accent colour (replaces the blue glyph). */
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
	position: absolute !important;
	left: 16px !important;
	top: 50% !important;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	line-height: 22px !important;
	border-radius: 50%;
	text-align: center;
	font-family: system-ui, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700;
	color: #fff !important;
	background: #242c3f;
}
.woocommerce-info::before { content: "i" !important; }
.woocommerce-message::before { content: "\2713" !important; background: #1b6b3a; }
.woocommerce-error::before { content: "!" !important; background: #b3261e; }

/* Several errors in one list: align with the text, not under the icon. */
.woocommerce-error li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-error li + li { margin-top: 6px; }

/* Links and buttons inside a message. */
.woocommerce-info a:not(.button),
.woocommerce-message a:not(.button),
.woocommerce-error a:not(.button),
.wc-block-components-notice-banner a:not(.button) {
	color: #242c3f !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .wc-forward,
.woocommerce-message .wc-forward {
	float: right;
	margin: -4px 0 -4px 16px !important;
	padding: 8px 16px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: #242c3f !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.3 !important;
	text-decoration: none !important;
	letter-spacing: .02em;
}
.woocommerce-info .button:hover,
.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .wc-forward:hover,
.woocommerce-message .wc-forward:hover {
	background: #3a4560 !important;
}

/* Block notices (block cart / checkout): same panel, their own icon kept small. */
.wc-block-components-notice-banner > svg {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	padding: 3px;
	box-sizing: border-box;
	background: #242c3f !important;
	fill: #fff !important;
}
.wc-block-components-notice-banner.is-success > svg { background: #1b6b3a !important; }
.wc-block-components-notice-banner.is-error > svg { background: #b3261e !important; }

@media (max-width: 600px) {
	.woocommerce-info .button,
	.woocommerce-message .button,
	.woocommerce-error .button,
	.woocommerce-info .wc-forward,
	.woocommerce-message .wc-forward {
		float: none;
		display: inline-block;
		margin: 10px 0 0 !important;
	}
}
