
.aluca-chat{position:fixed;z-index:30;right:clamp(12px,3vw,28px);bottom:max(12px,env(safe-area-inset-bottom));display:grid;justify-items:end;gap:9px}
.chat-toggle{display:flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border:1px solid #ffffff5c;border-radius:999px;background:var(--blue);color:#fff;font-weight:800;font-size:13px;box-shadow:0 7px 20px #1d14a94a}
.chat-toggle:hover{background:var(--deep)}
.chat-panel{display:grid;grid-template-rows:auto minmax(80px,1fr) auto auto;width:min(350px,calc(100vw - 24px));height:min(445px,calc(100dvh - 82px));overflow:hidden;background:#fff;border:1px solid #e3dff4;border-radius:17px;box-shadow:0 12px 38px #18104342;color:var(--ink)}
.chat-panel[hidden]{display:none}
.chat-header{height:auto;border:0;padding:11px 12px;justify-content:start;gap:8px;color:#fff;background:var(--blue)}
.chat-header h2{font-size:17px;line-height:1.1;letter-spacing:-.035em}
.chat-header p{font-size:12px;color:#efedff;margin:3px 0 0}
.chat-close{margin-left:auto;width:33px;height:33px;border-radius:8px;border:1px solid #ffffff65;background:#ffffff12;color:#fff;font-size:22px;line-height:1}
.chat-close:hover{background:#ffffff25}
.chat-history{overflow-y:auto;overscroll-behavior:contain;padding:12px;background:#f8f7fc;display:flex;flex-direction:column;gap:8px}
.chat-message{border-radius:12px;padding:8px 10px;max-width:91%;font-size:13px;line-height:1.44;overflow-wrap:anywhere}
.chat-message p{margin:0}
.chat-message-agent{align-self:start;background:white;border:1px solid #e8e4f2}
.chat-message-visitor{align-self:end;color:#19114e;background:#eae6ff}
.chat-message a{display:block;margin-top:6px;color:var(--deep);font-weight:800;text-decoration:underline;text-underline-offset:2px}
.chat-quick{display:flex;gap:5px;flex-wrap:wrap;padding:8px 9px;border-top:1px solid #eae8f3}
.chat-quick button{background:#f4f1ff;color:var(--deep);border:1px solid #e8e2ff;border-radius:999px;font-size:11px;font-weight:800;padding:5px 8px}
.chat-quick button:hover{background:#eae5ff}
.chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:0 9px 9px}
.chat-form input{min-width:0;width:100%;padding:8px 9px;border:1px solid #dedbeb;border-radius:8px;font:inherit;font-size:16px;color:var(--ink)}
.chat-form input::placeholder{font-size:13px}
.chat-form button{width:39px;display:grid;place-items:center;border:0;border-radius:8px;background:var(--mint);color:#121b28}
.chat-form svg{width:18px;height:18px}
.chat-header :focus-visible,.chat-toggle:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
.chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){.chat-toggle>span:not(.lia-avatar){display:none}.chat-toggle{padding:3px}.chat-toggle .lia-avatar{width:47px;height:47px}}
.lia-avatar{
  position:relative;
  display:grid;
  place-items:center;
  isolation:isolate;
  flex:none;
  width:49px;
  height:49px;
  padding:4px;
  overflow:hidden;
  border-radius:50%;
  background:#7fffea;
  box-shadow:0 0 0 1px #d6fff4,0 0 13px #00f1c675;
}
.lia-avatar:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-15%;
  background:conic-gradient(from 18deg,#fff 0deg,#77fce9 47deg,#00cda8 114deg,#85a8ff 181deg,#c8b8ff 239deg,#29edc4 307deg,#fff 360deg);
  animation:lia-ring 8s linear infinite;
}
.lia-avatar img{
  display:block;
  width:100%;
  height:100%;
  min-width:0;
  aspect-ratio:1;
  object-fit:cover;
  border:1px solid #2012cf;
  border-radius:50%;
  background:var(--blue);
}
.chat-header .lia-avatar{width:46px;height:46px}
@keyframes lia-ring{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.lia-avatar:before{animation:none}}
