#action.exit-popup {
    z-index: 10000;
    margin: 0;
    padding: 16px;
    border: none;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    background: rgba(29, 41, 61, 0.88);
}

#action.exit-popup::backdrop {
    background: rgba(29, 41, 61, 0.88);
}

#action.exit-popup[open],
#action.exit-popup.exit-popup--visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.exit-popup__panel {
    position: relative;
    width: 100%;
    max-width: 829px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    background: linear-gradient(221deg, #155dfc 0%, #1c398e 100%);
}

body.vertical-sport #action .exit-popup__panel {
    background: linear-gradient(221deg, #009966 0%, #002c22 100%);
}

body.vertical-trust #action .exit-popup__panel {
    background: linear-gradient(221deg, #155dfc 0%, #1c398e 100%);
}

.exit-popup__panel-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url(../img/background-image.svg);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.exit-popup__content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exit-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.exit-popup__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(29, 50, 69, 0.6);
    color: #f8fafc;
    font-size: 12px;
    line-height: 16px;
}

.exit-popup__verified svg {
    flex-shrink: 0;
}

.exit-popup__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup__intro {
    text-align: center;
    color: #f8fafc;
}

.exit-popup__title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
}

.exit-popup__subtitle {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.exit-popup__cards-wrap {
    width: 100%;
    overflow: visible;
    padding-top: 24px;
}

.exit-popup__cards {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    padding-top: 4px;
    overflow: visible;
}

/* DOM order is [side, featured, side]; flex order centers featured on desktop */
.exit-popup__cards .exit-popup__card--featured {
    order: 2;
    z-index: 3;
    min-height: 370px;
    transform: translateY(-32px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.exit-popup__cards .exit-popup__card:first-child:not(.exit-popup__card--featured) {
    order: 1;
    z-index: 1;
    min-height: 300px;
    align-self: flex-end;
}

.exit-popup__cards .exit-popup__card:last-child:not(.exit-popup__card--featured) {
    order: 3;
    z-index: 1;
    min-height: 300px;
    align-self: flex-end;
}

.exit-popup__card {
    position: relative;
    flex: 0 0 255px;
    width: 255px;
    padding: 25px 16px;
    background: #1d293d;
    border-radius: 12px;
    border: 2px solid #90a1b9;
    box-shadow: 0 8px 16px rgba(50, 50, 71, 0.06), 0 8px 8px rgba(50, 50, 71, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
}

@media screen and (min-width: 768px) and (max-width: 890px) {
    .exit-popup__card {
        flex: 0 0 220px;
        width: 220px;
    }
}

.exit-popup__card--featured {
    border-color: #fed7aa;
    margin-bottom: 0;
    padding-top: 20px;
    scroll-snap-align: center;
}

.exit-popup__card-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid #fed7aa;
    background: linear-gradient(
        194deg,
        #fed7aa 0%,
        #ffedd5 27%,
        #fff7ed 47%,
        #ffedd5 64%,
        #fed7aa 100%
    );
    color: #262626;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

.exit-popup__card-head {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.exit-popup__logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.exit-popup__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exit-popup__operator {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    align-self: center;
}

.exit-popup__name {
    margin: 0;
    color: #f8fafc;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.exit-popup__card:nth-child(1) .exit-popup__name,
.exit-popup__card:nth-child(1) .exit-popup__price,
.exit-popup__card:nth-child(2) .exit-popup__name,
.exit-popup__card:nth-child(2) .exit-popup__price {
    color: #fff;
}

.exit-popup__rating {
    color: #f8fafc;
    font-size: 12px;
    line-height: 16px;
}

.exit-popup__rating .ki {
    color: #ffb900;
}

.exit-popup__rating .product-rating {
    align-items: center;
    justify-content: flex-start;
}

.exit-popup__rating .product-rating .number {
    margin-right: 4px;
} 

.exit-popup__offer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 108px;
    background: #314158;
    border-radius: 8px;
    border: 1px solid #45556c;
    overflow: hidden;
}

.exit-popup__offer-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 6px 12px;
    background: #45556c;
    border-radius: 8px 0 8px 0;
    color: #f8fafc;
    font-size: 12px;
    line-height: 16px;
}

.exit-popup__offer-label svg {
    flex-shrink: 0;
}

.exit-popup__offer-body {
    padding: 0 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exit-popup__price {
    margin: 0;
    color: #8ec5ff !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.exit-popup__bonus {
    margin: 0;
    color: #f8fafc;
    font-size: 12px;
    line-height: 16px;
}

.exit-popup__code-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exit-popup__code-box {
    position: relative;
    width: 100%;
}

.exit-popup__code {
    width: 100%;
    min-height: 35px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #314158;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: default;
    font: inherit;
}

.exit-popup__code--empty {
    color: #90a1b9;
    font-size: 14px;
    line-height: 24px;
}

.exit-popup__code--active {
    border: 2px dashed #dbeafe;
    cursor: pointer;
    color: #f8fafc;
}

.exit-popup__code--active.copied .exit-popup__code-text {
    display: none;
}

.exit-popup__code--active.copied .exit-popup__code-copied {
    display: inline;
}

.exit-popup__code-text {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
}

.exit-popup__code-copied {
    display: none;
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    color: #f8fafc;
}

.exit-popup__code-badge {
    position: absolute;
    top: 0px;
    left: 9px;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    line-height: 2px;
    color: #f8fafc;
    background: #314158;
    white-space: nowrap;
}

.exit-popup__code-icon-wrap {
    display: grid;
    grid-template-columns: 20px;
    grid-template-rows: 20px;
    align-items: center;
    justify-items: center;
    flex-shrink: 0;
}

.exit-popup__code-icon-wrap .exit-popup__code-icon {
    grid-column: 1;
    grid-row: 1;
    width: 20px;
    height: 20px;
}

.exit-popup__code-icon {
    flex-shrink: 0;
}

.exit-popup__code-icon--copy-hover,
.exit-popup__code-icon--success {
    display: none;
}

.exit-popup__code--active.copied .exit-popup__code-icon--copy,
.exit-popup__code--active.copied .exit-popup__code-icon--copy-hover {
    display: none;
}

.exit-popup__code--active.copied .exit-popup__code-icon--success {
    display: block;
}

body.vertical-trust #action .exit-popup__code--active:hover:not(.copied) {
    background: linear-gradient(90deg, #51c97c 0%, #69ee99 100%);
    color: #0f172b;
    border: 2px solid #65eb95;
}

body.vertical-trust #action .exit-popup__code--active:hover:not(.copied) .exit-popup__code-icon--copy {
    display: none;
}

body.vertical-trust #action .exit-popup__code--active:hover:not(.copied) .exit-popup__code-icon--copy-hover {
    display: block;
}

body.vertical-sport #action .exit-popup__code--active:hover {
    background: #5aad1e;
    border: 2px solid #5aad1e;
}

.exit-popup__signal {
    display: flex;
    justify-content: center;
}

.exit-popup__signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    color: #f8fafc;
    font-size: 12px;
    line-height: 16px;
}

.exit-popup__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    cursor: pointer;
}

