:root {
	--bmp-sn-primary: var(--wp--preset--color--primary, #009ade);
	--bmp-sn-primary-dark: var(--wp--preset--color--primary-dark, #0072a3);
	--bmp-sn-text: var(--wp--preset--color--text, #444);
	--bmp-sn-dark: var(--wp--preset--color--dark, #262626);
	--bmp-sn-white: var(--wp--preset--color--white, #fff);
	--bmp-sn-font-body: var(--wp--preset--font-family--body, system-ui, -apple-system, "Segoe UI", sans-serif);
	--bmp-sn-font-heading: var(--wp--preset--font-family--heading, var(--bmp-sn-font-body));
}

.bmp-site-notification,
.bmp-site-notification *,
.bmp-site-notification *::before,
.bmp-site-notification *::after {
	box-sizing: border-box;
}

.bmp-site-notification {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	overflow-y: auto;
	padding: clamp(20px, 4vw, 48px);
	background: rgb(38 38 38 / 64%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms ease, visibility 180ms ease;
	overscroll-behavior: contain;
}

.bmp-site-notification.is-visible {
	opacity: 1;
	visibility: visible;
}

.bmp-site-notification__dialog {
	position: relative;
	width: min(100%, 680px);
	max-height: calc(100dvh - clamp(40px, 8vw, 96px));
	overflow: auto;
	border: 0;
	border-top: 6px solid var(--bmp-sn-primary-dark);
	border-radius: 16px;
	background: var(--bmp-sn-white);
	color: var(--bmp-sn-text);
	box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
	font-family: var(--bmp-sn-font-body);
	transform: translateY(12px) scale(0.985);
	transition: transform 180ms ease;
	-webkit-overflow-scrolling: touch;
}

.bmp-site-notification.is-visible .bmp-site-notification__dialog {
	transform: translateY(0) scale(1);
}

.bmp-site-notification__dialog:focus {
	outline: none;
}

.bmp-site-notification__content {
	padding: clamp(28px, 5vw, 52px);
}

.bmp-site-notification__title {
	margin: 0 52px var(--wp--preset--spacing--30, 24px) 0;
	color: var(--bmp-sn-primary-dark);
	font-family: var(--bmp-sn-font-heading);
	font-size: clamp(32px, 6vw, 48px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.bmp-site-notification__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--bmp-sn-primary-dark);
	cursor: pointer;
	transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.bmp-site-notification__close span,
.bmp-site-notification__close span::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	content: "";
	transform: rotate(45deg);
}

.bmp-site-notification__close span::after {
	transform: rotate(90deg);
}

.bmp-site-notification__close:hover {
	background: color-mix(in srgb, var(--bmp-sn-primary-dark) 10%, transparent);
}

.bmp-site-notification__close:focus-visible {
	border-color: var(--bmp-sn-primary-dark);
	outline: 3px solid color-mix(in srgb, var(--bmp-sn-primary) 40%, transparent);
	outline-offset: 2px;
}

.bmp-site-notification__blocks {
	font-size: var(--wp--preset--font-size--body, 17px);
	line-height: 1.65;
}

.bmp-site-notification__blocks > :first-child {
	margin-block-start: 0;
}

.bmp-site-notification__blocks > :last-child {
	margin-block-end: 0;
}

.bmp-site-notification__blocks img,
.bmp-site-notification__blocks video,
.bmp-site-notification__blocks iframe {
	max-width: 100%;
	height: auto;
}

.bmp-site-notification__blocks a:not(.wp-element-button):not(.wp-block-button__link) {
	color: var(--bmp-sn-primary-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.bmp-site-notification__blocks a:focus-visible {
	outline: 3px solid var(--bmp-sn-primary);
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.bmp-site-notification {
		align-items: end;
		padding: 16px;
	}

	.bmp-site-notification__dialog {
		max-height: calc(100dvh - 32px);
		border-radius: 14px;
	}

	.bmp-site-notification__content {
		padding: 32px 24px 28px;
	}

	.bmp-site-notification__title {
		margin-right: 44px;
	}

	.bmp-site-notification__close {
		top: 12px;
		right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bmp-site-notification,
	.bmp-site-notification__dialog,
	.bmp-site-notification__close {
		transition: none;
	}
}

@media (forced-colors: active) {
	.bmp-site-notification__dialog,
	.bmp-site-notification__close {
		border: 2px solid CanvasText;
	}
}

