/* ==========================================================================
   Component: External Link Notice
   "You are leaving the Morton Salt website" confirmation dialog.
   Rendered in the footer by inc/external-link-notice.php.
   ========================================================================== */

.ms-external-link-notice {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
}

.ms-external-link-notice.is-open {
	display: block;
}

.ms-external-link-notice__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 5, 62, 0.6);
}

.ms-external-link-notice__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 34rem);
	max-height: 90vh;
	overflow-y: auto;
	background: #ffffff;
	color: #00053e;
	border-radius: 0.75rem;
	padding: 2rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ms-external-link-notice__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	/* 2.5.8 Target Size: 24x24 CSS px minimum. */
	min-width: 2.75rem;
	min-height: 2.75rem;
	border: 0;
	background: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #4b5563;
}

.ms-external-link-notice__heading {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 2rem 0.75rem 0;
	color: #00053e;
}

.ms-external-link-notice__message {
	font-size: 16px;
	line-height: 1.5;
}

.ms-external-link-notice__message p {
	margin: 0 0 0.75rem;
}

.ms-external-link-notice__message p:last-child {
	margin-bottom: 0;
}

.ms-external-link-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.ms-external-link-notice__continue,
.ms-external-link-notice__cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	min-height: 2.75rem;
	border: 2px solid transparent;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease,
		border-color 0.3s ease, box-shadow 0.3s ease;
}

.ms-external-link-notice__continue {
	background-color: #0034ba;
	color: #ffffff;
}

.ms-external-link-notice__continue:hover {
	background-color: #ffffff;
	color: #0034ba;
	border-color: #0034ba;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.ms-external-link-notice__cancel {
	background-color: #ffffff;
	color: #00053e;
	border-color: #00053e;
}

.ms-external-link-notice__cancel:hover {
	background-color: #00053e;
	color: #ffffff;
}

.ms-external-link-notice__continue:focus-visible,
.ms-external-link-notice__cancel:focus-visible,
.ms-external-link-notice__close:focus-visible {
	outline: 2px solid #0034ba;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.ms-external-link-notice__dialog {
		padding: 1.5rem;
	}

	/* Stacked on narrow screens so neither action is cramped. */
	.ms-external-link-notice__actions {
		flex-direction: column;
		align-items: stretch;
	}
}
