/* NEX BACKOFFICE Chatbot Widget */
#nb-launcher {
  position: fixed;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #042C53;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(4,44,83,.35);
  z-index: 999999;
  transition: transform .2s, background .2s;
  font-family: 'DM Sans', sans-serif;
}
#nb-launcher:hover { transform: scale(1.08); }
#nb-launcher svg { width: 26px; height: 26px; fill: #B5D4F4; }
#nb-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: #D85A30;
  border-radius: 50%;
  font-size: 10px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
}
#nb-chatbox {
  position: fixed;
  bottom: 100px;
  width: 370px;
  max-height: 580px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(4,44,83,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999998;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  font-family: 'DM Sans', sans-serif;
}
#nb-chatbox.nb-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
#nb-hdr {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nb-hlogo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(181,212,244,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500;
  color: #B5D4F4;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.nb-hname { font-size: 14px; font-weight: 500; color: #E6F1FB; }
.nb-hstatus { font-size: 11px; color: #85B7EB; display: flex; align-items: center; gap: 4px; }
.nb-hstatus::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #639922;
  display: inline-block;
}
#nb-hclose {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #B5D4F4; font-size: 16px;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}
#nb-hclose:hover { background: rgba(255,255,255,.2); }
#nb-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
#nb-msgs::-webkit-scrollbar { width: 4px; }
#nb-msgs::-webkit-scrollbar-thumb { background: #dde3ea; border-radius: 4px; }
.nb-mrow { display: flex; gap: 8px; align-items: flex-end; }
.nb-mrow.nb-bot { align-self: flex-start; max-width: 92%; }
.nb-mrow.nb-usr { align-self: flex-end; max-width: 80%; flex-direction: row-reverse; }
.nb-bub {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-line;
}
.nb-mrow.nb-bot .nb-bub {
  background: #f0f4f8;
  color: #1a2a3a;
  border-bottom-left-radius: 4px;
}
.nb-mrow.nb-usr .nb-bub {
  background: #042C53;
  color: #E6F1FB;
  border-bottom-right-radius: 4px;
}
.nb-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #042C53;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 500;
  color: #B5D4F4;
  flex-shrink: 0;
}
.nb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; margin-top: 2px; }
.nb-chip {
  padding: 5px 12px;
  border: 1px solid #cdd8e3;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  color: #042C53;
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
}
.nb-chip:hover { background: #042C53; color: #E6F1FB; border-color: #042C53; }
.nb-typing {
  display: flex; gap: 4px;
  padding: 11px 14px;
  background: #f0f4f8;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.nb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8a9ab0;
  animation: nb-bl 1.2s infinite;
}
.nb-dot:nth-child(2){animation-delay:.2s}
.nb-dot:nth-child(3){animation-delay:.4s}
@keyframes nb-bl{0%,80%,100%{opacity:.2}40%{opacity:1}}
.nb-lform {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  padding: 14px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nb-flabel { font-size: 10px; color: #6b7a8d; text-transform: uppercase; letter-spacing: .6px; }
.nb-lform input, .nb-lform select {
  border: 1px solid #cdd8e3;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: #1a2a3a;
  outline: none;
  width: 100%;
  background: #f8fafc;
}
.nb-lform input:focus, .nb-lform select:focus { border-color: #185FA5; background: #fff; }
.nb-lform select { color: #6b7a8d; }
.nb-lform select option { color: #1a2a3a; }
.nb-fsbtn {
  padding: 10px;
  background: #042C53;
  color: #E6F1FB;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  width: 100%;
  letter-spacing: .3px;
  transition: background .15s;
}
.nb-fsbtn:hover { background: #185FA5; }
#nb-irow {
  padding: 10px 12px;
  border-top: 1px solid #edf0f4;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #fff;
}
#nb-uinp {
  flex: 1;
  border: 1px solid #cdd8e3;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  color: #1a2a3a;
  resize: none;
  outline: none;
  line-height: 1.4;
  background: #f8fafc;
}
#nb-uinp:focus { border-color: #185FA5; background: #fff; }
#nb-sbtn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #042C53;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
#nb-sbtn:hover { background: #185FA5; }
#nb-sbtn svg { width: 15px; height: 15px; fill: #B5D4F4; }
#nb-poweredby {
  text-align: center;
  font-size: 10px;
  color: #aab3be;
  padding: 5px 0 7px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
}
#nb-poweredby a { color: #185FA5; text-decoration: none; }

@media (max-width: 420px) {
  #nb-chatbox { right: 0 !important; left: 0 !important; bottom: 0; width: 100vw; max-height: 100vh; border-radius: 18px 18px 0 0; }
  #nb-launcher { bottom: 18px; }
}
