#num-public-chat {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  z-index: 12000;
  font-family: Poppins, Arial, sans-serif;
  color: #20314a;
}

#num-public-chat *,
#num-public-chat *::before,
#num-public-chat *::after { box-sizing: border-box; }

#num-public-chat button,
#num-public-chat textarea { font: inherit; }

#num-public-chat .num-chat-launcher {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce4eb;
  border-radius: 50%;
  background: #fff;
  color: #294465;
  box-shadow: 0 8px 26px rgba(18, 36, 59, .18);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#num-public-chat .num-chat-launcher:hover {
  transform: scale(1.06);
  border-color: #b6c5d5;
  box-shadow: 0 11px 30px rgba(18, 36, 59, .22);
}

#num-public-chat .num-chat-launcher-bruna {
  position: absolute;
  left: -27px;
  top: -11px;
  width: 100px;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
#num-public-chat .num-chat-launcher-star {
  position: absolute;
  z-index: 2;
  right: -5px;
  top: -5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #eadcc9;
  border-radius: 50%;
  background: #fff;
  color: #a47b4e;
  box-shadow: 0 2px 7px rgba(18, 36, 59, .12);
  pointer-events: none;
}
#num-public-chat .num-chat-launcher-star svg { width: 9px; height: 9px; }
#num-public-chat .num-chat-nudge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: min(220px, calc(100vw - 24px));
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #e5e9ed;
  border-radius: 10px;
  background: #fff;
  color: #243a55;
  box-shadow: 0 5px 15px rgba(18, 36, 59, .11);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
#num-public-chat .num-chat-nudge[hidden] { display: none; }
#num-public-chat .num-chat-nudge:not([hidden]) { animation: num-chat-nudge-cycle 7s ease both; }
#num-public-chat .num-chat-nudge svg { flex: none; width: 15px; height: 15px; color: #a47b4e; }
#num-public-chat .num-chat-nudge-text { min-width: 0; }
#num-public-chat .num-chat-nudge:hover { border-color: #c7d1db; }
#num-public-chat.num-chat-dragging .num-chat-launcher { cursor: grabbing; transition: none; }
#num-public-chat.num-chat-open .num-chat-nudge { display: none; }

#num-public-chat .num-chat-panel {
  position: absolute;
  left: var(--num-chat-panel-left, 0px);
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  width: var(--num-chat-panel-width, min(406px, calc(100vw - 24px)));
  height: var(--num-chat-panel-height, min(520px, calc(100dvh - 88px)));
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dededb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(16, 34, 57, .24);
  animation: num-chat-enter .22s ease-out;
}

#num-public-chat .num-chat-panel.num-chat-panel-below { top: calc(100% + 10px); bottom: auto; }

#num-public-chat .num-chat-panel[hidden] { display: none; }

#num-public-chat .num-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 68px;
  padding: 12px 18px 11px 21px;
  border-bottom: 1px solid #e9edf1;
  background: #fff;
}

#num-public-chat .num-chat-heading,
#num-public-chat .num-chat-header-actions { display: flex; align-items: center; }
#num-public-chat .num-chat-heading { min-width: 0; }
#num-public-chat .num-chat-kicker {
  display: block;
  margin-bottom: 3px;
  color: #8a7658;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}
#num-public-chat h2 {
  margin: 0;
  color: #1c3049;
  font: 500 21px/1.2 Georgia, serif;
}
#num-public-chat .num-chat-header-actions { gap: 3px; }
#num-public-chat .num-chat-header-actions button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #6b7785;
  cursor: pointer;
}
#num-public-chat .num-chat-header-actions svg { display: block; width: 17px; height: 17px; }
#num-public-chat .num-chat-header-actions button:hover {
  border-color: #e7e4df;
  background: #faf8f4;
  color: #1c3049;
}

#num-public-chat .num-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 19px 21px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #cbc8c2 transparent;
}

#num-public-chat .num-chat-message {
  width: 100%;
  max-width: 100%;
  margin: 0 0 19px;
  padding: 0;
  border: 0;
  background: transparent;
}
#num-public-chat .num-chat-message-user {
  width: fit-content;
  max-width: 85%;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid #e7ebef;
  border-radius: 16px 16px 4px 16px;
  background: #f4f6f8;
  color: #263a55;
}
#num-public-chat .num-chat-message p {
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#num-public-chat .num-chat-copy p + p { margin-top: 10px; }
#num-public-chat .num-chat-copy h3 {
  margin: 13px 0 5px;
  color: #1c3049;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
