/**
 * External Link Notifier - modal styles.
 * Designed to closely match a Bootstrap-style exit-disclaimer modal.
 */

.eln-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.eln-modal.eln-open {
	display: block;
}

.eln-backdrop {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
}

.eln-dialog {
	position: relative;
	margin: 40px auto;
	max-width: 640px;
	width: calc( 100% - 30px );
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 5px 30px rgba( 0, 0, 0, 0.5 );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #555555;
	-webkit-animation: eln-pop 0.18s ease-out;
	animation: eln-pop 0.18s ease-out;
	max-height: calc( 100vh - 80px );
	display: flex;
	flex-direction: column;
}

@-webkit-keyframes eln-pop {
	from { transform: translateY( -20px ); opacity: 0; }
	to   { transform: translateY( 0 ); opacity: 1; }
}

@keyframes eln-pop {
	from { transform: translateY( -20px ); opacity: 0; }
	to   { transform: translateY( 0 ); opacity: 1; }
}

/* Header */
.eln-header {
	position: relative;
	padding: 16px 20px;
	background: #f5f5f5;
	border-bottom: 1px solid #e5e5e5;
	border-radius: 6px 6px 0 0;
}

.eln-title {
	margin: 0;
	padding-right: 30px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: #444444;
}

.eln-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #b9b9b9;
	color: #ffffff;
	font-size: 20px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease;
}

.eln-close:hover {
	background: #9b9b9b;
}

/* Body */
.eln-body {
	padding: 24px 28px;
	overflow-y: auto;
}

.eln-image {
	text-align: center;
	margin-bottom: 18px;
}

.eln-image img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

.eln-bullets {
	margin: 0;
	padding: 0 0 0 22px;
	list-style: none;
}

.eln-bullets li {
	position: relative;
	margin: 0 0 14px 0;
	padding-left: 18px;
	font-size: 17px;
	line-height: 1.5;
	color: #555555;
}

.eln-bullets li:last-child {
	margin-bottom: 0;
}

.eln-bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 7px;
	height: 7px;
	background: #888888;
}

/* Footer */
.eln-footer {
	padding: 14px 20px;
	background: #f5f5f5;
	border-top: 1px solid #e5e5e5;
	border-radius: 0 0 6px 6px;
	text-align: center;
}

.eln-btn {
	display: inline-block;
	margin: 0 4px;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	color: #ffffff;
	transition: background 0.15s ease;
}

.eln-btn-continue {
	background: #449d44;
	border-color: #398439;
}

.eln-btn-continue:hover {
	background: #398439;
}

.eln-btn-cancel {
	background: #c9302c;
	border-color: #ac2925;
}

.eln-btn-cancel:hover {
	background: #ac2925;
}

body.eln-noscroll {
	overflow: hidden;
}

/* Small screens */
@media ( max-width: 480px ) {
	.eln-dialog {
		margin: 20px auto;
		max-height: calc( 100vh - 40px );
	}
	.eln-title {
		font-size: 19px;
	}
	.eln-bullets li {
		font-size: 15px;
	}
	.eln-btn {
		display: block;
		width: 100%;
		margin: 6px 0;
	}
}
