.lt-chat {
  --chat-accent: #f28b8e;
  --chat-dark: #42171a;
  --chat-gap: max(16px, env(safe-area-inset-bottom, 0px));
  font: 15px/1.45 "DM Sans", system-ui, sans-serif;
  color: #1c2930;
}
.lt-chat *, .lt-chat *::before, .lt-chat *::after { box-sizing: border-box; }
.lt-chat button, .lt-chat textarea, .lt-chat input { font: inherit; }
.lt-chat button { cursor: pointer; }
.lt-chat-launch {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: var(--chat-gap);
  z-index: 1200; min-height: 48px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 9px;
  border: 0; border-radius: 999px; background: var(--chat-accent); color: var(--chat-dark);
  box-shadow: 0 6px 20px #681b2540; font-weight: 700 !important;
}
.lt-chat-icon {
  position: relative; width: 22px; height: 20px; border-radius: 50%;
  background: var(--chat-dark); flex: 0 0 auto;
}
.lt-chat-icon::before {
  content: ""; position: absolute; left: 3px; bottom: -2px;
  border: 4px solid transparent; border-left-color: var(--chat-dark); transform: rotate(18deg);
}
.lt-chat-icon::after {
  content: ""; position: absolute; left: 6px; top: 7px;
  width: 10px; height: 2px; border-radius: 4px; background: var(--chat-accent);
  box-shadow: 0 4px var(--chat-accent);
}
.lt-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #6c5860; flex: 0 0 auto; }
.lt-chat.is-online .lt-chat-dot { background: #16643d; }
.lt-chat-panel {
  position: fixed; inset: auto max(16px, env(safe-area-inset-right, 0px)) calc(var(--chat-gap) + 60px) auto;
  z-index: 1199; margin: 0; padding: 0;
  width: min(385px, calc(100vw - 32px)); height: min(525px, calc(100dvh - 100px));
  border: 1px solid #ead6d7; border-radius: 21px; background: #fff; color: #1c2930;
  overflow: hidden; box-shadow: 0 14px 55px #45121b36;
}
.lt-chat-panel[open] { display: flex; flex-direction: column; }
.lt-chat-header {
  position: static !important; display: flex !important; align-items: center; gap: 12px;
  height: auto !important; min-height: 0 !important; flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-start;
  margin: 0 !important; padding: 15px 16px !important; background: var(--chat-accent) !important;
  border: 0 !important; color: var(--chat-dark) !important;
}
.lt-chat-header img { border-radius: 8px; object-fit: cover; }
.lt-chat-header h2 { font: 700 16px/1.25 "DM Sans", system-ui, sans-serif !important; margin: 0 0 4px !important; color: var(--chat-dark) !important; }
.lt-chat-availability { display: flex; align-items: center; gap: 6px; margin: 0 !important; font-size: 12px; color: var(--chat-dark); }
.lt-chat-close { margin-left: auto; align-self: flex-start; color: var(--chat-dark); background: transparent; border: 0; font-size: 25px !important; padding: 0 3px; line-height: 1.1; }
.lt-chat-thread { min-height: 90px; flex: 1; overflow-y: auto; background: #f9eeef; padding: 14px; }
.lt-chat-history { display: grid; gap: 8px; }
.lt-chat-message { max-width: 87%; justify-self: start; margin: 0; padding: 9px 12px; border-radius: 3px 15px 15px 15px; background: #fff; overflow-wrap: anywhere; }
.lt-chat-message.from-client { justify-self: end; border-radius: 15px 3px 15px 15px; background: #fadddf; }
.lt-chat-message p { margin: 2px 0 0; white-space: pre-wrap; }
.lt-chat-message time { color: #704d50; font-size: 11px; }
.lt-chat-downloads { display: grid; gap: 3px; padding: 4px; }
.lt-chat-downloads a, .lt-chat-help { color: #8c2e35; text-decoration: underline; overflow-wrap: anywhere; }
.lt-chat-compose { margin: 0; padding: 10px 12px; display: grid; gap: 7px; background: #fff; }
.lt-chat-entry { display: flex; gap: 6px; align-items: center; }
.lt-chat-entry textarea, .lt-chat-email input {
  width: 100%; min-width: 0; border: 1px solid #e3c9cc; border-radius: 8px;
  color: #1c2930; background: white; padding: 7px 9px;
}
.lt-chat-entry textarea { resize: vertical; min-height: 43px; max-height: 95px; }
.lt-chat-email { display: grid; gap: 3px; font-size: 12px; }
.lt-chat-email[hidden] { display: none; }
.lt-chat-attachment, .lt-chat-send {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px;
  border: 0; border-radius: 8px; cursor: pointer;
}
.lt-chat-attachment { background: #f9eeef; color: var(--chat-dark); }
.lt-chat-send { background: var(--chat-accent); color: var(--chat-dark); }
.lt-chat-send:disabled { opacity: .6; }
.lt-chat-feedback, .lt-chat-files-selected { font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.lt-chat-feedback:empty { display: none; }
.lt-chat-help { font-size: 12px; justify-self: start; }
.lt-chat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lt-chat :focus-visible, .lt-chat-attachment:focus-within { outline: 2px solid #f0a744; outline-offset: 2px; }
@media(max-width:520px) {
  .lt-chat-panel { inset-inline: 10px; width: auto; height: min(510px, calc(100dvh - 90px)); }
  .lt-chat-launch { min-height: 44px; }
}
