#chat-toggle{
  position:fixed;
  bottom:20px;
  right:20px;
  width:60px;
  height:60px;
  border-radius:50%;
  border:none;
  background:#0e2a3b;
  color:#fff;
  font-size:24px;
  cursor:pointer;
  z-index:999999;
  box-shadow:0 12px 28px rgba(0,0,0,.25);
}

#cornari-chatbot{
  position:fixed;
  bottom:90px;
  right:20px;
  width:340px;
  max-width: calc(100vw - 40px);
  background:#fff;
  border-radius:14px;
  box-shadow:0 20px 40px rgba(0,0,0,.2);
  display:none;
  flex-direction:column;
  z-index:999999;
  font-family: system-ui, -apple-system, Segoe UI, Tahoma, Arial, sans-serif;
  overflow:hidden;
}

.chat-header{
  background:#0e2a3b;
  color:#fff;
  padding:12px 14px;
  text-align:center;
  font-weight:700;
}

.chat-body{
  padding:10px;
  height:260px;
  overflow-y:auto;
  background:#f8fafc;
}

.msg{
  padding:9px 12px;
  border-radius:12px;
  margin-bottom:8px;
  font-size:14px;
  line-height:1.4;
  max-width: 92%;
}

.msg.bot{
  background:#ffffff;
  box-shadow: 0 6px 14px rgba(15,23,42,.08);
}

.msg.user{
  background:#dbeafe;
  margin-left:auto;
  text-align:right;
}

.chat-menu{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.chat-menu button{
  width:100%;
  padding:10px 12px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  background:#e2e8f0;
  font-size:14px;
  font-weight:600;
  transition: transform .05s ease, opacity .15s ease;
}

.chat-menu button:active{ transform: scale(.99); }
.chat-menu button:hover{ opacity:.92; }

.chat-input{
  display:flex;
  border-top:1px solid rgba(148,163,184,.35);
  background:#fff;
}

.chat-input input{
  flex:1;
  padding:12px;
  border:none;
  outline:none;
  font-size:14px;
}

.chat-input button{
  padding:0 16px;
  border:none;
  background:#5aa9e6;
  color:#fff;
  cursor:pointer;
  font-size:16px;
}

@media (max-width: 480px){
  #cornari-chatbot{ width: calc(100vw - 40px); }
  .chat-body{ height: 240px; }
}