.yandle-bot{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:9999;
  font-family:'TWK Lausanne','Inter',system-ui,sans-serif;
}
.yandle-bot__fab{
  width:58px;
  height:58px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#1450E6,#0F43C7);
  color:#fff;
  box-shadow:0 10px 30px rgba(15,67,199,.35);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.yandle-bot__fab:hover{transform:translateY(-1px)}
.yandle-bot__panel{
  position:absolute;
  right:0;
  bottom:74px;
  width:min(92vw,360px);
  height:min(78vh,560px);
  background:#fff;
  border:1px solid #E8E8E8;
  border-radius:18px;
  box-shadow:0 22px 60px rgba(6,7,8,.22);
  overflow:hidden;
  display:none;
  flex-direction:column;
}
.yandle-bot.open .yandle-bot__panel{display:flex}
.yandle-bot__head{
  background:linear-gradient(160deg,#11192e,#0F43C7);
  color:#fff;
  padding:14px 14px 12px;
  flex:none;
}
.yandle-bot__title{font-size:14px;font-weight:600}
.yandle-bot__sub{font-size:12px;opacity:.82;margin-top:2px}
.yandle-bot__msgs{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:12px;
  background:#F8FAFF;
}
.yandle-bot__msg{
  margin-bottom:10px;
  font-size:13px;
  line-height:1.45;
  padding:10px 11px;
  border-radius:12px;
  max-width:92%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.yandle-bot__msg.bot{background:#fff;border:1px solid #E8E8E8;color:#2B2B2B}
.yandle-bot__msg.user{background:#1450E6;color:#fff;margin-left:auto}
.yandle-bot__chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:0 12px 10px;
  background:#F8FAFF;
  flex:none;
}
.yandle-bot__chip{
  border:1px solid #D7E3FF;
  background:#fff;
  color:#1450E6;
  font-size:11px;
  padding:6px 8px;
  border-radius:999px;
  cursor:pointer;
}
.yandle-bot__input{
  display:flex;
  gap:8px;
  padding:10px;
  border-top:1px solid #E8E8E8;
  background:#fff;
  flex:none;
}
.yandle-bot__input input{
  flex:1;
  border:1px solid #D9DDE8;
  border-radius:10px;
  padding:10px;
  font-size:13px;
  outline:none;
}
.yandle-bot__input button{
  border:0;
  border-radius:10px;
  padding:0 12px;
  background:#1450E6;
  color:#fff;
  font-size:13px;
  cursor:pointer;
}
.yandle-bot__callback{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px;
  border-top:1px solid #E8E8E8;
  background:#fff;
  flex:none;
}
.yandle-bot__callback[hidden]{display:none!important}
.yandle-bot__callback-title{
  font-size:12px;
  font-weight:500;
  color:#2B2B2B;
}
.yandle-bot__callback input{
  border:1px solid #D9DDE8;
  border-radius:10px;
  padding:10px;
  font-size:13px;
  outline:none;
  width:100%;
}
.yandle-bot__callback-row{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:8px;
}
.yandle-bot__cc{
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #D9DDE8;
  border-radius:10px;
  background:#F7F9FF;
  color:#1450E6;
  font-size:13px;
  font-weight:500;
}
.yandle-bot__callback button[type="submit"]{
  border:0;
  border-radius:10px;
  padding:10px 12px;
  background:#1450E6;
  color:#fff;
  font-size:13px;
  cursor:pointer;
}
.yandle-bot__callback-cancel{
  border:0;
  background:transparent;
  color:#595959;
  font-size:12px;
  cursor:pointer;
  padding:4px 0;
}
@media (max-width:640px){
  .yandle-bot{right:12px;bottom:12px}
  .yandle-bot__panel{
    width:min(96vw,360px);
    height:min(72vh,520px);
  }
}
