@media (max-width: 499px) {

    /* smallest  */

    .wert_popup {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        background-attachment: scroll;
        background-clip: border-box;
        background-position-x: 0%;
        background-position-y: 0%;
        background-repeat: repeat;
        background-size: auto;
        background-color: #fff;
        box-sizing: border-box;
        color: rgb(22, 29, 37);
        text-size-adjust: 100%;
        border: none;
        min-height: 580px;
        width: 100%;
        height: 100%;
        position: relative;
    }

    .wert_inner {
        padding: 16px 24px 24px 24px;
        width: 100%;
    }

    .wert_inner h1 {
        font-family: 'Aeonik', Helvetica, Arial, sans-serif;
        font-weight: 500;
        font-size: 22px;
        line-height: 24px;
        -webkit-font-smoothing: antialiased;
        unicode-bidi: isolate;
        letter-spacing: normal;
        padding: 0px 0px 20px 0px;
        margin: 0px;
    }




    .patch {
        /* background-color: rgba(0, 0, 0, 0.1); */
        align-items: center;
        background-attachment: scroll;
        background-clip: border-box;
        background-position-x: 0%;
        background-position-y: 0%;
        background-repeat: repeat;
        background-size: auto;
        box-sizing: border-box;
        color: rgb(22, 29, 37);
        /* display: flex; */
        display: none;
        justify-content: center;
        text-size-adjust: 100%;
        height: 100%;
        width: 100%;
        position: fixed;
        z-index: 9999999;
        pointer-events: none;
    }

    .patch_popup {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 580px;
        width: 100%;
        height: 100%;
        position: relative;
        pointer-events: none;
    }

    .patch_inner {
        padding: 16px 24px 24px 24px;
        width: 100%;
        pointer-events: none;
    }

    .patchbox {
        position: absolute;
        top: 150px;
        right: 0px;
        width: 100%;
        height: 80px;
        background-color: white;
        /* background-color: rgba(0, 0, 255, 0.4); */
    }

    .wert_inner .message_content {
        font-size: 14px;
        color: #333;
    }


}

@media (min-width: 500px) and (max-width: 779px) {

    /* medium  */

    .wert_popup {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        background-attachment: scroll;
        background-clip: border-box;
        background-position-x: 0%;
        background-position-y: 0%;
        background-repeat: repeat;
        background-size: auto;
        background-color: #fff;
        box-sizing: border-box;
        border-radius: 24px;
        color: rgb(22, 29, 37);
        text-size-adjust: 100%;
        border: none;
        max-width: 390px;
        width: 100%;
        height: 100%;
        position: relative;
        margin: 10px 0px;
    }

    .wert_inner {
        padding: 16px 24px 24px 24px;
        width: 100%;
    }

    .wert_inner h1 {
        font-family: 'Aeonik', Helvetica, Arial, sans-serif;
        font-weight: 500;
        font-size: 22px;
        line-height: 24px;
        -webkit-font-smoothing: antialiased;
        unicode-bidi: isolate;
        letter-spacing: normal;
        padding: 0px 0px 20px 0px;
        margin: 0px;
    }



    .patch {
        align-items: center;
        /* display: flex; */
        display: none;
        justify-content: center;
        height: 100%;
        width: 100%;
        position: fixed;
        z-index: 9999999;
        pointer-events: none;
    }

    .patch_popup {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        max-width: 380px;
        height: 100%;
        min-height: 580px;
        max-height: 720px;
        position: absolute;
        pointer-events: none;
    }

    .patch_inner {
        padding: 16px 24px 24px 24px;
        width: 100%;
        pointer-events: none;
    }

    .patchbox {
        position: absolute;
        top: 150px;
        right: 0px;
        width: 380px;
        height: 80px;
        background-color: white;
        /* background-color: rgba(0, 255, 0, 0.4); */
    }

    .wert_inner .message_content {
        font-size: 14px;
        color: #333;
    }

}

@media (min-width: 780px) {

    /* larger  */

    .wert_popup {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        background-attachment: scroll;
        background-clip: border-box;
        background-position-x: 0%;
        background-position-y: 0%;
        background-repeat: repeat;
        background-size: auto;
        background-color: #fff;
        box-sizing: border-box;
        color: rgb(22, 29, 37);
        text-size-adjust: 100%;
        border: none;
        border-radius: 24px;
        max-width: 1020px;
        min-height: 540px;
        width: 100%;
        height: 100%;
        position: relative;
        margin: 20px 0px;
    }

    .wert_inner {
        padding: 24px 48px 48px 48px;
        width: 100%;
    }

    .wert_inner h1 {
        font-family: 'Aeonik', Helvetica, Arial, sans-serif;
        font-weight: 500;
        font-size: 24px;
        line-height: 24px;
        -webkit-font-smoothing: antialiased;
        unicode-bidi: isolate;
        letter-spacing: normal;
        padding: 4px 0px 20px 0px;
        margin: 0px;
    }


    .patch {
        align-items: center;
        /* display: flex; */
        display: none;
        justify-content: center;
        text-size-adjust: 100%;
        height: 100%;
        width: 100%;
        position: fixed;
        z-index: 9999999;
        pointer-events: none;
    }

    .patch_popup {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        max-width: 780px;
        min-height: 540px;
        max-height: 540px;
        width: 100%;
        height: 100%;
        position: relative;
        pointer-events: none;
    }

    .patch_inner {
        padding: 24px 48px 48px 48px;
        width: 100%;
        pointer-events: none;
    }

    .patchbox {
        position: absolute;
        top: 80px;
        right: 10px;
        width: 380px;
        height: 80px;
        background-color: white;
        /* background-color: rgba(255, 0, 0, 0.4); */
    }

    .wert_inner .message_content {
        font-size: 16px;
        color: #333;
    }

}





