/* Avisos Inteligentes do Carrinho — front-end */

.mcn-notices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	margin: 0 0 20px;
	box-sizing: border-box;
}
.mcn-notices:empty {
	display: none;
	margin: 0;
}

.mcn-notice {
	--mcn-accent: var(--mcn-primary, #0a7b3e);
	--mcn-soft: #eaf4ee;
	--mcn-soft: color-mix(in srgb, var(--mcn-accent) 11%, #fff);
	--mcn-line: #dbe7df;
	--mcn-line: color-mix(in srgb, var(--mcn-accent) 20%, #e5e7eb);

	display: flex;
	align-items: center;
	gap: 14px;
	box-sizing: border-box;
	width: 100%;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--mcn-line);
	border-radius: var(--mcn-radius, 14px);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -8px rgba(16, 24, 40, .12);
	color: #1f2a24;
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	transition: background-color .3s ease, border-color .3s ease;
}

.mcn-notice__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mcn-soft);
	color: var(--mcn-accent);
	transition: background-color .3s ease, color .3s ease;
}
.mcn-notice__icon svg {
	display: block;
	width: 21px;
	height: 21px;
}

.mcn-notice__body {
	flex: 1 1 auto;
	min-width: 0;
}

.mcn-notice .mcn-notice__text {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}
.mcn-notice__text strong,
.mcn-notice__text .mcn-amount {
	color: var(--mcn-accent);
	font-weight: 700;
}
.mcn-notice__text .mcn-amount {
	white-space: nowrap;
}

.mcn-progress {
	position: relative;
	height: 6px;
	margin-top: 9px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--mcn-track, #e6efe8);
}
.mcn-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--mcn-accent);
	background: linear-gradient(90deg, color-mix(in srgb, var(--mcn-accent) 65%, #fff), var(--mcn-accent));
	transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

/* Meta atingida */
.mcn-notice.is-reached {
	background: var(--mcn-soft);
	border-color: transparent;
}
.mcn-notice.is-reached .mcn-notice__icon {
	background: var(--mcn-accent);
	color: #fff;
}

/* Mensagem simples */
.mcn-notice--message {
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Animações */
.mcn-enter {
	animation: mcn-in .35s ease-out both;
}
.mcn-pop .mcn-notice__icon {
	animation: mcn-pop .6s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes mcn-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}
@keyframes mcn-pop {
	0% { transform: scale(.6); }
	60% { transform: scale(1.12); }
	100% { transform: scale(1); }
}

/* Mini carrinho: versão compacta */
.mcn-notices--minicart {
	margin: 0 0 12px;
}
.mcn-notices--minicart .mcn-notice {
	gap: 10px;
	padding: 10px 12px;
	font-size: 13px;
	box-shadow: none;
}
.mcn-notices--minicart .mcn-notice__icon {
	width: 30px;
	height: 30px;
}
.mcn-notices--minicart .mcn-notice__icon svg {
	width: 16px;
	height: 16px;
}

/* Aviso flutuante */
.mcn-sticky {
	position: fixed;
	z-index: 9990;
	bottom: var(--mcn-offset, 20px);
	left: 20px;
	width: min(420px, calc(100vw - 32px));
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.mcn-sticky.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
	transition: opacity .3s ease, transform .3s ease;
}
.mcn-sticky--right {
	left: auto;
	right: 20px;
}
.mcn-sticky--center {
	left: 50%;
	transform: translate(-50%, 16px);
}
.mcn-sticky--center.is-visible {
	transform: translate(-50%, 0);
}
.mcn-sticky .mcn-notices {
	margin: 0;
}
.mcn-sticky .mcn-notice {
	padding-right: 42px;
	border-color: rgba(16, 24, 40, .06);
	box-shadow: 0 12px 32px -10px rgba(16, 24, 40, .28), 0 2px 6px rgba(16, 24, 40, .06);
	backdrop-filter: saturate(1.2) blur(6px);
}
.mcn-sticky .mcn-notice:not(.is-reached) {
	background: rgba(255, 255, 255, .96);
}
.mcn-sticky__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7a71;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.mcn-sticky__close:hover,
.mcn-sticky__close:focus-visible {
	background: rgba(16, 24, 40, .06);
	color: #1f2a24;
}

@media (max-width: 600px) {
	.mcn-notice {
		gap: 12px;
		padding: 12px 14px;
		font-size: 14px;
	}
	.mcn-notice__icon {
		width: 34px;
		height: 34px;
	}
	.mcn-notice__icon svg {
		width: 18px;
		height: 18px;
	}
	.mcn-sticky,
	.mcn-sticky--right,
	.mcn-sticky--center {
		left: 12px;
		right: 12px;
		width: auto;
		transform: translateY(16px);
	}
	.mcn-sticky.is-visible,
	.mcn-sticky--center.is-visible {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcn-notice,
	.mcn-progress__bar,
	.mcn-sticky,
	.mcn-enter,
	.mcn-pop .mcn-notice__icon {
		transition: none !important;
		animation: none !important;
	}
}
