.wpdt-brevo-inline {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.wpdt-brevo-inline iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: var(--wpdt-brevo-iframe-height, 1100px);
    margin: 0 auto;
    border: 0;
}

/* Newsletter page: form owns the content area (Amelia-style). */
.wpdt-brevo-inline--newsletter {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.wpdt-brevo-inline--newsletter iframe {
    width: 100%;
    max-width: 100%;
    height: var(--wpdt-brevo-iframe-height, 1100px);
    min-height: var(--wpdt-brevo-iframe-height, 1100px);
    overflow: hidden;
}

#subscribe.card:has(.wpdt-brevo-inline--newsletter),
#subscribe.card:has(.wpdt-brevo-form--newsletter) {
    box-shadow: none;
    background: transparent;
}

#subscribe.card:has(.wpdt-brevo-inline--newsletter) .card-header,
#subscribe.card:has(.wpdt-brevo-inline--newsletter) .card-body > p,
#subscribe.card:has(.wpdt-brevo-form--newsletter) .card-header,
#subscribe.card:has(.wpdt-brevo-form--newsletter) .card-body > p {
    display: none;
}

#subscribe.card:has(.wpdt-brevo-inline--newsletter) .card-body,
#subscribe.card:has(.wpdt-brevo-form--newsletter) .card-body {
    padding: 0;
}

#subscribe .wpdt-brevo-inline--newsletter,
.card-body .wpdt-brevo-inline--newsletter,
#subscribe .wpdt-brevo-form--newsletter,
.card-body .wpdt-brevo-form--newsletter {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.wpdt-brevo-subscribe {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Legacy blog footer CTA chrome (title + description + button, no email field). */
.brevo_wpdt_subscribe_form_blog {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 24px auto;
}

.brevo_wpdt_subscribe_form_blog .brevo-subscribe-blog__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 5px 20px 15px;
    background-color: #0445af;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    box-sizing: border-box;
}

.brevo_wpdt_subscribe_form_blog .brevo-subscribe-blog__heading {
    margin: 0;
    padding: 20px 20px 20px 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
}

.brevo_wpdt_subscribe_form_blog .brevo-subscribe-blog__description {
    margin: 0;
    padding: 10px 20px 0;
    color: #fff;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
}

.brevo_wpdt_subscribe_form_blog .brevo-subscribe-blog__actions {
    padding: 20px;
    text-align: center;
}

.brevo_wpdt_subscribe_form_blog .brevo-subscribe-blog__button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 5px 20px;
    border: 2px solid #fff;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 2;
    text-transform: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.brevo_wpdt_subscribe_form_blog .brevo-subscribe-blog__button:hover {
    opacity: 0.85;
    background: transparent;
}

.brevo_wpdt_subscribe_form_blog .brevo-subscribe-blog__footer-note {
    margin: 0;
    padding: 10px 20px 15px;
    color: #9eaae6;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
}

#add-widget-after-content .brevo_wpdt_subscribe_form_blog,
#subscribe .brevo_wpdt_subscribe_form_blog,
.card-body .brevo_wpdt_subscribe_form_blog,
.awac-wrapper .brevo_wpdt_subscribe_form_blog {
    width: 100%;
    max-width: 640px;
    margin: 24px auto;
}

.wpdt-brevo-subscribe__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    margin: 0;
    padding: 6px 40px;
    border: none;
    border-radius: 100px;
    background: #5951F6;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.16px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wpdt-brevo-subscribe__button:hover {
    background: #4741e0;
}

@media only screen and (max-width: 959px) {
    .wpdt-brevo-subscribe__button {
        height: 44px;
        padding: 10px 32px;
        font-size: 15px;
    }
}

.wpdt-brevo-popup {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.wpdt-brevo-popup[hidden] {
    display: none;
}

.wpdt-brevo-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.55);
    cursor: pointer;
}

.wpdt-brevo-popup__box {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: transparent;
    animation: wpdtBrevoPopupIn 0.25s ease;
}

.wpdt-brevo-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    padding: 0;
    border: 1.5px solid rgba(9, 29, 112, 0.25);
    border-radius: 50%;
    background: #fff;
    color: #091D70;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wpdt-brevo-popup__close:hover {
    background: rgba(9, 29, 112, 0.06);
}

/* Clip Brevo's outer iframe chrome/border (IvyForms pattern). */
.wpdt-brevo-popup__form {
    margin: 0;
    height: var(--wpdt-brevo-iframe-height, 560px);
    overflow: hidden;
    line-height: 0;
    border: 0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.wpdt-brevo-popup__form iframe {
    display: block;
    width: calc(100% + 40px);
    max-width: none;
    height: 720px;
    margin: -40px 0 0 -20px;
    border: 0;
}

.wpdt-brevo-popup--blog .wpdt-brevo-popup__form {
    height: 560px;
}

.wpdt-brevo-popup--lite-download .wpdt-brevo-popup__form {
    /*
     * Consent checkboxes wrap taller at the 500px popup width than
     * Brevo's 540px editor preview. 520px keeps the privacy line
     * visible while still clipping Brevo's bottom card chrome.
     */
    height: 520px;
    border: 0;
    outline: 0;
    background: #eff2f7;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.wpdt-brevo-popup--lite-download .wpdt-brevo-popup__form iframe {
    width: calc(100% + 48px);
    max-width: none;
    height: 720px;
    margin: -48px 0 0 -24px;
    border: 0;
}

.wpdt-brevo-popup--cta-box-dying .wpdt-brevo-popup__form {
    height: 505px;
    border: 0;
    outline: 0;
    background: #eef9fe;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.wpdt-brevo-popup--cta-box-dying .wpdt-brevo-popup__form iframe {
    width: calc(100% + 40px);
    max-width: none;
    height: 720px;
    margin: -40px 0 0 -20px;
    border: 0;
}

@media only screen and (max-width: 600px) {
    .wpdt-brevo-popup--blog .wpdt-brevo-popup__form {
        height: 560px;
    }

    .wpdt-brevo-popup--lite-download .wpdt-brevo-popup__form {
        height: 520px;
    }

    .wpdt-brevo-popup--cta-box-dying .wpdt-brevo-popup__form {
        height: 505px;
    }
}

@keyframes wpdtBrevoPopupIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
