/* Container holding the chatbot icon and window */
#custom-chatbot-container {
  position: fixed;
  bottom: 85px; /* 85px above the bottom of the screen */
  right: 12px; /* Align to right side */
  left: auto; /* Ensure it's not affected by left alignment */
  z-index: 9999;
}
/* Floating round chatbot toggle button */
#custom-chatbot-toggle {
  background-color: #233146;
  color: #f0be78;
  padding: 12px 19px 18px 11px;
  border-radius: 50%;
  border: solid 2px #f0be78;
  cursor: pointer;
  font-size: 18px;
  width: 50px;
  height: 50px;
  text-align: center;
}
/* Main popup chat window (initially hidden) */
#custom-chatbot-window {
  position: fixed;
  bottom: 10px;
  right: 80px;
  width: 300px;
  height: 550px;
  background: #233146;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Visible state */
#custom-chatbot-window.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Chat window header bar */
#custom-chatbot-header {
  background-color: #233146;
  color: #f0be78;
  padding: 10px;
}
/* Message log area inside the chat window */
#chatlog {
  height: 420px; /* Taller chat history area */
  overflow-y: auto;
  padding: 10px;
  background: #212121;
  font-size: 14px;
  line-height: 1.2;
}
#chatlog div {
  margin-bottom: 8px;
}
/* Container for the input field and send button */
#chatbot-input-area {
  display: flex;
  padding: 10px;
}
/* Text input field for user message */
#chat_input {
  flex: 1;
  padding: 6px;
}
/* Send button next to the chat input */
#send_btn {
  margin-left: 5px;
}
/* Typing indicator (three animated dots) */
.dot-typing {
  display: flex;
  gap: 4px;
  align-items: center;
}
/* Individual typing dot */
.dot-typing span {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
/* Timing offsets for each dot */
.dot-typing span:nth-child(1) {
  animation-delay: -0.32s;
}
.dot-typing span:nth-child(2) {
  animation-delay: -0.16s;
}
.dot-typing span:nth-child(3) {
  animation-delay: 0;
}
/* Bounce animation keyframes */
@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
/* vP additions */
#chatbot-close {
  position: absolute;
  right: 10px;
  top: -2px;
  font-size: 200%;
  cursor: pointer;
}
#typing-indicator {
  position: absolute;
  bottom: 95px;
  left: 12px;
}
.dot-typing span {
  background: #f0be78;
}
#chat-disclaimer-wrapper {
  position: relative;
  padding: 0 10px !important;
}
#chat-disclaimer-wrapper a:hover {
  color: #f0be78;
}
#chatbot-footer {
  background-color: #233146;
}
#chat-disclaimer {
  position: absolute;
  bottom: 100%; /* Position it above the link */
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background-color: #1a1a1a;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #333;
  text-align: left;
  z-index: 999;
  font-size: 11px;
  color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
#chat-toggle-prompt {
  position: fixed;
  bottom: 140px;
  right: 2px;
  background: #212121;
  color: #f0be78;
  padding: 3px 8px 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  font-weight: bold;
  z-index: 9;
}
/* Flash animation for the toggle */
@keyframes flash-border {
  0% {
    box-shadow: 0 0 0px white;
  }
  50% {
    box-shadow: 0 0 12px white;
  }
  100% {
    box-shadow: 0 0 0px white;
  }
}
#custom-chatbot-toggle.flash {
  animation: flash-border 0.8s ease;
}
#chat-suggestions button, #chat-suggestions input[type=button], #chat-suggestions input[type=submit] {
  background-color: rgba(120, 201, 240, 0.74);
  color: #000;
  line-height: 1.2;
  padding: 5px 9px 3px;
  font-weight: normal;
  text-shadow: none;
  border: 1px solid #41b3ea;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 20px;
  margin: 0 auto 7px;
  font-size: 14px;
}
#chat-disclaimer-toggle {
  padding: 0;
  margin: 0
}
@media only screen and (max-width: 767px) {
  #custom-chatbot-window {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 80%;
    background: rgba(35, 49, 70, 0.95);
  }
  #chatlog {
    background: rgba(33, 33, 33, 0.74);
	  height: 74%;
  }
}
@media (orientation: landscape) and (max-width: 767px) {
  #custom-chatbot-window {
    width: 100%;
    height: 100%;
  }
  #chatlog {
    height: 50%; /* Taller chat history area */
  }
}
/* END vP additions */
/* End of Line. */