/**
 * Product cards: "Add to basket" → live basket quantity control + toast.
 * Base button / quantity styles live in style.css (.custom-shop-*).
 */

/* Show either the button or the quantity control, never both. */
.vsm-acq .vsm-acq-qty {
	display: none;
}
.vsm-acq.vsm-acq--in-cart .vsm-acq-qty {
	display: inline-flex;
}
.vsm-acq.vsm-acq--in-cart > a.button,
.vsm-acq a.added_to_cart {
	display: none !important;
}

/* Same height as the button so the card does not jump when it swaps. */
.product-footer .vsm-acq .vsm-acq-qty {
	min-height: 38px;
	align-items: center;
}

/* Request in progress. */
.vsm-acq.vsm-acq--busy .vsm-acq-qty,
.vsm-acq.vsm-acq--busy > a.button {
	opacity: .6;
	cursor: progress;
}
.vsm-acq .custom-qty-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

/* ---------- Toast ---------- */
.vsm-toast-container {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	max-width: calc(100% - 40px);
	pointer-events: none;
}

.vsm-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 260px;
	max-width: 380px;
	padding: 12px 14px 12px 16px;
	border-left: 4px solid #ff8c4e;
	border-radius: 0;
	background: #0d5740;
	color: #fff;
	font-family: "Maven Pro", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: auto;
}
.vsm-toast.vsm-toast--show {
	opacity: 1;
	transform: translateY(0);
}
.vsm-toast .mdi {
	flex: none;
	font-size: 20px;
	line-height: 1;
}
.vsm-toast__text {
	flex: 1 1 auto;
}
.vsm-toast__close {
	flex: none;
	padding: 0 2px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	opacity: .8;
	cursor: pointer;
}
.vsm-toast__close:hover,
.vsm-toast__close:focus {
	opacity: 1;
	outline: 0;
}

.vsm-toast--info {
	background: #0a4231;
}
.vsm-toast--error {
	background: #c62828;
	border-left-color: #7f1d1d;
}

@media (max-width: 575px) {
	.vsm-toast-container {
		right: 10px;
		left: 10px;
		bottom: 10px;
		max-width: none;
		align-items: stretch;
	}
	.vsm-toast {
		min-width: 0;
		max-width: none;
	}
}
