/**
* Name: Modal style
* Author: by crycode
*/

@media all {
    .mfp-wrap {
        -webkit-overflow-scrolling: touch;
        -webkit-transform: translateZ(0);
    }
  /*  html.mfp-helper {
        height: 100%;
    }
    html.mfp-helper body {
        overflow: hidden;
        height: 100%;
        -webkit-transform: translateZ(0);
    }*/
    .modal-header {
        border-radius: 3px 3px 0 0;
        padding: 10px;
        display: flex;
        align-items: center;
    }
    .modal-body {
        background-color: #fff;
        padding: 20px;
    }
    .modal-content {
        -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
        box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
        position: relative;
        margin: 30px auto;
    }
    .modal-footer {
        background-color: #fff;
        border-radius: 0 0 3px 3px;
        padding: 0 20px 20px;
    }
    .modal-w-400 {
        max-width: 400px;
    }
    .modal-w-900 {
        max-width: 900px;
    }

    .modal-title, .btn.modal-close-btn {
        display: inline-flex;
        vertical-align: middle;
        color: #fff;
    }
    .modal-title {
        font-size: 18px;
        font-weight: 600;
        overflow: hidden;
        line-height: 40px;
        text-transform: uppercase;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding-left: 10px;
        width: calc(100% - 40px);
    }
    /*close*/
    .btn.modal-close-btn {
        border-radius: 100%;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .bx-no-touch .btn.modal-close-btn:hover, .btn.modal-close-btn:active {
        background-color: rgba(0, 0, 0, .1);
    }

    .modal-pdf {
        width: 840px;
        max-width: 100%;
    }
}
@media screen and (max-width: 767px) {
    .modal-content {
        margin: 0;
        box-shadow: none;
        max-width: 100%;
    }

    .modal-header {
        border-radius: 0;
    }

    .modal-footer {
        border-radius: 0;
    }

    .mfp-container {
        padding: 0;
    }

    .mfp-container:before {
        display: none;
    }

    .mfp-content {
        background-color: #fff;
        height: 100%;
    }
}

@media all {
    .modal-icalculator {
        width: 1250px;
        max-width: calc(100% - 60px);
    }
    .modal-icalculator .modal-body {
        padding: 20px 30px;
    }
    .modal-icalculator .modal-title {
        padding-left: 20px;
    }
}

@media (max-width: 1023px) {
    .modal-icalculator .modal-body {
        padding: 20px;
    }
    .modal-icalculator .modal-title {
        padding-left: 10px;
    }
}

@media (max-width: 900px) {
    .modal-icalculator {
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .modal-icalculator .modal-title {
        font-size: 16px;
    }

    .modal-icalculator .mortgage {
        margin-top: 0;
    }
}

