/* Assiette Gourmande — notification d'ajout au panier
   Module ag/cart-feedback — desactivable via l'option ag_feature_cart_feedback */

.ag-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 99990;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: min(340px, calc(100vw - 32px));
	padding: 14px 40px 14px 16px;
	background: #ffffff;
	color: var(--theme-palette-color-8, #3a3d3a);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 0;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
	font-size: 15px;
	line-height: 1.45;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	pointer-events: none;
}

.ag-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.ag-toast__icon {
	flex: none;
	margin-top: 1px;
	color: var(--theme-palette-color-3, #20bf48);
	line-height: 0;
}

.ag-toast__body {
	min-width: 0;
}

.ag-toast__msg {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.ag-toast__cta {
	display: inline-block;
	margin-top: 9px;
	padding: 7px 14px;
	background: var(--theme-palette-color-1, #F2902B);
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	border-radius: 0;
}

.ag-toast__cta:hover,
.ag-toast__cta:focus {
	filter: brightness(.93);
	color: #ffffff !important;
}

.ag-toast__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--theme-palette-color-7, #525552);
	cursor: pointer;
	opacity: .65;
	line-height: 0;
}

.ag-toast__close:hover,
.ag-toast__close:focus-visible {
	opacity: 1;
}

.ag-toast__close:focus-visible,
.ag-toast__cta:focus-visible {
	outline: 2px solid var(--theme-palette-color-1, #F2902B);
	outline-offset: 2px;
}

/* Mobile : en bas a gauche, en laissant la place a la bulle WhatsApp */
@media (max-width: 781px) {
	.ag-toast {
		top: auto;
		bottom: 16px;
		left: 12px;
		right: 82px;
		width: auto;
		max-width: none;
		transform: translateY(10px);
	}
}

/* Pulsation unique du compteur du panier */
@keyframes agCartPulse {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.16); }
	100% { transform: scale(1); }
}

.ag-cart-pulse {
	animation: agCartPulse .45s ease-out 1;
}

@media (prefers-reduced-motion: reduce) {
	.ag-toast {
		transition: opacity .01ms linear;
		transform: none;
	}
	.ag-cart-pulse {
		animation: none;
	}
}
