.bit-modal {
    position: fixed;
    top: 50%;
    right: 0;
    /*bottom: 0;*/
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    transform: translate(0%, -50%);
}

.bit-modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}

@media (min-width: 768px) {
    .bit-modal-dialog {
        position: relative;
        width: 600px;
        margin: 30px auto;
    }
}

.bit-modal-content {
    box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
    -webkit-box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
    position: relative;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgb(0 0 0 / 50%);
    box-shadow: 0 3px 9px rgb(0 0 0 / 50%);
    outline: 0;
}

.bit-modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.bit-modal-body {
    padding: 15px;
    max-height: 470px;
    overflow-y: auto;
}

.bit-close {
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    float: right;
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: .2;
}

.bit-modal-footer {
    padding: 15px;
    border-top: 1px solid #e5e5e5;
}

.bit-modal-title {
    margin: 0;
    line-height: 1.42857143;
}

.bit-modal-backdrop {
    opacity: .5;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
}



.pht-popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.pht-popup {
    position: fixed;
    width: 60%;
    height: 60%;
    min-height: 400px;
    z-index: 1001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.pht-popup .pht-wrapper,
.pht-popup iframe {
    background: #fff;
    width: 100%;
    height: 100%;
}

.pht-popup a {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    color: #fff;
    font-weight: bold;
}

.pht-popup-close {
    position: fixed;
    width: 60%;
    height: 60%;
    min-height: 400px;
    background-color: #f7f7f7;
    z-index: 1001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    margin-top: -40px;
    text-align: right;
}

.pht-popup-close a {
    margin-top: -10px;
    font-size: 33px;
    padding-right: 13px;
    color: #ccc;
}

@media screen and (max-width: 767px) {
    .pht-popup {
        width: 100%;
    }

    body .pht-popup-close {
        width: 100%;
    }
}