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;
	width: auto;
	max-width: calc(100vw - 32px);
	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);
	object-fit: contain;
	border: 0;
}

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

.bpm-popup__close--icon {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	border-radius: 999px;
	font-size: 0 !important;
	line-height: 1 !important;
}

.bpm-popup__close--icon span {
	font-size: 0 !important;
	line-height: 0 !important;
}

.bpm-popup__close--icon::before,
.bpm-popup__close--icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: #F45322;
	border-radius: 2px;
	transform-origin: center center;
}

.bpm-popup__close--icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.bpm-popup__close--icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.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;
}

@media (min-width: 1024px) {
	.bpm-popup__dialog {
		max-width: 1120px;
	}
}

@media (min-width: 1400px) {
	.bpm-popup__dialog {
		max-width: 1280px;
	}
}

.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;
	}
}
