/* Distrinote built-in AI customer-service widget (blue/white enterprise style) */
#ai-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 9998;
  width: 58px; height: 58px; border-radius: 50%;
  background: #03A84E; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(3,168,78,.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
#ai-launcher:hover { background: #028A3E; transform: scale(1.06); }
#ai-launcher svg { width: 28px; height: 28px; fill: #fff; }
#ai-launcher .ai-dot {
  position: absolute; top: 2px; right: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: #22c55e; border: 2px solid #fff;
}
#ai-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 9999;
  width: 368px; max-width: calc(100vw - 32px); height: 500px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(15,40,90,.22);
  display: none; flex-direction: column;
  font-family: inherit;
}
#ai-panel.open { display: flex; }
#ai-panel .ai-head {
  background: #03A84E; color: #fff; padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
}
#ai-panel .ai-head .ai-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  color: #03A84E; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
#ai-panel .ai-head .ai-title { flex: 1; line-height: 1.25; }
#ai-panel .ai-head .ai-title b { font-size: 15px; display: block; }
#ai-panel .ai-head .ai-title span { font-size: 12px; opacity: .85; }
#ai-panel .ai-close {
  background: none; border: none; color: #fff; font-size: 22px;
  cursor: pointer; line-height: 1; padding: 4px;
}
#ai-msgs {
  flex: 1; overflow-y: auto; padding: 14px 12px;
  background: #f4f7fc; display: flex; flex-direction: column; gap: 10px;
}
.ai-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-line; word-break: break-word; }
.ai-msg.bot { background: #fff; color: #1f2937; border: 1px solid #e2e9f4; border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-msg.user { background: #03A84E; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: #f4f7fc; }
.ai-chip {
  border: 1px solid #03A84E; color: #03A84E; background: #fff;
  border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer;
}
.ai-chip:hover { background: #e8f1fd; }
#ai-inputbar { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #e6ecf5; }
#ai-input {
  flex: 1; border: 1px solid #d5deee; border-radius: 999px;
  padding: 9px 14px; font-size: 14px; outline: none;
}
#ai-input:focus { border-color: #03A84E; }
#ai-send {
  background: #03A84E; color: #fff; border: none; border-radius: 999px;
  padding: 0 18px; font-size: 14px; cursor: pointer;
}
#ai-send:hover { background: #028A3E; }
#ai-send:disabled { opacity: .6; cursor: default; }
@media (max-width: 480px) {
  #ai-panel { right: 12px; bottom: 88px; }
  #ai-launcher { right: 14px; bottom: 18px; }
}

/* tawk-style alignment (2026-10-09): same green, size, position, radius as the tawk window */
#ai-launcher{width:60px;height:60px}
#ai-launcher .ai-dot{display:none}
#ai-panel{right:20px;bottom:98px;width:350px;height:520px;border-radius:18px;box-shadow:10px 10px 40px rgba(0,0,0,.08),5px 14px 80px rgba(26,26,26,.12)}
#ai-panel .ai-head{padding:16px}
#ai-panel .ai-head .ai-avatar{display:none}
#ai-panel .ai-head .ai-title span{display:none}
#ai-panel .ai-head .ai-title b{font-size:17px}
#ai-msgs{background:#fff}
.ai-msg.bot{background:#f4f4f6;border:none}
.ai-chips{background:#fff}
.ai-chip:hover{background:#e6f7ee}
