@loud-crowd-60573 so I AI-ed my way to a working re-arrangement of the script - it's a little in depth so I won't attach it here, but here is their overview of what the issue was:
Good clue — if you can see a hidden bpMessagePreview iframe, the SDK is loading, but the main embedded webchat iframe isn’t mounting. That almost always means one of these:
Target mismatch / conflicting targets
You’re telling Webchat to embed into two different places (e.g., you pass both selector: "#webchat" and embeddedChatId: "bp-embedded-webchat"), or the ID doesn’t exist at the time it mounts. Result: preview iframe gets created, but the main iframe has nowhere to go.
GHL re-renders the DOM after init, removing the mount node. The SDK thinks it mounted, but your container got replaced, so you end up with only the preview iframe left in the DOM (and it’s hidden by default).
Duplicate snippets (two inject.js or two init() calls) fighting each other — one opens the preview, the other wipes the mount.