/**
 * Avisos de proceso (WooCommerce) — estilo global de marca.
 * Navy #1b2a49, radio amplio, icono circular, sin el recuadro clásico.
 */

:root {
	--nj-notice-navy: #1b2a49;
	--nj-notice-muted: #61708f;
	--nj-notice-radius: 22px;
	--nj-notice-font: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--nj-notice-error: #e11d48;
	--nj-notice-success: #0f9d58;
	--nj-notice-info: #1b2a49;
	--nj-notice-error-bg: #fff6f7;
	--nj-notice-success-bg: #f3fbf6;
	--nj-notice-info-bg: #f3f7fc;
	--nj-notice-icon: 1.75rem;
}

@keyframes nj-notice-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.woocommerce-notices-wrapper {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0 0 1.15rem;
}

.woocommerce-notices-wrapper:empty {
	display: none;
	margin: 0;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.entry-content .woocommerce-error,
.entry-content .woocommerce-message,
.entry-content .woocommerce-info,
.wc-block-components-notice-banner,
.farmacia-login-popup__ctx-expired,
.farmacia-auth-view__notice {
	box-sizing: border-box;
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem 0.85rem;
	width: 100%;
	margin: 0 0 1.15rem !important;
	padding: 0.9rem 1.15rem 0.9rem 1.05rem !important;
	border: 1px solid transparent !important;
	border-top: 1px solid transparent !important;
	border-radius: var(--nj-notice-radius) !important;
	background-clip: padding-box;
	box-shadow: 0 10px 28px rgb(27 42 73 / 7%);
	color: var(--nj-notice-navy) !important;
	font-family: var(--nj-notice-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	list-style: none !important;
	word-wrap: break-word;
	overflow-wrap: break-word;
	animation: nj-notice-in 0.28s ease;
}

.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
	margin-bottom: 0 !important;
}

.woocommerce-error::after,
.woocommerce-message::after,
.woocommerce-info::after {
	content: none !important;
	display: none !important;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.farmacia-login-popup__ctx-expired::before,
.farmacia-auth-view__notice::before {
	content: "" !important;
	display: block !important;
	flex: 0 0 var(--nj-notice-icon);
	width: var(--nj-notice-icon);
	height: var(--nj-notice-icon);
	margin: 0.05rem 0 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.72rem;
	box-shadow: 0 4px 10px rgb(27 42 73 / 12%);
	font-family: inherit !important;
	font-size: 0 !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 0 !important;
	color: transparent !important;
	speak: never;
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	transform: none !important;
}

ul.woocommerce-error {
	display: grid !important;
	grid-template-columns: var(--nj-notice-icon) minmax(0, 1fr);
	align-items: start;
	column-gap: 0.85rem;
	row-gap: 0.35rem;
}

ul.woocommerce-error::before {
	grid-column: 1;
	grid-row: 1;
}

ul.woocommerce-error li {
	grid-column: 2;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	text-indent: 0 !important;
}

.woocommerce-error,
.farmacia-login-popup__ctx-expired {
	background: var(--nj-notice-error-bg) !important;
	border-color: rgb(225 29 72 / 16%) !important;
}

.woocommerce-error::before,
.farmacia-login-popup__ctx-expired::before {
	background-color: var(--nj-notice-error) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 7.1v6.3' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.7' r='1.2' fill='%23fff'/%3E%3C/svg%3E") !important;
}

.woocommerce-message {
	background: var(--nj-notice-success-bg) !important;
	border-color: rgb(15 157 88 / 18%) !important;
}

.woocommerce-message::before {
	background-color: var(--nj-notice-success) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.7 12.2l3.5 3.4 7.1-7.3' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.woocommerce-info,
.farmacia-auth-view__notice {
	background: var(--nj-notice-info-bg) !important;
	border-color: rgb(27 42 73 / 10%) !important;
}

.woocommerce-info::before,
.farmacia-auth-view__notice::before {
	background-color: var(--nj-notice-info) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='7.35' r='1.2' fill='%23fff'/%3E%3Cpath d='M12 10.6v6.3' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
	color: var(--nj-notice-navy);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce-error a:hover,
.woocommerce-message a:hover,
.woocommerce-info a:hover {
	color: var(--nj-notice-navy);
	opacity: 0.82;
}

.woocommerce-error .button,
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error a.button,
.woocommerce-message a.button,
.woocommerce-info a.button {
	order: 1;
	float: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 0 auto !important;
	padding: 0.45rem 1.1rem !important;
	min-height: 2.35rem;
	border: none !important;
	border-radius: 999px !important;
	background: var(--nj-notice-navy) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: var(--nj-notice-font);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	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 {
	filter: brightness(1.08);
	color: #fff !important;
}

.farmacia-login-popup.farmacia-login-popup--account-skin .woocommerce-notices-wrapper,
.farmacia-login-popup.farmacia-login-popup--account-skin .woocommerce-error,
.farmacia-login-popup.farmacia-login-popup--account-skin .woocommerce-message,
.farmacia-login-popup.farmacia-login-popup--account-skin .woocommerce-info,
.farmacia-login-popup.farmacia-login-popup--account-skin .farmacia-login-popup__ctx-expired {
	position: relative;
	z-index: 1;
}

.wp-block-farmacia-account-view.farmacia-account-view .farmacia-account-view__main .woocommerce-MyAccount-content .woocommerce-message,
.wp-block-farmacia-account-view.farmacia-account-view .farmacia-account-view__main .woocommerce-MyAccount-content .woocommerce-info,
.wp-block-farmacia-account-view.farmacia-account-view .farmacia-account-view__main .woocommerce-MyAccount-content .woocommerce-error {
	background: var(--nj-notice-info-bg);
	border-radius: var(--nj-notice-radius);
	padding: 0.9rem 1.15rem 0.9rem 1.05rem;
}

.wp-block-farmacia-account-view.farmacia-account-view .farmacia-account-view__main .woocommerce-MyAccount-content .woocommerce-error {
	background: var(--nj-notice-error-bg);
}

.wp-block-farmacia-account-view.farmacia-account-view .farmacia-account-view__main .woocommerce-MyAccount-content .woocommerce-message {
	background: var(--nj-notice-success-bg);
}

.wc-block-components-notice-banner {
	align-items: flex-start;
	padding: 0.9rem 1.15rem !important;
	border: 1px solid rgb(27 42 73 / 10%) !important;
	border-radius: var(--nj-notice-radius) !important;
	background: var(--nj-notice-info-bg) !important;
	box-shadow: 0 10px 28px rgb(27 42 73 / 7%);
	color: var(--nj-notice-navy) !important;
	font-family: var(--nj-notice-font);
	font-size: 15px;
	line-height: 1.45;
}

.wc-block-components-notice-banner.is-error {
	background: var(--nj-notice-error-bg) !important;
	border-color: rgb(225 29 72 / 16%) !important;
}

.wc-block-components-notice-banner.is-success {
	background: var(--nj-notice-success-bg) !important;
	border-color: rgb(15 157 88 / 18%) !important;
}

.wc-block-components-notice-banner.is-warning {
	background: #fff8eb !important;
	border-color: rgb(217 119 6 / 18%) !important;
}

.wc-block-components-notice-banner .wc-block-components-notice-banner__content {
	margin: 0;
}

.farmacia-pc__empty.woocommerce-info,
.farmacia-top-rated-products__empty.woocommerce-info,
.farmacia-cat-archive__no-products.woocommerce-info {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none;
	animation: none;
	color: inherit !important;
}

.farmacia-pc__empty.woocommerce-info::before,
.farmacia-top-rated-products__empty.woocommerce-info::before,
.farmacia-cat-archive__no-products.woocommerce-info::before {
	content: none !important;
	display: none !important;
}

@media (max-width: 600px) {
	.woocommerce-error,
	.woocommerce-message,
	.woocommerce-info,
	.farmacia-login-popup__ctx-expired,
	.farmacia-auth-view__notice {
		padding: 0.85rem 1rem !important;
		border-radius: 18px !important;
		font-size: 14px;
	}

	.woocommerce-error .button,
	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error a.button,
	.woocommerce-message a.button,
	.woocommerce-info a.button {
		width: 100%;
		margin-left: 0 !important;
	}
}
