/* The Vegas Vacation — site AI chat widget */
.tvv-chat-fab {
  position: fixed;
  z-index: 9991;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 999px;
  background: #c41230;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.tvv-chat-fab:hover { background: #a50e28; transform: scale(1.05); }
.tvv-chat-fab svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; }

.tvv-chat-panel {
  position: fixed;
  z-index: 9990;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(100dvh, 640px);
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #f8fafc;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tvv-chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .tvv-chat-panel {
    right: 1.5rem;
    bottom: 5.5rem;
    width: min(100vw - 2rem, 400px);
    height: min(70dvh, 520px);
    border-radius: 1rem;
  }
}

.tvv-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #c41230;
}
.tvv-chat-head strong { display: block; font-size: 0.95rem; }
.tvv-chat-head span { display: block; font-size: 0.75rem; opacity: 0.85; }
.tvv-chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
.tvv-chat-close:hover { background: rgba(255,255,255,0.12); }

.tvv-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #0b1220;
}
.tvv-chat-bubble {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.tvv-chat-bubble--user {
  margin-left: auto;
  background: #c41230;
  color: #fff;
}
.tvv-chat-bubble--bot {
  margin-right: auto;
  background: #1f2937;
  border: 1px solid rgba(255,255,255,0.08);
}
.tvv-chat-bubble--thinking { opacity: 0.75; font-style: italic; }

.tvv-chat-handoff {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #111827;
}
.tvv-chat-handoff a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.55rem;
  background: #f59e0b;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}
.tvv-chat-handoff a:hover { background: #fbbf24; }

.tvv-chat-composer {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #111827;
}
.tvv-chat-composer textarea {
  flex: 1;
  min-height: 44px;
  max-height: 110px;
  resize: none;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0b1220;
  color: #f8fafc;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
}
.tvv-chat-composer textarea:focus {
  outline: none;
  border-color: #c41230;
  box-shadow: 0 0 0 3px rgba(196,18,48,0.25);
}
.tvv-chat-send {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: #c41230;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tvv-chat-send:disabled { opacity: 0.45; cursor: not-allowed; }
.tvv-chat-send svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; }
