/* Porto's inline popup is centered with a transform. Keep long content scrollable
 * within the viewport. Porto/WPB own content and layout; shared styling is below.
 */
#popup-builder.bendex-video-popup {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overflow-x: hidden;
    padding: 0;
}
body.admin-bar #popup-builder.bendex-video-popup {
    max-height: calc(100vh - 32px - 2 * var(--wp-admin--admin-bar--height, 32px));
    max-height: calc(100dvh - 32px - 2 * var(--wp-admin--admin-bar--height, 32px));
}

/* Shared DE/EN popup presentation; copy and layout stay in Porto. */
#popup-builder.bendex-video-popup {border-radius:20px;background:#fff;box-shadow:0 30px 80px rgba(0,8,80,.35)}
#popup-builder.bendex-video-popup .mfp-close {top:14px;right:14px;width:44px;height:44px;line-height:44px;border-radius:50%;background:#f3f4f7;color:#000850;opacity:1}
.mfp-bg.bendex-ai-popup-modal {background:rgba(0,8,80,.62);backdrop-filter:blur(4px)}
.mfp-bg.bendex-ai-popup-modal.mfp-ready:not(.mfp-removing) {opacity:1}
.bendex-video-contact-popup .bendex-ai-video {display:block;aspect-ratio:16/9;object-fit:contain;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:#0c1766}
.bendex-video-contact-popup .wpcf7 label {display:block;margin:0;font-size:13px;line-height:20px;font-weight:600;color:#222529}
.bendex-video-contact-popup .wpcf7-form-control-wrap {display:block;margin-top:6px}
.bendex-video-contact-popup .wpcf7-spinner {display:none}
.bendex-video-contact-popup .wpcf7 form.submitting .wpcf7-spinner {display:block;margin:8px auto}
.bendex-video-contact-popup .wpcf7 .small {font-size:12.5px;line-height:18px;color:#66676b}
.bendex-popup-preference {text-align:right;margin-top:8px}
.bendex-popup-dismiss {border:0;background:transparent;padding:10px 0;font:inherit;font-size:13px;line-height:18px;color:#4b4b4b;text-decoration:underline;cursor:pointer}
.bendex-video-teaser {position:fixed;left:24px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:900;margin:0}
.bendex-video-teaser[hidden] {display:none!important}
.bendex-video-teaser .btn {box-shadow:0 10px 30px rgba(0,8,80,.3)}
.bendex-video-teaser .btn:hover {filter:brightness(1.08)}
.bendex-video-teaser .btn:focus-visible,.bendex-popup-dismiss:focus-visible {outline:2px solid #8fb4e3;outline-offset:4px}
@media(max-width:520px){.bendex-video-teaser{left:16px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px)}}
