.bc-chatbot {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.bc-chatbot__bubble {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07111f;
  font-size: 22px;
  background: linear-gradient(135deg, #ffd044 0%, #ffb41f 100%);
  box-shadow: 0 14px 34px rgba(255, 180, 31, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bc-chatbot__bubble:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 42px rgba(255, 180, 31, 0.44);
}

.bc-chatbot__bubble-icon--close {
  display: none;
}

.bc-chatbot.open .bc-chatbot__bubble-icon--open {
  display: none;
}

.bc-chatbot.open .bc-chatbot__bubble-icon--close {
  display: block;
}

.bc-chatbot__bubble-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid rgba(255, 180, 31, 0.72);
  pointer-events: none;
  animation: bcChatPulse 2.4s ease-out infinite;
}

@keyframes bcChatPulse {
  0% { opacity: 0.65; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.55); }
}

.bc-chatbot__window {
  width: 320px;
  height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
  transform-origin: bottom right;
  animation: bcChatSlideIn 0.25s ease;
}

@keyframes bcChatSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.bc-chatbot__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(25, 184, 159, 0.12), rgba(255, 208, 68, 0.18));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.bc-chatbot__avatar,
.bc-chat-msg__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #075f54;
  background: rgba(25, 184, 159, 0.14);
}

.bc-chatbot__header-info {
  min-width: 0;
  flex: 1;
}

.bc-chatbot__bot-name {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.bc-chatbot__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
}

.bc-chatbot__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.65);
}

.bc-chatbot__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}

.bc-chatbot__close:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

.bc-chatbot__messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #f8fafc;
}

.bc-chatbot__messages::-webkit-scrollbar {
  width: 5px;
}

.bc-chatbot__messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.bc-chat-msg {
  max-width: 90%;
  display: flex;
  gap: 8px;
  animation: bcChatMsgAppear 0.22s ease;
}

@keyframes bcChatMsgAppear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bc-chat-msg--bot {
  align-self: flex-start;
}

.bc-chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bc-chat-msg--user .bc-chat-msg__avatar {
  color: #07111f;
  background: #ffd044;
}

.bc-chat-msg__bubble {
  padding: 10px 13px;
  border-radius: 16px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.bc-chat-msg--bot .bc-chat-msg__bubble {
  border-bottom-left-radius: 5px;
}

.bc-chat-msg--user .bc-chat-msg__bubble {
  color: #07111f;
  background: linear-gradient(135deg, #ffd044 0%, #ffb41f 100%);
  border-color: rgba(255, 180, 31, 0.72);
  border-bottom-right-radius: 5px;
}

.bc-chat-typing .bc-chat-msg__bubble {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 13px 16px;
}

.bc-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #64748b;
  animation: bcTypingBounce 1.2s ease-in-out infinite;
}

.bc-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.bc-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bcTypingBounce {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-5px); }
}

.bc-chatbot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bc-chatbot__chip {
  border: 1px solid rgba(25, 184, 159, 0.34);
  border-radius: 999px;
  padding: 6px 11px;
  color: #075f54;
  background: rgba(25, 184, 159, 0.08);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.bc-chatbot__chip:hover {
  color: #ffffff;
  background: #075f54;
}

.bc-chatbot__input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bc-chatbot__input {
  min-width: 0;
  flex: 1;
  height: 38px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 9px 14px;
  color: #0f172a;
  background: #f8fafc;
  font-size: 13px;
  outline: none;
}

.bc-chatbot__input:focus {
  border-color: #19b89f;
  background: #ffffff;
}

.bc-chatbot__send {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #07111f;
  background: #ffd044;
  cursor: pointer;
  flex: 0 0 auto;
}

.bc-chatbot__send:hover {
  background: #ffb41f;
}

@media (max-width: 480px) {
  .bc-chatbot {
    right: 16px;
    bottom: 16px;
  }

  .bc-chatbot__window {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
