.printto-modal {
    position: fixed;
    max-width: 700px;
    min-width: 540px;
    top: 50px;
    /*bottom: 50px;*/
    left: 50%;
    /*margin: 100px 0 100px -450px;*/
    transform: translateX(-50%);
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 4px;
    border: solid 1px #999;
    background-color: #fff;
    z-index: 9999;
    font-family: sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100% - 100px);
}
.printto-modal * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
body.has-active-printto-modal {
    position: relative;
    overflow-y: hidden;
}
body.has-active-printto-modal:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 110%;
    left: 0;
    top: -10%;
    background-color: #333;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: alpha(opacity=50);
    -moz-opacity: 0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
    z-index: 9998;
}
.printto-modal > i.close {
    position: sticky;
    display: inline-block;
    width: 25px;
    height: 25px;
    color: #bbb;
    font-size: 20px;
    text-align: center;
    vertical-align: middle;
    line-height: 25px;
    top: 10px;
    text-decoration: none;
    z-index: 1000;
    opacity: 0.4;
    margin: 0;
    cursor: pointer;
    right: 5px;
    padding: 5px;
    background-color: #fff;
    float: right;
    border-radius: 2px;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
.printto-modal > i.close:hover {
    opacity: 0.75;
}
.printto-modal > i.close::before,
.printto-modal > i.close::after
{
    content: '';
    position: absolute;
    left: 10px;
    height: 17px;
    width: 2px;
    background-color: #333;
    text-shadow: none;
}
.printto-modal > i.close::before {
    transform: rotate(45deg);
}
.printto-modal > i.close::after {
    transform: rotate(-45deg);
}
.printto-modal h2 {
    /*margin-top: 0;*/
}
p.small {
    font-size: 0.85em;
    color: #888;
}
@media (max-width: 128px) {
    .printto-modal {
        top: 30px;
        max-height: calc(100% - 60px);
    }
}
@media (max-width: 768px) {
    .printto-modal {
        min-width: 90%;
    }
}
@media (max-width: 480px) {
    .printto-modal {
        min-width: 95%;
        max-height: calc(100% - 20px);
        top: 10px;
    }
}