#mtk-wc-toast-region {
	position: fixed;
	top: 26px;
	right: 22px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(410px, calc(100vw - 32px));
	pointer-events: none;
}

.admin-bar #mtk-wc-toast-region { top: 58px; }

.mtk-wc-toast {
	--mtk-toast-color: #168f5c;
	--mtk-toast-soft: #e8f8f0;
	position: relative;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 11px;
	min-height: 68px;
	padding: 12px 13px;
	direction: rtl;
	color: #27313d;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.8;
	background: rgba(255, 255, 255, .98);
	border: 1px solid #dfe5e9;
	border-radius: 14px;
	box-shadow: 0 14px 42px rgba(25, 37, 54, .18);
	backdrop-filter: blur(10px);
	pointer-events: auto;
	transform: translateX(115%);
	opacity: 0;
	transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}

.mtk-wc-toast.is-visible { transform: translateX(0); opacity: 1; }
.mtk-wc-toast.is-leaving { transform: translateX(35px); opacity: 0; }
.mtk-wc-toast--error { --mtk-toast-color: #d84949; --mtk-toast-soft: #fff0f0; }
.mtk-wc-toast--info { --mtk-toast-color: #2878d4; --mtk-toast-soft: #edf5ff; }

.mtk-wc-toast__timer {
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
}

.mtk-wc-toast__timer svg { position: absolute; inset: 0; width: 36px; height: 36px; transform: rotate(-90deg); }
.mtk-wc-toast__timer circle { fill: none; stroke-width: 3; }
.mtk-wc-toast__timer .track { stroke: var(--mtk-toast-soft); }
.mtk-wc-toast__timer .progress { stroke: var(--mtk-toast-color); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 0; animation: mtk-wc-toast-countdown var(--mtk-toast-duration) linear forwards; }
.mtk-wc-toast__icon { position: relative; z-index: 1; color: var(--mtk-toast-color); font-size: 18px; font-weight: 700; line-height: 1; }
.mtk-wc-toast__content { min-width: 0; overflow-wrap: anywhere; }
.mtk-wc-toast__content p,
.mtk-wc-toast__content ul,
.mtk-wc-toast__content li { margin: 0; padding: 0; list-style: none; }
.mtk-wc-toast__content a { display: inline; margin-right: 5px; padding: 0 !important; color: var(--mtk-toast-color) !important; font: inherit; font-weight: 700; text-decoration: none; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.mtk-wc-toast__close { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: #929aa5; font-family: Arial, sans-serif; font-size: 20px; line-height: 1; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.mtk-wc-toast__close:hover,
.mtk-wc-toast__close:focus { color: #333d49; background: #f0f2f5; outline: none; }

@keyframes mtk-wc-toast-countdown { to { stroke-dashoffset: 94.25; } }

@media (max-width: 600px) {
	#mtk-wc-toast-region { top: 14px; right: 14px; width: calc(100vw - 28px); }
	.admin-bar #mtk-wc-toast-region { top: 60px; }
	.mtk-wc-toast { min-height: 62px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.mtk-wc-toast { transition: opacity .15s ease; transform: none; }
	.mtk-wc-toast__timer .progress { animation: none; }
}
