.newsletter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.15);
    justify-content: center;
    align-items: center;
    transition: none;
}

.newsletter-overlay.open {
    display: flex;
}

.newsletter-modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    background-color: var(--white);
    height: 370px;
    padding: var(--small-margin);
    transition: none;
    font-size: var(--body-txt);
}

.newsletter-modal h2 {
    font-size: inherit;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.newsletter-close {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.15em;
    padding: var(--small-margin);
    color: var(--brown);
    transform: translateY(-4px);
}

.newsletter_text {
    margin-top: 1rem;
    /* font-size: var(--body-txt); */
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: end;
}

#newsletter-email {
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    flex-grow: 1;
    border-bottom: 1px solid var(--brown);
    margin-right: var(--small-margin);
    padding-bottom: 0.2rem;
}

#newsletter-email:focus-visible {
    outline: none;
}

.newsletter-form button {
    border: none;
    background-color: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    /* line-height: 1; */
    transition: none;
}

.newsletter-form button:hover {
    background-color: var(--brown);
    color: var(--white);
}

.newsletter-message.success {
    font-size: inherit
}

.newsletter-message.error {
    color: inherit
}

@media screen and (max-width: 650px) {
    .newsletter-modal {
        font-size: var(--body-txt-mobile);
    }