/* DLCI Assistant widget — brand-matched */
.dlci-bot-bubble{
  position:fixed;bottom:26px;right:26px;width:60px;height:60px;border-radius:50%;
  background:#006432;box-shadow:0 8px 30px rgba(0,100,50,.4);
  display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:9998;
  border:none;transition:transform .2s,background .2s;
}
.dlci-bot-bubble:hover{transform:scale(1.06);background:#004820}
.dlci-bot-bubble svg{width:27px;height:27px;fill:#fff}

/* Gentle attention pulse (stops once opened) */
.dlci-bot-bubble.dlci-bot-pulse::before{
  content:'';position:absolute;inset:0;border-radius:50%;
  background:#006432;z-index:-1;
  animation:dlciBotPulse 2.4s ease-out infinite;
}
@keyframes dlciBotPulse{
  0%{transform:scale(1);opacity:.55}
  70%{transform:scale(1.7);opacity:0}
  100%{transform:scale(1.7);opacity:0}
}

/* One-time greeting popup */
.dlci-bot-greeting{
  position:fixed;bottom:100px;right:26px;max-width:250px;background:#fff;
  border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.18);padding:16px 18px 16px 16px;
  z-index:9998;display:none;animation:dlciBotGreetIn .4s ease both;
  border:1px solid #eee;
}
.dlci-bot-greeting.show{display:block}
.dlci-bot-greeting p{
  font-family:'Segoe UI',system-ui,sans-serif;font-size:13.5px;line-height:1.55;color:#1a1a1a;margin:0;padding-right:14px;
}
.dlci-bot-greeting strong{color:#006432}
.dlci-bot-greeting .dlci-bot-greet-close{
  position:absolute;top:8px;right:10px;background:none;border:none;font-size:17px;color:#bbb;cursor:pointer;line-height:1;padding:0;
}
.dlci-bot-greeting .dlci-bot-greet-close:hover{color:#666}
.dlci-bot-greeting::after{
  content:'';position:absolute;bottom:-8px;right:26px;width:16px;height:16px;background:#fff;
  border-right:1px solid #eee;border-bottom:1px solid #eee;transform:rotate(45deg);
}
@keyframes dlciBotGreetIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

.dlci-bot-panel{
  position:fixed;bottom:98px;right:26px;width:390px;max-width:calc(100vw - 36px);
  height:600px;max-height:calc(100vh - 130px);background:#fff;border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.28);display:none;flex-direction:column;overflow:hidden;z-index:9999;
}
.dlci-bot-panel.open{display:flex}

.dlci-bot-head{background:#004820;color:#fff;padding:16px 18px;display:flex;align-items:center;gap:12px}
.dlci-bot-dot{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;font-family:'Montserrat',sans-serif;font-weight:800;font-size:14px;flex-shrink:0}
.dlci-bot-head-txt h3{font-family:'Montserrat',sans-serif;font-weight:800;font-size:15px;margin:0;color:#fff}
.dlci-bot-head-txt p{font-size:11.5px;color:rgba(255,255,255,.7);margin:2px 0 0}
.dlci-bot-close{margin-left:auto;background:none;border:none;color:rgba(255,255,255,.85);font-size:24px;cursor:pointer;line-height:1;padding:0 4px}

.dlci-bot-body{flex:1;overflow-y:auto;padding:18px;background:#f4f4f2;display:flex;flex-direction:column;gap:12px}
.dlci-bot-msg{max-width:88%;padding:11px 14px;border-radius:14px;font-size:14px;line-height:1.6;font-family:'Segoe UI',system-ui,sans-serif}
.dlci-bot-msg.bot{background:#fff;color:#1a1a1a;align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.dlci-bot-msg.user{background:#006432;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.dlci-bot-msg a{color:#006432;font-weight:700;text-decoration:underline;word-break:break-word}
.dlci-bot-msg.user a{color:#fff}
.dlci-bot-msg .pub{display:block;margin-top:8px;padding:10px 12px;background:#e8f5ee;border-left:3px solid #F0821E;border-radius:0 8px 8px 0;font-size:13px}
.dlci-bot-msg .pub a{display:inline-block;margin-top:4px}

.dlci-bot-starters{display:flex;flex-wrap:wrap;gap:8px}
.dlci-bot-chip{background:#fff;border:1px solid #006432;color:#004820;font-family:'Montserrat',sans-serif;font-weight:700;font-size:11.5px;padding:8px 12px;border-radius:20px;cursor:pointer;transition:all .15s}
.dlci-bot-chip:hover{background:#006432;color:#fff}

.dlci-bot-typing{align-self:flex-start;background:#fff;padding:12px 16px;border-radius:14px;border-bottom-left-radius:4px;display:flex;gap:4px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.dlci-bot-typing span{width:7px;height:7px;background:#5a5a5a;border-radius:50%;opacity:.4;animation:dlciBotBlink 1.2s infinite}
.dlci-bot-typing span:nth-child(2){animation-delay:.2s}
.dlci-bot-typing span:nth-child(3){animation-delay:.4s}
@keyframes dlciBotBlink{0%,60%,100%{opacity:.3}30%{opacity:1}}

.dlci-bot-foot{padding:12px;border-top:1px solid #eee;background:#fff;display:flex;gap:8px}
.dlci-bot-foot input{flex:1;border:1px solid #ddd;border-radius:22px;padding:11px 16px;font-size:14px;font-family:'Segoe UI',system-ui,sans-serif;outline:none}
.dlci-bot-foot input:focus{border-color:#006432}
.dlci-bot-foot button{background:#006432;border:none;width:44px;height:44px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.dlci-bot-foot button:hover{background:#004820}
.dlci-bot-foot button svg{width:18px;height:18px;fill:#fff}
.dlci-bot-note{font-size:10px;color:#aaa;text-align:center;padding:6px;background:#fff}

@media(max-width:480px){
  .dlci-bot-panel{bottom:84px;right:12px;left:12px;width:auto;max-width:none;height:calc(100vh - 150px)}
  .dlci-bot-bubble{bottom:18px;right:18px}
}
