.chat-launcher,
.chat-panel {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  text-align: left;
  color: #040708;
}
.chat-launcher *,
.chat-panel * { box-sizing: border-box; }
.chat-launcher {
  position: fixed;
  z-index: 90;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 21px;
  border: 1px solid #25292a;
  border-radius: 100px;
  background: #040708;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 24px #04070826;
  transition: transform .2s, box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 10px 28px #04070833; }
.chat-launcher > svg { width: 23px; height: 23px; color: #fdb015; }
.chat-launcher[aria-expanded="true"] { visibility: hidden; }
.chat-is-open { overflow: hidden; }
.chat-panel {
  position: fixed;
  inset: auto 28px 28px auto;
  margin: 0;
  width: 420px;
  height: 650px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 56px);
  padding: 0;
  border: 1px solid #d9d9d2;
  border-radius: 18px;
  background: #f8f8f5;
  box-shadow: 0 28px 100px #0407084d;
  overflow: hidden;
}
.chat-panel[open] { display: flex; flex-direction: column; }
.chat-panel::backdrop { background: #04070826; backdrop-filter: blur(2px); }
.chat-panel [hidden] { display: none !important; }
.chat-panel h2,
.chat-panel h3,
.chat-panel p { margin: 0; }
.chat-panel h2,
.chat-panel h3 { font-family: inherit; font-weight: 500; color: inherit; }
.chat-panel button,
.chat-panel input,
.chat-panel textarea,
.chat-panel a {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}
.chat-panel button { cursor: pointer; text-transform: none; }
.chat-panel button:disabled { cursor: wait; opacity: .55; }
.chat-panel :focus-visible,
.chat-launcher:focus-visible { outline: 3px solid #b16e00; outline-offset: 3px; }
.chat-header {
  display: flex;
  align-items: center;
  flex: none;
  gap: 12px;
  padding: 20px 16px 20px 22px;
  border-bottom: 1px solid #dcdcd5;
  background: #fff;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #fdb015;
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-heading-group { flex: 1; min-width: 0; }
.chat-header h2 { font-size: 15px; letter-spacing: -.3px; line-height: 1.4; }
.chat-mode { display: flex; align-items: center; gap: 6px; padding-top: 3px; font-size: 12px; color: #4b534c; }
.chat-mode::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #b57400; }
.chat-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #040708;
  background: transparent;
}
.chat-icon-button:hover { background: #f0f0eb; }
.chat-icon-button svg { width: 19px; height: 19px; }
.chat-conversation { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.chat-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-height: 100px;
  padding: 24px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.chat-message { flex: none; max-width: 94%; }
.chat-message-label { display: block; padding-bottom: 6px; font-size: 12px; font-weight: 600; color: #4b534c; }
.chat-message > p { padding: 15px 16px; border: 1px solid #d2d5cd; border-radius: 0 13px 13px 13px; background: #fff; font-size: 15px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.chat-message-user { align-self: flex-end; }
.chat-message-user .chat-message-label { text-align: right; }
.chat-message-user > p { border: none; border-radius: 13px 0 13px 13px; background: #ecece5; }
.chat-message-links { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 5px; }
.chat-message-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #040708; font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.chat-message-links svg { width: 14px; height: 14px; }
.chat-prompts { display: flex; flex: none; gap: 6px; padding: 0 22px 12px; }
.chat-prompts button { min-height: 44px; flex: 1 1 85px; padding: 8px 9px; border: 1px solid #c5c9bf; border-radius: 8px; background: #fff; color: #30332f; font-size: 12px; font-weight: 500; white-space: normal; }
.chat-prompts button:hover { border-color: #a27622; background: #fff6e4; }
.chat-team-button { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 44px; margin: 0 22px 12px; padding: 0 2px; border: 0; border-bottom: 1px solid #dcdcd5; background: transparent; color: #040708; font-size: 12px !important; font-weight: 500; }
.chat-team-button:hover { color: #895600; }
.chat-team-button svg { height: 16px; width: 16px; }
.chat-composer { position: relative; display: flex; align-items: center; flex: none; gap: 8px; margin: 0 22px; padding: 5px; border: 1px solid #cfcfc6; border-radius: 10px; background: #fff; }
.chat-input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 7px; border: 0; border-radius: 5px; background: #fff; color: #040708; font-size: 16px !important; }
.chat-input::placeholder { color: #50594d; }
.chat-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: #fdb015; color: #040708; }
.chat-send:hover { background: #f0a003; }
.chat-send svg { width: 21px; height: 21px; }
.chat-privacy { flex: none; padding: 11px 22px 17px; color: #4c544a; font-size: 12px; line-height: 1.55; }
.chat-lead-view { padding: 18px 24px 26px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.chat-back { min-height: 44px; margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: #5d635a; font-size: 12px !important; }
.chat-back:hover { color: #040708; text-decoration: underline; text-underline-offset: 4px; }
.chat-lead-view h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.6px; }
.chat-lead-intro { padding: 12px 0 20px; color: #666b61; font-size: 13px; line-height: 1.6; }
.chat-lead-form { display: flex; flex-direction: column; }
.chat-lead-form label { margin: 0 0 6px; font-size: 12px; font-weight: 500; }
.chat-lead-form input,
.chat-lead-form textarea { width: 100%; min-height: 44px; margin: 0 0 15px; padding: 10px 12px; border: 1px solid #cccfc4; border-radius: 6px; background: #fff; color: #040708; font-size: 14px; }
.chat-lead-form textarea { resize: vertical; }
.chat-lead-note { color: #454d43; font-size: 12px; line-height: 1.55; padding-bottom: 17px; }
.chat-lead-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 6px; background: #fdb015; color: #040708; font-size: 13px !important; font-weight: 500; }
.chat-lead-submit:hover { background: #f0a003; }
.chat-lead-submit svg { width: 18px; height: 18px; }
.chat-lead-status { color: #444b3e; font-size: 12px; line-height: 1.6; padding-top: 12px; overflow-wrap: anywhere; }
.chat-email-draft { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; padding: 10px 15px; border: 1px solid #040708; border-radius: 6px; color: #fff; background: #040708; text-decoration: none; font-weight: 500; }
.chat-direct { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: #52584d; font-size: 12px !important; text-decoration: underline; text-underline-offset: 4px; }
.chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .chat-launcher { right: 17px; bottom: max(18px, env(safe-area-inset-bottom)); width: 56px; justify-content: center; padding: 0; }
  .chat-launcher-label { display: none; }
  .chat-panel { inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; width: auto; max-width: none; height: 640px; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); border-radius: 14px; }
  .chat-header { padding: 15px 10px 15px 16px; gap: 10px; }
  .chat-header h2 { font-size: 14px; }
  .chat-avatar { width: 34px; height: 34px; }
  .chat-log { padding: 20px 16px; }
  .chat-prompts { padding: 0 16px 10px; gap: 5px; }
  .chat-prompts { flex-wrap: wrap; }
  .chat-prompts button { padding: 7px 6px; font-size: 12px; }
  .chat-team-button { margin: 0 16px 10px; }
  .chat-composer { margin: 0 16px; }
  .chat-input { font-size: 16px !important; }
  .chat-privacy { padding: 10px 16px 15px; }
  .chat-lead-view { padding: 14px 20px 24px; }
  .chat-lead-form input,
  .chat-lead-form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher { transition: none; }
  .chat-log { scroll-behavior: auto; }
}
