html body:not(#mdc-root) .mdc-notice {
	--mdc-notice-tone: var(--e-global-color-secondary);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px 16px;
	width: auto;
	margin: 0 0 24px;
	padding: 14px 16px 14px 14px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--e-global-color-text);
	border: 1px solid color-mix(in srgb, var(--mdc-notice-tone) 32%, transparent);
	border-radius: 6px;
	background-color: color-mix(in srgb, var(--mdc-notice-tone) 7%, var(--e-global-color-card));
	box-shadow: none;
	list-style: none;
	animation: mdc-notice-in 0.25s ease;
}

html body:not(#mdc-root) .mdc-notice--info {
	--mdc-notice-tone: var(--e-global-color-muted);
}

html body:not(#mdc-root) .mdc-notice--error {
	--mdc-notice-tone: var(--e-global-color-primary);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0;
}

html body:not(#mdc-root) .mdc-notice::before,
html body:not(#mdc-root) .mdc-notice::after {
	content: none;
	display: none;
}

html body:not(#mdc-root) .mdc-notice:focus {
	outline: none;
}

html body:not(#mdc-root) ul.mdc-notice.mdc-notice--error > li.mdc-notice__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px 16px;
	margin: 0;
	padding: 14px 16px 14px 14px !important;
	list-style: none;
}

html body:not(#mdc-root) .mdc-notice--error .mdc-notice__item + .mdc-notice__item {
	border-top: 1px solid color-mix(in srgb, var(--mdc-notice-tone) 20%, transparent);
}

.mdc-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--mdc-notice-tone);
	border: 1px solid color-mix(in srgb, var(--mdc-notice-tone) 40%, transparent);
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--mdc-notice-tone) 14%, transparent);
}

.mdc-notice--info .mdc-notice__icon,
.mdc-notice--error .mdc-notice__icon {
	color: var(--e-global-color-text);
}

.mdc-notice--error .mdc-notice__icon {
	border-color: var(--mdc-notice-tone);
	background-color: var(--mdc-notice-tone);
}

.mdc-notice__icon svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

.mdc-notice__message {
	min-width: 0;
}

html body:not(#mdc-root) .mdc-notice .mdc-notice__message a {
	font-weight: 600;
	color: var(--e-global-color-text);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--mdc-notice-tone) 70%, transparent);
	text-underline-offset: 3px;
}

html body:not(#mdc-root) .mdc-notice .mdc-notice__message strong {
	font-weight: 600;
}

.mdc-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

html body:not(#mdc-root) .mdc-notice .mdc-notice__actions a.button {
	display: inline-flex;
	align-items: center;
	float: none;
	margin: 0;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--e-global-color-deep);
	border: 0;
	border-radius: 2px;
	background-color: var(--e-global-color-secondary);
	box-shadow: none;
	transition: background-color 0.2s ease;
}

html body:not(#mdc-root) .mdc-notice .mdc-notice__actions a.button:hover {
	color: var(--e-global-color-deep);
	background-color: var(--e-global-color-text);
}

html body:not(#mdc-root) .mdc-notice .mdc-notice__actions a.button:focus-visible {
	outline: 2px solid var(--e-global-color-secondary);
	outline-offset: 2px;
}

body > .woocommerce-notices-wrapper .mdc-notice:last-child,
.mdc-product-detail__notices .mdc-notice:last-child {
	margin-bottom: 0;
}

.mdc-product-detail__notices:not(:empty) {
	margin-bottom: 32px;
}

@keyframes mdc-notice-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

@media (max-width: 767px) {
	html body:not(#mdc-root) .mdc-notice,
	html body:not(#mdc-root) ul.mdc-notice.mdc-notice--error > li.mdc-notice__item {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
		font-size: 14px;
	}

	.mdc-notice__actions {
		grid-column: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body:not(#mdc-root) .mdc-notice {
		animation: none;
	}
}
