.dialog,
.dialog__overlay {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.dialog {
	position: fixed;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
    pointer-events: none;
    z-index: 999999999999;
}
.dialog__overlay {
	position: fixed;
	z-index: 1;
	background: rgba(0, 0, 0, 0.9);
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
	-webkit-backface-visibility: hidden;
}
.dialog--open .dialog__overlay {
	opacity: 1;
	pointer-events: auto;
}
.dialog__content {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 5;
    opacity: 0;
    height: 100%;
	overflow-y: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.dia-wrap{
    width: 70%;
    height: 70%;
    text-align: left;
    max-width: 800px;
    background-color: #FFFFFF;
    border: 1px solid #000;
    padding: 20px;
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.dialog--open .dialog__content {
	pointer-events: auto;
}

.dialog__content .scroll-inner {
    height: 100%;
    overflow-y: scroll;
    background: #fafafa;
    border: 1px solid #666666;
    padding: 20px;
}
.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom:20px
}
.dialog-head h2 {
    font-size:20px;
    color:#000;
    font-weight: bold;
}
    @media all and (max-width:640px) {
        .dia-wrap {
            width:80%;
            padding:15px
        }
        .dialog-head {
            padding-bottom:15px
        }
        .dialog-head h2 {
            font-size:18px;
        }
        .dialog__content .scroll-inner {
            padding:15px
        }
        .dialog.dialog--open button img {
            width:20px
        }
    }