#lcai-chat-root.lcai-chat-root{
  --lcai-primary:#0693e3;
  --lcai-vv-height:100dvh;
  --lcai-vv-top:0px;
  position:fixed;
  z-index:2147483000;
  bottom:22px;
  font-family:inherit;
  font-size:16px;
  line-height:1.4;
  color:#26354a;
  isolation:isolate;
  text-align:left;
  -webkit-text-size-adjust:100%;
}
#lcai-chat-root.lcai-chat-root,
#lcai-chat-root.lcai-chat-root *,
#lcai-chat-root.lcai-chat-root *::before,
#lcai-chat-root.lcai-chat-root *::after{box-sizing:border-box}
#lcai-chat-root.lcai-right{right:22px}
#lcai-chat-root.lcai-left{left:22px}

/* Garante que temas/plugins não anulam o atributo nativo hidden. */
#lcai-chat-root .lcai-panel[hidden]{display:none!important}

#lcai-chat-root .lcai-launcher{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:13px 18px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--lcai-primary)!important;
  background-image:none!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:700!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  text-decoration:none!important;
  box-shadow:0 10px 30px rgba(25,45,70,.24)!important;
  cursor:pointer!important;
  overflow:visible!important;
}
#lcai-chat-root .lcai-launcher::before,
#lcai-chat-root .lcai-launcher::after{display:none!important;content:none!important}
#lcai-chat-root .lcai-launcher-icon{font-size:19px;line-height:1}

#lcai-chat-root .lcai-panel{
  position:absolute;
  bottom:66px;
  display:flex;
  flex-direction:column;
  width:min(390px,calc(100vw - 28px));
  height:min(610px,calc(100vh - 110px));
  height:min(610px,calc(100dvh - 110px));
  max-height:calc(100vh - 110px);
  max-height:calc(100dvh - 110px);
  margin:0;
  padding:0;
  background:#fff;
  border:1px solid rgba(35,58,85,.14);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 55px rgba(18,39,67,.25);
}
#lcai-chat-root.lcai-right .lcai-panel{right:0}
#lcai-chat-root.lcai-left .lcai-panel{left:0}

#lcai-chat-root .lcai-header{
  position:relative;
  z-index:2;
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
  min-height:70px;
  margin:0;
  padding:14px 16px;
  background:var(--lcai-primary);
  color:#fff;
}
#lcai-chat-root .lcai-header>div{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;line-height:1.25}
#lcai-chat-root .lcai-header strong{display:block;overflow-wrap:anywhere}
#lcai-chat-root .lcai-header span{font-size:12px;opacity:.84}

#lcai-chat-root .lcai-close{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:relative!important;
  z-index:4!important;
  display:grid!important;
  flex:0 0 40px!important;
  place-items:center!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.55)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.10)!important;
  background-image:none!important;
  color:#fff!important;
  font-family:Arial,sans-serif!important;
  font-size:28px!important;
  font-weight:400!important;
  line-height:1!important;
  letter-spacing:normal!important;
  text-align:center!important;
  text-indent:0!important;
  text-transform:none!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  overflow:hidden!important;
  touch-action:manipulation;
}
#lcai-chat-root .lcai-close:hover,
#lcai-chat-root .lcai-close:focus-visible{background:rgba(255,255,255,.20)!important;outline:2px solid rgba(255,255,255,.9)!important;outline-offset:2px!important}
#lcai-chat-root .lcai-close::before,
#lcai-chat-root .lcai-close::after{display:none!important;content:none!important}

#lcai-chat-root .lcai-messages{
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  margin:0;
  padding:16px;
  background:#f7f9fc;
  scroll-behavior:smooth;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
#lcai-chat-root .lcai-row{display:flex;min-width:0;margin:0 0 11px;padding:0}
#lcai-chat-root .lcai-user{justify-content:flex-end}
#lcai-chat-root .lcai-bubble{
  max-width:84%;
  margin:0;
  padding:10px 13px;
  border:1px solid #e4e9f0;
  border-radius:14px;
  background:#fff;
  color:#26354a;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.45;
  font-size:14px;
}
#lcai-chat-root .lcai-user .lcai-bubble{background:var(--lcai-primary);border-color:var(--lcai-primary);color:#fff;border-bottom-right-radius:4px}
#lcai-chat-root .lcai-assistant .lcai-bubble{border-bottom-left-radius:4px}
#lcai-chat-root .lcai-typing .lcai-bubble{opacity:.65}

#lcai-chat-root .lcai-actions{
  display:flex;
  flex:0 0 auto;
  gap:7px;
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  margin:0;
  padding:8px 12px;
  background:#fff;
  border-top:1px solid #edf0f4;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
