/* MWS Combinação de Cupões — toasts */
:root {
	--mws-cc-success: #1f7a4d;
	--mws-cc-error: #b3261e;
	--mws-cc-text: #ffffff;
}

/* Esconde o aviso clássico do WooCommerce enquanto o JS o troca pelo toast. */
.mws-cc-hide-notices .woocommerce-message:has(.mws-cc-toast),
.mws-cc-hide-notices .woocommerce-info:has(.mws-cc-toast),
.mws-cc-hide-notices .woocommerce-error li:has(.mws-cc-toast) {
	display: none !important;
}

.mws-cc-toasts {
	position: fixed;
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(380px, calc(100vw - 32px));
	pointer-events: none;
}
.mws-cc-toasts--top-right { top: 24px; right: 16px; }
.mws-cc-toasts--top-left { top: 24px; left: 16px; }
.mws-cc-toasts--top-center { top: 24px; left: 50%; transform: translateX(-50%); }
.mws-cc-toasts--bottom-right { bottom: 24px; right: 16px; flex-direction: column-reverse; }
.mws-cc-toasts--bottom-left { bottom: 24px; left: 16px; flex-direction: column-reverse; }
.mws-cc-toasts--bottom-center { bottom: 24px; left: 50%; transform: translateX(-50%); flex-direction: column-reverse; }
.admin-bar .mws-cc-toasts--top-right,
.admin-bar .mws-cc-toasts--top-left,
.admin-bar .mws-cc-toasts--top-center { top: 56px; }

.mws-cc-toast-item {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 12px 14px 14px;
	border-radius: 10px;
	background: var(--mws-cc-success);
	color: var(--mws-cc-text);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
	font-size: 14px;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.mws-cc-toasts--bottom-right .mws-cc-toast-item,
.mws-cc-toasts--bottom-left .mws-cc-toast-item,
.mws-cc-toasts--bottom-center .mws-cc-toast-item { transform: translateY(8px); }
.mws-cc-toast-item.is-visible { opacity: 1; transform: none; }
.mws-cc-toast-item--error { background: var(--mws-cc-error); }

.mws-cc-toast-item__icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
}
.mws-cc-toast-item__msg { flex: 1 1 auto; padding-top: 1px; }
.mws-cc-toast-item__close {
	flex: 0 0 auto;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	opacity: 0.8;
	font-size: 20px;
	line-height: 1;
	padding: 0 4px !important;
	margin: -2px 0 0;
	min-height: 0 !important;
	cursor: pointer;
}
.mws-cc-toast-item__close:hover,
.mws-cc-toast-item__close:focus-visible { opacity: 1; }

@media (max-width: 600px) {
	.mws-cc-toasts,
	.mws-cc-toasts--top-center,
	.mws-cc-toasts--bottom-center { left: 16px; right: 16px; width: auto; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mws-cc-toast-item { transition: none; transform: none; }
}
