/**
 * Toast-style replacement for WooCommerce's native notices
 * (.woocommerce-error / .woocommerce-message / .woocommerce-info) on the
 * Cart and Checkout pages - see toast-notices.js, which intercepts them
 * wherever wc_print_notices() renders them (a full-width spot outside
 * our layout) and turns each into one of these instead. Styled after
 * shadcn/sonner's "colored icon" toast variant: neutral card, the icon
 * alone carries the semantic color.
 */
.eir-toast-container {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(380px, calc(100vw - 32px));
	pointer-events: none;
}

.eir-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #FFFFFF;
	color: #18181b;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
	padding: 14px 16px;
	font-family: "Inter", sans-serif;
	font-size: 13.5px;
	line-height: 1.45;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-8px) scale(0.98);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.eir-toast.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.eir-toast.is-leaving {
	opacity: 0;
	transform: translateY(-8px) scale(0.98);
}

.eir-toast-icon {
	flex: none;
	width: 19px;
	height: 19px;
	margin-top: 1px;
}

.eir-toast-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.eir-toast-text {
	flex: 1;
	padding-top: 1px;
	color: #27272a;
}

.eir-toast.is-success .eir-toast-icon {
	color: #22c55e;
}

.eir-toast.is-error .eir-toast-icon {
	color: #ef4444;
}

.eir-toast.is-info .eir-toast-icon {
	color: #8b5cf6;
}

@media (max-width: 480px) {
	.eir-toast-container {
		top: auto;
		bottom: 16px;
		right: 16px;
		left: 16px;
		width: auto;
	}
}
