/*
 * Cerebroly Navigator — light-DOM styles for the auto-redirect toast.
 * The in-chat CTA styles live inside the chat-messages shadow root
 * (injected from JS) so they inherit the chat's theme colours.
 */

.ceronav-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 40px);
	padding: 12px 16px;
	border-radius: 10px;
	background: #1f2937;
	color: #f9fafb;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	animation: ceronav-toast-in 0.2s ease-out;
}

@keyframes ceronav-toast-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ceronav-toast-message {
	font-weight: 600;
}

.ceronav-toast-counter {
	opacity: 0.8;
}

.ceronav-toast-cancel {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	color: inherit;
	padding: 6px 12px;
	border-radius: 999px;
	font: inherit;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ceronav-toast-cancel:hover,
.ceronav-toast-cancel:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.7);
}

.ceronav-toast-cancel:focus-visible {
	outline: 2px solid #f9fafb;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.ceronav-toast {
		left: 12px;
		right: 12px;
		bottom: 12px;
		justify-content: space-between;
	}
}
