/**
* Modal Style
**/
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 600;
    display: none;
    overflow: hidden;
    outline: 0;
}
.modal .modal-loader {
    display: none;
}
.modal.modal--loading .modal-loader {
    display: block;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 580;
    background-color: var(--text-color);
    transition: all .3s ease-in-out;
}
.modal-backdrop.fade {
    visibility: hidden;
    opacity: 0;
}
.modal-backdrop.show {
    visibility: visible;
    opacity: 0.6;
}
.modal-close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 10px;
    color: #8090a8;
    border: 0;
    background: transparent;
    padding: 10px 10.5px;
    z-index: 10;
}

.modal-close,
.modal-close:focus,
.modal-close:active {
    background: transparent;
    border: transparent;
    outline: none;
}
.modal-close:hover svg path, 
.modal-close:focus svg path{
    stroke: #6a7b8c;
}
.modal-close:not(:disabled):not(.disabled) {
    cursor: pointer;
}
.modal.no-close-button .modal-close {
    display: none !important;
}

.modal-open {
    overflow: hidden;
}
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}
.modal-dialog {
    position: relative;
    width: auto;
    max-width: 100%;
    margin: auto;
}
.modal-dialog.modal-dialog--animate-linear {
    transition: linear 0.15s;
}
.modal-dialog.animated {
    animation-duration: .3s !important;
}
.modal-dialog.slideInRight,
.modal-dialog.slideOutRight {
    animation-duration: .6s !important;
}
.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (0.5px * 2));
}
.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 2px;
    outline: 0;
    height: auto;
}
.modal-header {
    padding: 44px 44px 16px;
}
.modal-title {
    line-height: 24px;
    font-size: 24px;
    font-weight: bold;
    color: #292d35;
    text-align: left;
    padding: 0;
}
.modal-description{
    margin-top: 14px;
}
.modal-body {
    position: relative;
    overflow-x: hidden;
    padding: 44px;
}
.modal-header + .modal-body{
    padding-top: 0;
}

.modal-footer {
    line-height: 18px;
    color: #505d72;
    padding: 44px;
    background-color: #f9f9fb;
    border-top: 1px solid #e6ebf0;
    text-align: left;
    border-radius: 0px 3px 3px;
}
.modal-footer .form-footer {
    margin-top: 0;
    margin-bottom: 0;
}
.modal .modal-body > .scroll-wrapper {
    margin-right: -24px;
}
.modal .scroll-wrapper > .scrollbar-inner {
    padding-right: 20px !important;
}
.modal-open .scroll-to-top {
    right: 17px;
}
.modal.modal--wide .modal-body {
    padding: 0;
}
.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@keyframes slideOutRight {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        visibility: hidden;
        transform: translate3d(120%, 0, 0);
    }
}

/** Media ------------------------------------------------------------------------------------------------------------*/

@media screen and (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
    }
}
@media (max-width: 576px) {
    .modal-title{
        line-height: 20px;
        font-size: 20px;
    }

    .modal-header,
    .modal-body{
        padding: 16px;
    }

    .modal-dialog {
        width: 100% !important;
    }

    .modal:not(.fullscreen-on-mobile) .modal-content {
        margin: 15px 20px;
        width: calc(100% - 40px) !important;
        overflow: hidden;
    }

    .modal.fullscreen-on-mobile .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .modal.fullscreen-on-mobile .modal-dialog {
        position: absolute;
        top: 0;
        bottom: 0;
        margin-top: 0 !important;
        width: calc(100% - 35px) !important;;
        height: 100%;
    }

    .modal.fullscreen-on-mobile .modal-close{
        right: -35px;
        top: 0;
    }

    .modal.fullscreen-on-mobile .modal-close svg path{
        stroke: #fff;
    }

    .modal-body {
        position: relative;
        padding: 31px 19px 40px;
        background-color: #fff;
    }
    .modal-footer {
        display: block;
        margin-top: auto;
        padding: 30px 19px 34px;
    }
}

#modal.above-all {
    z-index: 2500000000;
}
