/*!
 * fcw
 *
 * Art Samvelyan
 */

.modal-wrapper {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .3s;
    background-color: rgba(0, 0, 0, .7490196078)
}

.modal-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 999;
    overflow: hidden
}

.modal-wrapper.active .modal-content {
    opacity: 1
}

.modal-wrapper .modal-content {
    z-index: 1;
    opacity: 0;
    transition: opacity;
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .2117647059);
    border-radius: 24px;
    background-color: #fff;
    color: #999;
    overflow-y: auto;
    max-width: 800px;
    width: 95%;
    font-size: 15px;
    text-align: center
}

.modal-wrapper .modal-content .close-btn:not(a) {
    outline: 0;
    border: none;
    border-radius: 50%;
    color: #fff;
    background-color: transparent;
    padding: 15px;
    cursor: pointer;
    position: absolute;
    right: 2%;
    top: 2%;
    opacity: .6;
    transition: .2s ease-in-out
}

.modal-wrapper .modal-content .close-btn:not(a):active,
.modal-wrapper .modal-content .close-btn:not(a):focus,
.modal-wrapper .modal-content .close-btn:not(a):hover {
    opacity: 1;
    background: rgba(128, 128, 128, .5)
}

.modal-wrapper .modal-content .close-btn:not(a)::after,
.modal-wrapper .modal-content .close-btn:not(a)::before {
    content: " ";
    position: absolute;
    height: 25px;
    width: 3px;
    background-color: currentColor
}

.modal-wrapper .modal-content .close-btn:not(a)::before {
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg)
}

.modal-wrapper .modal-content .close-btn:not(a)::after {
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg)
}

.modal-wrapper .modal-content .content-inner,
.modal-wrapper.exit-intent .modal-content .content-inner {
    padding: 1.8em 1.2em 1.4em
}

.modal-wrapper .modal-content .heading {
    background-color: red;
    color: #fff;
    font-size: 1.8em;
    letter-spacing: .5px;
    padding: 10px 15px
}

.modal-wrapper .modal-content .sub-heading {
    color: #0843a5;
    line-height: 1.2;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 10px
}

.modal-wrapper .modal-content .sub-heading br,
.modal-wrapper.exit-intent .modal-content .recommended-text br {
    display: none
}

.modal-wrapper .modal-content .img-wrapper {
    margin: 0 auto;
    max-width: 230px
}

.modal-wrapper .modal-content .recommended-text {
    font-size: .85em;
    font-style: italic;
    color: #666
}

.modal-wrapper .modal-content .btn {
    color: #fff;
    font-size: 1em;
    text-decoration: none;
    text-transform: capitalize;
    padding: .6em 1em;
    margin-top: .7em;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
    border-radius: 7px;
    cursor: pointer;
    display: block
}

.modal-wrapper .modal-content .btn.btn__atc {
    background-color: #0843a5;
    transition: .25s ease-in-out
}

.modal-wrapper .modal-content .btn.btn__atc:active,
.modal-wrapper .modal-content .btn.btn__atc:focus,
.modal-wrapper .modal-content .btn.btn__atc:hover {
    -webkit-filter: brightness(0.85);
    filter: brightness(.85)
}

.modal-wrapper .modal-content .btn.btn__decline {
    background-color: #b2b2b2
}

.modal-wrapper.exit-intent .modal-content {
    background-color: #fff;
    height: auto;
    width: 95%;
    color: #000;
    max-width: 900px;
    box-shadow: 0 6px 12px #000;
    border-radius: 16px;
    border: 8px solid #ffbf00
}

.modal-wrapper.exit-intent .modal-content .close-btn:not(a) {
    position: absolute;
    right: 1%;
    color: inherit
}

.modal-wrapper.exit-intent .modal-content .heading {
    font-size: 2em;
    font-weight: 700;
    text-transform: uppercase;
    background-color: transparent;
    color: inherit;
    line-height: 1;
    padding: 0;
    margin-bottom: 10px
}

.modal-wrapper.exit-intent .modal-content .sub-heading {
    font-size: 1.6em;
    color: red;
    margin-bottom: 10px
}

.modal-wrapper.exit-intent .modal-content .recommended-text {
    font-size: 1em;
    font-style: normal;
    font-weight: 700;
    color: inherit
}

.modal-wrapper.exit-intent .modal-content .btn {
    display: inline-block;
    color: #fff;
    margin: 1em auto 0;
    border: 1px solid;
    background-color: red;
    box-shadow: 0 3px 6px #000;
    padding: .3em 1.5em;
    font-size: 1rem;
    font-family: Nunito, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: .3s
}

.modal-wrapper.exit-intent .modal-content .btn:active,
.modal-wrapper.exit-intent .modal-content .btn:focus,
.modal-wrapper.exit-intent .modal-content .btn:hover {
    -webkit-filter: brightness(0.87);
    filter: brightness(.87)
}

@media only screen and (min-width:768px) {
    .modal-wrapper .modal-content {
        font-size: 16px
    }
    .modal-wrapper .modal-content .content-inner {
        padding: 2em 2.5em 1.4em
    }
    .modal-wrapper .modal-content .heading {
        font-size: 2.4em
    }
    .modal-wrapper .modal-content .sub-heading {
        font-size: 2.25rem
    }
    .modal-wrapper .modal-content .sub-heading br,
    .modal-wrapper.exit-intent .modal-content .recommended-text br {
        display: block
    }
    .modal-wrapper .modal-content .img-wrapper {
        max-width: 380px
    }
    .modal-wrapper .modal-content .recommended-text {
        font-size: 1em
    }
    .modal-wrapper .modal-content .btn {
        font-size: 1.2em
    }
    .modal-wrapper.exit-intent .modal-content {
        font-size: 24px
    }
    .modal-wrapper.exit-intent .modal-content .content-inner {
        padding: 1em 1.5em
    }
    .modal-wrapper.exit-intent .modal-content .heading {
        font-size: 3em
    }
    .modal-wrapper.exit-intent .modal-content .sub-heading {
        font-size: 2em
    }
    .modal-wrapper.exit-intent .modal-content .btn {
        font-size: 1.1em
    }
}