:root {
    --popup-width: 730px;
    --popup-height: 499px;
    --close-x: 20px;
    --close-y: 20px;
    --text-dist: 12px;
    --submit-width: 11em;
    --submit-height: 2em;
    --submit-radius: 1em;
    --submit-fontsize: 1.2em;
    --submit-dist: 10px;
    --thanks-button-dist: 30px;
}

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

#popup-sepsub .popup-content {
    width: var(--popup-width);
    height: var(--popup-height);
    padding: 0 15px;
    background-image: url(../images/sub/popup-back.jpg);
    background-image: -webkit-image-set(url("../images/sub/popup-back.webp") 1x,
            url("../images/sub/popup-back@2x.webp") 2x);
}

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

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

#popup-sepsub .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;
    background-color: #ed1c24;
    margin: 0 auto;
}

#popup-sepsub .form-action {
    justify-content: center;
    display: flex;
}

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

#popup-sepsub .form-text {
    font-family: "apotek-cond";
    font-size: 46px;
    letter-spacing: 1px;
    line-height: 50px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    -webkit-text-stroke: 6px #000000;
    paint-order: stroke fill;
}

#popup-sepsub .thanks-top {
    font-family: "apotek-cond";
    font-size: 47px;
    line-height: 46px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
}

#popup-sepsub .thanks-bottom {
    font-size: 24px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    line-height: 32px;
}

/* Safari Only */
@supports (background: -webkit-named-image(i)) {
    #popup-sepsub .button {
        padding-top: 2px;
    }
}

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

    #popup-sepsub {
        height: 100%;
    }

    #popup-sepsub form {
        margin-top: 21px;
        width: calc(100% - 25px);
    }

    #popup-sepsub .popup-content {
        background-image: url(../images/sub/popup-back-m.jpg);
        background-image: -webkit-image-set(url("../images/sub/popup-back-m.webp") 1x,
                url("../images/sub/popup-back-m@2x.webp") 2x);
    }

    #popup-sepsub .thanks {
        width: 100%;
    }

    #popup-sepsub .popup-form,
    #popup-sepsub .popup-inner {
        width: 100%;
    }

    #popup-sepsub .form-text {
        font-size: 38.5px;
        letter-spacing: 0.5px;
        line-height: 41.5px;
    }

    #popup-sepsub .thanks-top {
        font-size: 40.5px;
        letter-spacing: 0.5px;
        line-height: 41.5px;
        margin-bottom: 18px;
    }

    #popup-sepsub .thanks-bottom {
        font-size: 25px;
    }

    #popup-sepsub .popup-thanks .button {
        margin-top: 30px;
    }
}