:root {
	--smpPopupBg: #fff;
	--smpPopupRadius: 4px;
	--smpPopupIndex: 99999999;
	--smpPopupWidthScroll: 0;
}

.open_popup {
	overflow: hidden;
	padding-right: var(--smpPopupWidthScroll);
}

.b_popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--smpPopupIndex);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .4s, visibility .4s;
	background: rgba(0, 0, 0, 0.7);

	transition: opacity 0.4s, display 0.4s allow-discrete;
}

.b_popup.open {
	display: block;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
@starting-style {
	.b_popup.open {
		opacity: 0;
	}
	.b_popup.open .b_popup__body {
		transform: translateY(-100vh);
	}
}


.b_popup__overlay {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 3;
	opacity: 0;
	transition: .24s opacity cubic-bezier(.22,.61,.36,1);
}

.b_popup.open .b_popup__overlay {
	opacity: 1;
}

.b_popup__wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	overflow: auto;
	z-index: 4;
}

.b_popup__wrapper::before {
	content: '';
	display: inline-block;
	vertical-align: middle;
	height: 100%;
	width: 0;
}

.b_popup__body {
	position: relative;
	display: inline-block;
	min-height: 100px;
	max-width: 98%;
	padding: 0;
	background-color: var(--smpPopupBg, #efefef);
	border-radius: var(--smpPopupRadius, 4px);
	text-align: left;
	vertical-align: middle;
	border-width: 0;
	z-index: 10;
	transform: translateY(-100vh);
	transition: .4s transform;
}

.b_popup.open .b_popup__body {
	transform: translateY(0);
}
@starting-style {
	.b_popup.open .b_popup__body {
		transform: translateY(-100vh);
	}
}

.b_popup__close {
	width: 20px;
	height: 20px;
	position: absolute;
	top: 15px;
	right: 15px;
	color: currentColor;
	margin: 0;
	padding: 0;
	overflow: visible;
	background: transparent;
	font: inherit;
	line-height: normal;
	text-align: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	cursor: pointer;
	border: none;
	outline: none;
}

.b_popup__close:before,
.b_popup__close:after {
	content: " ";
	position: absolute;
	background: currentColor;
	height: 1px;
	display: block;
	width: 75%;
	left: 15%;
}

.b_popup__close:before {
	transform: rotate3d(0, 0, 1, 45deg);
}

.b_popup__close:after {
	transform: rotate3d(0, 0, 1, -45deg);
}
