/* The calendar renders its form inside Shadow DOM. These rules style its WordPress host. */
.selsup-calendar-modal-v2--compact .selsup-calendar-modal-v2__panel {
    width: min(932px, 100%);
    border-radius: 24px;
    background: white;
    overscroll-behavior: contain;
}

.selsup-calendar-modal-v2--compact .selsup-calendar-modal-v2__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    color: #233348;
    background: #f0f3f7;
}

body:has(.selsup-calendar-modal-v2--compact) {
    overflow: hidden;
}

body:has(.selsup-calendar-modal-v2--compact) [data-selsup-messenger],
.selsup-inline-demo-visible [data-selsup-messenger] {
    visibility: hidden !important;
    pointer-events: none !important;
}

.selsup-compact-demo .pv-hero-v14__signup {
    display: none;
}

.selsup-compact-demo .selsup-demo-widget,
.selsup-compact-demo .selsup-demo-widget #calendar-widget-selsup {
    min-height: 0;
}

.selsup-compact-demo .selsup-demo-widget:not(.is-ready) {
    min-height: 100px;
}

.selsup-compact-demo .selsup-cro-priority-cta__sticky a.selsup-cro-priority-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-decoration: none;
}

@media (max-width: 759px) {
    .selsup-compact-demo .pv-hero-v14__actions .pv-hero-v14__signup {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin-top: 4px;
        color: #f0f8ff;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .selsup-calendar-modal-v2.selsup-calendar-modal-v2--compact {
        align-items: end;
        padding: 0;
    }

    .selsup-calendar-modal-v2--compact .selsup-calendar-modal-v2__panel {
        width: min(100%, 520px);
        max-height: calc(100dvh - 8px);
        padding-bottom: env(safe-area-inset-bottom);
        box-sizing: border-box;
        border-radius: 20px 20px 0 0;
    }
}
