/* =========================================================
   Polaris Assistant — chat widget
   ========================================================= */
#pp-bot{
  position:fixed; right:18px; bottom:18px; z-index:9999;
  font-family:"Inter",system-ui,sans-serif;
}

.pp-bot__fab{
  width:54px; height:54px; border-radius:50%; border:none; cursor:pointer;
  background:#0A4E96; color:#fff; font-size:1.35rem; line-height:1;
  display:grid; place-items:center;
  box-shadow:0 14px 30px -12px rgba(10,78,150,.6);
  transition:transform .3s cubic-bezier(.22,.61,.36,1), background .3s;
}
.pp-bot__fab:hover{ transform:scale(1.07); background:#002878; }
#pp-bot.pp-bot--open .pp-bot__fab{ transform:rotate(90deg); }

.pp-bot__panel{
  position:absolute; bottom:70px; right:0; width:344px; max-width:calc(100vw - 28px);
  height:480px; max-height:calc(100vh - 120px);
  background:#fff; border:1px solid #E3E8EF; border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow:0 26px 56px -26px rgba(22,32,43,.4);
  transform:translateY(10px) scale(.98); opacity:0; pointer-events:none;
  transition:transform .3s cubic-bezier(.22,.61,.36,1), opacity .25s;
}
#pp-bot.pp-bot--open .pp-bot__panel{ transform:none; opacity:1; pointer-events:auto; }

.pp-bot__head{
  display:flex; align-items:center; gap:10px; padding:14px 16px;
  background:#0A4E96; color:#fff;
}
.pp-bot__avatar{
  width:36px; height:36px; border-radius:50%; flex:none; background:rgba(255,255,255,.2);
  display:grid; place-items:center; font-size:1rem; font-weight:600;
}
.pp-bot__name{ font-weight:700; font-size:.98rem; }
.pp-bot__status{ font-size:.7rem; opacity:.85; }
.pp-bot__close{
  margin-left:auto; background:none; border:none; color:#fff; font-size:1.3rem; line-height:1;
  cursor:pointer; width:26px; height:26px; border-radius:50%;
}
.pp-bot__close:hover{ background:rgba(255,255,255,.16); }

.pp-bot__msgs{
  flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:8px;
  background:#F6F9FC;
}
.pp-bot__msgs::-webkit-scrollbar{ width:6px; }
.pp-bot__msgs::-webkit-scrollbar-thumb{ background:#CBD5E1; border-radius:3px; }
.pp-bot__msg{
  max-width:86%; padding:9px 12px; border-radius:14px; font-size:.88rem; line-height:1.5;
  word-wrap:break-word;
}
.pp-bot__msg--user{ align-self:flex-end; background:#0A4E96; color:#fff; border-bottom-right-radius:4px; }
.pp-bot__msg--bot{ align-self:flex-start; background:#fff; border:1px solid #E3E8EF; color:#16202B; border-bottom-left-radius:4px; }

.pp-bot__quick{ display:flex; flex-wrap:wrap; gap:6px; padding:10px 12px 0; }
.pp-bot__quick button{
  font:inherit; font-size:.76rem; padding:6px 11px; border-radius:999px; cursor:pointer;
  background:#EAF3FB; color:#0A4E96; border:1px solid #CFE2F4;
  transition:background .2s, color .2s;
}
.pp-bot__quick button:hover{ background:#0A4E96; color:#fff; }

.pp-bot__input{ display:flex; gap:8px; padding:12px; border-top:1px solid #E3E8EF; background:#fff; }
.pp-bot__input input{
  flex:1; font:inherit; font-size:.88rem; padding:9px 13px; border-radius:999px;
  background:#F6F9FC; border:1px solid #E3E8EF; color:#16202B;
}
.pp-bot__input input:focus{ outline:none; border-color:#0A4E96; background:#fff; }
.pp-bot__input button{
  font:inherit; font-size:.86rem; font-weight:600; padding:9px 16px; border-radius:999px;
  border:none; cursor:pointer; background:#0A4E96; color:#fff;
}
.pp-bot__input button:hover{ background:#002878; }

@media (max-width:640px){
  #pp-bot{ right:14px; bottom:14px; }
  .pp-bot__fab{ width:50px; height:50px; }
  .pp-bot__panel{ width:calc(100vw - 28px); bottom:62px; }
}
