/* Modal */
#modal-wrapper {
	position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
	z-index: 1050;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
}

#modal-wrapper.popup .modal-body {
	padding: 30px 40px;
}

#modal-overlay {
	display: none;
	position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
	background-color: rgba(0, 0, 0, .7);
    z-index: 1040;
}

#modal-tempoverlay {
	position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
	background-color: transparent;
}

body.enable-modal {
	position: absolute;
    overflow-y: scroll;
    height: 100%;
}

body.enable-modal-overflow {
	overflow: hidden !important;
}

body.enable-modal-overflow #modal-wrapper {
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	padding-top: 100px;
	padding-bottom: 100px;
}

body.enable-modal-cursor #modal-tempoverlay {
	cursor: pointer;
}

.modal {
	width: 600px;
	left: 0;
	top: 0;
	color: #333333;
	position: relative;
	margin: 0;
	font-weight: inherit;
	background-color: #ffffff;
	border: none;
	border-radius: 4px;
	display: none;
	-webkit-animation-duration: .3s;
    animation-duration: .3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
	z-index: 99999;
}

.modal .modal-header {
	margin: 0;
	padding: 15px;
	border-bottom: 1px solid #e6e6e6;
}

.modal .modal-header h1 {
	margin: 0;
	color: #333333;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
}

.modal a.modal-close {
	position: absolute;
	z-index: 2;
	top: 18px;
	right: 15px;
	display: inline-block;
	width: 18px;
	height: 23px;
	overflow: hidden;
	border: none;
	background: transparent;
}

html[dir="Rtl"] .modal a.modal-close {
	right: auto;
	left: 12px;
}

.modal a.modal-close.outside {
	top: -20px;
	right: -20px;
}

.modal a.modal-close:before,
.modal a.modal-close:after {
	content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    top: 50%;
    left: 0;
    margin-top: -1px;
    background: #444444;
    border-radius: 5px;
    margin-top: -6px;
}

.modal a.modal-close.outside:before,
.modal a.modal-close.outside:after {
	background: #ffffff;
}

.modal a.modal-close:before {
    transform: rotate(45deg);
}

.modal a.modal-close:after {
    transform: rotate(-45deg);
}

.modal .modal-body {
	padding: 15px;
}

.modal .modal-body div.modal-contents {
	overflow: hidden;
}

.modal .modal-body div.modal-contents a,
.modal .modal-body div.modal-contents div,
.modal .modal-body div.modal-contents img,
.modal .modal-body div.modal-contents label,
.modal .modal-body div.modal-contents li,
.modal .modal-body div.modal-contents span,
.modal .modal-body div.modal-contents table,
.modal .modal-body div.modal-contents iframe,
.modal .modal-body div.modal-contents ul {
	max-width: 100% !important;
}

.modal .modal-body div.modal-contents table {
	width: 100% !important;
}

.modal .modal-body div.modal-contents ul {
	list-style-type: disc;
}

.modal .modal-body div.modal-contents ol {
	list-style-type: decimal;
}

.modal .modal-body div.modal-contents ul,
.modal .modal-body div.modal-contents ol {
	margin: 0;
}

.modal .modal-body div.modal-contents ul,
.modal .modal-body div.modal-contents ol {
	margin: 0 1.5em 1.5em 0;
	padding-left: 2em;
}

.modal .modal-body div.modal-contents > img {
	display: block;
	margin: 0 auto;
}

.modal .modal-body p {
	font-size: 14px;
	font-weight: normal;
	color: #606060;
	line-height: 1.6;
}

.modal .modal-body p img {
	display: block;
	margin: 0 auto 10px auto;
}

.modal .modal-footer {
	display: block;
	padding: 15px 15px 14px;
	background-color: #ffffff;
	border-top: 1px solid #e6e6e6;
	zoom: 1;
	margin-bottom: 0;
	text-align: right;
}

/* Hide header */
.modal.hide-header .modal-header {
	display: none;
}

/* Hide Footer */
.modal.hide-footer .modal-footer {
	display: none;
}
