* { box-sizing: border-box; font-family: system-ui, Arial }

#chatbot-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
}

#chatbot-launcher img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

#property-chatbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  height: 520px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
}

.hidden { display: none !important; }

.chat-header {
  background: #0d6efd;
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
}

.header-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.agent-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
}

#chat-body {
  flex: 1;
  padding: 12px;
  background: #f4f6f9;
  overflow-y: auto;
}

.bot-msg, .user-msg { margin-bottom: 14px; display: flex }
.bot-msg img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-right: 6px;
}

.bot-text {
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 75%;
  font-size: 14px;
}

.user-msg { justify-content: flex-end }
.user-text {
  background: #0d6efd;
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size:14px;
}
.bot-role {
    font-size: 13px;
}
.bot-name {
    font-size: 15px;
    font-weight: 500;
}
.time {
  font-size: 10px;
  color: #777;
  margin-top: 4px;
}
.time.right { text-align: right }

#chat-options {
  padding: 10px;
  background: #f4f6f9;
}
#chat-options button {
  margin: 3px;
  padding: 8px;
  border: 1px solid #00bcd4;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}
#chat-options button:hover {
    background: #00bcd4;
    transition: 0.6s;
}
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}
.chat-input input {
  flex: 1;
  padding: 12px;
  border: none;
}
.chat-input button {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 0 18px;
}

.bubble { animation: domeIn .45s cubic-bezier(.34,1.56,.64,1) }
@keyframes domeIn {
  from { opacity: 0; transform: scale(.92) translateY(6px) }
  to { opacity: 1; transform: none }
}

.typing-bubble {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  gap: 4px;
}
.typing-bubble span {
  width: 6px;
  height: 6px;
  background: #bbb;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}
.typing-bubble span:nth-child(2){animation-delay:.2s}
.typing-bubble span:nth-child(3){animation-delay:.4s}

@keyframes blink {
  0%{opacity:.2} 20%{opacity:1} 100%{opacity:.2}
}
.options-block {
  display: inline-grid;
  float: right;
}

.options-block button {
  width: auto;
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* CONFIGURATION – INLINE */
.options-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.options-inline button {
  padding: 8px 14px;
  border-radius: 20px;
  background: #e3f2fd;
  border: none;
  font-size: 13px;
  white-space: nowrap;
}
