/* Exit intent popup */

.ei-popup-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, .4);
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    padding: 16px;
}

.ei-popup-overlay.shown {
    display: flex;
    opacity: 1;
}

.ei-popup {
    position: relative;
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    padding: 28px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    font-family: inherit;
    transform: translateY(12px);
    opacity: 0;
    transition: transform .3s ease-out, opacity .3s ease-out;
}

.ei-popup-overlay.shown .ei-popup {
    transform: translateY(0);
    opacity: 1;
}

.ei-popup-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: none;
    color: var(--gray-500, #8997ab);
    cursor: pointer;
    line-height: 0;
}

.ei-popup-close svg {
    width: 100%;
    height: 100%;
}

.ei-popup-close:hover {
    color: var(--black, #0b0b0b);
}

.ei-popup-header {
    text-align: left;
    padding-right: 20px;
}

.ei-popup-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue-400, #066fd1);
    margin-bottom: 6px;
}

.ei-popup-title {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.ei-popup-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ei-popup-form {
    width: 100%;
}

.ei-popup-form-note {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray-650, #3e3e59);
    text-align: center;
}

.ei-popup-form-row {
    display: flex;
    gap: 8px;
}

.ei-popup-email {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    border: 1px solid var(--gray-400, #e2e4e8);
    border-radius: 8px;
    background-color: #fff;
}

.ei-popup-email:focus {
    outline: none;
    border-color: var(--blue-400, #066fd1);
}

.ei-popup-email.input-error {
    border-color: #e14343;
}

.ei-popup-submit.primary-btn {
    flex-shrink: 0;
    font-size: 14px;
    padding: 12px 16px;
    white-space: nowrap;
}

.ei-popup-form-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #e14343;
    text-align: center;
}

.ei-popup-form-error.visible {
    display: block;
}

.ei-popup-success {
    display: none;
    width: 100%;
    text-align: center;
}

.ei-popup-success.is-visible {
    display: block;
}

.ei-popup-success-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.ei-popup-success-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray-650, #3e3e59);
    margin: 0;
}

@media (max-width: 480px) {
    .ei-popup-form-row {
        flex-direction: column;
    }
}

.ei-popup-skip {
    border: none;
    background: none;
    padding: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500, #8997ab);
    cursor: pointer;
    text-decoration: underline;
}

.ei-popup-skip:hover {
    color: var(--black, #0b0b0b);
}

@media (max-width: 480px) {
    .ei-popup {
        padding: 22px;
    }
}
