#njixhost-chat.njc {
  --njc-ink: #191b20;
  --njc-green: #ff7a00;
  --njc-border: #dbe5df;
  position: fixed;
  z-index: 999999;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  color: var(--njc-ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  letter-spacing: normal;
}
#njixhost-chat *, #njixhost-chat *::before, #njixhost-chat *::after { box-sizing: border-box; }
#njixhost-chat [hidden] { display: none !important; }
#njixhost-chat button, #njixhost-chat input, #njixhost-chat textarea { font: inherit; letter-spacing: normal; text-transform: none; }
#njixhost-chat button { cursor: pointer; margin: 0; }
#njixhost-chat button:disabled { opacity: .65; cursor: wait; }
#njixhost-chat :focus-visible { outline: 3px solid #c47d12; outline-offset: 3px; }
#njixhost-chat p { margin: 0; }
#njixhost-chat .njc-launcher, #njixhost-chat .njc-send {
  background: var(--njc-green);
  color: #191b20;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  min-height: 44px;
  font-weight: 600;
}
#njixhost-chat .njc-launcher { display: block; margin-left: auto; box-shadow: 0 6px 24px #142d2526; border-radius: 28px; }
#njixhost-chat .njc-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(740px, calc(100dvh - 112px));
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--njc-border);
  border-radius: 20px;
  box-shadow: 0 12px 48px #12272026;
  overscroll-behavior: contain;
}
#njixhost-chat .njc-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px 20px; background: #fff4e9; }
#njixhost-chat .njc-title { font: inherit; font-weight: 650; font-size: 19px; color: var(--njc-ink); margin: 0; }
#njixhost-chat .njc-close { font-size: 26px; line-height: 1; width: 44px; height: 44px; padding: 8px; color: var(--njc-ink); border: 0; border-radius: 10px; background: transparent; }
#njixhost-chat .njc-intro { padding: 0 20px 16px; background: #fff4e9; font-size: 13px; color: #4d645b; }
#njixhost-chat .njc-messages { flex: 1 1 190px; min-height: 100px; max-height: 320px; overflow-y: auto; padding: 16px; background: #fff; }
#njixhost-chat .njc-empty { padding: 10px 0; color: #5e7169; font-size: 14px; }
#njixhost-chat .njc-message { padding: 10px 12px; margin-bottom: 12px; width: fit-content; max-width: 90%; border-radius: 13px; background: #f0f4f1; overflow-wrap: anywhere; }
#njixhost-chat .njc-message--visitor { margin-left: auto; background: #fff0df; }
#njixhost-chat .njc-sender { display: block; font-size: 11px; font-weight: 700; margin-bottom: 3px; }
#njixhost-chat .njc-message-body { white-space: pre-wrap; }
#njixhost-chat .njc-time { display: block; font-size: 10px; margin-top: 5px; color: #496458; }
#njixhost-chat .njc-status { padding: 0 20px; color: #325b47; font-size: 12px; }
#njixhost-chat .njc-status:empty { display: none; }
#njixhost-chat .njc-error { padding: 10px 12px; margin: 10px 16px 0; border: 1px solid #e5b4ac; border-radius: 8px; background: #fff3ee; color: #802b23; font-size: 13px; }
#njixhost-chat .njc-retry { border: 0; padding: 8px 0; min-height: 44px; background: transparent; color: #802b23; font-weight: 700; text-decoration: underline; }
#njixhost-chat .njc-form { padding: 12px 20px 8px; }
#njixhost-chat .njc-details { border: 0; margin: 0; padding: 0; min-width: 0; }
#njixhost-chat .njc-legend { width: 1px; height: 1px; overflow: hidden; position: absolute; clip-path: inset(50%); white-space: nowrap; }
#njixhost-chat .njc-label { display: block; font-weight: 600; font-size: 12px; margin: 0 0 10px; color: var(--njc-ink); }
#njixhost-chat .njc-input { display: block; width: 100%; max-width: 100%; border: 1px solid var(--njc-border); border-radius: 8px; padding: 9px 10px; margin: 4px 0 0; min-height: 44px; background: #fff; color: var(--njc-ink); font-size: 16px; font-weight: 400; box-shadow: none; }
#njixhost-chat .njc-body { resize: vertical; min-height: 82px; max-height: 160px; }
#njixhost-chat .njc-send { width: 100%; }
#njixhost-chat .njc-hint { font-size: 10px; color: #5e7169; margin-top: 7px; }
#njixhost-chat .njc-footer { text-align: center; font-size: 10px; color: #5e7169; padding: 2px 16px 12px; }
@media (max-width: 480px) {
  #njixhost-chat.njc { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  #njixhost-chat .njc-panel { max-height: calc(100dvh - 100px); }
  #njixhost-chat .njc-hint { display: none; }
}

#njixhost-chat .njc-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; margin: 8px 0 12px; }
#njixhost-chat .njc-consent input { min-width: 18px; width: 18px; height: 18px; margin: 0; }
#njixhost-chat .njc-privacy { display: block; font-size: 10px; line-height: 1.5; color: #636d7a; margin-top: 12px; }
