/* Base styles for all error notifications */
.erh-notification {
	min-height: 47px;
	box-sizing: border-box;
	padding: 12px;
	display: block;
	color: white;
	font-size: 11pt;
	font-family: sans-serif;
	border-radius: 0;
	padding-right: 30px;
	position: fixed;
	z-index: 99999999999999999;
	width: 100vw;
	left: 0;
	top: 0;
	user-select: text;
}

/* Error types with specific colors */
.erh-error {
	background: red;
	border-left: 9px solid darkred;
}

.erh-correct {
	background: forestgreen;
	border-left: 9px solid darkgreen;
}

.erh-notice {
	background: orange;
	border-left: 9px solid darkorange;
}

.erh-warning {
	background: orangered;
	border-left: 9px solid darkred;
}

/* Message content styles */
.erh-message {
	color: white;
	text-decoration: none;
	float: left;
	display: inline-block;
	max-width: calc(100% - 30px);
}

/* Close button styles */
.erh-close {
	top: 10px;
	right: 12px;
	margin-right: 12px;
	position: absolute;
	font-size: 13pt;
	cursor: pointer;
	color: white;
	text-decoration: none;
}

/* Animation for new notifications */
@keyframes erhFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.erh-notification {
	animation: erhFadeIn 0.6s ease-in-out;
}

/* Auto-hide animation: hold 2 seconds, then fade out over 1 second */
@keyframes erhAutoHide {

	0%,
	66.67% {
		opacity: 1;
	}

	/* Hold for 2 seconds (2/3 of 3 seconds) */
	100% {
		opacity: 0;
	}

	/* Fade to 0 over 1 second (last 1/3) */
}

@keyframes erhDisablePointer {

	0%,
	99% {
		pointer-events: auto;
	}

	100% {
		pointer-events: none;
	}
}

.erh-auto-hide {
	animation: erhFadeIn 0.3s ease-in-out, erhAutoHide 6s ease-in-out forwards, erhDisablePointer 9s step-end forwards;

	/* Disable pointer-events after 6 seconds */
}