/* Native <dialog>: the browser handles focus trapping, Escape and the backdrop,
   so none of that is reimplemented here. */
.newsletter {
    /* Stated rather than inherited from the UA stylesheet's
       `dialog { position: absolute; margin: auto }`. Same result in a conformant
       engine, but it no longer depends on that rule being there. */
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(46rem, 92vw);
    max-height: 90vh;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-ink);
    overflow: auto;
}

.newsletter::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.newsletter__inner {
    position: relative;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.newsletter .newsletter__title {
    color: var(--color-ink);
    font-size: var(--text-h3);
    font-weight: var(--font-weight-bold);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
    margin-block-end: 1.5rem;
    padding-inline-end: 2.5rem;
}

/* (0,2,0) to clear Elementor's bare `button` rule while the plugin is still on. */
.newsletter .newsletter__close {
    position: absolute;
    inset-block-start: 0.75rem;
    inset-inline-end: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-ink);
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
}

.newsletter .newsletter__close:hover,
.newsletter .newsletter__close:focus-visible {
    background: var(--color-section-bg);
}

.newsletter .contact-form__field select {
    font-family: var(--font-display);
    font-size: var(--text-body);
    line-height: 1.375;
    color: var(--color-form-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    width: 100%;
}

@media (max-width: 641px) {
    .newsletter .contact-form__row {
        grid-template-columns: 1fr;
    }
}

/* Scoped to .newsletter, not .contact — the popup's consent link sits outside
   the contact section, so the contact rule never reached it and Elementor's bare
   `a` styling applied instead. */
.newsletter .contact-form__checkbox a {
    color: var(--color-link-privacy);
    text-decoration: underline;
}
