.modal-wrapper {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
    background-color: #000000bf;
}

.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 #00000036;
    border-radius: 24px;
    border: 3px solid #fff;
    background: #fff;
    color: #330303;
    overflow-y: auto;
    max-width: 800px;
    width: 95%;
    font-size: 16px;
    padding: 1.8em 1em 1.4em;
    text-align: center;
}

.modal-wrapper .modal-content .close-btn:not(a) {
    outline: none;
    border: none;
    border-radius: 50%;
    color: #484141;
    background-color: transparent;
    padding: 15px;
    cursor: pointer;
    position: absolute;
    right: 1%;
    top: 1%;
    opacity: 0.6;
    transition: all 0.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, 0.5);
}

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

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

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

.modal-wrapper.exit-intent#exit-pop .modal-content .ty-section {
    display: none;
}

.modal-wrapper.exit-intent#exit-pop .modal-content .main-section {
    display: block;
}

.modal-wrapper.exit-intent .modal-content {
    height: auto;
    width: 95%;
    color: #345288;
    max-width: 980px;
    border-radius: 10px;
    font-size: 17px;
    border: none;
    padding: 1em 0.5em;
    background-image: url('/assets/images/tsl-exitpop-bg.avif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: left;
}

.modal-wrapper.exit-intent .modal-content .content-inner {
    border-radius: 10px;
    padding: 1em;
    background: rgba(255, 255, 255, 0.85);
}

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

.modal-wrapper.exit-intent .modal-content p {
    margin-bottom: 0.5rem;
}

.modal-wrapper.exit-intent .modal-content .main-section {
    display: none;
}

.modal-wrapper.exit-intent .modal-content .ty-section {
    display: block;
    text-align: center;
}

.modal-wrapper.exit-intent .modal-content .ty-section .heading {
    border-bottom: 2px solid #6E8DC5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-wrapper.exit-intent .modal-content .ty-section .sub-heading {
    font-weight: 400;
    margin-bottom: 1em;
}

.modal-wrapper.exit-intent .modal-content .ty-section .sub-heading.sub-heading--bg {
    background-color: #4069B2;
    padding: 5px 10px;
    color: #fff;
}

.modal-wrapper.exit-intent .modal-content .ty-section .sub-heading b {
    color: inherit;
    font-weight: bold;
}

.modal-wrapper.exit-intent .modal-content .divider {
    border-bottom: 2px solid #6E8DC5;
    margin-top: 10px;
    margin-bottom: 10px;
}

.modal-wrapper.exit-intent .modal-content .heading {
    font-size: 1.5em;
    font-weight: 900;
    line-height: 1.3;
    color: #4069B2;
    text-align: center;
    margin-bottom: 5px;
}

.modal-wrapper.exit-intent .modal-content .heading br {
    display: block;
}

.modal-wrapper.exit-intent .modal-content .sub-heading {
    font-weight: bold;
    text-align: center;
}

.modal-wrapper.exit-intent .modal-content .sub-heading b {
    font-weight: 800;
    color: #F15925;
}

.modal-wrapper.exit-intent .modal-content .email-input {
    color: #636363;
    background-color: #fff;
    border: 1px solid #9f9f9f;
    border-radius: 7px;
    font-size: 0.9em;
    display: block;
    width: 100%;
    padding: 15px 1em;
    margin-bottom: 15px;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.modal-wrapper.exit-intent .modal-content .email-input:focus-within {
    text-align: left;
}

.modal-wrapper.exit-intent .modal-content label {
    text-align: left;
    color: #e42a2a;
    font-size: 1rem;
    margin-bottom: 5px;
    margin-left: 5px;
    display: none;
}

.modal-wrapper.exit-intent .modal-content label.invalid {
    display: block;
}

.modal-wrapper.exit-intent .modal-content label.invalid + .email-input {
    border: 1px solid red;
}

.modal-wrapper.exit-intent .modal-content .submit-btn {
    text-align: center;
    display: block;
    width: 100%;
    color: #fff;
    margin: 0 auto;
    background: linear-gradient(90deg, #f15925 0%, #ffd500 100%);
    border-radius: 10px;
    border: none;
    padding: 0.5em 1em;
    font-size: 1em;
    font-family: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
}

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

.modal-wrapper.exit-intent .modal-content .no-thx-btn {
    display: block;
    color: #345288;
    font-size: .8em;
    text-align: center;
    margin-top: 7px;
    text-decoration: underline;
}

@media only screen and (min-width: 768px) {
    .modal-wrapper.exit-intent .modal-content {
        border-radius: 20px;
        font-size: 30px;
        padding: 1.5em 2em;
    }

    .modal-wrapper.exit-intent .modal-content .ty-section {
        font-size: 24px;
    }

    .modal-wrapper.exit-intent .modal-content .content-inner {
        padding: 1.5em 1em;
        border-radius: 20px;
    }

    .modal-wrapper.exit-intent .modal-content p {
        font-size: 1em;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .modal-wrapper.exit-intent .modal-content .heading {
        line-height: 1;
        margin-bottom: 1rem;
    }

    .modal-wrapper.exit-intent .modal-content .heading br {
        display: none;
    }

    .modal-wrapper.exit-intent .modal-content .email-input {
        font-size: 0.8em;
    }

    .modal-wrapper.exit-intent .modal-content .ty-section .heading {
        font-size: 1.75em;
    }

    .modal-wrapper.exit-intent .modal-content .submit-btn {
        padding: 0.3em 1.5em;
        border-radius: 10px;
    }
}
