html.bpm-popup-open,
html.bpm-popup-open body {
	overflow: hidden;
}

.bpm-popup,
.bpm-popup * {
	box-sizing: border-box;
}

.bpm-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bpm-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
}

.bpm-popup__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: min(720px, 100%);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
}

.bpm-popup__creative {
	display: block;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
}

.bpm-popup__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	border: 0;
}

.bpm-close-button {
	appearance: none;
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 8px;
	border: 0;
	border-radius: 999px;
	background: #FFFFFF;
	color: #000000;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}

.bpm-popup__close--icon {
	font-size: 28px;
}

.bpm-popup__close--text {
	min-width: 0;
	padding: 10px 14px;
	border-radius: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.bpm-popup__dialog--outside_top_right .bpm-close-button {
	top: -18px;
	right: -18px;
}

.bpm-popup__dialog--outside_top_left .bpm-close-button {
	top: -18px;
	left: -18px;
}

.bpm-popup__dialog--inside_top_right .bpm-close-button {
	top: 12px;
	right: 12px;
}

.bpm-popup__dialog--inside_top_left .bpm-close-button {
	top: 12px;
	left: 12px;
}

.bpm-popup__supplemental-cta {
	--bpm-cta-bg: #000000;
	--bpm-cta-color: #FFFFFF;
	--bpm-cta-hover-bg: #222222;
	--bpm-cta-hover-color: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 12px 24px;
	background: var(--bpm-cta-bg);
	color: var(--bpm-cta-color);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.bpm-popup__supplemental-cta:hover,
.bpm-popup__supplemental-cta:focus {
	background: var(--bpm-cta-hover-bg);
	color: var(--bpm-cta-hover-color);
}

@media (max-width: 767px) {
	.bpm-popup {
		padding: 18px;
	}

	.bpm-popup__dialog {
		max-height: calc(100vh - 36px);
		max-height: calc(100dvh - 36px);
	}

	.bpm-popup__image {
		max-height: calc(100vh - 110px);
		max-height: calc(100dvh - 110px);
	}

	.bpm-popup__dialog--outside_top_right .bpm-close-button,
	.bpm-popup__dialog--outside_top_left .bpm-close-button {
		top: -14px;
	}

	.bpm-popup__dialog--outside_top_right .bpm-close-button {
		right: -10px;
	}

	.bpm-popup__dialog--outside_top_left .bpm-close-button {
		left: -10px;
	}
}
