/* Toast notifications (bottom centre) - used for WooCommerce notices and OTP messages */
.mcotp-msg {
	display: none !important;
}

.auth-toasts {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: calc(100% - 32px);
	max-width: 440px;
	pointer-events: none;
	direction: rtl;
}

.auth-toast {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 18px 16px;
	border-radius: 12px;
	background: #d92d20;
	color: #fff;
	font-size: 14px;
	line-height: 1.8;
	text-align: right;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
	cursor: pointer;
	pointer-events: auto;
	outline: 0;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .25s ease, transform .25s ease;
}

.auth-toast.is-in {
	opacity: 1;
	transform: translateY(0);
}

.auth-toast--success {
	background: #2a9d5f;
}

.auth-toast--info {
	background: #2f2f2f;
}

.auth-toast__msg {
	flex: 1;
	min-width: 0;
}

.auth-toast a,
.auth-toast .button {
	display: inline;
	padding: 0;
	margin: 0 6px;
	background: none;
	border: 0;
	box-shadow: none;
	color: #fff;
	font-size: inherit;
	font-weight: 700;
	text-decoration: underline;
}

/* closing progress bar: drains from full to empty over the toast's lifetime */
.auth-toast__bar {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4px;
	background: rgba(255, 255, 255, .25);
}

.auth-toast__bar::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	background: rgba(255, 255, 255, .85);
	transform-origin: right center;
	animation: auth-toast-bar var(--toast-ms, 6000ms) linear forwards;
}

.auth-toast.is-paused .auth-toast__bar::after {
	animation-play-state: paused;
}

@keyframes auth-toast-bar {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

/* the coupon error is shown as a toast (js/add-to-cart-toast.js), not under the input */
.coupon-error-notice { display: none !important; }

/* loader over the cart while an item is removed / a quantity is updated (WooCommerce blockUI overlay) */
.woocommerce-cart-form .blockUI.blockOverlay,
.cart_totals .blockUI.blockOverlay { background: rgba(255,255,255,.65) !important; opacity: 1 !important; border-radius: 12px; }
.woocommerce-cart-form .blockUI.blockOverlay::before,
.cart_totals .blockUI.blockOverlay::before {
	content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
	border: 3px solid #d9d9d9; border-top-color: #333; border-radius: 50%; animation: mrcase-cart-spin .7s linear infinite;
	background: none !important;
}
@keyframes mrcase-cart-spin { to { transform: rotate(360deg); } }
