body.aio-newsletter-open { overflow: hidden !important; }

#aio-whatsapp-newsletter-root { position: relative; z-index: 2147482000; }

.aio-whatsapp-newsletter,
.aio-whatsapp-newsletter * { box-sizing: border-box; }

.aio-whatsapp-newsletter {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: Montserrat, Arial, sans-serif;
}

.aio-news-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(4, 17, 27, .78);
    backdrop-filter: blur(3px);
    cursor: default;
}

.aio-news-dialog {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100vw - 48px));
    min-height: 610px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 56% 44%;
    grid-template-rows: 1fr auto;
    background: var(--aio-news-bg, #fff);
    border-radius: 10px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .30);
    animation: aioNewsEnter .28s ease-out both;
}

@keyframes aioNewsEnter {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.aio-news-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
    width: 44px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .92);
    color: var(--aio-news-dark, #071b2a);
    cursor: pointer;
    box-shadow: 0 5px 22px rgba(0, 0, 0, .10);
}

.aio-news-close svg { width: 24px; height: 24px; }

.aio-news-left {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 42px 54px 34px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 101, 0, .08), transparent 38%),
        var(--aio-news-bg, #fff);
}

.aio-news-content { width: 100%; max-width: 610px; margin: 0 auto; color: var(--aio-news-text, #071b2a); }

.aio-news-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 70px;
    object-fit: contain;
    margin: 0 0 22px;
}

.aio-news-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .12em;
    font-weight: 800;
    color: var(--aio-news-primary, #ff6500);
}

.aio-news-content h2 {
    margin: 0;
    max-width: 600px;
    font-size: clamp(35px, 4.1vw, 58px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 800;
    color: var(--aio-news-text, #071b2a);
}

.aio-news-subtitle {
    margin: 16px 0 22px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.45;
    color: var(--aio-news-muted, #657080);
}

.aio-news-field {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid rgba(7, 27, 42, .16);
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.aio-news-field:focus-within {
    border-color: var(--aio-news-primary, #ff6500);
    box-shadow: 0 0 0 3px rgba(255, 101, 0, .12);
}

.aio-news-field-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--aio-news-dark, #071b2a);
}

.aio-news-field-icon svg { width: 22px; height: 22px; }

.aio-news-field input {
    width: 100%;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 15px;
    color: var(--aio-news-text, #071b2a);
}

.aio-news-field input::placeholder { color: #8b94a0; opacity: 1; }

.aio-news-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 14px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--aio-news-muted, #657080);
    cursor: pointer;
}

.aio-news-consent > input { position: absolute; opacity: 0; pointer-events: none; }

.aio-news-checkbox {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border-radius: 4px;
    border: 1px solid var(--aio-news-primary, #ff6500);
    background: var(--aio-news-primary, #ff6500);
    color: #fff;
}

.aio-news-checkbox:empty { background: #fff; }
.aio-news-checkbox svg { width: 13px; height: 13px; }
.aio-news-consent a { color: var(--aio-news-dark, #071b2a); text-decoration: underline; }

.aio-news-error {
    margin: 0 0 10px;
    padding: 9px 11px;
    border-radius: 6px;
    background: #fff0ee;
    color: #a83224;
    font-size: 12px;
    line-height: 1.35;
}

.aio-news-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    background: var(--aio-news-primary, #ff6500);
    color: #fff !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

.aio-news-submit:hover { filter: brightness(.96); transform: translateY(-1px); }
.aio-news-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.aio-news-arrow { font-size: 28px; line-height: 0; margin-top: -2px; }

.aio-news-safe {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    font-size: 11px;
    color: var(--aio-news-muted, #657080);
}

.aio-news-safe-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--aio-news-dark, #071b2a);
    font-weight: 800;
}

.aio-news-visual {
    position: relative;
    min-width: 0;
    min-height: 610px;
    background-color: #edf1f4;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

.aio-news-visual::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(to top, rgba(7,27,42,.28), transparent);
    pointer-events: none;
}

.aio-news-discount-badge {
    position: absolute;
    left: 28px;
    bottom: 32px;
    z-index: 2;
    display: none;
    min-width: 190px;
    padding: 18px;
    border-radius: 16px;
    background: var(--aio-news-dark, #071b2a);
    color: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.aio-news-discount-badge span,
.aio-news-discount-badge small { display: block; }
.aio-news-discount-badge span { font-size: 10px; letter-spacing: .16em; font-weight: 800; color: var(--aio-news-primary, #ff6500); }
.aio-news-discount-badge strong { display: block; margin: 4px 0; font-size: 42px; line-height: 1; color: #fff; }
.aio-news-discount-badge small { font-size: 11px; opacity: .85; }

.aio-news-footer-strip {
    grid-column: 1 / -1;
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 0;
    padding: 0 26px;
    background: var(--aio-news-dark, #071b2a);
    color: #fff;
    font-size: 11px;
}

.aio-news-footer-strip span {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-right: 1px solid rgba(255,255,255,.18);
}
.aio-news-footer-strip span:last-child { border-right: 0; }
.aio-news-footer-strip b { margin-left: 4px; font-weight: 600; }

.aio-news-success-stage { text-align: left; }
.aio-news-success-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--aio-news-primary, #ff6500);
    color: #fff;
}
.aio-news-success-icon svg { width: 32px; height: 32px; }
.aio-news-success-stage h2 { font-size: clamp(36px, 4vw, 52px); }

.aio-news-coupon-wrap {
    margin: 26px 0 14px;
    padding: 15px;
    border: 1px dashed rgba(7, 27, 42, .32);
    border-radius: 10px;
    background: #fff8f2;
}

.aio-news-coupon-label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 800;
    color: var(--aio-news-muted, #657080);
}

.aio-news-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.aio-news-coupon strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 26px;
    letter-spacing: .06em;
    color: var(--aio-news-dark, #071b2a);
}
.aio-news-coupon button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: var(--aio-news-dark, #071b2a);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.aio-news-success-button { margin-top: 12px; }
.aio-news-close-link {
    display: block;
    margin: 12px auto 0;
    border: 0;
    background: transparent;
    color: var(--aio-news-muted, #657080);
    font-family: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 900px) {
    .aio-whatsapp-newsletter { padding: 14px; align-items: flex-start; overflow-y: auto; }
    .aio-news-dialog {
        width: min(620px, calc(100vw - 28px));
        min-height: 0;
        max-height: none;
        margin: 14px 0;
        grid-template-columns: 1fr;
        grid-template-rows: 215px auto auto;
    }
    .aio-news-visual { grid-row: 1; min-height: 215px; background-position: center 26%; }
    .aio-news-left { grid-row: 2; padding: 28px 24px 24px; }
    .aio-news-footer-strip { grid-row: 3; grid-column: 1; min-height: 50px; padding: 0 8px; }
    .aio-news-footer-strip span { padding: 0 7px; font-size: 8px; text-align: center; }
    .aio-news-footer-strip b { margin-left: 2px; }
    .aio-news-logo { max-width: 150px; max-height: 52px; margin-bottom: 14px; }
    .aio-news-content h2 { font-size: clamp(31px, 9vw, 44px); }
    .aio-news-subtitle { margin: 11px 0 18px; font-size: 14px; }
    .aio-news-close { top: 10px; right: 10px; width: 38px; height: 38px; }
}

@media (max-width: 520px) {
    .aio-whatsapp-newsletter { padding: 8px; }
    .aio-news-dialog { width: calc(100vw - 16px); border-radius: 8px; margin: 8px 0; grid-template-rows: 170px auto auto; }
    .aio-news-visual { min-height: 170px; background-position: center 24%; }
    .aio-news-left { padding: 22px 17px 20px; }
    .aio-news-field { height: 50px; padding: 0 13px; }
    .aio-news-field input { font-size: 13px; }
    .aio-news-submit { min-height: 50px; font-size: 14px; }
    .aio-news-footer-strip { grid-template-columns: 1fr; padding: 8px 12px; }
    .aio-news-footer-strip span { min-height: 24px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .aio-news-footer-strip span:last-child { border-bottom: 0; }
    .aio-news-coupon { align-items: stretch; flex-direction: column; }
    .aio-news-coupon button { min-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .aio-news-dialog { animation: none; }
    .aio-news-submit { transition: none; }
}

/* AIO Plus - Popup WhatsApp: no mobile o modal fica mais compacto,
   aproximando do tamanho da referência, sem alterar o desktop. */
@media (max-width: 767px) {
    .aio-whatsapp-newsletter {
        padding: 22px 20px;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .aio-news-backdrop {
        background: rgba(4, 17, 27, .52);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .aio-news-dialog {
        width: min(320px, calc(100vw - 88px));
        min-height: 0;
        max-height: calc(100dvh - 56px);
        margin: auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 6px;
        background: var(--aio-news-bg, #fff);
        box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
        -webkit-overflow-scrolling: touch;
    }

    .aio-news-visual {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-height: clamp(122px, 34vw, 150px);
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        background-color: #edf1f4;
    }

    .aio-news-visual::after {
        display: none;
    }

    .aio-news-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border-radius: 0;
        background: transparent;
        color: var(--aio-news-primary, #ff6500);
        box-shadow: none;
    }

    .aio-news-close svg {
        width: 18px;
        height: 18px;
        stroke-width: 2.1;
    }

    .aio-news-left {
        grid-column: 1;
        grid-row: 2;
        display: block;
        min-width: 0;
        padding: 13px 14px 13px;
        background: var(--aio-news-bg, #fff);
    }

    .aio-news-content {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        text-align: center;
    }

    .aio-news-logo {
        width: auto;
        max-width: 74px;
        max-height: 28px;
        margin: 0 auto 8px;
    }

    .aio-news-eyebrow {
        margin: 0 0 4px;
        font-size: 8px;
        line-height: 1.25;
        letter-spacing: .10em;
        text-align: center;
    }

    .aio-news-content h2,
    .aio-news-success-stage h2 {
        max-width: 248px;
        margin: 0 auto;
        font-size: clamp(16px, 5.1vw, 21px);
        line-height: 1.12;
        letter-spacing: -.02em;
        text-align: center;
    }

    .aio-news-subtitle {
        max-width: 248px;
        margin: 6px auto 10px;
        font-size: 10px;
        line-height: 1.35;
        text-align: center;
    }

    .aio-news-form-stage form {
        width: 100%;
        max-width: 248px;
        margin: 0 auto;
    }

    .aio-news-field {
        width: 100%;
        height: 40px;
        gap: 8px;
        margin-bottom: 8px;
        padding: 0 12px;
        border-radius: 5px;
        background: #fff;
    }

    .aio-news-field-icon,
    .aio-news-field-icon svg {
        width: 17px;
        height: 17px;
    }

    .aio-news-field-icon {
        flex-basis: 17px;
    }

    .aio-news-field input {
        font-size: 11px;
        text-align: left;
    }

    .aio-news-consent {
        width: 100%;
        max-width: 280px;
        margin: 7px auto 8px;
        gap: 8px;
        font-size: 9px;
        line-height: 1.3;
        text-align: left;
    }

    .aio-news-checkbox {
        flex-basis: 17px;
        width: 17px;
        height: 17px;
        border-radius: 5px;
    }

    .aio-news-error {
        max-width: 280px;
        margin: 0 auto 8px;
        font-size: 10px;
        text-align: left;
    }

    .aio-news-submit {
        width: 100%;
        max-width: 280px;
        min-height: 38px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 5px;
        padding: 11px 14px;
        font-size: 12px;
    }

    .aio-news-arrow {
        font-size: 20px;
    }

    .aio-news-safe {
        max-width: 280px;
        justify-content: center;
        margin: 8px auto 0;
        font-size: 7px;
        line-height: 1.25;
        text-align: center;
    }

    .aio-news-safe-icon {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
    }

    .aio-news-footer-strip,
    .aio-news-discount-badge {
        display: none;
    }

    .aio-news-success-stage {
        text-align: center;
    }

    .aio-news-success-icon {
        width: 46px;
        height: 46px;
        margin: 0 auto 10px;
    }

    .aio-news-success-icon svg {
        width: 24px;
        height: 24px;
    }

    .aio-news-coupon-wrap {
        max-width: 280px;
        margin: 14px auto 8px;
        padding: 10px;
        border-radius: 7px;
        text-align: left;
    }

    .aio-news-coupon-label {
        font-size: 8px;
    }

    .aio-news-coupon strong {
        font-size: 16px;
    }

    .aio-news-coupon button {
        min-height: 36px;
    }

    .aio-news-close-link {
        margin-top: 8px;
        font-size: 10px;
    }
}
@media (max-width: 380px) {
    .aio-whatsapp-newsletter {
        padding: 16px 14px;
    }

    .aio-news-dialog {
        width: min(304px, calc(100vw - 52px));
        max-height: calc(100dvh - 28px);
    }

    .aio-news-visual {
        min-height: 116px;
    }

    .aio-news-left {
        padding: 12px 12px 12px;
    }

    .aio-news-logo {
        max-width: 68px;
        max-height: 24px;
        margin-bottom: 7px;
    }

    .aio-news-content h2,
    .aio-news-success-stage h2 {
        font-size: 16px;
    }

    .aio-news-subtitle {
        margin-bottom: 11px;
        font-size: 10px;
    }

    .aio-news-form-stage form,
    .aio-news-consent,
    .aio-news-error,
    .aio-news-submit,
    .aio-news-safe,
    .aio-news-coupon-wrap {
        max-width: 232px;
    }

    .aio-news-field {
        height: 38px;
        margin-bottom: 7px;
    }

    .aio-news-submit {
        min-height: 40px;
    }
}
