/*
 * AFV UI cart feedback module.
 */

.afv-ui-cart-toast {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 100000;
	box-sizing: border-box;
	max-width: min(620px, calc(100vw - 32px));
	padding: 24px 36px;
	border: 1px solid #b7e1c1;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: #1d2327;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, calc(-50% + 14px));
	transition: opacity 180ms ease, transform 180ms ease;
}

.afv-ui-cart-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%);
}

.afv-ui-cart-toast.is-error {
	border-color: #e0a4a4;
}

.afv-ui-cart-toast__icon {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0 18px 0 0;
	border-radius: 50%;
	background: #16803c;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}

.afv-ui-cart-toast__message {
	vertical-align: middle;
}

.afv-ui-cart-toast__icon[hidden] {
	display: none;
}

.afv-ui-cart-is-loading {
	cursor: wait;
}

.added_to_cart.wc-forward {
	display: none !important;
}

@media screen and (max-width: 600px) {
	.afv-ui-cart-toast {
		max-width: calc(100vw - 32px);
		padding: 20px 24px;
		font-size: 19px;
	}
}
