/* Notifications « ajouté au panier » (assets/js/toast.js). Maquette : README design_handoff_achat, état 1c. */

.tbx-toasts {
	position: fixed;
	top: 100px;
	right: 80px;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 420px;
	max-width: calc(100vw - 24px);
	pointer-events: none;
}

.tbx-toasts .tbx-toast {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 4px 14px;
	margin: 0;
	padding: 18px 56px 18px 18px;
	border: 1px solid #EADFD4;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(15, 42, 61, .35);
	color: #0F2A3D;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15.5px;
	line-height: 1.45;
	pointer-events: auto;
	animation: tbx-toast-in .25s ease-out;
	transition: opacity .25s, transform .25s;
}

.tbx-toasts .tbx-toast::before {
	display: none; /* icône par défaut de WooCommerce */
}

.tbx-toasts .tbx-toast.is-leaving {
	opacity: 0;
	transform: translateY(-8px);
}

.tbx-toast__ico {
	display: flex;
	grid-row: span 2;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #E8F4EC;
	color: #0E7A40;
	font-size: 18px;
	font-weight: 900;
}

.tbx-toast__text strong {
	font-weight: 800;
}

.tbx-toast__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.tbx-toasts .tbx-toast__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid #D8CCC0;
	border-radius: 999px;
	background: #fff;
	color: #0F2A3D;
	font: 700 14.5px Inter, system-ui, sans-serif;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

.tbx-toasts .tbx-toast__btn--main {
	border-color: #CB5223;
	background: #CB5223;
	color: #fff;
}

.tbx-toasts .tbx-toast__btn--main:hover {
	border-color: #B8461C;
	background: #B8461C;
	color: #fff;
}

.tbx-toasts .tbx-toast__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5A6B7C;
	font: 400 24px/1 Inter, system-ui, sans-serif;
	cursor: pointer;
}

.tbx-toasts .tbx-toast__close:hover {
	background: #FBF5EF;
	color: #0F2A3D;
}

.tbx-toasts :focus-visible {
	outline: 3px solid #004B76;
	outline-offset: 2px;
}

@keyframes tbx-toast-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
	.tbx-toasts {
		top: 80px;
		right: 12px;
		left: 12px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbx-toasts .tbx-toast {
		animation: none;
		transition: none;
	}
}
