#agreement-popup .popup-container {
    font-size: 17px;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    overflow: auto;
    transition: .3s ease-out;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#agreement-popup .popup-contents {
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 2em;
    box-sizing: border-box;
    border: 1px solid #ddd;
    transition: .5s;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

#agreement-popup .popup-text {
    max-width: 300px;
    width: 95%;
}

#agreement-popup .popup-button-area {
    display: flex;
    flex-direction: row;
}

#agreement-popup input[type="checkbox"]:hover{
    cursor: pointer;
}

#agreement-popup .checkbox-line a {
    margin-left: 10px;
    color: #086ec9;
    text-decoration: none;
    font-weight: normal;
}

#agreement-popup .checkbox-line a:hover,
#agreement-popup .checkbox-line a:focus {
    opacity: 0.6;
}

#agreement-popup .btn-popup {
    padding: .5em 2em;
    transition: 0.3s;
    margin: 20px;
    font-weight: bold;
    line-height: 1.5;
}

#agreement-popup .btn-popup-agree {
    color: #fff;
    background: #1e90ff;
}

#agreement-popup .btn-disabled {
    color: #fff;
    background: #cccccc;
    pointer-events: none;
}

#agreement-popup .btn-popup-cancel {
    color: #707070;
    border: 2px solid #707070;
}

#agreement-popup .btn-popup:hover,
#agreement-popup .btn-popup:focus {
    cursor: pointer;
    opacity: 0.7;
}

#agreement-popup .popup-hide {
    display: none;
}

@media screen and (max-width: 480px) {
    #agreement-popup .popup-button-area {
        flex-direction: column;
    }

    #agreement-popup .btn-popup {
        text-align: center;
        margin: 20px 0 0;
    }
}