/**
 * HAWKS MyTime — Toast notifications
 *
 * All selectors are scoped to .hawks-toast* so this file does not affect
 * existing UI. Loaded only when the error-handling toolkit is enqueued.
 */

#hawks-toast-container {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
	max-width: calc( 100vw - 32px );
}

.hawks-toast {
	pointer-events: auto;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 16px;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.15 );
	color: #fff;
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	max-width: 360px;
	opacity: 0;
	transform: translateX( 20px );
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hawks-toast.is-visible {
	opacity: 1;
	transform: translateX( 0 );
}

.hawks-toast.is-leaving {
	opacity: 0;
	transform: translateX( 20px );
}

.hawks-toast--error {
	background: #c0392b;
}

.hawks-toast--success {
	background: #27ae60;
}

.hawks-toast--info {
	background: #34495e;
}

.hawks-toast--warning {
	background: #e67e22;
}

.hawks-toast-message {
	flex: 1 1 auto;
	min-width: 0;
	word-wrap: break-word;
}

.hawks-toast-close {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
	opacity: 0.8;
}

.hawks-toast-close:hover,
.hawks-toast-close:focus {
	opacity: 1;
	outline: none;
}

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