.vendor-exitpopup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.vendor-exitpopup.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.vendor-exitpopup-lock {
    overflow: hidden;
}

.vendor-exitpopup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.58);
}

.vendor-exitpopup__dialog {
    position: relative;
    width: min(100%, 520px);
    border-radius: var(--vendor-exitpopup-radius, 8px);
    background: var(--vendor-exitpopup-background, #fff);
    color: var(--vendor-exitpopup-text, #111827);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.26);
    transform: translateY(12px) scale(0.98);
    transition: transform 180ms ease;
    outline: none;
}

.vendor-exitpopup.is-visible .vendor-exitpopup__dialog {
    transform: translateY(0) scale(1);
}

.vendor-exitpopup__content {
    padding: 34px;
}

.vendor-exitpopup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.vendor-exitpopup__close:hover,
.vendor-exitpopup__close:focus {
    color: #111827;
    background: #f3f4f6;
}

.vendor-exitpopup__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--vendor-exitpopup-accent, #10b981);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.vendor-exitpopup__title {
    margin: 0 44px 12px 0;
    color: var(--vendor-exitpopup-text, #111827);
    font-size: 28px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: 0;
}

.vendor-exitpopup__text {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.55;
}

.vendor-exitpopup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.vendor-exitpopup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.vendor-exitpopup__button--primary {
    background: var(--vendor-exitpopup-primary, #10b981);
    color: #fff;
}

.vendor-exitpopup__button--primary:hover,
.vendor-exitpopup__button--primary:focus {
    filter: brightness(0.92);
    color: #fff;
}

.vendor-exitpopup__button--ghost {
    background: #fff;
    border-color: #d1d5db;
    color: #374151;
}

.vendor-exitpopup__button--ghost:hover,
.vendor-exitpopup__button--ghost:focus {
    background: #f9fafb;
    color: #111827;
}

.vendor-exitpopup__button--link {
    background: transparent;
    color: #6b7280;
}

.vendor-exitpopup__button--link:hover,
.vendor-exitpopup__button--link:focus {
    color: #111827;
}

.vendor-exitpopup [hidden] {
    display: none !important;
}

@media (max-width: 560px) {
    .vendor-exitpopup {
        padding: 16px;
    }

    .vendor-exitpopup__content {
        padding: 28px 22px 22px;
    }

    .vendor-exitpopup__title {
        margin-right: 36px;
        font-size: 24px;
    }

    .vendor-exitpopup__actions,
    .vendor-exitpopup__button {
        width: 100%;
    }
}
