/* Base popup overlay — shared marker for any future ".popup"-based popup */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

body.popup-opened,
html.popup-opened {
    overflow: hidden;
}

/* Exit-intent popup */
.popup-exit-intent__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.popup-exit-intent__content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: calc(100% - 32px);
    margin: 10vh auto 0;
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-family: Manrope, sans-serif;
    animation: popup-exit-intent-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popup-exit-intent-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-exit-intent__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #A3A3A3;
    cursor: pointer;
    padding: 4px;
}

.popup-exit-intent__close:hover {
    color: #202020;
}

.popup-exit-intent__title {
    font-weight: 700;
    color: #202020;
}

.popup-exit-intent__text {
    font-size: 15px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 24px !important;
}

.popup-exit-intent__contacts {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.popup-exit-intent__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #202020;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.popup-exit-intent__contact:hover {
    color: #202020;
    text-decoration: none;
}

.popup-exit-intent__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 80px;
    background: #17191C;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}

.popup-exit-intent__contact:hover .popup-exit-intent__contact-icon {
    background: #E11D20;
}

@media (max-width: 480px) {
    .popup-exit-intent__content {
        margin-top: 5vh;
        padding: 32px 20px 24px;
    }

    .popup-exit-intent__contacts {
        gap: 20px;
    }

    .popup-exit-intent__title {
        font-size: 20px;
    }
}
