.eo-scheduled-popup {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.75rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.eo-scheduled-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.eo-scheduled-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 69, 89, 0.68);
    backdrop-filter: blur(6px);
}

.eo-scheduled-popup__panel {
    position: relative;
    width: min(100%, 920px);
    max-height: min(92vh, 860px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    box-shadow:
        0 28px 80px rgba(19, 69, 89, 0.28),
        0 0 0 1px rgba(43, 143, 199, 0.12);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.eo-scheduled-popup--has-media .eo-scheduled-popup__panel {
    width: min(100%, 980px);
}

.eo-scheduled-popup.is-open .eo-scheduled-popup__panel {
    transform: translateY(0) scale(1);
}

.eo-scheduled-popup__accent {
    flex-shrink: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a6fa3 0%, #2b8fc7 45%, #3ab7c4 100%);
}

.eo-scheduled-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(226, 230, 237, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a2332;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(26, 35, 50, 0.12);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.eo-scheduled-popup__close:hover {
    color: #1a6fa3;
    border-color: rgba(43, 143, 199, 0.35);
    transform: scale(1.04);
}

.eo-scheduled-popup__layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    max-height: calc(min(92vh, 860px) - 5px);
}

.eo-scheduled-popup--has-media .eo-scheduled-popup__layout {
    flex-direction: row;
    align-items: stretch;
}

.eo-scheduled-popup__media {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    border-bottom: 1px solid #e2e6ed;
}

.eo-scheduled-popup--has-media .eo-scheduled-popup__media {
    flex: 0 0 min(44%, 420px);
    max-width: 44%;
    border-bottom: 0;
    border-right: 1px solid #e2e6ed;
}

.eo-scheduled-popup__media-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.eo-scheduled-popup--has-media .eo-scheduled-popup__media-frame {
    min-height: 100%;
    height: 100%;
    padding: clamp(1.25rem, 2vw, 2rem);
}

.eo-scheduled-popup__media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(72vh, 640px);
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(26, 35, 50, 0.08);
}

.eo-scheduled-popup--has-media .eo-scheduled-popup__media img {
    max-height: min(78vh, 720px);
}

.eo-scheduled-popup__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
    padding: clamp(1.35rem, 2.5vw, 2.25rem) clamp(1.35rem, 2.5vw, 2.5rem) clamp(1.35rem, 2vw, 2rem);
}

.eo-scheduled-popup--has-media .eo-scheduled-popup__body {
    padding-top: clamp(1.75rem, 2.5vw, 2.35rem);
    padding-right: clamp(1.5rem, 2.5vw, 2.75rem);
}

.eo-scheduled-popup__copy {
    flex: 1 1 auto;
}

.eo-scheduled-popup__title {
    margin: 0 0 0.75rem;
    padding-right: 2.75rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #1a2332;
    font-weight: 700;
}

.eo-scheduled-popup__lead {
    margin: 0 0 1rem;
    padding-left: 0.85rem;
    border-left: 3px solid #2b8fc7;
    color: #1a6fa3;
    font-weight: 600;
    font-size: clamp(0.92rem, 1.4vw, 1.02rem);
    line-height: 1.55;
}

.eo-scheduled-popup__content {
    color: #5c6578;
    font-size: clamp(0.94rem, 1.3vw, 1rem);
    line-height: 1.72;
}

.eo-scheduled-popup__content p {
    margin-bottom: 0.85rem;
}

.eo-scheduled-popup__content p:last-child {
    margin-bottom: 0;
}

.eo-scheduled-popup__content h1,
.eo-scheduled-popup__content h2,
.eo-scheduled-popup__content h3 {
    color: #1a2332;
    line-height: 1.35;
    margin: 0 0 0.65rem;
}

.eo-scheduled-popup__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e8ecf2;
    margin-top: auto;
}

.eo-scheduled-popup__brand {
    flex: 1 1 12rem;
    min-width: 0;
    padding-left: 0.15rem;
    border-left: 3px solid #1a6fa3;
}

.eo-scheduled-popup__brand-eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a6fa3;
    line-height: 1.35;
}

.eo-scheduled-popup__brand-title {
    display: block;
    font-size: clamp(0.92rem, 1.5vw, 1.02rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a2332;
    line-height: 1.3;
}

.eo-scheduled-popup__action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-left: auto;
}

.eo-scheduled-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    min-width: 8.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.eo-scheduled-popup__btn--primary {
    background: linear-gradient(135deg, #2b8fc7 0%, #1a6fa3 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 111, 163, 0.22);
}

.eo-scheduled-popup__btn--primary:hover {
    color: #fff;
    box-shadow: 0 10px 24px rgba(26, 111, 163, 0.28);
    filter: brightness(1.03);
}

.eo-scheduled-popup__btn--ghost {
    background: #fff;
    color: #1a2332;
    border-color: #d8dee8;
}

.eo-scheduled-popup__btn--ghost:hover {
    background: #f4f6f9;
    color: #1a6fa3;
    border-color: #c5d4e3;
}

html.eo-popup-open,
body.eo-popup-open {
    overflow: hidden !important;
    height: 100%;
    touch-action: none;
}

body.eo-popup-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

@media (max-width: 767.98px) {
    .eo-scheduled-popup__panel,
    .eo-scheduled-popup--has-media .eo-scheduled-popup__panel {
        width: min(100%, 100%);
        max-height: 94vh;
        border-radius: 18px;
    }

    .eo-scheduled-popup--has-media .eo-scheduled-popup__layout {
        flex-direction: column;
    }

    .eo-scheduled-popup--has-media .eo-scheduled-popup__media {
        flex: 0 0 auto;
        max-width: none;
        border-right: 0;
        border-bottom: 1px solid #e2e6ed;
    }

    .eo-scheduled-popup__media-frame {
        min-height: 180px;
        padding: 1rem 1rem 0.85rem;
    }

    .eo-scheduled-popup__media img {
        max-height: min(42vh, 360px);
        border-radius: 10px;
    }

    .eo-scheduled-popup__body,
    .eo-scheduled-popup--has-media .eo-scheduled-popup__body {
        padding: 1.15rem 1.15rem 1.25rem;
    }

    .eo-scheduled-popup__title {
        padding-right: 2.25rem;
        font-size: 1.22rem;
    }

    .eo-scheduled-popup__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding-top: 0.85rem;
    }

    .eo-scheduled-popup__brand {
        flex: 0 0 auto;
        min-height: 0;
        padding-bottom: 0.15rem;
    }

    .eo-scheduled-popup__action-buttons {
        flex-direction: column-reverse;
        align-items: stretch;
        width: 100%;
        margin-left: 0;
    }

    .eo-scheduled-popup__btn {
        width: 100%;
        min-width: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .eo-scheduled-popup--has-media .eo-scheduled-popup__media {
        flex-basis: 40%;
        max-width: 40%;
    }
}
