/**
 * ==========================================================+
 * Layer-popup Center Box - http://http://webclub.tistory.com
 * Copyright © 2016 Jae Hee Kim 
 * All rights reserved.
 * ==========================================================+
 */

.layer-wrap {
    /*display: none;*/
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9;
}

.layer-wrap:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -.25em;
}

.pop-layer, .pop-address-layer {
    position: relative;
    width: 900px;
    margin: auto;
    top: -95vh;
    background-color: #fff;
    z-index: 10;
    min-height: 20vh;
    max-height: 100vh;
}


.admin-pop-layer {
    position: relative;
    width: 900px;
    left: -450px;
    margin-left: 50%;
    top: -85vh;
    background-color: #fff;
    z-index: 10;
    min-height: 65vh;
}

.admin-form-layer {
    position: fixed;
    top: 20vh;
    left: 50%;
    margin-left: -35vw;
    width: 70vw;
    z-index: 10;
    min-height: 50vh;
    background-color: #fff;
}

.pop-layer-m {
    display: inline-block;
    vertical-align: middle;
    width: 95%;
    max-width: 350px;
    background-color: #fff;
    z-index: 10;
    max-height: 100%;
    overflow-y: auto;
    border-radius: 2em;
}

.pop-layer-full {
    display: inline-block;
    vertical-align: middle;
    width: 100vw;
    background-color: #fff;
    z-index: 10;
    max-height: 100%;
    overflow-y: auto;
}

.pop-layer-full .pop-container-full {
    padding: 20px 25px;
    text-align: left;
    height: 100vh;
    width: 98vw;
    display: flex;
}


.pop-layer .layer-title {
    font-size: 1.54em;
}

.pop-layer .pop-container, .pop-address-container {
    padding: 20px 25px;
    text-align: left;
}

.pop-container p {
    margin: 15px 0;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.8em;
}

.pop-container em {
    font-style: normal;
}

.pop-container img {
    display: inline;
    max-width: 25px;
    vertical-align: baseline;
}

.pop-container ul, li, .pop-address-container ul, li {
    list-style: none;
    padding-left: 0;
}

.pop-container .btn-right-sm, .pop-address-container .btn-right-sm {
    background-color: #ff2893;
    border-radius: 25px;
    color: #fff;
    border: none;
    padding: 5px 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    /*width: 19%;*/
    cursor: pointer;
    margin-right: 15px;
}

.pop-container .btn-right-sm:focus {
    outline: none;
}

.pop-container .notice_text {
    max-height: 55vh;
    overflow-y: auto;
    padding-bottom: 5vh;
}

.pop-address-container .address-container {
    overflow-y: auto;
}

.pop-address-container .address-search {
    margin-bottom: 10%;
}

.pop-address-container .address-list {
    max-height: 47vh;
    overflow-y: auto;
    padding-bottom: 3vh;
}

.address-container .a_list {
    width: 97%;
    clear: both;
    text-align: left;
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #c7c7c7;
}

.btn-layer-bottom {
    position: absolute;
    cursor: pointer;
    bottom: 0;
    width: 100%;
    /*background-color: rgb(255, 97, 97);*/
    background-color: #0069e7;
    outline: none;
    border: none;
    line-height: 2em;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fdfdfd;
}

.pop-block-layer {
    position: relative;
    width: 900px;
    left: -450px;
    margin-left: 50%;
    top: -65vh;
    z-index: 10;
    min-height: 20vh;
    max-height: 65vh;
}

@media screen and (max-width: 850px) {
    .event-layer {
        width: 100%;
        left: 0;
        margin-left: 0;
        overflow-y: auto;
    }


    .event-layer .btn-bottom {
        width: 100%;
        left: 0;
        margin-left: 0;
    }

    .pop-layer {
        width: 100%;
        top: -98vh;
        left: 0;
        margin-left: 0;
        overflow-y: auto;
        min-height: 45vh;
        max-height: 95vh;
    }


    .pop-address-layer {
        width: 100%;
        top: -98vh;
        left: 0;
        margin-left: 0;
        overflow-y: auto;
        min-height: 50vh;
        max-height: 95vh;
    }

    .pop-layer .notice_text {
        max-height: 85vh;
    }

    .pop-layer .pop-container {
        padding: 10px 15px;
        overflow-y: auto;
    }

    .pop-layer .pop-container-full {
        padding: 10px 15px;
    }

    .pop-container img {
        max-width: 11px;
        display: inline;
        vertical-align: middle;
    }

    .btn-layer-bottom {
        line-height: 2em;
        font-size: 1.1rem;
    }

    .pop-bottom {
        position: absolute;
        width: 100%;
        bottom: 0;
    }
}