
html.ntt-chatbot-lock-scroll,
body.ntt-chatbot-lock-scroll{
  overflow:hidden !important;
  overscroll-behavior:none;
}

.ntt-chatbot-panel,
.ntt-chatbot-messages,
#nttChatbotInput,
.ntt-chatbot-bubble pre{
  overscroll-behavior:contain;
}


.ntt-chatbot-root,
.ntt-chatbot-root *,
.ntt-chatbot-panel,
.ntt-chatbot-panel *,
.ntt-chatbot-messages,
.ntt-chatbot-messages *,
#nttChatbotInput{
  -webkit-user-select:text !important;
  -moz-user-select:text !important;
  -ms-user-select:text !important;
  user-select:text !important;
}
.ntt-chatbot-root{
  position:fixed;
  right:16px;
  top:56px;
  z-index:1045;
  font-family:inherit;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}
.ntt-chatbot-fab{
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:999px;
  padding:10px 14px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  background:#0d6efd;
  color:#fff;
  cursor:pointer;
  font-weight:600;
}
.ntt-chatbot-fab:hover{ filter:brightness(.98); }
.ntt-chatbot-fab:focus{ outline:none; box-shadow:0 0 0 3px rgba(13,110,253,.22),0 10px 30px rgba(0,0,0,.18); }
.ntt-chatbot-fab-label{ font-weight:600; }
.ntt-chatbot-panel{
  position:absolute;
  right:0;
  top:52px;
  width:min(430px, calc(100vw - 24px));
  height:min(620px, calc(100vh - 100px));
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  overflow:hidden;
  display:none;
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}
.ntt-chatbot-root.is-open .ntt-chatbot-panel{ display:flex; flex-direction:column; }
.ntt-chatbot-root.is-max .ntt-chatbot-panel{
  position:fixed;
  inset:24px;
  width:auto;
  height:auto;
  max-width:none;
  max-height:none;
  border-radius:18px;
}
.ntt-chatbot-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px 10px;
  background:#f7f9fc;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.ntt-chatbot-title{ font-size:16px; font-weight:700; line-height:1.3; }
.ntt-chatbot-meta{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.ntt-chatbot-badge{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  background:#eef3ff;
  color:#1b4fa8;
}
.ntt-chatbot-actions{ display:flex; gap:6px; }
.ntt-chatbot-btn{
  width:30px;
  height:30px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  cursor:pointer;
}
.ntt-chatbot-subhead{
  padding:8px 16px;
  font-size:12px;
  color:#55606f;
  border-bottom:1px solid rgba(0,0,0,.06);
  background:#fbfcfe;
}
.ntt-chatbot-messages{
  flex:1;
  overflow:auto;
  padding:14px;
  background:#f4f7fb;
}
.ntt-chatbot-message{ margin-bottom:12px; display:flex; }
.ntt-chatbot-message.user{ justify-content:flex-end; }
.ntt-chatbot-bubble{
  max-width:86%;
  padding:10px 12px;
  border-radius:16px;
  background:#fff;
  color:#1b2430;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  white-space:normal;
  word-break:break-word;
  line-height:1.5;
}
.ntt-chatbot-message.user .ntt-chatbot-bubble{ background:#0d6efd; color:#fff; }
.ntt-chatbot-bubble pre{
  white-space:pre-wrap;
  word-break:break-word;
  background:rgba(0,0,0,.06);
  padding:10px;
  border-radius:10px;
  margin:8px 0;
  overflow:auto;
}
.ntt-chatbot-bubble code{
  background:rgba(0,0,0,.06);
  padding:1px 5px;
  border-radius:6px;
}
.ntt-chatbot-status{ min-height:24px; padding:0 16px 8px; font-size:12px; color:#687588; }
.ntt-chatbot-form{ border-top:1px solid rgba(0,0,0,.06); background:#fff; padding:12px; }
#nttChatbotInput{
  width:100%;
  min-height:72px;
  max-height:190px;
  resize:vertical;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.ntt-chatbot-formbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:8px;
  gap:10px;
}
.ntt-chatbot-tip{ font-size:12px; color:#687588; }
body.darkmode .ntt-chatbot-panel,
body.theme-dark .ntt-chatbot-panel,
html[data-theme='dark'] .ntt-chatbot-panel{
  background:#1f2630;
  color:#e8eef8;
  border-color:rgba(255,255,255,.08);
}
body.darkmode .ntt-chatbot-header,
body.theme-dark .ntt-chatbot-header,
html[data-theme='dark'] .ntt-chatbot-header{
  background:#273142;
  border-color:rgba(255,255,255,.08);
}
body.darkmode .ntt-chatbot-subhead,
body.theme-dark .ntt-chatbot-subhead,
html[data-theme='dark'] .ntt-chatbot-subhead{
  background:#222c39;
  color:#d1d9e6;
  border-color:rgba(255,255,255,.08);
}
body.darkmode .ntt-chatbot-messages,
body.theme-dark .ntt-chatbot-messages,
html[data-theme='dark'] .ntt-chatbot-messages{ background:#17202a; }
body.darkmode .ntt-chatbot-bubble,
body.theme-dark .ntt-chatbot-bubble,
html[data-theme='dark'] .ntt-chatbot-bubble{ background:#283545; color:#edf3fb; }
body.darkmode .ntt-chatbot-message.user .ntt-chatbot-bubble,
body.theme-dark .ntt-chatbot-message.user .ntt-chatbot-bubble,
html[data-theme='dark'] .ntt-chatbot-message.user .ntt-chatbot-bubble{ background:#0d6efd; color:#fff; }
body.darkmode .ntt-chatbot-form,
body.theme-dark .ntt-chatbot-form,
html[data-theme='dark'] .ntt-chatbot-form{ background:#1f2630; border-color:rgba(255,255,255,.08); }
body.darkmode #nttChatbotInput,
body.theme-dark #nttChatbotInput,
html[data-theme='dark'] #nttChatbotInput{ background:#17202a; color:#eef3fb; border-color:rgba(255,255,255,.12); }
@media (max-width: 991px){
  .ntt-chatbot-root{ right:12px; top:58px; }
  .ntt-chatbot-panel{ width:min(400px, calc(100vw - 24px)); }
}
@media (max-width: 768px){
  .ntt-chatbot-root{ right:12px; left:12px; top:auto; bottom:72px; align-items:flex-end; }
  .ntt-chatbot-fab{ margin-left:auto; }
  .ntt-chatbot-panel{
    top:auto;
    bottom:54px;
    width:auto;
    left:0;
    right:0;
    height:min(70vh, 620px);
  }
  .ntt-chatbot-root.is-max .ntt-chatbot-panel{ inset:8px; border-radius:12px; }
}


.me-chatbot-topbtn > a{
  display:flex !important;
  align-items:center;
  gap:6px;
  font-weight:600;
}
.me-chatbot-topbtn > a .fa-comments{ font-size:15px; }
@media (max-width: 768px){
  .ntt-chatbot-root.ntt-chatbot-has-top-trigger .ntt-chatbot-fab{ display:flex; }
  .me-chatbot-topbtn{ display:none !important; }
}

.chatbot-test-result{margin-top:8px;padding:8px 10px;border-radius:6px;display:none;white-space:pre-wrap;word-break:break-word}
.chatbot-test-result.is-loading{display:block;background:#f5f5f5;color:#444}
.chatbot-test-result.is-ok{display:block;background:#eaf8ea;color:#145c2e;border:1px solid #b8e0b8}
.chatbot-test-result.is-err{display:block;background:#fff0f0;color:#a12622;border:1px solid #f0b5b5}
