
#abdim-ai-root{--abdim-ai-primary:#BB982B;--abdim-ai-secondary:#174B3A;position:fixed;z-index:999999;bottom:22px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}
#abdim-ai-root.abdim-ai-pos-right{right:22px}
#abdim-ai-root.abdim-ai-pos-left{left:22px}
#abdim-ai-root *{box-sizing:border-box}
.abdim-ai-launcher{min-width:214px;height:58px;padding:7px 12px 7px 8px;display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:linear-gradient(135deg,var(--abdim-ai-secondary),#123a2e);color:#fff;box-shadow:0 14px 36px rgba(18,58,46,.25);cursor:pointer;transition:.2s ease}
.abdim-ai-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(18,58,46,.3)}
.abdim-ai-launcher-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,var(--abdim-ai-primary),#d3b44f);flex:0 0 43px}
.abdim-ai-launcher-icon svg{width:21px;height:21px;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.abdim-ai-launcher-text{display:flex;flex-direction:column;text-align:left;line-height:1.15;flex:1}
.abdim-ai-launcher-text b{font-size:12px;font-weight:700}
.abdim-ai-launcher-text small{margin-top:4px;font-size:9px;color:rgba(255,255,255,.7)}
.abdim-ai-online{width:8px;height:8px;border-radius:50%;background:#48d597;box-shadow:0 0 0 4px rgba(72,213,151,.12)}
.abdim-ai-window{position:absolute;bottom:72px;width:380px;height:min(610px,calc(100vh - 110px));display:flex;flex-direction:column;border:1px solid #e5e9e7;border-radius:20px;background:#fff;box-shadow:0 24px 65px rgba(17,24,39,.18);overflow:hidden;opacity:0;visibility:hidden;transform:translateY(12px) scale(.98);transform-origin:bottom right;transition:.2s ease}
.abdim-ai-pos-right .abdim-ai-window{right:0}
.abdim-ai-pos-left .abdim-ai-window{left:0;transform-origin:bottom left}
#abdim-ai-root.is-open .abdim-ai-window{opacity:1;visibility:visible;transform:none}
#abdim-ai-root.is-open .abdim-ai-launcher{opacity:0;visibility:hidden;transform:translateY(8px)}
.abdim-ai-head{min-height:76px;padding:14px 14px 14px 16px;display:flex;align-items:center;gap:11px;background:linear-gradient(135deg,var(--abdim-ai-secondary),#143f32);color:#fff}
.abdim-ai-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.13);flex:0 0 42px}
.abdim-ai-avatar svg{width:22px;height:22px;stroke:#e2c760;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.abdim-ai-head-copy{display:flex;flex-direction:column;min-width:0;flex:1}
.abdim-ai-head-copy strong{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.abdim-ai-head-copy span{margin-top:4px;display:flex;align-items:center;gap:6px;font-size:9px;color:rgba(255,255,255,.7)}
.abdim-ai-head-copy i{width:6px;height:6px;border-radius:50%;background:#48d597}
.abdim-ai-close{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:10px;background:rgba(255,255,255,.08);cursor:pointer}
.abdim-ai-close svg{width:18px;height:18px;stroke:#fff;stroke-width:1.8;stroke-linecap:round}
.abdim-ai-body{position:relative;flex:1;min-height:0;background:linear-gradient(180deg,#f9fbfa 0%,#fff 100%)}
.abdim-ai-messages{height:100%;overflow:auto;padding:17px 15px 12px;scroll-behavior:smooth}
.abdim-ai-msg{display:flex;margin:0 0 11px}
.abdim-ai-msg.user{justify-content:flex-end}
.abdim-ai-bubble{max-width:84%;padding:10px 12px;border-radius:14px;font-size:11px;line-height:1.6;word-break:break-word}
.abdim-ai-msg.bot .abdim-ai-bubble{background:#fff;border:1px solid #e7ebe8;color:#34424a;border-bottom-left-radius:5px;box-shadow:0 4px 14px rgba(18,30,24,.035)}
.abdim-ai-msg.user .abdim-ai-bubble{background:var(--abdim-ai-secondary);color:#fff;border-bottom-right-radius:5px}
.abdim-ai-msg-time{display:block;margin-top:5px;font-size:8px;opacity:.55}
.abdim-ai-bubble a{color:#9d781b;text-decoration:underline;text-underline-offset:2px}
.abdim-ai-typing{position:absolute;left:16px;bottom:9px;display:flex;align-items:center;gap:4px;padding:10px 12px;border:1px solid #e7ebe8;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(18,30,24,.035)}
.abdim-ai-typing[hidden]{display:none}
.abdim-ai-typing span{width:5px;height:5px;border-radius:50%;background:#98a29d;animation:abdimDot 1s infinite ease-in-out}
.abdim-ai-typing span:nth-child(2){animation-delay:.14s}.abdim-ai-typing span:nth-child(3){animation-delay:.28s}
@keyframes abdimDot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
.abdim-ai-quick{padding:8px 12px 4px;display:flex;gap:6px;overflow-x:auto;background:#fff;scrollbar-width:none}
.abdim-ai-quick::-webkit-scrollbar{display:none}
.abdim-ai-quick button{flex:0 0 auto;min-height:28px;padding:5px 9px;border:1px solid #e6e1cf;border-radius:999px;background:#fcfaf4;color:#8d6b17;font-size:8.5px;font-weight:600;cursor:pointer}
.abdim-ai-form{padding:9px 12px 11px;background:#fff;border-top:1px solid #edf0ee}
.abdim-ai-input-wrap{display:flex;align-items:flex-end;gap:8px;padding:6px 6px 6px 11px;border:1px solid #dfe5e1;border-radius:14px;background:#fff;transition:.18s ease}
.abdim-ai-input-wrap:focus-within{border-color:#cfb65c;box-shadow:0 0 0 3px rgba(187,152,43,.09)}
.abdim-ai-input-wrap textarea{width:100%;max-height:90px;min-height:32px;margin:0;padding:7px 0;border:0!important;outline:0!important;box-shadow:none!important;resize:none;background:transparent;font:inherit;font-size:11px;line-height:1.5;color:#34424a}
.abdim-ai-input-wrap textarea::placeholder{color:#9aa4a0}
.abdim-ai-input-wrap button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:10px;background:var(--abdim-ai-primary);cursor:pointer;flex:0 0 34px}
.abdim-ai-input-wrap button:disabled{opacity:.45;cursor:not-allowed}
.abdim-ai-input-wrap button svg{width:17px;height:17px;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.abdim-ai-form>p{margin:6px 3px 0;text-align:center;color:#9aa29e;font-size:7.8px;line-height:1.35}
@media(max-width:520px){
  #abdim-ai-root{bottom:16px;right:14px!important;left:14px!important}
  .abdim-ai-launcher{margin-left:auto;min-width:0;width:58px;padding:7px}
  .abdim-ai-launcher-text,.abdim-ai-online{display:none}
  .abdim-ai-launcher-icon{width:43px;height:43px}
  .abdim-ai-window{position:fixed;left:10px!important;right:10px!important;bottom:10px;width:auto;height:min(650px,calc(100dvh - 20px));border-radius:18px;transform-origin:bottom center}
  .abdim-ai-head{min-height:72px}
}


/* v1.2.3 — clean rich AI answers */
.abdim-ai-message.assistant .abdim-ai-bubble p,
.abdim-ai-msg.bot .abdim-ai-msg-text p,
.abdim-ai-message.bot .abdim-ai-bubble p {
  margin: 0 0 10px;
  line-height: 1.62;
}
.abdim-ai-message.assistant .abdim-ai-bubble p:last-child,
.abdim-ai-msg.bot .abdim-ai-msg-text p:last-child,
.abdim-ai-message.bot .abdim-ai-bubble p:last-child { margin-bottom: 0; }

.abdim-ai-message.assistant .abdim-ai-bubble ol,
.abdim-ai-message.assistant .abdim-ai-bubble ul,
.abdim-ai-msg.bot .abdim-ai-msg-text ol,
.abdim-ai-msg.bot .abdim-ai-msg-text ul,
.abdim-ai-message.bot .abdim-ai-bubble ol,
.abdim-ai-message.bot .abdim-ai-bubble ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}
.abdim-ai-message.assistant .abdim-ai-bubble li,
.abdim-ai-msg.bot .abdim-ai-msg-text li,
.abdim-ai-message.bot .abdim-ai-bubble li {
  margin: 5px 0;
  padding-left: 3px;
  line-height: 1.55;
}
.abdim-ai-message.assistant .abdim-ai-bubble strong,
.abdim-ai-msg.bot .abdim-ai-msg-text strong,
.abdim-ai-message.bot .abdim-ai-bubble strong { font-weight: 700; }

.abdim-ai-message.assistant .abdim-ai-bubble a,
.abdim-ai-msg.bot .abdim-ai-msg-text a,
.abdim-ai-message.bot .abdim-ai-bubble a {
  color: #8a6a0a;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.abdim-ai-message.assistant .abdim-ai-bubble code,
.abdim-ai-msg.bot .abdim-ai-msg-text code,
.abdim-ai-message.bot .abdim-ai-bubble code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0,0,0,.055);
  font-size: .92em;
}


/* v1.3.0 — smarter modern assistant */
.abdim-ai-message.assistant .abdim-ai-bubble,
.abdim-ai-msg.bot .abdim-ai-msg-text,
.abdim-ai-message.bot .abdim-ai-bubble {
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: -.01em;
}
.abdim-ai-message.assistant .abdim-ai-bubble a,
.abdim-ai-msg.bot .abdim-ai-msg-text a,
.abdim-ai-message.bot .abdim-ai-bubble a {
  display: inline-block;
  max-width: 100%;
  margin-top: 3px;
  padding: 7px 10px;
  border: 1px solid rgba(187,152,43,.25);
  border-radius: 9px;
  background: rgba(187,152,43,.08);
  color: #725a12;
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.abdim-ai-message.assistant .abdim-ai-bubble em,
.abdim-ai-msg.bot .abdim-ai-msg-text em,
.abdim-ai-message.bot .abdim-ai-bubble em {
  opacity: .78;
}
