:root {
	--wpm-z-index: 99999;
	--wpm-overlay-color: rgba(0, 0, 0, 0.55);
	--wpm-panel-bg: #fff;
	--wpm-panel-text: #172033;
	--wpm-panel-border: rgba(23, 32, 51, 0.14);
	--wpm-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
	--wpm-radius: 8px;
	--wpm-space: 18px;
	--wpm-animation-speed: 300ms;
}

.wpm-popup-overlay {
	align-items: center;
	background: var(--wpm-overlay-color);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: var(--wpm-space);
	position: fixed;
	right: 0;
	top: 0;
	z-index: var(--wpm-z-index) !important;
}

.wpm-popup-overlay[hidden] {
	display: none;
}

.wpm-no-overlay {
	background: transparent;
	pointer-events: none;
}

.wpm-no-overlay .wpm-popup-wrap {
	pointer-events: auto;
}

.wpm-popup-wrap {
	background: var(--wpm-panel-bg);
	border: 1px solid var(--wpm-panel-border);
	border-radius: var(--wpm-radius);
	box-shadow: var(--wpm-shadow);
	color: var(--wpm-panel-text);
	max-height: min(760px, calc(100vh - 40px));
	max-width: min(var(--wpm-popup-width, 600px), calc(100vw - 32px));
	opacity: 0;
	overflow: visible;
	padding: 0;
	position: relative;
	transform: translateY(16px);
	transition: opacity var(--wpm-animation-speed) ease, transform var(--wpm-animation-speed) ease;
	width: var(--wpm-popup-width, 600px);
}

.wpm-popup-overlay.is-open .wpm-popup-wrap,
.wpm-popup-wrap.is-inline {
	opacity: 1;
	transform: none;
}

.wpm-popup-content {
	margin: 0;
	max-height: min(760px, calc(100vh - 40px));
	overflow: auto;
	padding: 0;
}

.wpm-popup-close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: 300 28px/1 Arial, sans-serif;
	height: 28px;
	justify-content: center;
	position: absolute;
	right: -34px;
	top: -34px;
	width: 28px;
	z-index: 2;
}

.wpm-popup-close:hover,
.wpm-popup-close:focus {
	color: #fff;
	outline: 1px solid currentColor;
	outline-offset: 3px;
}

.wpm-popup-close[hidden] {
	display: none;
}

.wpm-position-top_left,
.wpm-position-top_right,
.wpm-position-bottom_left,
.wpm-position-bottom_right,
.wpm-popup-slide_in,
.wpm-popup-floating_widget {
	position: fixed;
	z-index: var(--wpm-z-index) !important;
}

.wpm-position-top_left { left: 20px; top: 20px; }
.wpm-position-top_right { right: 20px; top: 20px; }
.wpm-position-bottom_left { bottom: 20px; left: 20px; }
.wpm-position-bottom_right { bottom: 20px; right: 20px; }

.wpm-popup-notification_bar,
.wpm-popup-banner {
	border-radius: 0;
	max-width: 100%;
	width: 100%;
}

.wpm-position-top_bar,
.wpm-position-bottom_bar {
	left: 0;
	max-width: 100%;
	position: fixed;
	width: 100%;
	z-index: var(--wpm-z-index) !important;
}

.wpm-position-top_bar { top: 0; }
.wpm-position-bottom_bar { bottom: 0; }

.wpm-popup-full_screen {
	border-radius: 0;
	height: 100vh;
	max-height: 100vh;
	max-width: 100vw;
	width: 100vw;
}

.wpm-popup-full_screen .wpm-popup-content {
	max-height: 100vh;
}

.wpm-popup-inline {
	box-shadow: none;
	margin: 1rem 0;
	max-width: 100%;
	opacity: 1;
	transform: none;
}

.wpm-trigger-button {
	cursor: pointer;
}

[data-animation-in="slide_up"] { transform: translateY(40px); }
[data-animation-in="slide_down"] { transform: translateY(-40px); }
[data-animation-in="slide_left"] { transform: translateX(40px); }
[data-animation-in="slide_right"] { transform: translateX(-40px); }
[data-animation-in="zoom"] { transform: scale(0.92); }
[data-animation-in="bounce"] { transform: scale(0.86); }

.wpm-popup-overlay.is-open [data-animation-in="bounce"] {
	transition-timing-function: cubic-bezier(0.2, 1.25, 0.35, 1);
}

@media (max-width: 640px) {
	.wpm-popup-wrap {
		width: calc(100vw - 32px);
	}

	.wpm-popup-close {
		right: 0;
		top: -34px;
	}

	.wpm-position-top_left,
	.wpm-position-top_right,
	.wpm-position-bottom_left,
	.wpm-position-bottom_right {
		left: 16px;
		right: 16px;
		width: auto;
	}
}