#lcai-chat-root .lcai-actions[hidden]{display:none!important}
#lcai-chat-root .lcai-actions::-webkit-scrollbar{display:none}
#lcai-chat-root .lcai-actions button{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:34px!important;
  margin:0!important;
  padding:7px 11px!important;
  border:1px solid #ccd3dc!important;
  border-color:color-mix(in srgb,var(--lcai-primary) 40%,#ccd3dc)!important;
  border-radius:999px!important;
  background:#fff!important;
  background-image:none!important;
  color:#33465d!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
#lcai-chat-root .lcai-actions button::before,
#lcai-chat-root .lcai-actions button::after{display:none!important;content:none!important}

#lcai-chat-root .lcai-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 48px!important;
  align-items:stretch!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:10px 12px!important;
  border:0!important;
  border-top:1px solid #edf0f4!important;
  background:#fff!important;
  overflow:hidden!important;
}
#lcai-chat-root .lcai-form textarea{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:44px!important;
  max-height:110px!important;
  margin:0!important;
  padding:10px 11px!important;
  resize:none!important;
  overflow-y:auto!important;
  border:1px solid #cbd3dd!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#26354a!important;
  font:inherit!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.35!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  box-shadow:none!important;
  outline:none!important;
}
#lcai-chat-root .lcai-form textarea:focus{border-color:var(--lcai-primary)!important;box-shadow:0 0 0 2px rgba(6,147,227,.16)!important}
#lcai-chat-root .lcai-form button{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  height:auto!important;
  min-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:11px!important;
  background:var(--lcai-primary)!important;
  background-image:none!important;
  color:#fff!important;
  font:inherit!important;
  font-size:20px!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:normal!important;
  text-align:center!important;
  text-indent:0!important;
  text-transform:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
  overflow:hidden!important;
  touch-action:manipulation;
}
#lcai-chat-root .lcai-form button::before,
#lcai-chat-root .lcai-form button::after{display:none!important;content:none!important}
#lcai-chat-root .lcai-form button span{display:block!important;line-height:1!important;transform:translateX(1px)}
#lcai-chat-root .lcai-form button:disabled{opacity:.5!important;cursor:wait!important}
#lcai-chat-root .lcai-form button:focus-visible{outline:2px solid var(--lcai-primary)!important;outline-offset:2px!important}

#lcai-chat-root .lcai-privacy{
  flex:0 0 auto;
  min-width:0;
  margin:0;
  padding:0 12px 9px;
  background:#fff;
  color:#7a8798;
  font-size:10px;
  line-height:1.3;
  overflow-wrap:anywhere;
}

#lcai-chat-root .lcai-products{display:grid;gap:9px;min-width:0;margin:4px 0 14px;padding:0}
#lcai-chat-root .lcai-product{
  display:grid;
  grid-template-columns:60px minmax(0,1fr);
  gap:10px;
  min-width:0;
  margin:0;
  padding:10px;
  background:#fff;
  border:1px solid #e1e6ed;
  border-radius:12px;
  overflow:hidden;
}
#lcai-chat-root .lcai-product>div{min-width:0}
#lcai-chat-root .lcai-product img{display:block;width:60px!important;min-width:60px!important;max-width:60px!important;height:60px!important;margin:0!important;object-fit:cover;border:0!important;border-radius:8px!important;box-shadow:none!important}
#lcai-chat-root .lcai-product-title{display:block;margin:0;color:#223955!important;text-decoration:none!important;font-weight:700;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
#lcai-chat-root .lcai-product-price{margin:6px 0;color:#53657a;font-weight:700;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#lcai-chat-root .lcai-product-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:32px!important;
  margin:0!important;
  padding:6px 9px!important;
  border:0!important;
  border-radius:7px!important;
  background:var(--lcai-primary)!important;
  background-image:none!important;
  color:#fff!important;
  text-decoration:none!important;
  font:inherit!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.2!important;
  text-transform:none!important;
  box-shadow:none!important;
  overflow-wrap:anywhere;
}
#lcai-chat-root .lcai-product-button::before,
#lcai-chat-root .lcai-product-button::after{display:none!important;content:none!important}

#lcai-chat-root .lcai-assistant{flex-wrap:wrap}
#lcai-chat-root .lcai-feedback{display:flex;align-items:center;gap:4px;width:100%;min-width:0;padding:3px 0 0 4px;color:#778496;font-size:10px}
#lcai-chat-root .lcai-feedback button{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-grid!important;
  place-items:center!important;
  width:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  height:24px!important;
  min-height:24px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  background-image:none!important;
  color:inherit!important;
  font:inherit!important;
  line-height:1!important;
  box-shadow:none!important;
  cursor:pointer!important;
  opacity:.72;
}
#lcai-chat-root .lcai-feedback button::before,
#lcai-chat-root .lcai-feedback button::after{display:none!important;content:none!important}
#lcai-chat-root .lcai-feedback button:hover{opacity:1;transform:scale(1.08)}
#lcai-chat-root .lcai-feedback button:disabled{cursor:default!important}
#lcai-chat-root .lcai-feedback.is-positive,
#lcai-chat-root .lcai-feedback.is-negative{font-weight:700}
#lcai-chat-root .lcai-feedback.is-positive{color:#25753b}
#lcai-chat-root .lcai-feedback.is-negative{color:#a33}

