/* Shop messages (2026-12-02, notices-options.html Α + notices-info-color-options.html 2; inc/notices.php).
   Soft cards with a round icon: error = soft terracotta, success = soft green, information = white with a thin border.
   The account pages keep their own style (css/account.css). */
body:not(.woocommerce-account) :is(ul.woocommerce-error, .woocommerce-message, .woocommerce-info) {
	--n-bg: #FBEDE8; --n-fg: #6b3a2c; --n-ic: #A9573D; --n-icbg: #fff; --n-line: transparent;
	--n-btn-bg: #fff; --n-btn-fg: #A9573D; --n-btn-bd: #efcabd;
}
body:not(.woocommerce-account) div.woocommerce-message.woocommerce-message { --n-bg: #EEF5F0; --n-fg: #2f4f3a; --n-ic: #3E6B4B; --n-btn-bg: #fff; --n-btn-fg: #3E6B4B; --n-btn-bd: #bcd8c4; }
body:not(.woocommerce-account) :is(div.woocommerce-info.woocommerce-info, ul.woocommerce-error li:has(.dm-nk-info)) {
	--n-bg: #fff; --n-fg: #444; --n-ic: #6F5876; --n-icbg: #F1EBF3; --n-line: #e4dbe2;
	--n-btn-bg: #6F5876; --n-btn-fg: #fff; --n-btn-bd: #6F5876;
}

/* the list of errors becomes a stack of cards (one per message) */
body:not(.woocommerce-account) ul.woocommerce-error { list-style: none; margin: 0 0 16px; padding: 0; border: 0; background: none; box-shadow: none; display: grid; gap: 10px; }
body:not(.woocommerce-account) ul.woocommerce-error::before { content: none; display: none; }

body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) {
	display: flow-root; position: relative; min-height: 58px;
	margin: 0 0 12px; padding: 14px 16px 14px 60px; border: 0; border-radius: 16px;
	background: var(--n-bg); color: var(--n-fg); box-shadow: inset 0 0 0 1px var(--n-line);
	font-size: 14.5px; line-height: 1.5; list-style: none; text-align: left;
}
body:not(.woocommerce-account) ul.woocommerce-error li { margin: 0; }
body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info)::before {
	content: ""; display: block; position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; margin: 0; border-radius: 50%;
	background-color: var(--n-icbg); color: var(--n-ic); font-family: inherit;
	-webkit-mask: none; mask: none;
	background-image: var(--n-svg); background-repeat: no-repeat; background-position: center; background-size: 16px;
	--n-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9573D' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
}
body:not(.woocommerce-account) div.woocommerce-message.woocommerce-message::before {
	--n-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E6B4B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
body:not(.woocommerce-account) :is(div.woocommerce-info.woocommerce-info, ul.woocommerce-error li:has(.dm-nk-info))::before {
	--n-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F5876' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.5v.01'/%3E%3C/svg%3E");
}
body:not(.woocommerce-account) .dm-notice__t { font-weight: 700; }

/* the button sits on the right, as a pill (WooCommerce puts it first in «προστέθηκε στο καλάθι») */
body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) a.button.button {
	float: right; margin: -3px 0 0 16px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	padding: 8px 16px; min-height: 0; border-radius: 30px; border: 1px solid var(--n-btn-bd);
	background: var(--n-btn-bg); color: var(--n-btn-fg); font-size: 13.5px; font-weight: 700; line-height: 1.2;
	text-decoration: none; box-shadow: none; transition: filter .2s, transform .15s;
}
body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) a.button.button::after { content: "→"; }
body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) a.button.button:hover {
	background: var(--n-btn-bg); color: var(--n-btn-fg); border-color: var(--n-btn-bd); filter: brightness(.96); transform: translateY(-1px); text-decoration: none;
}
@media (max-width: 575.98px) {
	body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) a.button.button { float: none; display: flex; width: fit-content; margin: 10px 0 0; }
}

/* Cart / checkout blocks: same colours and shape */
.wc-block-components-notice-banner { border-radius: 16px; border: 0; padding: 14px 16px; font-size: 14.5px; }
.wc-block-components-notice-banner.is-error { background: #FBEDE8; color: #6b3a2c; }
.wc-block-components-notice-banner.is-error > svg { background: #fff; fill: #A9573D; }
.wc-block-components-notice-banner.is-success { background: #EEF5F0; color: #2f4f3a; }
.wc-block-components-notice-banner.is-success > svg { background: #fff; fill: #3E6B4B; }
.wc-block-components-notice-banner.is-info { background: #fff; color: #444; box-shadow: inset 0 0 0 1px #e4dbe2; }
.wc-block-components-notice-banner.is-info > svg { background: #F1EBF3; fill: #6F5876; }
.dm-nk-info { display: none !important; }
/* WooCommerce sets «.woocommerce-error li { padding-left: 0 !important }» */
body:not(.woocommerce-account) ul.woocommerce-error li { padding-left: 60px !important; }
/* Wider screens: one row — icon, text, button on the right (the text stays one flexible block) */
@media (min-width: 576px) {
	body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; padding: 14px 16px !important; }
	body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info)::before { position: static; order: -1; flex: none; }
	body:not(.woocommerce-account) :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) a.button.button { order: 2; float: none; flex: none; margin: 0 0 0 auto; }
}
/* css/shop.css gives notice buttons «!important» purple — keep each card's own button colours */
body:not(.woocommerce-account) .woocommerce-notices-wrapper :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) a.button.button,
body:not(.woocommerce-account) .woocommerce-notices-wrapper :is(ul.woocommerce-error li, .woocommerce-message, .woocommerce-info) a.button.button:hover {
	color: var(--n-btn-fg) !important; background: var(--n-btn-bg) !important; border-color: var(--n-btn-bd) !important;
}
