/* nzdNotify (js/nzd-notify.js) - the shared notification modal and toasts, replacing the old
   #realtimealert slider bar (.stslider* in css/nzd4*.css) and games.css's own .games-toast*. */

/* ---- toasts: self-dismissing, non-blocking ---- */

/* z-index above Bootstrap's own modals (1050) in case one happens to be open underneath.
   Spans the full width (rather than left:50% + translateX, which would cap a toast's width at
   half the viewport) and centres the toasts inside it; the container itself never catches
   clicks. */
.nzd-toast-container {
	position: fixed;
	top: 80px;
	left: 0;
	right: 0;
	z-index: 1080;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.nzd-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(20, 20, 20, 0.92);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	max-width: min(90vw, 420px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.nzd-toast.show {
	opacity: 1;
	transform: translateY(0);
}

/* Plain toasts let clicks fall through to the page underneath; ones with a link/button or a
   dismiss need to catch them. */
.nzd-toast-interactive {
	pointer-events: auto;
}

.nzd-toast-body {
	text-align: left;
}

.nzd-toast-icon {
	flex: 0 0 auto;
	color: orange;
}

.nzd-toast a,
.nzd-toast-action {
	color: orange;
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	white-space: nowrap;
}

.nzd-toast em {
	color: #ff6b6b;
	font-style: normal;
	font-weight: 700;
}

.nzd-toast-close {
	flex: 0 0 auto;
	background: none;
	border: 0;
	padding: 0 0 0 4px;
	color: #bbb;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.nzd-toast-close:hover {
	color: #fff;
}

/* The "you have new mail" reminder (type 'mail-reminder', queued by nzdating.master.vb on page
   load) - the one toast that has to compete for attention, so unlike the dark default it's a light
   card with an orange top bar, and it sits below the header's dark breadcrumb strip instead of on
   top of it (where a dark toast just disappeared into the same colour). Legacy
   showrealtimealert() messages (js/nzdlib.js, class nzd-toast-legacy - e.g. "Your alert settings
   have been changed") share the same treatment; in-game toasts keep the dark default. */
.nzd-toast.nzd-toast-mail-reminder,
.nzd-toast.nzd-toast-legacy {
	background: #fff;
	color: #222;
	font-size: 15px;
	padding: 12px 18px;
	border: 1px solid #e0b060;
	border-top: 5px solid #f5a623;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	margin-top: 56px;
}

.nzd-toast-mail-reminder .nzd-toast-icon,
.nzd-toast-legacy .nzd-toast-icon {
	color: #f5a623;
	font-size: 20px;
}

.nzd-toast-mail-reminder em,
.nzd-toast-legacy em {
	color: #d9304f;
}

.nzd-toast-mail-reminder a,
.nzd-toast-legacy a {
	color: #c77700;
}

.nzd-toast-mail-reminder .nzd-toast-action,
.nzd-toast-legacy .nzd-toast-action {
	color: #777;
}

.nzd-toast-mail-reminder .nzd-toast-close,
.nzd-toast-legacy .nzd-toast-close {
	color: #999;
}

.nzd-toast-mail-reminder .nzd-toast-close:hover,
.nzd-toast-legacy .nzd-toast-close:hover {
	color: #222;
}

/* The phone header has no tall breadcrumb strip to clear. */
@media only screen and (max-width: 767px) {
	.nzd-toast.nzd-toast-mail-reminder,
	.nzd-toast.nzd-toast-legacy {
		margin-top: 0;
	}
}

/* ---- the shared modal ---- */

.nzd-notify-icon {
	margin-right: 8px;
	color: orange;
}

.nzd-notify-text {
	white-space: pre-line;
}

.nzd-notify-detail {
	margin-top: 6px;
	font-size: 13px;
	color: #777;
	word-break: break-word;
}

.nzd-notify-footerlink {
	font-size: 12px;
	color: #888;
	text-decoration: underline;
}

.nzd-notify-block-btn {
	display: block;
	width: 100%;
	margin-bottom: 8px;
}

.nzd-notify-block-btn:last-child {
	margin-bottom: 0;
}