.wert {
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    background-attachment: scroll;
    background-clip: border-box;
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
    box-sizing: border-box;
    color: rgb(22, 29, 37);
    display: flex;
    justify-content: center;
    text-size-adjust: 100%;
    min-height: 100%;
}


.wert_inner .field_area .field_prompt {
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #7a7a94;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
}


.wert_inner .field_area.error .field_prompt {
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #e31c1c;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
}


.wert_inner .field_area {
    padding-bottom: 10px;
}

.wert_inner .field_area .field {
    padding: 10px 0px 15px 0px;
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #000;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid 1px #d8dbe3;
    outline: none;
    width: 100%;
    background-color: inherit;
}

.wert_inner .field_area .field::placeholder {
    color: #b5b5d8;
    font-size: 24px;
}

.wert_inner .field_area.error .field::placeholder {
    color: #e3a9a9;
}

.wert_inner .field_area.error .field {
    padding: 10px 0px 15px 0px;
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #e31c1c;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid 1px #f76c68;
    outline: none;
    width: 100%;
}

.wert_inner .field_error {
    padding-top: 4px;
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #e31c1c;
}

.wert_inner .message_area {
    padding-top: 10px;

}

.wert_inner .message_area .message_header {

    display: flex;
    align-items: center;
    gap: 5px;
    color: #bc1818;
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
    font-size: 16px;

}

.wert_inner .message_area .message_header .message_icon img {
    height: 15px;
}


.wert_inner .message_content {
    font-size: 12px;
}


.wert_inner .message_content span {
    font-weight: 500;
}

.wert_inner .wert_copy_link {
    font-weight: 300;
    font-size: 14px;
}

.wert_inner .wert_copy_link_action {
    color: green;
    text-decoration: underline;
    cursor: pointer;
}


.wert_button {
    border-radius: 8px;
    background-color: #000;
    color: #fff;
    padding: 16px;
    width: 100%;
    max-width: 350px;
    font-size: 16px;
    font-weight: 500;
    bottom: 40px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: 0.2s all;
}

.wert_button.disabled {
    pointer-events: none;
    opacity: 0.3;
    cursor: not-allowed;
}

.wert_button:hover {
    background-color: #004593;
    transition: 0.2s all;
}


#thanks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    max-width: 400px;
    height: 200px;
    border-radius: 10px;
    background-color: white;
    padding: 20px;
    /* display: block; */
    display: none;

}

#thanks .head {
    display: inline-block;
    font-size: 24px;
    color: #333;
    padding: 20px;
    vertical-align: middle;
}

#thanks .icon {
    display: inline-block;
    vertical-align: middle;
}

#thanks .icon img {
    height: 70px;
    vertical-align: middle;
}

#thanks_order_id {
    padding-top: 16px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
}

#thanks .foot {
    font-size: 16px;
    padding-top: 15px;
    font-weight: 400;
    color: #000;
}


.terms_heading {
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 14px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
    padding: 30px 0px 15px 0px;
}

.wert_full_terms {
    border-radius: 6px;
    background-color: #f8f8f8;
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
    width: 100%;
    height: 100px;
    overflow: auto;
    border: solid 1px #d0d0d0;
    padding: 10px;
    pointer-events: none
}

.wert_full_terms h2 {
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
    padding: 0px 0px 10px 0px;
}

.wert_full_terms h3 {
    font-family: 'Aeonik', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 17px;
    -webkit-font-smoothing: antialiased;
    unicode-bidi: isolate;
    letter-spacing: normal;
    padding: 10px 0px 10px 0px;
}

.wert_checkbox {
    width: auto;
}


#full_terms_area {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.3s ease,
        opacity 0.3s ease;

}

#full_terms_area.open {
    overflow: hidden;
    max-height: 140px;
    opacity: 1;

}


#accept_checkbox_area {
    font-size: 14px;
    font-weight: 500;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 10px;

}

#accept_checkbox_area.error {
    background-color: #edb2b2;
    border-color: #ff0000;
    color: #921313;
}

#accept_checkbox_terms_link_show,
#accept_checkbox_terms_link_hide {
    color: #0e4fa2;
    cursor: pointer;
    font-weight: 300;
}

.signature_area {}

.signature_area::after {
    content: "";
    display: table;
    clear: both;
}

.signature_wrapper {
    position: relative;
    height: 110px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: dashed 5px #ccc;
}

.signature_wrapper.error {
    border: dashed 5px #cd8181;
}

.signature_finger_icon {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 50px;
    pointer-events: none;
    z-index: 999;

}

.signature-pad {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100px;
    background-color: white;
}

.signature_clear {
    cursor: pointer;
    font-size: 12px;
    float: right;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #f0f0f0;
    margin-top: 8px;
}

.signature_clear:hover {
    background-color: #e0e0e0;
}

.terms_scroll_icon_up {
    width: 20px;
    float: left;
}

.terms_scroll_icon_down {
    width: 20px;
    float: right;
}