.ei-popup-root {
    --ei-popup-bg: #ffffff;
    --ei-popup-btn: #2271b1;
}

.ei-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    padding: 1.5rem;
}

.ei-popup-overlay[hidden] {
    display: none !important;
}

.ei-popup {
    background: var(--ei-popup-bg);
    color: #111;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.ei-popup__content {
    flex: 1;
}

.ei-popup__body p {
    margin-top: 0;
}

.ei-popup__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ei-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.5rem;
    border-radius: 999px;
    background: var(--ei-popup-btn);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.ei-popup__cta.button {
    border: none;
    cursor: pointer;
}

.ei-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.ei-popup__media img {
    max-width: 160px;
    border-radius: 8px;
    object-fit: cover;
}

.ei-template-bold .ei-popup {
    background: #0f172a;
    color: #f8fafc;
}

.ei-template-bold .ei-popup__cta {
    background: #38bdf8;
}

.ei-template-image-left .ei-popup {
    max-width: 720px;
}

.ei-popup__form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ei-popup__form input[type="email"] {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    width: 100%;
}

.ei-popup__consent {
    font-size: 0.85rem;
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
}

.ei-popup__form-message {
    min-height: 1.25rem;
    margin: 0;
}

@media (max-width: 640px) {
    .ei-popup {
        flex-direction: column;
        padding: 1.5rem;
    }

    .ei-popup__media img {
        width: 100%;
        max-width: 100%;
    }
}
