:root {
    --popup-width: 700px;
    --popup-height: 500px;
    --close-x: 38px;
    --close-y: 22px;
    --text-dist: 17px;
    --submit-width: 175px;
    --submit-height: 36px;
    --submit-radius: 18px;
    --submit-fontsize: 1.4375em;
    --submit-dist: 12px;
    --thanks-button-dist: 36px;
}

@font-face {
    font-family: 'Marker Felt Wide';
    src: url('/themes/majik/fonts/marker-felt-wide/MarkerFelt-Wide.eot');
    src: url('/themes/majik/fonts/marker-felt-wide/MarkerFelt-Wide.eot?#iefix') format('embedded-opentype'),
        url('/themes/majik/fonts/marker-felt-wide/MarkerFelt-Wide.woff2') format('woff2'),
        url('/themes/majik/fonts/marker-felt-wide/MarkerFelt-Wide.woff') format('woff'),
        url('/themes/majik/fonts/marker-felt-wide/MarkerFelt-Wide.ttf') format('truetype'),
        url('/themes/majik/fonts/marker-felt-wide/MarkerFelt-Wide.svg#MarkerFelt-Wide') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.b-brand-orange {
    background-color: var(--brand-orange);
}

#popup-july .popup-content {
    width: fit-content;
    height: fit-content;
}

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

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

#popup-july .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: 22px;
}

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

#popup-july .button {
    width: 7.5em;
    height: 1.6em;
    border-radius: 1em;
    font-size: 1.6em;
    margin-top: 10px;
    color: #04162a !important;
    font-family: "mr-eaves-xl-modern" !important;
    line-height: 0;
    padding: 0;
}

#popup-july .form-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

#popup-july .popup-thanks .button {
    margin-top: 31px;
    text-decoration: none !important;
    background-color: #f61d23;
    color: white !important;
    width: 10em;
}

#popup-july p {
    margin: 0;
    padding: 0;
}

#popup-july .form-text-top {
    font-family: 'Marker Felt Wide';
    font-size: 43px;
    line-height: 42px;
    color: #222f61;
    margin: 0 auto;
    max-width: 342px;
}

#popup-july .form-text-bottom {
    font-size: 18px;
    color: #222f61;
    margin-top: 7px;
}

#popup-july .thanks-top {
    font-family: 'Marker Felt Wide';
    font-size: 56px;
    line-height: 58px;
    text-transform: uppercase;
    color: #132c63;
    max-width: 393px;
    margin-bottom: 20px;
    margin-top: 49px;
}

#popup-july .thanks-bottom {
    font-size: 31px;
    line-height: 34px;
    font-weight: bold;
    max-width: 458px;
}

#popup-july .july-note {
    font-size: 13px;
    margin-top: 39px;
}

@supports (background: -webkit-named-image(i)) {
    #popup-july .button {
        padding-top: 0px;
    }
}

@media screen and (max-width: 567px) {
    :root {
        --popup-width: 375px;
        --popup-height: 625px;
        --close-x: 25px;
        --close-y: 26px;
        --text-dist: 21px;
        --submit-height: 30px;
        --submit-radius: 15px;
        --submit-fontsize: 1.25em;
        --submit-dist: 3px;
        --thanks-button-dist: 63px;
    }

    #popup-july .popup-content {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    #popup-july .popup-default {
        width: 100%;
        height: 100%;
        background-image: url(../images/hero/popup-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.jpg") 1x,
                url("../images/hero/popup-back-m@2x.jpg") 2x);
    }

    #popup-july .popup-thanks {
        width: 100%;
        height: 100%;
        background-image: url(../images/hero/thanks-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/thanks-back-m.jpg") 1x,
                url("../images/hero/thanks-back-m@2x.jpg") 2x);
    }

    #popup-july .popup-form {
        width: 100%;
    }

    #popup-july .popup-close {
        width: 70px;
    }

    #popup-july .july-note {
        font-size: 13px;
        margin-top: 74px;
        color: white !important;
    }

    #popup-july .form-text-top {
        font-size: 39px;
        line-height: 44px;
    }

    #popup-july .form-text-bottom {
        font-size: 18px;
    }

    #popup-july .thanks-top {
        font-size: 40px;
        line-height: 44px;
        max-width: 276px;
        margin-top: 119px;
        margin-bottom: 26px;
    }

    #popup-july .thanks-bottom {
        font-size: 26px;
        line-height: 26px;
        max-width: 250px;
    }

    #popup-july .button {
        font-size: 1.4em;
    }

    #popup-july .popup-thanks .button {
        width: 9.5em;
    }

    #popup-july .thanks-back {
        top: 50%;
        transform: translateY(-59%);
    }

}