.exit-banner {
    position: fixed;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    inset: 0;
}

.exit-banner.is-visible {
    display: flex;
}

.exit-banner__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.exit-banner__dialog {
    position: relative;
    width: 392px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    z-index: 1;
}

.exit-banner__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #212529;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    z-index: 2;
    padding: 0;
}

@media (any-hover: hover) {
    .exit-banner__close:hover{
        color: #fff;
    }
}

.exit-banner__media {
    position: relative;
    height: 346px;
    background: #fff;
}

.exit-banner__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.exit-banner__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-family: Poppins;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #fff;
}

.exit-banner__online-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #87E674;
}

.exit-banner__name {
    font-size: 28px;
    font-weight: 500;
    line-height: 130%;
}

.exit-banner__distance {
    margin-left: 16px;
    font-size: 20px;
    font-weight: 400;
    line-height: 130%;
}

.exit-banner__content {
    padding: 16px;
    text-align: center;
    color: #000;
    font-family: Poppins;
    font-size: 16px;
    line-height: 130%;
}

.exit-banner__reasons-label {
    color: #5A5A5A;
    font-weight: 500;
}

.exit-banner__title {
    margin-top: 12px !important;
    margin-bottom: 0;
    font-size: 40px;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase;
}

.exit-banner__reasons-content {
    margin-top: 12px;
}

.exit-banner__reasons-content p {
    margin-bottom: 0;
    color: #000 !important;
}

.exit-banner__reasons-content p:not(:first-child) {
    margin-top: 8px;
}

.exit-banner__button {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 360px;
    width: 100%;
    height: 44px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 130%;
    transition: opacity 0.3s ease;
    color: #fff !important;
    background: var(--exit-banner-button-color, #4fa1df);
}

@media (any-hover: hover){
    .exit-banner__button:hover{
        opacity: 0.9;
        text-decoration: none;
    }
}

body.exit-banner-open {
    overflow: hidden;
}


@media (max-width: 992px), (max-height: 800px) {
    .exit-banner__dialog {
        transform: scale(0.8);
    }
}

@media (max-width: 370px), (max-height: 600px) {
    .exit-banner__dialog {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .exit-banner {
        padding: 12px;
    }

    .exit-banner__name {
        font-size: 22px;
    }

    .exit-banner__distance {
        font-size: 16px;
    }

    .exit-banner__title {
        font-size: 28px;
    }
}
