/* ============================================================
   Owl's Nest — concierge chat widget
   ============================================================ */
.bot-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 1500;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green, #55614F); color: #fff;
  border: none; border-radius: 999px; cursor: pointer;
  padding: 13px 20px 13px 16px; font-family: var(--sans, sans-serif);
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 8px 26px rgba(43,43,40,.24); transition: transform .15s ease, background .15s ease;
}
.bot-launch:hover { background: var(--green-deep, #444e3f); transform: translateY(-1px); }
.bot-launch svg { width: 22px; height: 22px; flex: none; }
.bot-launch.hide { display: none; }

.bot-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 1600;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 40px);
  display: none; flex-direction: column; overflow: hidden;
  background: var(--parchment, #F7F3E8); border: 1px solid var(--line, #e2ddd0);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(43,43,40,.30);
}
.bot-panel.open { display: flex; }

.bot-head {
  display: flex; align-items: center; gap: 11px;
  background: var(--green, #55614F); color: #fff; padding: 14px 16px;
}
.bot-head .bot-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.14); display: grid; place-items: center; }
.bot-head .bot-avatar svg { width: 20px; height: 20px; }
.bot-head h3 { font-family: var(--sans, sans-serif); font-size: 15px; font-weight: 700; margin: 0; line-height: 1.2; }
.bot-head p { margin: 2px 0 0; font-size: 12px; color: rgba(255,255,255,.8); }
.bot-close { margin-left: auto; background: none; border: none; color: #fff; cursor: pointer;
  padding: 6px; border-radius: 8px; line-height: 0; }
.bot-close:hover { background: rgba(255,255,255,.14); }
.bot-close svg { width: 20px; height: 20px; }

.bot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bot-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.bot-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line, #e2ddd0); color: var(--charcoal, #2b2b28); border-bottom-left-radius: 5px; }
.bot-msg.me  { align-self: flex-end; background: var(--green, #55614F); color: #fff; border-bottom-right-radius: 5px; }
.bot-msg a { color: var(--gold-ink, #806232); text-decoration: underline; }
.bot-msg.me a { color: #fff; }

.bot-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line, #e2ddd0); border-radius: 14px; border-bottom-left-radius: 5px; }
.bot-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--stone, #8a8578); opacity: .5; animation: botblink 1.2s infinite both; }
.bot-typing span:nth-child(2) { animation-delay: .2s; }
.bot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes botblink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.bot-suggest { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.bot-suggest button {
  background: #fff; border: 1px solid var(--line, #e2ddd0); color: var(--green-deep, #444e3f);
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-family: var(--sans, sans-serif);
  cursor: pointer; transition: background .12s ease, border-color .12s ease;
}
.bot-suggest button:hover { background: var(--parchment-2, #efe9da); border-color: var(--gold, #B08D57); }

.bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line, #e2ddd0); background: #fff; }
.bot-form input { flex: 1; border: 1px solid var(--line, #e2ddd0); border-radius: 999px; padding: 11px 15px; font-size: 14.5px; font-family: var(--sans, sans-serif); color: var(--charcoal, #2b2b28); }
.bot-form input:focus { outline: 2px solid var(--gold, #B08D57); outline-offset: 0; border-color: var(--gold, #B08D57); }
.bot-form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--green, #55614F); color: #fff; cursor: pointer; display: grid; place-items: center; }
.bot-form button:hover { background: var(--green-deep, #444e3f); }
.bot-form button:disabled { opacity: .5; cursor: default; }
.bot-form button svg { width: 19px; height: 19px; }

.bot-disc { padding: 0 16px 12px; margin: 0; font-size: 11px; color: var(--stone, #8a8578); text-align: center; }

@media (max-width: 520px) {
  .bot-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 88vh; max-height: 88vh; border-radius: 18px 18px 0 0; }
  .bot-launch { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bot-launch, .bot-form button, .bot-suggest button { transition: none; }
  .bot-typing span { animation: none; }
}
