/* Exit Intent Popup Styles */
.eip-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation-name: eip-fadeIn;
    animation-duration: 0.4s;
}

.eip-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 60px auto;
    padding: 20px;
    border-radius: 10px;
    width: 430px;
    max-height: 382px;
    overflow-y: auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    animation-name: eip-slideIn;
    animation-duration: 0.4s;
}

.eip-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.eip-close:hover,
.eip-close:focus {
    color: black;
    text-decoration: none;
}

.eip-modal-flex {
    display: flex;
    align-items: flex-start;
}

.eip-modal-image {
    margin-right: 20px;
    flex-shrink: 0;
}

.eip-modal-text {
    flex-grow: 1;
}

.eip-modal-body {
/*     padding: 20px 0; */
}

.eip-modal-footer {
    padding: 10px 0;
    text-align: center;
}

.eip-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4e7ac7;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.eip-button:hover {
    opacity: 0.9;
}

/* Анимации */
@keyframes eip-fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes eip-slideIn {
    from {transform: translateY(-300px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 480px) {
    .eip-modal-content {
        width: 90%;
        margin: 20% auto;
    }
    
    .eip-modal-flex {
        flex-direction: column;
    }
    
    .eip-modal-image {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
}