/* Will & LPA: assistant bubble. Self-contained: works with any theme. */
.wlo-bubble {
	--b-ink: var(--wl-navy-900, #13263c); --b-navy: var(--wl-navy, #1b3653); --b-sage: var(--wl-teal, #5c8a73); --b-sage-ink: var(--wl-teal-700, #3d6a55);
	--b-soft: var(--wl-teal-100, #e1ece6); --b-paper: #f4f6f2; --b-line: #dde4de; --b-text: #1c2a35; --b-muted: #5a6a72;
	position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 99990;
	font-family: var(--wl-font-body, "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); font-size: 15px; line-height: 1.5; color: var(--b-text);
}
.wla--my .wlo-bubble { bottom: calc(84px + env(safe-area-inset-bottom)); }
/* The onboarding chat is already an assistant, so the bubble steps aside there. */
.wla-is-start .wlo-bubble { display: none; }
@media (min-width: 900px) { .wla--my .wlo-bubble { bottom: 24px; } }
.wlo-bubble *, .wlo-bubble *::before, .wlo-bubble *::after { box-sizing: border-box; }
.wlo-bubble [hidden] { display: none !important; }
.wlo-bubble :focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }
.wlo-bubble__launch {
	display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
	background: radial-gradient(120% 140% at 100% 0%, rgba(92,138,115,.6), rgba(92,138,115,0) 60%), var(--b-ink); color: #fff; font: 650 15px/1 inherit;
	box-shadow: 0 16px 40px -12px rgba(19,38,60,.6), 0 0 0 1px rgba(255,255,255,.06) inset; transition: transform .15s ease;
}
.wlo-bubble__launch svg { color: #bfe0cf; }
.wlo-bubble__launch:hover { transform: translateY(-2px); }
.wlo-bubble[data-state="open"] .wlo-bubble__launch { display: none; }
@media (max-width: 520px) { .wlo-bubble__launch { width: 56px; padding: 0; justify-content: center; } .wlo-bubble__launch-t { display: none; } }
.wlo-bubble__panel {
	position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column;
	background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--b-line); box-shadow: 0 40px 90px -30px rgba(19,38,60,.55);
	animation: wlo-b-in .2s ease both;
}
@keyframes wlo-b-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .wlo-bubble__panel { position: fixed; inset: auto 0 0 0; width: 100%; height: min(86vh, 680px); border-radius: 22px 22px 0 0; } }
.wlo-bubble__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--b-ink); color: #fff; }
.wlo-bubble__av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #bfe0cf; flex: none; }
.wlo-bubble__who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.wlo-bubble__who small { color: #a9bdb2; font-size: 12px; }
.wlo-bubble__x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: #cfdcd5; cursor: pointer; display: grid; place-items: center; }
.wlo-bubble__x:hover { background: rgba(255,255,255,.08); color: #fff; }
.wlo-bubble__log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--b-paper); }
.wlo-bubble__msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; overflow-wrap: anywhere; }
.wlo-bubble__msg--ai { align-self: flex-start; background: #fff; border: 1px solid var(--b-line); border-bottom-left-radius: 5px; }
.wlo-bubble__msg--me { align-self: flex-end; background: var(--b-navy); color: #fff; border-bottom-right-radius: 5px; }
.wlo-bubble__msg--note { background: transparent; border: 1px dashed #b7c6bc; color: var(--b-muted); font-size: 13px; }
.wlo-bubble__msg--ok { background: #e4f2ea; border-color: #c4e0cf; color: #2a6a4b; }
.wlo-bubble__typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.wlo-bubble__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--b-sage); animation: wlo-b-dot 1s infinite; }
.wlo-bubble__typing span:nth-child(2) { animation-delay: .15s; } .wlo-bubble__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wlo-b-dot { 50% { opacity: .3; transform: translateY(-2px); } }
.wlo-bubble__links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.wlo-bubble__links a { display: grid; grid-template-columns: 16px 1fr; gap: 2px 8px; align-items: start; padding: 8px 10px; border-radius: 10px; background: var(--b-paper); color: var(--b-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.wlo-bubble__links a:hover { background: var(--b-soft); }
.wlo-bubble__links svg { color: var(--b-sage-ink); margin-top: 2px; }
.wlo-bubble__links small { grid-column: 2; color: var(--b-muted); font-weight: 400; font-size: 12px; }
.wlo-bubble__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wlo-bubble__chip { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--b-navy); background: #fff; border: 1.5px solid var(--b-line); border-radius: 999px; padding: 6px 11px; cursor: pointer; text-align: left; }
.wlo-bubble__chip:hover { border-color: var(--b-navy); }
.wlo-bubble__inline { display: inline-block; margin-top: 8px; font: inherit; font-weight: 650; font-size: 14px; color: #fff; background: var(--b-navy); border: 0; border-radius: 999px; padding: 7px 13px; cursor: pointer; text-decoration: none; }
.wlo-bubble__foot { border-top: 1px solid var(--b-line); padding: 10px 12px 12px; background: #fff; }
.wlo-bubble__compose { display: flex; gap: 6px; align-items: center; background: var(--b-paper); border: 1.5px solid var(--b-line); border-radius: 999px; padding: 4px 4px 4px 14px; }
.wlo-bubble__compose:focus-within { border-color: var(--b-navy); background: #fff; }
.wlo-bubble__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: inherit; padding: 8px 0; outline: none; }
.wlo-bubble__send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--b-navy); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.wlo-bubble__acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.wlo-bubble__act { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; font-weight: 600; color: var(--b-sage-ink); background: transparent; border: 1px solid var(--b-line); border-radius: 999px; padding: 5px 10px; cursor: pointer; text-decoration: none; }
.wlo-bubble__act:hover { border-color: var(--b-sage); background: var(--b-soft); }
.wlo-bubble__person { background: #fff; border: 1px solid var(--b-line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.wlo-bubble__ftitle { margin: 0; font-weight: 700; color: var(--b-ink); }
.wlo-bubble__fsub { margin: 0 0 4px; font-size: 13px; color: var(--b-muted); }
.wlo-bubble__person label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.wlo-bubble__person input[type=text], .wlo-bubble__person input[type=email], .wlo-bubble__person input[type=tel], .wlo-bubble__person textarea { width: 100%; font: inherit; font-weight: 400; padding: 9px 11px; border: 1.5px solid #c3cfc7; border-radius: 10px; background: #fff; color: inherit; }
.wlo-bubble__person textarea { resize: vertical; }
.wlo-bubble__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; }
.wlo-bubble__check input { margin-top: 3px; accent-color: var(--b-navy); }
.wlo-bubble__err { margin: 0; color: #b42318; font-size: 13px; font-weight: 600; }
.wlo-bubble__submit { font: inherit; font-weight: 650; color: #fff; background: var(--b-navy); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.wlo-bubble .wlo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .wlo-bubble__panel, .wlo-bubble__typing span { animation: none; } }
@media print { .wlo-bubble { display: none; } }
