/*
 * Hubka Theme
 *
 * Phase: 11B.4 — WooCommerce Styling
 * Purpose: Store Notices — both the classic, server-rendered notice
 * system (used by My Account, Checkout validation) and the block-based
 * client-rendered notice banner (used by woocommerce/store-notices,
 * Cart, Checkout). Success / Info / Error / Warning only.
 *
 * All classes confirmed directly from WooCommerce's own template source
 * (notices/*.php) and its shipped store-notices.css bundle.
 *
 * Rules:
 * - Reuse theme.json tokens.
 * - Use logical properties.
 * - Keep selectors shallow.
 * - Do not duplicate component styling.
 */

/* Classic notices (My Account, Checkout server-side validation). */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: 0.375rem;
	margin-block-end: var(--wp--preset--spacing--40);
	list-style: none;
}

.woocommerce-message {
	background-color: var(--wp--preset--color--background-secondary);
	border-inline-start: 3px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text);
}

.woocommerce-info {
	background-color: var(--wp--preset--color--background-secondary);
	border-inline-start: 3px solid var(--wp--preset--color--muted);
	color: var(--wp--preset--color--text);
}

.woocommerce-error {
	background-color: var(--wp--preset--color--background-secondary);
	border-inline-start: 3px solid #b3261e;
	color: var(--wp--preset--color--text);
}

/* Block-based notice banner (Cart, Checkout, Store Notices block). */
.wc-block-components-notice-banner {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: 0.375rem;
	margin-block-end: var(--wp--preset--spacing--40);
}

.wc-block-components-notice-banner.is-success {
	background-color: var(--wp--preset--color--background-secondary);
	border-inline-start: 3px solid var(--wp--preset--color--primary);
}

.wc-block-components-notice-banner.is-info {
	background-color: var(--wp--preset--color--background-secondary);
	border-inline-start: 3px solid var(--wp--preset--color--muted);
}

.wc-block-components-notice-banner.is-warning {
	background-color: var(--wp--preset--color--background-secondary);
	border-inline-start: 3px solid var(--wp--preset--color--accent);
}

.wc-block-components-notice-banner.is-error {
	background-color: var(--wp--preset--color--background-secondary);
	border-inline-start: 3px solid #b3261e;
}

.wc-block-components-notice-banner__content {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
}