body.vertical-sport #action .exit-popup__cta {
    background: #5aad1e;
    color: #fff;
}

body.vertical-trust #action .exit-popup__cta {
    height: 40px;
    padding: 0 16px;
    border-radius: 24px;
    border: 1px solid #65eb95;
    background: linear-gradient(90deg, #51c97c 0%, #69ee99 100%);
    box-shadow: 0 2px 8px rgba(222, 216, 240, 0.5);
    color: #020618;
}

#action.exit-popup footer.exit-popup__footer,
#action .exit-popup__footer {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0;
    color: #f8fafc;
}

.exit-popup__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.exit-popup__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.exit-popup__logos img {
    height: 22px;
    width: auto;
    max-width: 94px;
    object-fit: contain;
}

.exit-popup__terms {
    margin: 0;
    text-align: center;
}

.exit-popup__terms a,
.exit-popup__terms-link {
    color: inherit;
    text-decoration: underline;
}

.exit-popup__terms p {
    margin: 0;
    color: #f8fafc;
    font-size: 12px;
    line-height: 16px;
}

.exit-popup__slider-dots {
    display: none;
}

@media screen and (max-width: 767px) {
    #action.exit-popup {
        padding: 16px;
        align-items: center;
        justify-content: center;
    }

    .exit-popup__panel {
        width: 100%;
        max-width: none;
        min-height: 0;
        max-height: calc(100dvh - 32px);
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        padding: 16px;
        gap: 16px;
    }

    .exit-popup__panel-bg {
        border-radius: inherit;
    }

    .exit-popup__title {
        font-size: 24px;
        line-height: 30px;
    }

    .exit-popup__subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .exit-popup__cards-wrap {
        margin: 0;
        padding: 28px 0 0;
        overflow: visible;
    }

    .exit-popup__cards {
        --exit-popup-card-width: 240px;
        justify-content: flex-start;
        align-items: flex-end;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-padding-inline: calc(50% - (var(--exit-popup-card-width) / 2));
        scroll-padding-top: 16px;
        padding-inline: calc(50% - (var(--exit-popup-card-width) / 2));
        padding-top: 16px;
        padding-bottom: 12px;
        gap: 12px;
        scrollbar-width: none;
    }

    .exit-popup__cards::-webkit-scrollbar {
        display: none;
    }

    .exit-popup__card {
        scroll-snap-align: center;
        /* flex: 0 0 var(--exit-popup-card-width);
        width: var(--exit-popup-card-width); */
    }

    .exit-popup__cards .exit-popup__card:first-child:not(.exit-popup__card--featured),
    .exit-popup__cards .exit-popup__card:last-child:not(.exit-popup__card--featured) {
        order: unset;
        align-self: flex-end;
        transform: translateY(8px);
        min-height: auto;
        box-shadow: 0 8px 16px rgba(50, 50, 71, 0.06), 0 8px 8px rgba(50, 50, 71, 0.08);
    }

    .exit-popup__cards .exit-popup__card--featured {
        order: unset;
        align-self: flex-end;
        transform: translateY(-16px);
        min-height: auto;
        z-index: 3;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    }

    .exit-popup__slider-dots {
        display: flex;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 24px;
        background: rgba(0, 0, 0, 0.2);
        margin: 0 auto;
    }

    .exit-popup__slider-dots a {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        text-indent: -9999px;
        overflow: hidden;
    }

    .exit-popup__slider-dots a.is-active {
        background: #fff;
    }
}
