.tmhc-toasts {
	--tmhc-t-bg: #1d2024;
	--tmhc-t-text: #ece8df;
	--tmhc-t-muted: rgba(236, 232, 223, 0.7);
	--tmhc-t-accent: #f2a900;
	--tmhc-t-danger: #e5484d;
	--tmhc-t-ok: #3fb68b;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(380px, calc(100vw - 32px));
	pointer-events: none;
	font-family: "Barlow", system-ui, -apple-system, sans-serif;
}

.wp-admin .tmhc-toasts {
	bottom: 32px;
}

.tmhc-toast {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 14px 14px 16px;
	border: 1px solid rgba(236, 232, 223, 0.12);
	border-left: 0;
	border-radius: 12px;
	background: var(--tmhc-t-bg);
	color: var(--tmhc-t-text);
	box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.3);
	pointer-events: auto;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 0.22s ease, transform 0.22s ease;
	position: relative;
	overflow: hidden;
}

.tmhc-toast::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: var(--tmhc-toast-tone, var(--tmhc-t-accent));
}

.tmhc-toast.is-in {
	opacity: 1;
	transform: none;
}

.tmhc-toast.is-out {
	opacity: 0;
	transform: translateX(24px);
}

.tmhc-toast--success { --tmhc-toast-tone: var(--tmhc-t-ok); }
.tmhc-toast--info { --tmhc-toast-tone: var(--tmhc-t-accent); }
.tmhc-toast--alert,
.tmhc-toast--error { --tmhc-toast-tone: var(--tmhc-t-danger); }

.tmhc-toast__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--tmhc-toast-tone, var(--tmhc-t-accent)) 18%, transparent);
	color: var(--tmhc-toast-tone, var(--tmhc-t-accent));
}

.tmhc-toast__body {
	flex: 1;
	min-width: 0;
}

.tmhc-toast__body p {
	margin: 0;
}

.tmhc-toast__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.tmhc-toast__msg {
	color: var(--tmhc-t-muted);
	font-size: 14px;
	line-height: 1.45;
}

.tmhc-toast__title + .tmhc-toast__msg {
	margin-top: 2px;
}

.tmhc-toast__title:only-child,
.tmhc-toast__msg:first-child {
	color: var(--tmhc-t-text);
}

.tmhc-toast__link {
	display: inline-block;
	margin-top: 6px;
	color: var(--tmhc-t-accent) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tmhc-toast__link:hover {
	text-decoration: underline;
}

.tmhc-toast__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--tmhc-t-muted);
	cursor: pointer;
}

.tmhc-toast__close:hover,
.tmhc-toast__close:focus-visible {
	background: rgba(236, 232, 223, 0.08);
	color: var(--tmhc-t-text);
	outline: none;
}

@media (max-width: 600px) {
	.tmhc-toasts {
		right: 16px;
		left: 16px;
		bottom: 16px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmhc-toast {
		transition: none;
	}
}
