body.exit-intent-open {
    overflow: hidden;
}

.exit-intent {
    background: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    color: #111;
    margin: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    max-width: 440px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    width: calc(100% - 32px);
}

.exit-intent[open] {
    animation: exit-intent-enter 220ms ease-out both;
}

.exit-intent::backdrop {
    animation: exit-intent-backdrop 180ms ease-out both;
    backdrop-filter: blur(4px);
    background: rgba(8, 11, 12, 0.72);
}

.exit-intent__accent {
    background: #f47721;
    height: 5px;
    width: 100%;
}

.exit-intent__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 12px;
    top: 13px;
    transition: background-color 160ms ease, color 160ms ease;
    width: 48px;
}

.exit-intent__close:hover {
    background: #f3f2f0;
}

.exit-intent__close:focus-visible,
.exit-intent__field input:focus-visible,
.exit-intent__submit:focus-visible,
.exit-intent__privacy a:focus-visible {
    outline: 2px solid #f47721;
    outline-offset: 3px;
}

.exit-intent__close svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
    width: 22px;
}

.exit-intent__content {
    font-family: "Montserrat-Regular", Arial, sans-serif;
    padding: 34px 36px 34px;
}

.exit-intent__wordmark {
    display: block;
    font-family: "Montserrat-Bold", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 28px;
}

.exit-intent h2 {
    color: #111;
    font-family: "Montserrat-Bold", Arial, sans-serif;
    font-size: clamp(27px, 5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 0;
}

.exit-intent__description {
    color: #535758;
    font-size: 15px;
    line-height: 1.6;
    margin: 12px 0 22px;
    max-width: 390px;
}

.exit-intent__form {
    margin: 0;
}

.exit-intent__field {
    display: block;
    margin: 0;
}

.exit-intent__field > span {
    color: #313435;
    display: block;
    font-family: "Montserrat-Bold", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.exit-intent__field input {
    appearance: none;
    background: #fff;
    border: 1px solid #b8bcbd;
    border-radius: 0;
    box-sizing: border-box;
    color: #111;
    font: 500 18px/1.2 "Montserrat-Regular", Arial, sans-serif;
    height: 56px;
    padding: 0 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.exit-intent__field input:focus {
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
}

.exit-intent__field input[aria-invalid="true"] {
    border-color: #b42318;
}

.exit-intent__error {
    color: #b42318;
    display: none;
    font-size: 12px;
    line-height: 1.45;
    margin: 7px 0 0;
}

.exit-intent__error.is-visible {
    display: block;
}

.exit-intent__submit {
    align-items: center;
    background: #111;
    border: 1px solid #111;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: 700 14px/1 "Montserrat-Bold", Arial, sans-serif;
    height: 56px;
    justify-content: space-between;
    margin-top: 14px;
    padding: 0 18px;
    transition: background-color 160ms ease, border-color 160ms ease;
    width: 100%;
}

.exit-intent__submit:hover {
    background: #f47721;
    border-color: #f47721;
}

.exit-intent__submit svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 160ms ease;
    width: 21px;
}

.exit-intent__submit:hover svg {
    transform: translateX(3px);
}

.exit-intent__privacy {
    color: #6f7374;
    font-size: 11px;
    line-height: 1.55;
    margin: 14px 0 0;
}

.exit-intent__privacy a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

@keyframes exit-intent-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes exit-intent-backdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 575px) {
    .exit-intent {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        width: calc(100% - 20px);
    }

    .exit-intent__content {
        padding: 28px 22px 24px;
    }

    .exit-intent__wordmark {
        margin-bottom: 24px;
    }

    .exit-intent__description {
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exit-intent[open],
    .exit-intent::backdrop,
    .exit-intent__close,
    .exit-intent__field input,
    .exit-intent__submit,
    .exit-intent__submit svg {
        animation: none;
        transition: none;
    }
}
