.mlr-auto-cta-box {
    position: relative;
    isolation: isolate;
    clear: both;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    margin: 32px 0;
    padding: 22px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 55%, #f7fbff 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    color: #0f172a;
    text-align: left;
}

.mlr-auto-cta-box *,
.mlr-auto-cta-box *::before,
.mlr-auto-cta-box *::after {
    box-sizing: border-box;
}

.mlr-auto-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 40px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
    line-height: 1.2;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .20);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.mlr-auto-cta-button:hover,
.mlr-auto-cta-button:focus {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .25);
    opacity: .96;
}

.mlr-auto-cta-box-custom {
    text-align: left;
}

.mlr-auto-cta-box-custom .mlr-offer-box {
    margin: 0;
}

.mlr-auto-cta-box-custom h2,
.mlr-auto-cta-box-custom h3,
.mlr-auto-cta-box-custom h4 {
    margin-top: 0;
}

.mlr-auto-cta-box-custom p:last-child,
.mlr-auto-cta-box-custom ul:last-child,
.mlr-auto-cta-box-custom ol:last-child {
    margin-bottom: 0;
}

/* v1.9.4 Offer Placement visual separation + zone-specific contextual copy cache bust */
.mlr-context-banner {
    text-align: left;
    transform: translateZ(0);
}

.mlr-context-banner::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #2563eb, #0f766e);
    z-index: -1;
}

.mlr-context-banner::after {
    content: "";
    position: absolute;
    right: -58px;
    top: -58px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    pointer-events: none;
    z-index: -1;
}

.mlr-context-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 5px 9px;
    border: 1px solid rgba(37, 99, 235, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #334155;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mlr-context-banner h3 {
    position: relative;
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.18;
    letter-spacing: -.015em;
}

.mlr-context-banner p {
    position: relative;
    max-width: 740px;
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.55;
}

