/* Original website widget presentation, scoped so Demo controls remain unchanged.
 * Reference: https://lyche-ai.com/styles.css · .lw · 2026-10-28. */
@font-face { font-family: "Lyche Contact Manrope"; src: url("contact/manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
.lw { --lw-bottom: calc(14px + var(--safe-bottom)); position: fixed; right: calc(14px + var(--safe-right)); bottom: var(--lw-bottom); z-index: 30; font: 400 16px/1.5 "Lyche Contact Manrope", sans-serif; color: var(--navy); }
.lw button, .lw a { -webkit-tap-highlight-color: transparent; }
.lw-btn { position: relative; display: block; width: 72px; height: 72px; padding: 0; border-radius: 50%; background: #fff; border: 3px solid var(--lime); box-shadow: 0 16px 32px -12px rgba(15,50,78,.55); cursor: pointer; overflow: visible; }
.lw-btn .lw-p, .lw-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.lw-p2, .lw-p3 { opacity: 0; }
.lw-dot { position: absolute; right: -2px; top: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); border: 3px solid #fff; }
.lw-teaser { position: absolute; right: 0; bottom: calc(100% + 12px); padding: 8px 14px; border: 0; border-radius: 22px 22px 4px 22px; background: #fff; color: var(--navy); box-shadow: 0 14px 28px -12px rgba(15,50,78,.45); font: 700 13px/1.35 "Lyche Contact Manrope", sans-serif; white-space: nowrap; cursor: pointer; }
.lw-teaser span, .lw-teaser strong { display: block; }
.lw-teaser::after { content: ""; position: absolute; right: 26px; bottom: -7px; width: 12px; height: 12px; background: #fff; border-radius: 0 0 3px; transform: rotate(45deg); }
.lw.open .lw-teaser { display: none; }
.lw-panel { position: absolute; right: 0; bottom: 88px; width: min(340px, calc(100vw - 28px - var(--safe-left) - var(--safe-right))); max-height: calc(100dvh - var(--lw-bottom) - 104px - var(--safe-top)); background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 32px 64px -24px rgba(15,50,78,.55); display: flex; flex-direction: column; }
.lw-panel[hidden] { display: none; }
.lw-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; line-height: 1.25; }
.lw-head strong, .lw-head small { display: block; }
.lw-head small { color: var(--lime); font-size: 13px; }
.lw-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lavender); display: grid; place-items: center; overflow: hidden; flex: none; }
.lw-avatar img { width: 100%; height: auto; }
.lw-close { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); display: grid; place-items: center; cursor: pointer; }
.lw-close svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.lw-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #F7F3FF; }
.lw-message { align-self: flex-start; max-width: 88%; padding: 8px 10px; background: #fff; border-radius: 14px 14px 14px 4px; font-size: 15px; }
.lw-opt { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1.5px solid #E8D9CC; border-radius: 14px; padding: 12px 14px; min-height: 48px; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 800; }
.lw-opt span:last-child { color: var(--violet); }
.lw-opt:hover { background: #EFE3FE; border-color: var(--lavender); }
.lw-wa { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 0 14px 14px; padding: 14px 20px; border: 2px solid transparent; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: 16px; font-weight: 800; text-decoration: none; }
.lw-wa:hover { background: #B4D82A; color: var(--navy); }
.lw-wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.lw :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
body:has(#app[aria-busy="true"]) .lw { visibility: hidden; }
@media (min-width: 900px) { .lw { right: calc(24px + var(--safe-right)); --lw-bottom: calc(24px + var(--safe-bottom)); } .lw-btn { width: 84px; height: 84px; } .lw-panel { bottom: 100px; max-height: calc(100dvh - var(--lw-bottom) - 116px - var(--safe-top)); } }
@media (max-width: 1080px) {
  body:has(.shell) .lw { --lw-bottom: calc(var(--tabbar) + 14px + var(--safe-bottom)); }
  body:has(.phonechat) .lw { --lw-bottom: calc(var(--tabbar) + 154px + var(--safe-bottom)); }
  body:has(.call-layout) .lw { --lw-bottom: calc(var(--tabbar) + 172px + var(--safe-bottom)); }
  body:has(#composer textarea:focus, #composer input:focus, #incall:not([hidden])) .lw { visibility: hidden; }
}
@keyframes contact-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes contact-pose1 { 0%,30% { opacity: 1; } 33%,97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes contact-pose2 { 0%,30% { opacity: 0; } 33%,63% { opacity: 1; } 66%,100% { opacity: 0; } }
@keyframes contact-pose3 { 0%,63% { opacity: 0; } 66%,97% { opacity: 1; } 100% { opacity: 0; } }
.lw-motion .lw-btn { animation: contact-bob 3s ease-in-out infinite; }
.lw-motion .lw-p1 { animation: contact-pose1 9s infinite; } .lw-motion .lw-p2 { animation: contact-pose2 9s infinite; } .lw-motion .lw-p3 { animation: contact-pose3 9s infinite; }
.lw:not(.lw-motion) * { animation: none; }
@media (prefers-reduced-motion: reduce) { .lw *, .lw *::after { animation: none !important; transition: none !important; } }
/* Conversion preview: one invitation bubble, deliberately opened by the visitor. */
.lw-teaser { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; cursor: default; border-radius: 20px 20px 4px 20px; }
.lw-chat-teaser { border: 0; padding: 0 6px 6px; width: auto; text-align: left; background: transparent; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.lw-start { border: 0; border-radius: 999px; background: var(--lime); color: var(--navy); padding: 8px 12px; font: 800 12px/1.3 "Lyche Contact Manrope", sans-serif; cursor: pointer; }
.lw-start span { display: inline; }
.lw-btn { touch-action: none; user-select: none; }
.lw.dragging .lw-btn { animation: none; cursor: grabbing; }
.lw-convert-body { min-height: 0; overflow-y: auto; padding: 24px; background: #F7EDE6; display: flex; flex-direction: column; gap: 14px; }
.lw-kicker { color: #6E002F; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.lw-convert-body h2 { margin: 0; font: 800 27px/1.12 "Lyche Contact Manrope", sans-serif; letter-spacing: -.03em; color: var(--navy); }
.lw-convert-body p { margin: 0; color: #4A6276; font-size: 14px; line-height: 1.5; }
.lw-benefits { display: flex; flex-wrap: wrap; gap: 6px; }
.lw-benefits span { background: #EEE2FE; color: #0F324E; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 700; }
.lw-create { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; min-height: 48px; border-radius: 999px; background: var(--lime); color: var(--navy); font-weight: 800; text-decoration: none; }
.lw-create:hover { background: #B4D82A; }
.lw-question { color: #6E002F; text-align: center; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lw-continue { border: 0; background: transparent; color: #4A6276; font: 500 12px/1.5 "Lyche Contact Manrope", sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 5px; }

body:has(.navlink[data-tab="prospects"][aria-current="page"]) .lw { visibility: hidden; }

/* DEMO-AUDIT-01: the invitation bubble covered products, prices and the call
 * screen. Inside a business and on phones only Lichi stays; tapping it opens the same options. */
body:has(.shell) .lw-teaser { display: none; }
@media (max-width: 1080px) { .lw-teaser { display: none; } }

/* DEMO-SIMPLE-01: inside a business the top-bar button is the only call to
 * action, so Lichi's floating bubble stays on the business picker only. */
body:has(.shell) .lw { display: none; }
.lw-teaser { display: none !important; }
/* DEMO-LEADS-01 · nothing floats over the lead form. */
body:has(.lead-gate) .lw { display: none; }
