/* Chat with Daniela (daniela-chat-1.css)
   The panel skin for the Blue Ridge site chat, in the site's own
   cream / burnt-orange system (colors ride the site's CSS
   variables, so the panel follows the site's light/dark scheme).
   The bubble is the site's .chat-fab pill — its base styles live
   in the site's stylesheet; the copy below keeps the button
   correct on any page that loads this file without them. */

.chat-fab{position:fixed;right:18px;bottom:22px;z-index:60;background:var(--accent,#bc5a1e);color:#fff;border:0;border-radius:999px;padding:14px 22px;font:inherit;font-weight:700;font-size:15.5px;cursor:pointer;display:flex;gap:9px;align-items:center;text-decoration:none;box-shadow:0 10px 28px rgba(26,23,18,.30)}
.chat-fab:hover{background:var(--accent-strong,#96440f)}
@media (max-width:760px){.chat-fab{bottom:86px;right:14px;padding:12px 18px}}

.daniela-panel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 99990;
  width: 380px;
  max-width: calc(100vw - 24px);
  height: 560px;
  max-height: calc(100dvh - 130px);
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #ddd2bd);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(26, 23, 18, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink, #1a1712);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.daniela-panel[hidden] { display: none; }

.daniela-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line, #ddd2bd);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.daniela-head-text { flex: 1 1 auto; min-width: 0; }
.daniela-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.daniela-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.72;
}
.daniela-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 8px;
}
.daniela-close:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }

.daniela-msgs {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.daniela-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.daniela-msg.daniela-bot {
  align-self: flex-start;
  background: var(--bg-soft, #f3ecdd);
  border: 1px solid var(--line, #ddd2bd);
  border-bottom-left-radius: 4px;
}
.daniela-msg.daniela-user {
  align-self: flex-end;
  background: var(--accent-soft, #f7e8d8);
  border: 1px solid var(--accent, #bc5a1e);
  border-bottom-right-radius: 4px;
}
.daniela-msg a {
  color: var(--accent, #bc5a1e);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.daniela-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.daniela-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #bc5a1e); opacity: 0.35;
  animation: daniela-blink 1.2s infinite;
}
.daniela-typing span:nth-child(2) { animation-delay: 0.2s; }
.daniela-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes daniela-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.daniela-escalation {
  padding: 9px 14px;
  border-top: 1px solid var(--line, #ddd2bd);
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.95;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.daniela-escalation a {
  color: var(--accent, #bc5a1e);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.daniela-escalation a:hover { text-decoration: underline; text-underline-offset: 2px; }

.daniela-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line, #ddd2bd);
}
.daniela-input {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg, #faf6ef);
  border: 1px solid var(--line, #ddd2bd);
  border-radius: 999px;
  color: var(--ink, #1a1712);
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
}
.daniela-input:focus { border-color: var(--accent, #bc5a1e); }
.daniela-input::placeholder { opacity: 0.55; }
.daniela-send {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #bc5a1e);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  flex: 0 0 auto;
}
.daniela-send:hover { background: var(--accent-strong, #96440f); }
.daniela-send:disabled { opacity: 0.55; cursor: default; }

.daniela-attribution {
  padding: 6px 14px 8px;
  border-top: 1px solid var(--line, #ddd2bd);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0.55;
}

@media (max-width: 760px) {
  .daniela-panel {
    right: 12px;
    bottom: 148px;
    height: 58dvh;
    max-height: calc(100dvh - 176px);
  }
}
