/*
 * External link notice (replaces the Exit Notifier plugin).
 * Colours match the plugin's settings on the live site: navy header bar
 * (#002269 with a #001B55 border) over a black, semi-transparent backdrop.
 */

.nz-exit[hidden] {
	display: none;
}

.nz-exit {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.nz-exit__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	animation: nz-exit-fade 0.2s ease-out;
}

.nz-exit__box {
	position: relative;
	width: 100%;
	max-width: 600px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	border: 3px solid #001b55;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	animation: nz-exit-fade 0.2s ease-out;
}

.nz-exit__title {
	margin: 0;
	padding: 14px 20px;
	background: #002269;
	color: #fff;
	font-size: 20px;
	line-height: 1.3;
}

.nz-exit__body {
	margin: 0;
	padding: 20px 20px 8px;
	color: #222;
	font-size: 16px;
	line-height: 1.6;
}

.nz-exit__countdown {
	margin: 0;
	padding: 0 20px 8px;
	color: #555;
	font-size: 14px;
	text-align: center;
}

.nz-exit__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	padding: 12px 20px 20px;
}

.nz-exit__buttons button {
	min-width: 120px;
	padding: 10px 20px;
	border: 2px solid #002269;
	border-radius: 3px;
	font-size: 16px;
	cursor: pointer;
}

.nz-exit__go {
	background: #002269;
	color: #fff;
}

.nz-exit__cancel {
	background: #fff;
	color: #002269;
}

.nz-exit__buttons button:hover,
.nz-exit__buttons button:focus-visible {
	outline: 3px solid #4d7cff;
	outline-offset: 2px;
}

html.nz-exit-open {
	overflow: hidden;
}

@keyframes nz-exit-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nz-exit__backdrop,
	.nz-exit__box {
		animation: none;
	}
}
