/**
 * Exit-Intent Popup Styles — webpowers UG
 */

.wp-ei-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wp-ei-fadein 0.3s ease;
    backdrop-filter: blur(4px);
}

.wp-ei-overlay--hide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-ei-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: wp-ei-scalein 0.3s ease;
}

.wp-ei-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wp-ei-close:hover {
    color: #333;
}

.wp-ei-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.wp-ei-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.wp-ei-text {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.wp-ei-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-ei-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.wp-ei-input:focus {
    border-color: #1a1a1a;
}

.wp-ei-btn {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #e63946;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wp-ei-btn:hover {
    opacity: 0.9;
}

.wp-ei-success p {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px;
}

.wp-ei-code {
    display: inline-block;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e63946;
    border-radius: 8px;
}

@keyframes wp-ei-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wp-ei-scalein {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .wp-ei-modal { padding: 28px 20px; }
    .wp-ei-title { font-size: 18px; }
}
