
/* MODAL */

.leggat-modal {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin-bottom: 0 !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1030;
    -webkit-transition: opacity .2s,visibility 0s .2s;
    transition: opacity .2s,visibility 0s .2s
}

@media (max-width: 767px) {
    .leggat-modal {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start
    }
}

.leggat-modal--active {
    visibility: visible;
    opacity: 1;
    -webkit-transition: opacity .2s,visibility 0s;
    transition: opacity .2s,visibility 0s
}

.leggat-modal-trigger {
    cursor: pointer
}

.leggat-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 30px 20px;
    -webkit-box-shadow: 0 .6rem 3.6rem rgba(0,0,0,.15);
    box-shadow: 0 .6rem 3.6rem rgba(0,0,0,.15);
    border-top: .5rem solid #0d65bf;
    border-radius: 5px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto
}

.medium .leggat-modal-content {
    max-width: 85rem
}

.small .leggat-modal-content {
    max-width: 700px
}

@media (max-width: 1199px) {
    .leggat-modal-content {
        margin: 0 1.6rem
    }
}

@media (max-width: 767px) {
    .leggat-modal-content {
        margin-top: 20px;
        overflow: auto
    }

    .leggat-modal-content {
        max-height: 85vh !important;
    }
}

.leggat-modal-close {
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 35px;
    color: #fff;
    background: none;
    border: 0;
    position: absolute;
    z-index: 1;
    top: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%
}

    .leggat-modal-close:hover {
        background: rgba(0,0,0,.2)
    }

.leggat-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,.6)
}

.updated-modal-ui:not(.srp-calculator) .leggat-modal-content {
    border-top: none;
    max-width: 430px;
    max-height: 100vh;
    min-height: 100vh;
    margin: 5rem 0 0;
    padding: 32px 32px 24px;
    border-radius: 8px 8px 0 0
}

.updated-modal-ui:not(.srp-calculator) .leggat-modal-close {
    color: #292929;
    top: 10px;
    right: 16px;
    width: auto;
    height: auto;
    border-radius: unset
}

    .updated-modal-ui:not(.srp-calculator) .leggat-modal-close .far {
        font-weight: 100
    }

@media (min-width: 768px) {
    .updated-modal-ui:not(.srp-calculator) .leggat-modal-content {
        max-height: 80vh;
        min-height: auto;
        border-radius: 0
    }
}

.leggat-modal.updated-ui .leggat-modal-content {
    max-width: 380px;
    max-height: 90vh;
    padding: 0;
    border-radius: 0
}

@media (max-width: 767px) {
    .leggat-modal.updated-ui .leggat-modal-content {
        margin-top: 3rem
    }

    .leggat-modal-close {
        font-size: 28px;
    }
}

.leggat-modal.updated-ui .leggat-modal-content > h3 {
    display: none
}

.leggat-modal.updated-ui .leggat-modal-close {
    color: #000;
    top: 0;
    right: 0
}

    .leggat-modal.updated-ui .leggat-modal-close .far {
        font-weight: 100
    }

@media only screen and (min-width: 480px) {
    .leggat-modal.updated-ui .leggat-modal-content {
        max-height: 100vh
    }
}

.leggat-modal-backdrop {
    z-index: unset;
}
/* MODAL END */

/* CARFIRE ALERT MODAL - Ford Blue Override */
#msgCarfireAlert .modal-header {
    background-color: #003478 !important;
}

#msgCarfireAlert .modal-header h4.modal-title,
#msgCarfireAlert .modal-header button.close,
#msgCarfireAlert .modal-header button.close span {
    color: #ffffff !important;
}

#msgCarfireAlert .modal-footer .button.button--alternate,
#msgCarfireAlert .modal-footer .btn--alternate {
    background: none !important;
    border-color: #003478 !important;
    color: #003478 !important;
}

#msgCarfireAlert .modal-footer .button.button--alternate:hover,
#msgCarfireAlert .modal-footer .btn--alternate:hover {
    background-color: #003478 !important;
    border-color: #003478 !important;
    color: #ffffff !important;
}
/* CARFIRE ALERT MODAL END */
