/* Leap chat: layout only. Colours, radii and type come from the page's own classes (bg-brand, text-white, the greeting bubble classes). */
[data-leap-msgs]{display:flex;flex-direction:column;gap:.75rem}
[data-leap-msgs]:empty{display:none}
[data-leap-msgs] .leap-row{display:flex;width:100%}
[data-leap-msgs] .leap-row-user{justify-content:flex-end}
[data-leap-msgs] .leap-bubble{max-width:85%;overflow-wrap:anywhere;word-break:break-word;line-height:1.5;text-align:left}
[data-leap-msgs] .leap-user{border-bottom-right-radius:.375rem;border-bottom-left-radius:1rem}
[data-leap-msgs] .leap-typing{display:inline-flex;align-items:center;gap:5px;min-height:2.25rem}
.leap-dot{width:7px;height:7px;border-radius:9999px;background:currentColor;opacity:.35;animation:leap-blink 1s infinite ease-in-out}
.leap-dot:nth-child(2){animation-delay:.15s}
.leap-dot:nth-child(3){animation-delay:.3s}
@keyframes leap-blink{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:.9;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.leap-dot{animation:none;opacity:.6}}
.leap-book{display:block;margin-top:.5rem;font-weight:700;text-decoration:underline;text-underline-offset:2px}
[data-chat-panel] [data-leap-chip]{cursor:pointer;text-align:left}
[data-chat-panel] [data-leap-chip]:focus-visible,[data-chat-panel] [data-leap-input]:focus-visible,[data-chat-panel] [data-leap-send]:focus-visible{outline:2px solid rgba(17,17,17,.45);outline-offset:2px}
[data-chat-panel] [data-leap-input]{font-size:16px}
[data-chat-panel] [data-leap-send]{cursor:pointer}
/* small home panel (no scroll area of its own): give its body one */
[data-chat-panel] [data-leap-scroll]{max-height:min(380px,calc(100vh - 300px));overflow-y:auto;overscroll-behavior:contain}
.leap-foot{border-top:1px solid rgba(0,0,0,.08);padding:.75rem}
.leap-foot-row{display:flex;align-items:center;gap:.5rem}
.leap-foot [data-leap-input]{flex:1 1 auto;min-width:0;height:2.5rem;border:1px solid rgba(0,0,0,.14);border-radius:.75rem;background:#f7f7f8;padding:0 .75rem;outline:none;color:inherit}
.leap-foot [data-leap-send]{flex:0 0 auto;width:2.5rem;height:2.5rem;border-radius:.75rem;display:flex;align-items:center;justify-content:center}
/* the panel must fit any phone: the page's own max-w-[calc(100vw-3rem)] class is not in every stylesheet */
html body [data-chat-panel]{max-width:calc(100vw - 2rem)!important;max-height:calc(100vh - 2rem)!important;box-sizing:border-box}
@supports (height:100dvh){html body [data-chat-panel]{max-height:calc(100dvh - 2rem)!important}}
/* orange hid the Leap launcher below 760px while chat was a preview (v2-fixes.css round 5); the chat is live now, so phones get it back */
@media (max-width:759px){html body [data-chat].fixed{display:block!important}}
/* leap-m-fix 1112: mascot box inside the launcher is not a speech bubble */
@media (max-width:767px){[data-chat-toggle] > [data-chat-bubble]{display:block!important;opacity:1!important;transform:none!important;width:40px!important;height:45px!important}}
