/*
 * Marketing form embeds are trusted HTML entered through Statamic. The sample
 * design originally constrained its placeholder forms to 520px, which forces
 * responsive iframe forms into their narrow/stacked layouts.
 */
@media (min-width: 769px) {
    .al-optin:has(.al-optin-form-wrap iframe) {
        align-items: stretch;
        flex-direction: column;
    }

    .al-optin:has(.al-optin-form-wrap iframe) .al-optin-text {
        flex: none;
        text-align: center;
    }

    .al-optin:has(.al-optin-form-wrap iframe) .al-optin-form-wrap {
        flex: none;
    }

    .al-optin-text {
        flex: 0.75 1 0;
    }

    .al-optin-form-wrap {
        flex: 1.5 1 0;
    }
}

.al-optin-form-wrap,
.jc-nl-embed-wrap {
    min-width: 0;
    width: 100%;
}

.jc-nl-embed-wrap {
    max-width: 960px !important;
}

.al-optin-form-wrap iframe,
.al-bottom-newsletter iframe,
.jc-nl-embed-wrap iframe,
.newsletter-banner iframe {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin-inline: auto;
}

@media (max-width: 768px) {
    .al-optin-form-wrap iframe,
    .al-bottom-newsletter iframe,
    .jc-nl-embed-wrap iframe,
    .newsletter-banner iframe {
        width: 100% !important;
    }
}
