/* Chatbot widget styles – ACC brand teal (#0F5C63) */

:root {
  --chatbot-teal: #0F5C63;
  --chatbot-teal-hover: #0d4d54;
  --chatbot-teal-light: #2d8a92;
}

.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  max-width: 95vw;
  height: 480px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  z-index: 9999;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: all 0.4s ease;
}

.chatbot-widget.chatbot-widget-initial {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.chatbot-widget.chatbot-widget-closed {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  visibility: hidden;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--chatbot-teal);
  color: #fff;
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chatbot-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.chatbot-avatar-letter {
  transform: translateY(1px);
}

.chatbot-header-text {
  display: flex;
  flex-direction: column;
}

.chatbot-header-name {
  font-size: 15px;
  font-weight: 700;
}

.chatbot-header-role {
  font-size: 12px;
  opacity: 0.9;
}

.chatbot-close-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.chatbot-body {
  flex: 1;
  padding: 12px 14px;
  background: #ffffff;
  overflow-y: auto;
}

.chatbot-timestamp {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-bottom: 10px;
}

.chatbot-message-bubble {
  background: #f0f2f5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
}

.chatbot-secondary-btn {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: var(--chatbot-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chatbot-secondary-btn:hover {
  background: var(--chatbot-teal-hover);
}

.chatbot-input-row {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #e1e4ea;
  background: #ffffff;
}

.chatbot-input {
  flex: 1;
  border: 1px solid #cfd3e0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--chatbot-teal);
  box-shadow: 0 0 0 2px rgba(15, 92, 99, 0.2);
}

.chatbot-send-btn {
  margin-left: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--chatbot-teal);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.chatbot-send-btn:hover {
  background: var(--chatbot-teal-hover);
}

.chatbot-send-btn:active {
  transform: scale(0.96);
}

.chatbot-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--chatbot-teal);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  padding: 0;
  transition: background 0.2s ease;
}

.chatbot-launcher:hover {
  background: var(--chatbot-teal-hover);
}

.chatbot-launcher img {
  width: 28px;
  height: 28px;
  display: block;
}

.chatbot-launcher .chatbot-launcher-icon {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.chatbot-launcher.chatbot-launcher-visible {
  display: flex;
}

@media (max-width: 768px) {
  .chatbot-widget {
    width: 95%;
    right: 2.5%;
    height: 70vh;
  }
}