.mlr-context-action {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.mlr-context-product {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(15, 23, 42, .08);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

/* Top banner: small contextual introduction, not a closing CTA clone. */
.mlr-placement-article_top_banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 20px;
    align-items: center;
    margin: 0 0 34px;
    padding: 18px 20px 18px 24px;
    border-color: rgba(37, 99, 235, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 62%, #ffffff 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.mlr-placement-article_top_banner::before {
    width: 5px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
}

.mlr-placement-article_top_banner::after {
    width: 108px;
    height: 108px;
    right: -42px;
    top: -44px;
    background: rgba(37, 99, 235, .06);
}

.mlr-placement-article_top_banner h3 {
    max-width: 620px;
    font-size: clamp(18px, 1.75vw, 22px);
    line-height: 1.25;
}

.mlr-placement-article_top_banner p {
    max-width: 680px;
    font-size: 14px;
    line-height: 1.45;
}

.mlr-placement-article_top_banner .mlr-context-action {
    margin-top: 0;
    justify-content: flex-end;
}

.mlr-placement-article_top_banner .mlr-auto-cta-button {
    min-height: 38px;
    padding: 10px 16px;
    font-size: 14px;
}

/* After first section: warm transition block inside the article. */
.mlr-placement-after_first_section {
    margin: 30px 0;
    padding: 18px 20px 18px 24px;
    border-color: rgba(245, 158, 11, .24);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffdf7 0%, #fff7ed 52%, #eff6ff 100%);
    box-shadow: 0 10px 24px rgba(120, 53, 15, .08);
}

.mlr-placement-after_first_section::before {
    background: linear-gradient(180deg, #f59e0b, #2563eb);
}

.mlr-placement-after_first_section::after {
    background: rgba(245, 158, 11, .10);
}

.mlr-placement-after_first_section h3 {
    max-width: 660px;
    font-size: clamp(20px, 2vw, 24px);
}

.mlr-placement-after_first_section p {
    font-size: 15px;
}

/* Middle banner: wider execution reminder, visually distinct from top and final. */
.mlr-placement-mid_article_banner {
    margin: 36px 0;
    padding: 24px 24px 24px 28px;
    border-color: rgba(15, 118, 110, .22);
    border-radius: 22px;
    background: radial-gradient(circle at top right, rgba(20, 184, 166, .18), transparent 32%), linear-gradient(135deg, #f0fdfa 0%, #eff6ff 56%, #ffffff 100%);
    box-shadow: 0 16px 34px rgba(15, 118, 110, .10);
}

.mlr-placement-mid_article_banner::before {
    background: linear-gradient(180deg, #0f766e, #2563eb);
}

.mlr-placement-mid_article_banner::after {
    right: -48px;
    top: auto;
    bottom: -54px;
    background: rgba(15, 118, 110, .10);
}

.mlr-placement-mid_article_banner h3 {
    max-width: 680px;
    font-size: clamp(21px, 2.1vw, 26px);
}

.mlr-placement-mid_article_banner .mlr-auto-cta-button {
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

/* Final CTA: strongest contextual close. */
.mlr-placement-final_contextual_cta {
    margin: 40px 0 34px;
    padding: 28px;
    border-color: rgba(16, 185, 129, .24);
    border-radius: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 52%, #eff6ff 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.mlr-placement-final_contextual_cta::before {
    background: linear-gradient(180deg, #10b981, #2563eb);
}

.mlr-placement-final_contextual_cta h3 {
    font-size: clamp(23px, 2.35vw, 30px);
}

/* Desktop side banner: visible at normal desktop zoom, compact enough to avoid covering GeneratePress content. */
.mlr-side-banner {
    position: fixed;
    right: max(14px, calc((100vw - 1220px) / 2));
    top: 138px;
    z-index: 50;
    width: clamp(218px, 19vw, 258px);
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 16px 16px 17px 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #eef6ff 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .15);
}

body.admin-bar .mlr-side-banner {
    top: 170px;
}

.mlr-side-banner::before {
    width: 5px;
}

.mlr-side-banner::after {
    width: 108px;
    height: 108px;
    right: -44px;
    top: -46px;
}

.mlr-side-banner .mlr-context-eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
}

.mlr-side-banner h3 {
    font-size: 17px;
    line-height: 1.22;
    margin-bottom: 8px;
}

.mlr-side-banner p {
    font-size: 13px;
    line-height: 1.45;
}

.mlr-side-banner .mlr-context-action {
    display: block;
    margin-top: 14px;
}

.mlr-side-banner .mlr-auto-cta-button {
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    font-size: 13px;
    white-space: normal;
}

.mlr-side-banner .mlr-context-product {
    margin-top: 10px;
}

.mlr-mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #1e40af);
    color: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
}

.mlr-mobile-sticky-cta::before,
.mlr-mobile-sticky-cta::after {
    display: none;
}

.mlr-mobile-sticky-cta span {
    color: #fff;
    font-weight: 800;
    line-height: 1.25;
}

.mlr-mobile-sticky-cta .mlr-auto-cta-button {
    white-space: nowrap;
    padding: 10px 13px;
    background: #fff;
    color: #1e40af !important;
    box-shadow: none;
}

@media (max-width: 1099px) {
    .mlr-side-banner {
        display: none;
    }
}

@media (max-width: 782px) {
    .mlr-auto-cta-box {
        margin: 24px 0;
        padding: 18px;
        border-radius: 16px;
    }

    .mlr-context-banner h3 {
        font-size: 21px;
    }

    .mlr-context-action,
    .mlr-placement-article_top_banner .mlr-context-action {
        display: block;
        margin-top: 16px;
    }

    .mlr-context-product {
        margin-top: 10px;
    }

    .mlr-placement-article_top_banner {
        display: block;
        margin-bottom: 26px;
    }

    .mlr-mobile-sticky-cta {
        display: flex;
    }

    body:has(.mlr-mobile-sticky-cta) {
        padding-bottom: 88px;
    }
}
