.hslg-ai-chat-widget,
.hslg-ai-chat-widget *{box-sizing:border-box}
.hslg-ai-chat-widget{--hslg-chat-primary:#D3B35B;--hslg-chat-secondary:#F5F2ED;--hslg-chat-ai-bubble:#D1E8FF;--hslg-chat-user-bubble:#CCF5E1;--hslg-chat-text:#495057;--hslg-chat-input:#FFF;background:var(--hslg-chat-secondary);color:var(--hslg-chat-text);font-family:Poppins,"Helvetica Neue",Arial,sans-serif;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;width:100%;height:650px;box-shadow:0 12px 35px rgba(20,30,40,.12)}
.hslg-ai-chat-widget.is-inline-widget{max-width:780px;margin:24px auto}
.hslg-ai-chat-conversation{flex:1;min-height:0;overflow-y:auto;padding:30px 28px 18px;scrollbar-width:thin;scrollbar-color:rgba(73,80,87,.65) transparent}
.hslg-ai-chat-row{display:flex;margin:0 0 22px}
.hslg-ai-chat-row.is-ai{justify-content:flex-start}
.hslg-ai-chat-row.is-user{justify-content:flex-end}
.hslg-ai-chat-bubble{font-size:18px;line-height:1.48;max-width:92%;padding:18px 20px;border-radius:28px;box-shadow:0 6px 14px rgba(30,40,50,.07);white-space:pre-wrap;overflow-wrap:anywhere}
.hslg-ai-chat-row.is-ai .hslg-ai-chat-bubble{background:var(--hslg-chat-ai-bubble)}
.hslg-ai-chat-row.is-user .hslg-ai-chat-bubble{background:var(--hslg-chat-user-bubble);max-width:82%}
.hslg-ai-chat-bubble strong{font-weight:700}
.hslg-ai-chat-bubble a{color:inherit!important;font-weight:800!important;text-decoration-line:underline!important;text-decoration-style:solid!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important;cursor:pointer}
.hslg-ai-chat-bubble a:hover,.hslg-ai-chat-bubble a:focus{text-decoration-thickness:3px!important;outline-offset:2px}
.hslg-ai-chat-starters{display:flex;flex-wrap:wrap;gap:9px 10px;margin:-5px 0 22px;align-items:center}
.hslg-ai-chat-starters[hidden]{display:none!important}
.hslg-ai-chat-starter{appearance:none;border:1px solid rgba(73,80,87,.14);background:var(--hslg-chat-input);color:var(--hslg-chat-text);font:inherit;font-size:14px;line-height:1.25;padding:9px 13px;border-radius:999px;cursor:pointer;box-shadow:0 3px 9px rgba(30,40,50,.05);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.hslg-ai-chat-starter:hover,.hslg-ai-chat-starter:focus{transform:translateY(-1px);box-shadow:0 5px 12px rgba(30,40,50,.09);border-color:color-mix(in srgb,var(--hslg-chat-primary) 55%,rgba(73,80,87,.14));outline:0}
.hslg-ai-chat-row.is-thinking .hslg-ai-chat-bubble{opacity:.78}
.hslg-ai-chat-waiting-text{margin-right:7px}
.hslg-ai-chat-thinking{display:inline-flex;gap:4px;align-items:center;vertical-align:middle;padding:3px 2px}
.hslg-ai-chat-thinking i{width:7px;height:7px;border-radius:50%;background:currentColor;display:block;animation:hslgChatDot 1.15s infinite ease-in-out}
.hslg-ai-chat-thinking i:nth-child(2){animation-delay:.14s}.hslg-ai-chat-thinking i:nth-child(3){animation-delay:.28s}
@keyframes hslgChatDot{0%,80%,100%{transform:scale(.65);opacity:.45}40%{transform:scale(1);opacity:1}}
.hslg-ai-chat-compose{position:relative;margin:0 28px 26px;background:var(--hslg-chat-input);border-radius:16px;min-height:130px;box-shadow:inset 0 0 0 1px rgba(20,30,40,.025)}
.hslg-ai-chat-compose textarea{display:block;width:100%;height:130px;min-height:130px;resize:none;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--hslg-chat-text)!important;font:inherit;font-size:18px;line-height:1.45;padding:18px 82px 18px 18px;margin:0!important;border-radius:16px}
.hslg-ai-chat-compose textarea::placeholder{color:var(--hslg-chat-text);opacity:.48;transition:opacity .12s ease}
.hslg-ai-chat-compose textarea:focus::placeholder{opacity:0}
.hslg-ai-chat-compose textarea:focus{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--hslg-chat-primary) 70%,transparent)!important}
.hslg-ai-chat-compose-actions{position:absolute;right:16px;bottom:16px;display:flex;align-items:center;gap:12px}
.hslg-ai-chat-icon-button{appearance:none;border:0;background:transparent!important;box-shadow:none!important;padding:0;margin:0;width:28px;height:28px;display:grid;place-items:center;cursor:pointer;color:var(--hslg-chat-text)}
.hslg-ai-chat-icon-button svg{width:25px;height:25px;fill:currentColor;display:block}
.hslg-ai-chat-mic{color:color-mix(in srgb,var(--hslg-chat-ai-bubble) 92%,#4b7ea8)!important}
.hslg-ai-chat-mic.is-listening{animation:hslgChatMicPulse 1s infinite ease-in-out}
@keyframes hslgChatMicPulse{0%,100%{transform:scale(1);opacity:.65}50%{transform:scale(1.13);opacity:1}}
.hslg-ai-chat-icon-button:hover,.hslg-ai-chat-icon-button:focus{transform:scale(1.06);outline:0}
.hslg-ai-chat-icon-button:disabled{opacity:.35;cursor:not-allowed;transform:none}
.hslg-ai-chat-footer{background:var(--hslg-chat-primary);padding:28px 40px;font-size:17px;line-height:1.2;min-height:76px;display:flex;align-items:center}

/* Floating launcher: desktop uses configured size; tablet and phone sizes are computed from admin scale percentages. */
.hslg-ai-chat-float{--hslg-launcher-size-current:var(--hslg-launcher-size-desktop);position:fixed!important;z-index:2147483000!important;width:var(--hslg-launcher-size-current);min-height:var(--hslg-launcher-size-current);height:auto;pointer-events:none;isolation:isolate;visibility:visible!important;opacity:1!important}
.hslg-ai-chat-launcher{text-decoration:none!important;position:relative!important;z-index:2!important;width:var(--hslg-launcher-size-current)!important;height:var(--hslg-launcher-size-current)!important;min-width:var(--hslg-launcher-size-current)!important;min-height:var(--hslg-launcher-size-current)!important;border:0!important;border-radius:50%!important;padding:0!important;margin:0!important;display:grid!important;place-items:center;cursor:pointer;background:var(--hslg-chat-primary)!important;color:var(--hslg-chat-text)!important;box-shadow:0 10px 28px rgba(20,30,40,.24)!important;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease;pointer-events:auto;visibility:visible!important;opacity:1!important}

.hslg-ai-chat-launcher:hover,.hslg-ai-chat-launcher:focus{transform:translateY(-2px);box-shadow:0 13px 32px rgba(20,30,40,.3)!important;outline:0}
.hslg-ai-chat-page-hit{position:absolute!important;z-index:5!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-decoration:none!important;pointer-events:auto!important;visibility:visible!important;opacity:1!important}
.hslg-ai-chat-page-hit:link,.hslg-ai-chat-page-hit:visited,.hslg-ai-chat-page-hit:hover,.hslg-ai-chat-page-hit:focus{background:transparent!important;box-shadow:none!important;text-decoration:none!important;outline:0!important}
.hslg-ai-chat-launcher svg{width:56%;height:56%;fill:currentColor;display:block}
.hslg-ai-chat-launcher img{width:100%;height:100%;object-fit:cover;display:block}

/* A custom Media Library image is the launcher itself. Preserve its aspect ratio; do not turn it into a round speech bubble. */
.hslg-ai-chat-float.has-custom-image .hslg-ai-chat-launcher{width:var(--hslg-launcher-size-current)!important;height:auto!important;min-width:0!important;min-height:0!important;display:block!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;line-height:0!important}
.hslg-ai-chat-float.has-custom-image .hslg-ai-chat-launcher:hover,.hslg-ai-chat-float.has-custom-image .hslg-ai-chat-launcher:focus{box-shadow:none!important;transform:translateY(-2px) scale(1.015)}
.hslg-ai-chat-float.has-custom-image .hslg-ai-chat-launcher img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border-radius:0!important;margin:0!important;padding:0!important;box-shadow:none!important;background:transparent!important}

.hslg-ai-chat-modal{position:absolute!important;z-index:1!important;width:min(560px,calc(100vw - 24px));height:min(650px,calc(100vh - 36px));filter:drop-shadow(0 18px 40px rgba(20,30,40,.22));pointer-events:auto;visibility:visible}
.hslg-ai-chat-modal[hidden]{display:none!important}
.hslg-ai-chat-modal .hslg-ai-chat-widget{height:100%;width:100%;min-height:0}
.hslg-ai-chat-close{position:absolute;z-index:5;top:9px;right:10px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:var(--hslg-chat-text);font-size:27px;line-height:30px;cursor:pointer;box-shadow:0 4px 12px rgba(20,30,40,.12)}
.hslg-ai-chat-float.is-bottom-right{right:var(--hslg-launcher-x)!important;bottom:var(--hslg-launcher-y)!important;left:auto!important;top:auto!important}
.hslg-ai-chat-float.is-bottom-right .hslg-ai-chat-modal{right:0!important;bottom:calc(var(--hslg-launcher-rendered-height) + 14px)!important;left:auto!important;top:auto!important}
.hslg-ai-chat-float.is-bottom-left{left:var(--hslg-launcher-x)!important;bottom:var(--hslg-launcher-y)!important;right:auto!important;top:auto!important}
.hslg-ai-chat-float.is-bottom-left .hslg-ai-chat-modal{left:0!important;bottom:calc(var(--hslg-launcher-rendered-height) + 14px)!important;right:auto!important;top:auto!important}
.hslg-ai-chat-float.is-top-right{right:var(--hslg-launcher-x)!important;top:var(--hslg-launcher-y)!important;left:auto!important;bottom:auto!important}
.hslg-ai-chat-float.is-top-right .hslg-ai-chat-modal{right:0!important;top:calc(var(--hslg-launcher-rendered-height) + 14px)!important;left:auto!important;bottom:auto!important}
.hslg-ai-chat-float.is-top-left{left:var(--hslg-launcher-x)!important;top:var(--hslg-launcher-y)!important;right:auto!important;bottom:auto!important}
.hslg-ai-chat-float.is-top-left .hslg-ai-chat-modal{left:0!important;top:calc(var(--hslg-launcher-rendered-height) + 14px)!important;right:auto!important;bottom:auto!important}

@media (min-width:641px) and (max-width:1024px){
  .hslg-ai-chat-float{--hslg-launcher-size-current:var(--hslg-launcher-size-tablet)}
}

@media(max-width:640px){
  .hslg-ai-chat-float{--hslg-launcher-size-current:var(--hslg-launcher-size-mobile)}
  .hslg-ai-chat-starters{gap:7px;margin:-2px 0 18px}.hslg-ai-chat-starter{font-size:13px;padding:8px 11px}
  .hslg-ai-chat-widget{height:72vh;min-height:500px;border-radius:14px}
  .hslg-ai-chat-conversation{padding:24px 16px 14px}
  .hslg-ai-chat-bubble{font-size:16px;max-width:96%;padding:15px 16px;border-radius:23px}
  .hslg-ai-chat-row.is-user .hslg-ai-chat-bubble{max-width:90%}
  .hslg-ai-chat-compose{margin:0 16px 18px;min-height:112px}
  .hslg-ai-chat-compose textarea{height:112px;min-height:112px;font-size:16px;padding:15px 78px 15px 15px}
  .hslg-ai-chat-footer{min-height:64px;padding:22px 24px;font-size:15px}

  /* Phone chat opens as a true centred 90% viewport modal, independent of launcher corner/insets. */
  .hslg-ai-chat-float .hslg-ai-chat-modal,
  .hslg-ai-chat-float.is-bottom-right .hslg-ai-chat-modal,
  .hslg-ai-chat-float.is-bottom-left .hslg-ai-chat-modal,
  .hslg-ai-chat-float.is-top-right .hslg-ai-chat-modal,
  .hslg-ai-chat-float.is-top-left .hslg-ai-chat-modal{position:fixed!important;width:90vw!important;height:90vh!important;height:90dvh!important;left:5vw!important;right:auto!important;top:5vh!important;top:5dvh!important;bottom:auto!important;filter:drop-shadow(0 18px 40px rgba(20,30,40,.28))}
  .hslg-ai-chat-modal .hslg-ai-chat-widget{width:100%!important;height:100%!important;min-height:0!important;border-radius:16px!important}
  .hslg-ai-chat-close{top:8px!important;right:8px!important;width:36px;height:36px;font-size:29px;line-height:32px;background:#fff!important}
}

.hslg-ai-chat-float.has-custom-image{min-height:1px!important}
