.sd-exitintent {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.sd-exitintent.is-visible { display: flex; }
.sd-exitintent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 20, 24, .68);
    animation: sdExitFade .2s ease-out;
}
.sd-exitintent__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(760px, 100%);
    max-height: min(90vh, 760px);
    overflow: auto;
    background: #fff;
    color: #242424;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0,0,0,.28);
    outline: none;
    animation: sdExitRise .25s ease-out;
}
.sd-exitintent__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.sd-exitintent__image-wrap { flex: 0 0 46%; min-height: 300px; background: #eee; }
.sd-exitintent__image { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.sd-exitintent__content {
    flex: 1;
    align-self: center;
    padding: 48px 38px 38px;
    text-align: center;
}
.sd-exitintent__content h2 {
    margin: 0 0 14px;
    color: inherit;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}
.sd-exitintent__content p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.sd-exitintent__cta {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 4px;
    background: #222;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .15s ease;
}
.sd-exitintent__cta:hover, .sd-exitintent__cta:focus { background: #444; color: #fff !important; }
.sd-exitintent__dismiss {
    display: block;
    margin: 16px auto 0;
    padding: 5px;
    border: 0;
    background: transparent;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}
html.sd-exitintent-open { overflow: hidden; }
@keyframes sdExitFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sdExitRise { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    .sd-exitintent { padding: 12px; }
    .sd-exitintent__dialog { display: block; width: 100%; max-height: 88vh; }
    .sd-exitintent__image-wrap, .sd-exitintent__image { min-height: 0; height: 180px; }
    .sd-exitintent__content { padding: 28px 22px 24px; }
    .sd-exitintent__content h2 { font-size: 25px; }
    .sd-exitintent__content p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .sd-exitintent__backdrop, .sd-exitintent__dialog { animation: none; }
}
