/* PR Panda Shop — витрина: уведомление «Добавлено в корзину» и кнопка «в корзине». */

.pshop-toast {
	position: fixed;
	left: 50%;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 100020;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: min(520px, calc(100vw - 24px));
	padding: 12px 12px 12px 16px;
	border-radius: 14px;
	background: #16233a;
	color: #fff;
	font-size: 15px;
	line-height: 1.35;
	box-shadow: 0 14px 34px -10px rgba(15, 23, 42, .5);
	opacity: 0;
	transform: translate(-50%, 12px);
	pointer-events: none;
	transition: opacity .18s ease-out, transform .18s ease-out;
}
.pshop-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}
.pshop-toast > i {
	flex-shrink: 0;
	color: #86efac;
}
.pshop-toast.is-error > i {
	color: #fdba74;
}
.pshop-toast__text {
	flex: 1;
	min-width: 0;
}
.pshop-toast__act {
	flex-shrink: 0;
	min-height: 36px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	border: 0;
	border-radius: 10px;
	background: var(--accent, #ea580c);
	color: #fff !important;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
}
.pshop-toast__act:hover {
	background: #c2410c;
}
.pshop-toast__act:focus-visible {
	outline: 2px solid #fdba74;
	outline-offset: 2px;
}
@media (max-width: 480px) {
	.pshop-toast {
		left: 12px;
		right: 12px;
		max-width: none;
		transform: translateY(12px);
	}
	.pshop-toast.is-on {
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pshop-toast {
		transition: none;
	}
}

/* Позиция уже в корзине: зелёная отметка вместо тележки, клик ведёт к оформлению. */
.pshop-format-add.is-in-cart,
.pshop-var-add.is-in-cart,
.pshop-simple-add.is-in-cart {
	background-color: #15803d !important;
	border-color: #15803d !important;
	color: #fff !important;
}
.pshop-format-add.is-in-cart:hover,
.pshop-var-add.is-in-cart:hover,
.pshop-simple-add.is-in-cart:hover {
	background-color: #166534 !important;
}
.pshop-format-add.loading,
.pshop-var-add.loading,
.pshop-simple-add.loading {
	opacity: .6;
	cursor: progress;
}
