div.signfile {
    padding: 1em;
    padding-top: 0;
}
div.signfile div.contact,
div.signfile div.sign{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
div.signfile div.contact p,
div.signfile div.sign p,
div.signfile div.sign label.acceptcheck{
    flex-basis: 100%;
}
div.signfile label {
    margin-top: 0.3em;
    flex-basis: 50%;
}
div.signfile a.button {
    flex-basis: 30%;
    position: relative;
}
div.signfilewrapper a.download{
    max-width: 30%;
}
div.signfile a.button.sendCode {
    top: -0.4em;
}
div.signfile a.button.sign {
    margin-top: 0.6em;
}
div.signfilewrapper div.articleContent {
    margin-bottom: 0;
    padding-bottom: 2em;
}
div.signfilewrapper label.checkbox {
    display: block;
    margin-top: 0.5em;
}
div.signfilewrapper div.signdone{
    margin-top: 1em;
}
div.signfile p.alreadysigned{
    margin-bottom: 1em;
}
div.signfile div.signfilemessagewrapper{
    flex-basis: 100%;
}
div.signfile div.signfilemessage {
    display: inline-block;
    border: 1px solid;
    padding: 0.5em;
    margin: 1em 1em 0.1em 1em;
    background-color: #ee1;
}
div.signfile div.signfilemessage.error {
    background-color: #a00;
    color: #fff;
}

div.signfile div.filepreview{
    display: none;
    margin-top: 2em;
}
div.signfile div.filepreview canvas{
    -webkit-box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.75);
    box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.75);
}
div.signfile div.filepreview div.toolbar a{
    margin-left: 0.1em;
    font-size: 110%;
    font-weight: 1000;
    width: 2.8em;
    display: inline-block;
}


@media screen and (max-width:480px){
    div.signfile {
        margin-left: 0;
        margin-right: 0;
    }
    div.signfile a.button {
        flex-basis: 100%;
    }
    div.signfile {
        padding: .5em;
    }
    div.signfilewrapper a.download{
        max-width: 100%;
    }

    div.signfile label {
        margin-top: 0.3em;
        flex-basis: 100%;
    }
}