/* RNCommerce – WooCommerce-Hinweise („… liegt jetzt im Warenkorb", Fehler, Infos) auf allen Seiten im Design v2.
   Ersetzt die Standard-Optik von WooCommerce/Elementor (grüner Balken oben, grauer Button). Gilt mit body.rnc-n. */
body.rnc-n .woocommerce-notices-wrapper:empty { display: none; }
body.rnc-n :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 12px; box-sizing: border-box; width: auto;
	margin: 0 0 12px !important; padding: 12px 16px 12px 46px !important; border: 0 !important; border-radius: 12px !important;
	background: #F4F4F5 !important; color: #111111 !important; box-shadow: none !important; outline: none;
	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; font-weight: 400; line-height: 1.4;
	position: relative; list-style: none; text-align: left;
}
body.rnc-n :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus { outline: none; }
body.rnc-n :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
	content: '' !important; position: absolute; left: 15px; top: 13px; width: 20px; height: 20px; margin: 0; border-radius: 10px;
	background: #0E5E73 center / 12px no-repeat; font-size: 0; line-height: 0; color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E");
}
body.rnc-n :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::after { display: none !important; }
body.rnc-n .woocommerce-message { background: #ECFDF3 !important; }
body.rnc-n .woocommerce-message::before {
	background-color: #166534;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
body.rnc-n .woocommerce-error { background: #FEF2F2 !important; flex-direction: column; align-items: flex-start; }
body.rnc-n .woocommerce-error::before {
	background-color: #B91C1C;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E");
}
body.rnc-n .woocommerce-error li { margin: 0; padding: 0; list-style: none; }
/* Text vorne, Link dahinter – kein grauer Button-Kasten */
body.rnc-n .rnc-n-text { order: 1; }
body.rnc-n :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a.button, a.wc-forward, .button) {
	order: 2; float: none !important; display: inline !important; min-height: 0 !important; height: auto !important; width: auto !important;
	padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
	color: #0E5E73 !important; font-family: inherit; font-size: 15px !important; font-weight: 600 !important; line-height: 1.4 !important;
	letter-spacing: 0 !important; text-transform: none !important; text-decoration: underline !important; text-underline-offset: 2px;
}
body.rnc-n :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a.button, a.wc-forward, .button):hover { color: #0A4555 !important; background: none !important; }
body.rnc-n :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) { color: #0E5E73; text-decoration: underline; text-underline-offset: 2px; }
