.modal_outer {
	position: fixed;
	z-index: 10200;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px;
	outline: none;
	background: rgba(0, 0, 0, .4);
	display: -ms-flexbox;
	display: -webkit-flex;
	display: -webkit-box;
	display: -moz-box;
	display: flex;
	-ms-flex-align: center;
	-webkit-align-items: center;
	-webkit-box-align: center;
	-moz-box-align: center;
	align-items: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	justify-content: center;
}

.modal_outer.is_fullscreen {
	padding: 20px;
}

.modal_outer:not(.is_invisible) {
	animation: modal 100ms ease-out;
}
.modal_outer:not(.is_invisible).animation_slide_down .modal_inner{
	animation: modal_slide_down 200ms ease-out;
}

.modal_outer.is_invisible {
	opacity: 0;
	pointer-events: none;
}

.modal_inner {
	position: relative;
	background: #fff;
	width: 500px;
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
	box-shadow: rgba(0, 0, 0, .1) 0 0 20px;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: -webkit-box;
	display: -moz-box;
	display: flex;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-moz-box-orient: vertical;
	-moz-box-direction: normal;
	flex-direction: column;
	transition: all 200ms;
}

.modal_close {
	position: absolute;
	z-index: 1;
	top: 5px;
	right: 3px;
	width: 48px;
	height: 48px;
	cursor: pointer;
}
.modal_close::before {
	content: "";
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 32px;
	margin: 8px;
	background: url(/Assets/common.svg) no-repeat;
	background-position: 0 -16px;
	transition: background 200ms;
}
.modal_close:hover::before,
.modal_close:focus::before {
	background-color: var(--main-bg-color);
}

.modal_header,
.modal_footer {
	-ms-flex: 0 0 auto;
	-webkit-flex: 0 0 auto;
	-webkit-box-flex: 0;
	-moz-box-flex: 0;
	flex: 0 0 auto;
}

.modal_header {
	padding: 20px 30px;
	line-height: 1;
}
.modal_header,
.modal_title{
	font-size: 20px;
	font-weight: 400;
}

.modal_header.has_border {
	border-bottom: solid 1px #eee;
}

.modal_header.has_no_bottom_padding {
	padding-bottom: 0;
}

.modal_header_desc {
	margin-top: 6px;
	font-size: 14px;
	color: #757b96;
	line-height: 1.3;
}

.modal_header_pre_title {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--grey-2);
}

.modal_header_icon {
	margin-left: -4px !important;
	margin-right: 12px !important;
}

.modal_header_campaign {
	font-size: 14px;
	font-weight: 500;
	margin-top: 10px;
}
.modal_header_breadcrumb {
	margin-top: -12px;
	margin-bottom: -12px;
}

/* Old body version */
.modal_body {
	padding: 0 30px;
	overflow-y: auto;
	-ms-flex: 1 1 auto;
	-webkit-flex: 1 1 auto;
	-webkit-box-flex: 1;
	-moz-box-flex: 1;
	flex: 1 1 auto;
}
.modal_body::before,
.modal_body::after{
	content: "";
	display: block;
	margin-bottom: 24px;
}
.modal_body.no_vertical_pad::before,
.modal_body.no_vertical_pad::after{
	display: none;
}
.modal_body_grey {
	background: var(--main-bg-color);
}
/* End old body version */

/* New body version */
.modal_body_outer {
	-ms-flex: 1 1 auto;
	-webkit-flex: 1 1 auto;
	-webkit-box-flex: 1;
	-moz-box-flex: 1;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.modal_body_outer_grey {
	background: var(--main-bg-color);
}
.modal_body_inner {
	flex: 1 1 auto;
	padding: 0 30px;
	overflow-y: auto;
}
.modal_body_inner::before,
.modal_body_inner::after{
	content: "";
	display: block;
	margin-bottom: 24px;
}
.modal_body_outer.no_vertical_pad .modal_body_inner::before,
.modal_body_outer.no_vertical_pad .modal_body_inner::after{
	display: none;
}
.modal_body_inner_no_top_pad::before,
.modal_body_inner_no_vertical_pad::before,
.modal_body_inner_no_vertical_pad::after{
	display: none;
}
.modal_body_inner_no_horizontal_pad {
	padding-left: 0;
	padding-right: 0;
}
/* End new body version */

.modal_section {
	padding: 24px 30px;
}

.modal_section_top {
	padding: 24px 30px 0;
}
.modal_section_bottom {
	padding: 0 30px 24px;
}
.modal_section_h{
	padding: 0 30px;
}

.modal_section_s {
	padding: 14px 30px;
}
.modal_section.s {
	padding: 14px 30px;
}
.modal_section.xs {
	padding: 10px 30px;
}

.modal_section.has_bottom_border {
	border-bottom: solid 1px var(--main-border-color);
}

.modal_section_grey {
	background: var(--main-bg-color);
	border: solid 1px var(--main-border-color);
	border-width: 1px 0;
}
.modal_header.has_border + .modal_section_grey{
	margin-top: -1px;
}

.modal_footer {
	padding: 0 30px 30px;
}
.modal_footer.has_border {
	border-top: solid 1px var(--main-border-color);
	padding-top: 20px;
	padding-bottom: 20px;
}

.modal_footer_center {
	text-align: center;
}
.modal_footer_right {
	text-align: right;
}

@keyframes modal {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes modal_slide_down {
	0% {
		transform: translateY(-80px);
	}
	100% {
		transform: translateY(0);
	}
}

