.public-chanelle-root{
  position:fixed;
  right:max(18px, env(safe-area-inset-right));
  bottom:max(18px, env(safe-area-inset-bottom));
  z-index:70;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.public-chanelle-root--cookie-visible{
  bottom:max(116px, calc(env(safe-area-inset-bottom) + 116px));
}
.public-chanelle-launcher,
.public-chanelle-dismiss,
.public-chanelle-close,
.public-chanelle-send{
  font:inherit;
}
.public-chanelle-launcher{
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  box-shadow:0 18px 44px rgba(17, 24, 39, .22);
  cursor:pointer;
  font-size:15px;
  font-weight:800;
  line-height:1;
  padding:16px 20px;
}
.public-chanelle-launcher:focus-visible,
.public-chanelle-dismiss:focus-visible,
.public-chanelle-close:focus-visible,
.public-chanelle-send:focus-visible,
.public-chanelle-action:focus-visible{
  outline:3px solid rgba(20, 184, 166, .4);
  outline-offset:3px;
}
.public-chanelle-dismiss{
  align-items:center;
  background:#fff;
  border:1px solid #d8e0ec;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(15, 23, 42, .13);
  color:#64748b;
  cursor:pointer;
  display:flex;
  font-size:20px;
  font-weight:700;
  height:30px;
  justify-content:center;
  line-height:1;
  position:static;
  flex:0 0 auto;
  width:30px;
}
.public-chanelle-panel{
  background:#fff;
  border:1px solid #d8e0ec;
  border-radius:18px;
  bottom:62px;
  box-shadow:0 24px 70px rgba(15, 23, 42, .24);
  display:flex;
  flex-direction:column;
  max-height:min(72vh, 620px);
  overflow:hidden;
  position:absolute;
  right:0;
  width:min(420px, calc(100vw - 28px));
}
.public-chanelle-scroll-lock{
  overflow:hidden;
}
.public-chanelle-header{
  align-items:center;
  background:linear-gradient(135deg, #111827 0%, #0f766e 100%);
  color:#fff;
  display:flex;
  gap:16px;
  justify-content:space-between;
  padding:18px 20px;
}
.public-chanelle-header strong{
  display:block;
  font-size:20px;
  letter-spacing:0;
}
.public-chanelle-header span{
  color:rgba(255,255,255,.78);
  display:block;
  font-size:13px;
  margin-top:4px;
}
.public-chanelle-close{
  align-items:center;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  color:#fff;
  cursor:pointer;
  display:flex;
  font-size:22px;
  font-weight:700;
  height:38px;
  justify-content:center;
  width:38px;
}
.public-chanelle-messages{
  background:#f8fafc;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  gap:10px;
  max-height:250px;
  min-height:120px;
  overscroll-behavior:contain;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:16px;
}
.public-chanelle-message{
  border-radius:14px;
  font-size:14px;
  line-height:1.5;
  max-width:92%;
  padding:12px 14px;
}
.public-chanelle-message--assistant{
  align-self:flex-start;
  background:#ecfdf5;
  border:1px solid #bde7dc;
  color:#123d36;
}
.public-chanelle-message--visitor{
  align-self:flex-end;
  background:#111827;
  color:#fff;
}
.public-chanelle-actions{
  display:flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  gap:8px;
  padding:12px 16px 0;
}
.public-chanelle-action{
  border:1px solid #d8e0ec;
  border-radius:999px;
  color:#111827;
  font-size:13px;
  font-weight:800;
  padding:9px 12px;
  text-decoration:none;
}
.public-chanelle-action:hover{
  border-color:#14b8a6;
  color:#0f766e;
}
.public-chanelle-form{
  display:grid;
  flex:0 0 auto;
  gap:10px;
  grid-template-columns:1fr auto;
  padding:16px;
}
.public-chanelle-input{
  border:1px solid #ccd6e3;
  border-radius:14px;
  color:#111827;
  font:inherit;
  font-size:15px;
  max-height:120px;
  min-height:84px;
  padding:12px;
  resize:none;
}
.public-chanelle-input:focus{
  border-color:#0f766e;
  box-shadow:0 0 0 4px rgba(20, 184, 166, .16);
  outline:0;
}
.public-chanelle-send{
  align-self:stretch;
  background:#111827;
  border:0;
  border-radius:14px;
  color:#fff;
  cursor:pointer;
  font-weight:900;
  min-width:84px;
  padding:0 18px;
}
.public-chanelle-send:disabled{
  cursor:wait;
  opacity:.65;
}
@media (max-width: 700px){
  .public-chanelle-root{
    bottom:max(14px, env(safe-area-inset-bottom));
    left:14px;
    right:14px;
    gap:8px;
    justify-content:flex-end;
  }
  .public-chanelle-root--cookie-visible{
    bottom:max(132px, calc(env(safe-area-inset-bottom) + 132px));
  }
  .public-chanelle-launcher{
    display:block;
    margin-left:auto;
    padding:15px 18px;
  }
  .public-chanelle-panel{
    bottom:60px;
    left:0;
    height:min(70vh, 560px);
    height:min(70dvh, 560px);
    max-height:min(70vh, 560px);
    max-height:calc(100vh - 92px);
    max-height:calc(100dvh - 92px);
    right:0;
    width:100%;
  }
  .public-chanelle-messages{
    max-height:none;
    min-height:92px;
  }
  .public-chanelle-form{
    grid-template-columns:1fr;
    padding:12px 14px 14px;
  }
  .public-chanelle-input{
    min-height:72px;
    max-height:96px;
  }
  .public-chanelle-send{
    min-height:48px;
  }
}
@media (max-height: 620px){
  .public-chanelle-panel{
    height:calc(100vh - 94px);
    height:calc(100dvh - 94px);
    max-height:calc(100vh - 94px);
    max-height:calc(100dvh - 94px);
  }
  .public-chanelle-messages{
    max-height:none;
    min-height:80px;
  }
  .public-chanelle-header{
    padding:14px 16px;
  }
  .public-chanelle-actions{
    padding:10px 14px 0;
  }
  .public-chanelle-form{
    grid-template-columns:1fr;
    padding:12px 14px 14px;
  }
  .public-chanelle-input{
    min-height:64px;
    max-height:84px;
  }
  .public-chanelle-send{
    min-height:46px;
  }
}
@media (prefers-reduced-motion: reduce){
  .public-chanelle-root *,
  .public-chanelle-root *::before,
  .public-chanelle-root *::after{
    scroll-behavior:auto !important;
    transition:none !important;
  }
}