#num-public-chat .num-chat-copy h3:first-child { margin-top: 0; }
#num-public-chat .num-chat-copy strong { font-weight: 600; }
#num-public-chat .num-chat-copy ul,
#num-public-chat .num-chat-copy ol {
  margin: 9px 0 2px;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#num-public-chat .num-chat-copy ul { list-style-type: disc; }
#num-public-chat .num-chat-copy li { padding-left: 2px; }
#num-public-chat .num-chat-copy li + li { margin-top: 7px; }
#num-public-chat .num-chat-copy li::marker { color: #9d8051; font-weight: 600; }
#num-public-chat .num-chat-copy ul + p,
#num-public-chat .num-chat-copy ol + p { margin-top: 10px; }
#num-public-chat .num-chat-copy .num-chat-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
}
#num-public-chat .num-chat-choice-list li,
#num-public-chat .num-chat-choice-list li + li { min-width: 0; margin: 0; padding: 0; }
#num-public-chat .num-chat-choice {
  width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #263a55;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
#num-public-chat .num-chat-choice:hover {
  border-color: #a9b8c8;
  background: #f0f4f8;
}
#num-public-chat .num-chat-sending .num-chat-choice { opacity: .55; pointer-events: none; }
#num-public-chat:not(.num-chat-has-messages) .num-chat-message-assistant p {
  color: #405068;
  font: 17px/1.55 Georgia, serif;
}

#num-public-chat .num-chat-properties {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
#num-public-chat .num-chat-property {
  display: flex;
  align-items: stretch;
  min-height: 76px;
  overflow: hidden;
  border: 1px solid #e6e3de;
  border-radius: 9px;
  background: #fff;
  color: #20314a;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
#num-public-chat .num-chat-property:hover {
  border-color: #b59b71;
  transform: translateY(-1px);
}
#num-public-chat .num-chat-property img {
  flex: none;
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: #edeae5;
}
#num-public-chat .num-chat-property-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 11px;
  font-size: 11px;
  line-height: 1.4;
}
#num-public-chat .num-chat-property-details strong {
  color: #1c3049;
  font-size: 12px;
  font-weight: 600;
}
#num-public-chat .num-chat-property-details > span:not(.num-chat-property-action) {
  color: #596577;
}
#num-public-chat .num-chat-property-action {
  margin-top: 5px;
  color: #977849;
  font-weight: 600;
}

#num-public-chat .num-chat-status {
  min-height: 0;
  margin: 0;
  padding: 0 15px;
  color: #82643b;
  background: #fff;
  font-size: 11px;
  line-height: 1.4;
}
#num-public-chat .num-chat-status:not(:empty) { padding: 8px 15px 0; }
#num-public-chat .num-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 12px 14px 14px;
  padding: 6px 6px 6px 15px;
  border: 1px solid #e4e7eb;
  border-radius: 17px;
  background: #f8f9fa;
  transition: border-color .18s ease, background-color .18s ease;
}
#num-public-chat .num-chat-form:focus-within {
  border-color: #bdc8d4;
  background: #fff;
}
#num-public-chat textarea {
  flex: 1;
  width: 100%;
  max-height: 96px;
  min-height: 34px;
  resize: none;
  padding: 7px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #20314a;
  font-size: 13px;
  line-height: 1.45;
}
#num-public-chat textarea::placeholder { color: #8e98a4; }
#num-public-chat .num-chat-form textarea:focus,
#num-public-chat .num-chat-form textarea:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
#num-public-chat .num-chat-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #20344f;
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
#num-public-chat .num-chat-send svg { display: block; width: 19px; height: 19px; }
#num-public-chat .num-chat-send:hover { background: #2d4b6d; transform: translateY(-1px); }
#num-public-chat .num-chat-send:active { transform: translateY(0); }
#num-public-chat .num-chat-send:focus-visible { outline: 2px solid #8da0b6; outline-offset: 2px; }
#num-public-chat button:disabled { opacity: .5; cursor: not-allowed; }
#num-public-chat .num-chat-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#num-public-chat :focus-visible { outline: 2px solid #8da0b6; outline-offset: 2px; }

@keyframes num-chat-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes num-chat-nudge-cycle {
  0% { opacity: 0; transform: translateY(5px); }
  10%, 85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-3px); }
}

@media (max-width: 600px) {
  #num-public-chat {
    left: 12px;
    bottom: 12px;
  }
  #num-public-chat textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #num-public-chat .num-chat-panel { animation: none; }
  #num-public-chat .num-chat-nudge:not([hidden]) { animation: none; }
  #num-public-chat .num-chat-launcher,
  #num-public-chat .num-chat-property { transition: none; }
}
