.np-chat-widget {
  --np-chat-green: #16c784;
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 78px;
  font-family: inherit;
}
.np-chat-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #12c982, #0b9f6b);
  box-shadow: 0 12px 30px rgba(4, 27, 20, .3);
  color: #06251a;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.np-chat-launcher-icon { font-size: 21px; }
.np-chat-panel {
  box-sizing: border-box;
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 28px));
  height: min(560px, calc(100dvh - 110px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: #101c27;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .42);
  color: #edf7f2;
}
.np-chat-panel[hidden], .np-chat-launcher[hidden] { display: none; }
.np-chat-widget [hidden] { display: none !important; }
.np-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #102d25;
}
.np-chat-head-copy { min-width: 0; }
.np-chat-head strong { display: block; font-size: 16px; }
.np-chat-head small { display: block; margin-top: 4px; color: #b3d5c8; font-size: 12px; }
.np-chat-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: inherit;
  cursor: pointer;
  font-size: 21px;
}
.np-chat-status {
  min-height: 20px;
  padding: 7px 14px 0;
  color: #ffcc82;
  font-size: 12px;
}
.np-chat-start, .np-chat-compose { display: grid; gap: 10px; padding: 14px; }
.np-chat-start { margin: auto 0; }
.np-chat-start p { margin: 0 0 5px; color: #c3d0d7; font-size: 14px; line-height: 1.5; }
.np-chat-start input, .np-chat-compose textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #314451;
  border-radius: 11px;
  outline: none;
  background: #172632;
  color: #f1f7fa;
  font: inherit;
}
.np-chat-start input { min-height: 46px; padding: 0 12px; }
.np-chat-start input:focus, .np-chat-compose textarea:focus { border-color: var(--np-chat-green); }
.np-chat-start button, .np-chat-compose button {
  min-height: 45px;
  border: 0;
  border-radius: 11px;
  background: var(--np-chat-green);
  color: #06251a;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.np-chat-start button:disabled, .np-chat-compose button:disabled { cursor: wait; opacity: .65; }
.np-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 15px 12px;
  background: radial-gradient(ellipse at top, rgba(27, 75, 61, .2), transparent 55%);
}
.np-chat-load-older {
  align-self: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #d7e7e1;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.np-chat-message {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #22313b;
  color: #edf7f2;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.np-chat-message.customer { align-self: flex-end; border-bottom-right-radius: 4px; background: #087d5b; }
.np-chat-message.admin { align-self: flex-start; border-bottom-left-radius: 4px; }
.np-chat-message a { color: #aaf0d4; text-decoration: underline; overflow-wrap: anywhere; }
.np-chat-message time { display: block; margin-top: 5px; color: rgba(255,255,255,.68); font-size: 10px; text-align: right; }
.np-chat-attachment { display: block; max-width: min(100%, 280px); max-height: 240px; margin-top: 7px; border-radius: 8px; }
.np-chat-file-link { display: block; margin-top: 7px; color: #aaf0d4; }
.np-chat-compose { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.np-chat-compose textarea { min-height: 46px; max-height: 120px; overflow-y: hidden; resize: none; padding: 11px; scrollbar-width: none; }
.np-chat-compose textarea::-webkit-scrollbar { display: none; }
.np-chat-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.np-chat-compose button[type="submit"] { display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; min-height: 36px; padding: 0; border-radius: 50%; box-shadow: 0 4px 12px rgba(22,199,132,.16); }
.np-chat-compose button[type="submit"] svg { width: 16px; height: 16px; }
.np-chat-privacy { margin: 0; padding: 0 14px 13px; color: #96aab5; font-size: 11px; }
@media (max-width: 520px) {
  .np-chat-widget { right: 12px; bottom: 72px; }
  .np-chat-panel { position: fixed; right: 12px; bottom: 72px; left: 12px; width: auto; max-width: none; height: min(600px, calc(100dvh - 92px)); }
  .np-chat-launcher { min-height: 50px; padding: 0 15px; }
  .np-chat-compose { gap: 7px; padding: 10px 12px; }
  .np-chat-compose textarea { padding: 10px; }
}