@media(max-width:520px){
  html.lcai-chat-open,
  html.lcai-chat-open body{overflow:hidden!important;overscroll-behavior:none!important}
  #lcai-chat-root.lcai-chat-root{right:8px!important;left:8px!important;bottom:8px!important}
  #lcai-chat-root .lcai-launcher{margin-left:auto!important}
  #lcai-chat-root.lcai-is-open .lcai-launcher{display:none!important}
  #lcai-chat-root .lcai-panel{
    position:fixed;
    top:calc(var(--lcai-vv-top,0px) + 8px);
    right:8px!important;
    bottom:auto;
    left:8px!important;
    width:auto;
    height:calc(var(--lcai-vv-height,100dvh) - 16px);
    max-height:calc(var(--lcai-vv-height,100dvh) - 16px);
    border-radius:15px;
  }
  #lcai-chat-root .lcai-header{min-height:64px;padding:11px 13px}
  #lcai-chat-root .lcai-close{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;flex-basis:38px!important}
  #lcai-chat-root .lcai-messages{padding:12px}
  #lcai-chat-root .lcai-actions{padding:7px 10px}
  #lcai-chat-root .lcai-form{grid-template-columns:minmax(0,1fr) 48px!important;padding:8px 10px!important}
  #lcai-chat-root .lcai-privacy{padding:0 10px 8px}
  #lcai-chat-root .lcai-launcher-label{display:none}
}


/* 0.2.7 — reforço de layout e isolamento do rodapé do chat */
#lcai-chat-root .lcai-panel{
  contain:layout paint;
}
#lcai-chat-root .lcai-messages{
  padding-bottom:18px!important;
}
#lcai-chat-root .lcai-form{
  position:relative!important;
  z-index:5!important;
  flex:0 0 auto!important;
  grid-template-columns:minmax(0,1fr) 48px!important;
  min-height:64px!important;
}
#lcai-chat-root .lcai-form textarea{
  height:44px!important;
  min-height:44px!important;
  line-height:22px!important;
  padding:10px 12px!important;
  vertical-align:middle!important;
}
#lcai-chat-root .lcai-form button{
  height:44px!important;
  min-height:44px!important;
  align-self:start!important;
}
#lcai-chat-root .lcai-privacy{
  position:relative!important;
  z-index:5!important;
  min-height:34px!important;
  padding:3px 12px 9px!important;
}
@media (max-width:600px){
  #lcai-chat-root.lcai-chat-root{
    right:7px!important;
    left:7px!important;
    bottom:7px!important;
  }
  #lcai-chat-root .lcai-panel{
    right:0!important;
    left:0!important;
    bottom:0!important;
    width:100%!important;
    height:min(680px,calc(var(--lcai-vv-height) - 14px))!important;
    max-height:calc(var(--lcai-vv-height) - 14px)!important;
  }
  #lcai-chat-root .lcai-form{padding:9px 10px!important;gap:7px!important}
  #lcai-chat-root .lcai-privacy{padding:3px 10px 8px!important}
}


/* 0.2.8 — composição sempre visível e painel independente do tema */
#lcai-chat-root .lcai-panel{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto auto auto!important;
}
#lcai-chat-root .lcai-messages{grid-row:2;min-height:0!important}
#lcai-chat-root .lcai-actions{grid-row:3}
#lcai-chat-root .lcai-form{
  grid-row:4;
  position:relative!important;
  bottom:auto!important;
  min-height:64px!important;
  overflow:visible!important;
}
#lcai-chat-root .lcai-privacy{grid-row:5;position:relative!important;bottom:auto!important}
#lcai-chat-root .lcai-product-title{font-weight:700;text-decoration:none;color:#19385d;overflow-wrap:anywhere}
#lcai-chat-root .lcai-product-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-top:8px!important;padding:8px 10px!important;border-radius:8px!important;background:var(--lcai-primary)!important;color:#fff!important;text-decoration:none!important;font-weight:700!important;font-size:12px!important}
@media (max-width:600px){
  #lcai-chat-root .lcai-panel{
    position:fixed!important;
    top:calc(var(--lcai-vv-top) + 7px)!important;
    right:7px!important;
    bottom:auto!important;
    left:7px!important;
    width:auto!important;
    height:calc(var(--lcai-vv-height) - 14px)!important;
    max-height:calc(var(--lcai-vv-height) - 14px)!important;
  }
  #lcai-chat-root .lcai-form textarea{font-size:16px!important}
}

/* 0.4.0 — encaminhamento para apoio humano */
#lcai-chat-root .lcai-contact{margin:2px 0 14px;padding:0}
#lcai-chat-root .lcai-contact-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:9px 12px!important;border-radius:9px!important;background:var(--lcai-primary)!important;color:#fff!important;text-decoration:none!important;font-weight:700!important;font-size:13px!important;line-height:1.2!important}
