/* OptiHealth preview chat – discreet FAB */
#oh-chat-root{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:240;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
#oh-chat-root *{box-sizing:border-box}
.oh-chat-fab{width:52px;height:52px;border-radius:50%;border:0;background:#FFCD3C;color:#111;cursor:pointer;box-shadow:0 8px 28px rgba(0,0,0,.18);display:grid;place-items:center;transition:transform .2s cubic-bezier(.2,.7,.2,1),background .2s}
.oh-chat-fab:hover{transform:translateY(-2px);background:#111;color:#fff}
.oh-chat-fab:focus-visible{outline:3px solid #111;outline-offset:3px}
.oh-chat-fab svg{width:24px;height:24px;display:block}
.oh-chat-panel{position:absolute;right:0;bottom:64px;width:min(360px,calc(100vw - 24px));height:min(520px,calc(100vh - 120px));background:#fff;border:1px solid #ebe8e1;border-radius:22px;box-shadow:0 18px 50px rgba(0,0,0,.16);display:flex;flex-direction:column;overflow:hidden}
.oh-chat-panel[hidden]{display:none!important}
.oh-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 14px 12px;background:#F8F7F3;border-bottom:1px solid #ebe8e1}
.oh-chat-head h2{margin:0;font-size:1rem;letter-spacing:-.02em;color:#111}
.oh-chat-head p{margin:4px 0 0;font-size:.78rem;line-height:1.35;color:#64646b;max-width:26em}
.oh-chat-x{width:36px;height:36px;border:0;border-radius:12px;background:#fff;cursor:pointer;font-size:1.25rem;line-height:1;color:#111;flex-shrink:0}
.oh-chat-msgs{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#fff}
.oh-chat-bubble{max-width:92%;padding:10px 12px;border-radius:16px;font-size:.92rem;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.oh-chat-bubble.bot{align-self:flex-start;background:#F8F7F3;color:#26262a;border-bottom-left-radius:6px}
.oh-chat-bubble.user{align-self:flex-end;background:#FFCD3C;color:#111;border-bottom-right-radius:6px}

.oh-chat-inline-link{display:inline-flex;align-items:center;vertical-align:baseline;min-height:26px;padding:1px 10px;margin:0 2px;border-radius:999px;background:#fff;border:1px solid #ebe8e1;text-decoration:none;color:#111;font-size:.8rem;font-weight:700;white-space:nowrap}
.oh-chat-inline-link:hover{border-color:#111}
.oh-chat-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.oh-chat-links a{display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border-radius:999px;background:#fff;border:1px solid #ebe8e1;text-decoration:none;color:#111;font-size:.8rem;font-weight:700}
.oh-chat-links a:hover{border-color:#111}
.oh-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #ebe8e1;background:#fff}
.oh-chat-form input{flex:1;min-height:44px;border:1px solid #ebe8e1;border-radius:999px;padding:0 14px;font:inherit;font-size:.95rem}
.oh-chat-form input:focus{outline:2px solid #FFCD3C;outline-offset:1px;border-color:#FFCD3C}
.oh-chat-form button{min-height:44px;padding:0 16px;border:0;border-radius:999px;background:#111;color:#fff;font-weight:700;font:inherit;cursor:pointer}
.oh-chat-form button:disabled{opacity:.5;cursor:wait}
.oh-chat-note{padding:0 14px 10px;font-size:.72rem;color:#64646b;background:#fff}
@media(max-width:480px){
  #oh-chat-root{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .oh-chat-panel{width:calc(100vw - 24px);height:min(70vh,560px)}
}
/* Keep clear of mobile bottom bar if present */
body .mbar ~ #oh-chat-root,body:has(.mbar) #oh-chat-root{bottom:calc(72px + env(safe-area-inset-bottom,0px))}
