/* Notices WooCommerce — alignées au thème Sande Paris */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-notices-wrapper {
	margin: 0 0 1.5rem;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	align-items: stretch;
	background: #f7f7f7;
	border: 1px solid rgba(21, 20, 20, 0.12);
	border-radius: 0;
	box-shadow: none;
	color: #151414;
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
	font-weight: 300;
	gap: 1rem;
	line-height: 1.6;
	list-style: none !important;
	margin: 0 0 0.75rem;
	padding: 1.15rem 1.25rem;
	position: relative;
}

ul.woocommerce-error,
ul.woocommerce-message,
ul.woocommerce-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.woocommerce-error:last-child,
.woocommerce-message:last-child,
.woocommerce-info:last-child {
	margin-bottom: 0;
}

/* Icône / pastille WC par défaut */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error li::before,
.woocommerce-message li::before,
.woocommerce-info li::before {
	content: none !important;
	display: none !important;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.woocommerce-error a:not(.button),
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button) {
	color: inherit;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce-error a:not(.button):hover,
.woocommerce-message a:not(.button):hover,
.woocommerce-info a:not(.button):hover {
	opacity: 0.75;
}

/* CTA dans la notice (ex. Confirm email) */
.woocommerce-error .button,
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error a.button,
.woocommerce-message a.button,
.woocommerce-info a.button {
	align-self: flex-start;
	background: #151414 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	display: inline-flex;
	float: none !important;
	font-size: 0.6875rem;
	font-weight: 300;
	justify-content: center;
	letter-spacing: 0.16em;
	line-height: 1.2;
	margin: 0;
	order: -1;
	padding: 0.85rem 1.35rem;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: opacity 0.2s ease;
	white-space: nowrap;
}

.woocommerce-error .button:hover,
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error a.button:hover,
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover {
	background: #151414 !important;
	color: #fff !important;
	opacity: 0.82;
}

@media (min-width: 640px) {
	div.woocommerce-error,
	div.woocommerce-message,
	div.woocommerce-info {
		align-items: center;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1rem 1.5rem;
		justify-content: space-between;
		padding: 1.15rem 1.5rem;
	}

	.woocommerce-error .button,
	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error a.button,
	.woocommerce-message a.button,
	.woocommerce-info a.button {
		align-self: center;
		flex-shrink: 0;
		margin-left: auto;
		order: 1;
	}
}

/* Succès */
.woocommerce-message {
	background: #f7f7f7;
	border-color: rgba(21, 20, 20, 0.14);
}

/* Info */
.woocommerce-info {
	background: #f7f7f7;
	border-color: rgba(21, 20, 20, 0.12);
}

/* Erreur */
.woocommerce-error {
	background: #faf6f4;
	border-color: rgba(199, 81, 58, 0.35);
	color: #c7513a;
}

.woocommerce-error .button,
.woocommerce-error a.button {
	background: #c7513a !important;
}

.woocommerce-error .button:hover,
.woocommerce-error a.button:hover {
	background: #a33d2b !important;
	opacity: 1;
}
