:root {
    --popup-width: 704px;
    --popup-height: 498px;
    --close-x: 32px;
    --close-y: 34px;
    --text-dist: 38px;
    --submit-width: 206px;
    --submit-height: 40px;
    --submit-radius: 20px;
    --submit-fontsize: 1.125em;
    --submit-dist: 6.5px;
    --thanks-button-dist: 35px;
}

#popup-apreg {
    --blue: #2a3b74;
}

#popup-apreg .popup-content {
    width: var(--popup-width);
    height: var(--popup-height);
    padding: 0 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../images/eg/popup-back.jpg);
    background-image: -webkit-image-set(url("../images/eg/popup-back.jpg") 1x,
            url("../images/eg/popup-back@2x.jpg") 2x);
}

#popup-apreg .popup-default {
    display: none;
}

#popup-apreg .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}

#popup-apreg form {
    margin-top: var(--text-dist);
}

#popup-apreg .button {
    width: var(--submit-width);
    height: var(--submit-height);
    border-radius: var(--submit-radius);
    font-size: var(--submit-fontsize);
    margin-top: var(--submit-dist);
    padding: 0.2em 0 0;
    margin-bottom: 2em;
}

#popup-apreg .popup-thanks .button {
    margin-top: var(--thanks-button-dist);
}

#popup-apreg .main {
    margin-bottom: 1em;
}

#popup-apreg .popup-start .button {
    width: 132px;
}

#popup-apreg .popup-default .button {
    width: 150px;
}

#popup-apreg .reject:before,
#popup-apreg .reject:after {
    content: none !important;
}

#popup-apreg .reject {
    margin: 0 auto !important;
    padding: 0 !important;
}

@media screen and (min-width: 568px) {}

@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 16px;
        --close-y: 20px;
        --text-dist: 21px;
        --submit-width: 150px;
        --submit-height: 33px;
        --submit-radius: 17px;
        --submit-fontsize: 0.8125em;
        --submit-dist: 10px;
        --thanks-button-dist: 24px;
    }

    #popup-apreg .popup-close {
        width: 47px;
    }

    #popup-apreg .reject {
        text-wrap-mode: nowrap;
        width: auto;
    }
}