/**
 * Toast при добавлении в корзину.
 */

.sm-cart-notice-root {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 100050;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	max-width: min(22rem, calc(100vw - 2rem));
	pointer-events: none;
}

@media (min-width: 768px) {
	.sm-cart-notice-root {
		right: 1.5rem;
		bottom: 1.5rem;
	}
}

.sm-cart-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
	padding: 0.875rem 1rem;
	font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.875rem;
	box-shadow: 0 10px 40px -12px rgba(0, 52, 89, 0.25);
	pointer-events: auto;
	opacity: 0;
	transform: translateY(0.75rem) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.sm-cart-notice.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.sm-cart-notice.is-leaving {
	opacity: 0;
	transform: translateY(0.5rem) scale(0.98);
}

.sm-cart-notice__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	background: #e8f4ec;
	color: #047857;
}

.sm-cart-notice__body {
	flex: 1;
	min-width: 0;
}

.sm-cart-notice__title {
	margin: 0 0 0.2rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	color: #001f3f;
}

.sm-cart-notice__product {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: #6b7280;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sm-cart-notice__link {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #4b7b9b;
	text-decoration: none;
}

.sm-cart-notice__link:hover {
	color: #003459;
	text-decoration: underline;
}

.sm-cart-notice__close {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin: -0.25rem -0.25rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
}

.sm-cart-notice__close:hover {
	background: #f3f4f6;
	color: #374151;
}
