/* ============================================================
   TOAST "AJOUTÉ AU PANIER"
   Chargé sur toutes les pages : l'ajout au panier AJAX peut
   survenir sur n'importe quelle page du site.
   ============================================================ */

#ticq-toast-container {
	position: fixed;
	bottom: 88px;
	right: 24px;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.ticq-toast {
	background: #fff;
	border: 1px solid #e0d0c0;
	border-left: 4px solid var(--ticq-color-primary);
	border-radius: var(--ticq-radius-sm);
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
	max-width: 300px;
	width: 300px;
	pointer-events: auto;
	transform: translateX(calc(100% + 32px));
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
}

.ticq-toast.is-visible {
	transform: translateX(0);
	opacity: 1;
}

.ticq-toast__check {
	width: 28px;
	height: 28px;
	border-radius: var(--ticq-radius-round);
	background: #e8f5ec;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ticq-toast__check svg {
	width: var(--ticq-icon-sm);
	height: var(--ticq-icon-sm);
	fill: #3a8a4a;
}

.ticq-toast__body {
	flex: 1;
	min-width: 0;
}

.ticq-toast__body strong {
	display: block;
	font-size: 13px;
	color: var(--ticq-color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ticq-toast__body span {
	font-size: 11px;
	color: #3a8a4a;
	font-weight: 600;
}

.ticq-toast__actions {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-shrink: 0;
}

.ticq-toast__btn {
	display: block;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: var(--ticq-radius-pill);
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.ticq-toast__btn--cart {
	background: #f5f0eb;
	color: var(--ticq-color-text);
	border: 1px solid #e0d0c0;
}

.ticq-toast__btn--checkout {
	background: var(--ticq-color-primary);
	color: #fff !important;
}


.ticq-toast__btn--checkout:hover {
	opacity: 0.85;
	text-decoration: none;
}

/* Décale le toast si le bandeau cookies est ouvert (sur Desktop uniquement) */
@media (min-width: 600px) {
	body.ticq-cookie-open #ticq-toast-container {
		bottom: 200px;
	}
}

/* ── Mobile (≤ 599 px) : toast floating top bar sans conflit avec chatbot/cookies ── */
@media (max-width: 599px) {
	#ticq-toast-container {
		top: 16px;
		bottom: auto;
		left: 16px;
		right: 16px;
	}

	.ticq-toast {
		max-width: 100%;
		width: 100%;
		transform: translateY(-120%);
		box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	}

	.ticq-toast.is-visible {
		transform: translateY(0);
	}
}
