.newsletter-popup {
    box-sizing: border-box;
    width: min(540px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-top: 6px solid var(--qrowd-base, #fe7f4c);
    border-radius: 16px;
    background: #fff;
    color: #1e3737;
    font-family: var(--qrowd-font, 'Manrope', sans-serif);
    box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
}

.newsletter-popup:not([open]) { display: none; }
.newsletter-popup::backdrop { background: rgb(13 30 30 / 64%); }
.newsletter-popup__content { position: relative; padding: 44px 36px 28px; }

.newsletter-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #526565;
    background: transparent;
    cursor: pointer;
}

.newsletter-popup__close:hover { background: #f2f7f7; }
.newsletter-popup__edition {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    color: var(--qrowd-primary, #1e3737);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: .12em;
}
.newsletter-popup__format {
    display: block;
    margin-top: 3px;
    color: #526565;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}
.newsletter-popup #newsletter-popup-title {
    margin: 0 0 16px;
    color: #1e3737;
    font: 800 clamp(26px, 5vw, 34px)/1.2 var(--qrowd-font, 'Manrope', sans-serif);
    letter-spacing: -.04em;
}
.newsletter-popup #newsletter-popup-description {
    margin: 0 0 28px;
    color: #526565;
    font-size: 15px;
    line-height: 1.8;
}
.newsletter-popup__actions { display: flex; flex-direction: column; gap: 10px; }
.newsletter-popup__yes,
.newsletter-popup__no {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 700 14px/1.5 var(--qrowd-font, 'Manrope', sans-serif);
    text-decoration: none;
    cursor: pointer;
}
.newsletter-popup .newsletter-popup__yes { background: var(--qrowd-primary, #1e3737); color: #fff; }
.newsletter-popup .newsletter-popup__yes:hover { background: #1e3737; color: #fff; }
.newsletter-popup__no { background: #fff; color: #1e3737; border-color: #d7e1e1; }
.newsletter-popup__no:hover { background: #f2f7f7; }
.newsletter-popup :focus-visible { outline: 3px solid #07847f; outline-offset: 3px; }
.newsletter-popup .newsletter-popup__note { margin: 18px 0 0; color: #526565; text-align: center; font-size: 12px; line-height: 1.6; }
html.newsletter-popup-open { overflow: hidden; }

@media (max-width: 480px) {
    .newsletter-popup__content { padding: 44px 24px 24px; }
}

@media (prefers-reduced-motion: no-preference) {
    .newsletter-popup[open] { animation: newsletter-popup-enter 180ms ease-out; }
    @keyframes newsletter-popup-enter {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
