:root{
  --livel-assistant-primary:#00b8a9;
  --livel-assistant-primary-dark:#008f85;
  --livel-assistant-bg:#ffffff;
  --livel-assistant-text:#14323a;
  --livel-assistant-muted:#5f7378;
  --livel-assistant-border:rgba(20,50,58,.14);
  --livel-assistant-shadow:0 18px 55px rgba(15,38,45,.22);
}

.livel-assistant-launcher{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:2147483000;
  width:64px;
  height:64px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--livel-assistant-primary),#6ee7d8);
  color:#fff;
  box-shadow:0 14px 36px rgba(0,184,169,.35);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease, box-shadow .18s ease;
}

.livel-assistant-launcher:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 18px 44px rgba(0,184,169,.42);
}

.livel-assistant-launcher svg{width:31px;height:31px;}

.livel-assistant-panel{
  position:fixed;
  right:20px;
  bottom:96px;
  z-index:2147483001;
  width:min(390px,calc(100vw - 28px));
  max-height:min(660px,calc(100vh - 118px));
  background:var(--livel-assistant-bg);
  color:var(--livel-assistant-text);
  border:1px solid var(--livel-assistant-border);
  border-radius:24px;
  box-shadow:var(--livel-assistant-shadow);
  overflow:hidden;
  display:none;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.livel-assistant-panel.is-open{display:flex;flex-direction:column;}

.livel-assistant-header{
  background:linear-gradient(135deg,#072b31,#0b6063 55%,var(--livel-assistant-primary));
  color:#fff;
  padding:17px 18px;
  display:flex;
  align-items:center;
  gap:12px;
}

.livel-assistant-avatar{
  width:42px;
  height:42px;
  border-radius:14px;
  background:rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  letter-spacing:.04em;
  flex:0 0 auto;
}

.livel-assistant-title{font-weight:800;font-size:16px;line-height:1.1;}
.livel-assistant-subtitle{font-size:12px;opacity:.88;margin-top:3px;}

.livel-assistant-close{
  margin-left:auto;
  border:0;
  background:rgba(255,255,255,.12);
  color:#fff;
  width:34px;
  height:34px;
  border-radius:999px;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}

.livel-assistant-body{
  padding:14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:260px;
}

.livel-assistant-message{
  max-width:88%;
  padding:11px 12px;
  border-radius:16px;
  font-size:14px;
  line-height:1.42;
  white-space:pre-wrap;
}

.livel-assistant-message.bot{
  align-self:flex-start;
  background:#f2fbfa;
  border:1px solid rgba(0,184,169,.15);
}

.livel-assistant-message.user{
  align-self:flex-end;
  background:#14323a;
  color:#fff;
}

.livel-assistant-quick-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 14px 12px;
}

.livel-assistant-chip{
  border:1px solid rgba(0,184,169,.22);
  background:#fff;
  color:#0d5658;
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  cursor:pointer;
  font-weight:700;
}

.livel-assistant-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.livel-assistant-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  color:#0d5658;
  background:#fff;
  border:1px solid rgba(0,184,169,.25);
}

.livel-assistant-link.whatsapp{
  color:#fff;
  background:#25d366;
  border-color:#25d366;
}

.livel-assistant-inputbar{
  border-top:1px solid var(--livel-assistant-border);
  padding:12px;
  display:flex;
  gap:8px;
  background:#fff;
}

.livel-assistant-input{
  flex:1;
  min-width:0;
  border:1px solid var(--livel-assistant-border);
  border-radius:999px;
  padding:11px 13px;
  outline:none;
  font-size:14px;
  color:var(--livel-assistant-text);
}

.livel-assistant-input:focus{border-color:var(--livel-assistant-primary);box-shadow:0 0 0 3px rgba(0,184,169,.12);}

.livel-assistant-send{
  border:0;
  border-radius:999px;
  background:var(--livel-assistant-primary);
  color:#fff;
  font-weight:800;
  padding:0 15px;
  cursor:pointer;
}

@media (max-width:560px){
  .livel-assistant-launcher{right:15px;bottom:15px;width:58px;height:58px;}
  .livel-assistant-panel{right:10px;bottom:82px;width:calc(100vw - 20px);border-radius:20px;}
}
