/* chatbot style */
.hoo-chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 9999;
  font-family: inherit, sans-serif;
  max-height: 600px;
  height: 100%;
}

.hoo-chatbot-icon {
  background: rgb(209 209 209);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 24px;
}

#my-chatbot-icon {
  width: 40px;
  height: 40px;
}

.hoo-chatbot-icon:hover {
  transform: scale(1.1);
}

#hoo-chatbot-box {
  width: 400px;
  height: 100%;
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  bottom: 20px;
  right: 24px;
}
@media (max-width: 768px) {
  #hoo-chatbot-box {
    height: 100vh;
    width: 100%;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2147483646;
  }
}

#hoo-chatbot-icon.hidden {
  display: none;
}
#hoo-chatbot-box.hidden {
  display: none;
}

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

.hoo-fade-in-bottom {
  animation: fadeInBottom 0.6s ease forwards;
}

.hoo-chatbot-header {
  background: #141414;
  height: 80px;
  color: rgb(255, 255, 255);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding-right: 16px;
}

.hoo-chatbot-header-logo {
  font-size: 24px;
  font-weight: bold;
  font-family: inherit, sans-serif;
  text-align: center;
  display: contents;
}
.hoo-chatbot-subtitle-logo {
  font-size: 12px;
  font-family: inherit, sans-serif;
}

.hoo-chatbot-close {
  margin-bottom: 0;
  background: #141414 !important;
  color: white !important;
  border: none !important;
}

.hoo-chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f9fafb;
}

.chatbot-message {
  margin: 6px;
  padding: 8px 12px;
  max-width: 80%;
}

.chatbot-message.user {
  background: #363636;
  align-self: flex-end;
  margin-left: auto;
  color: white;
  width: fit-content;
  transition: width 0.3s ease, transform 0.3s ease;
  border-radius: 20px 20px 0px 20px;
  font-size: 14px;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.chatbot-message.bot p {
  margin-bottom: 0;
}

.chatbot-message.bot {
  background: #e9e9e9;
  align-self: flex-start;
  margin-right: auto;
  border-radius: 20px 20px 20px 0px;
  font-size: 14px;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.hoo-chatbot-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  gap: 8px;
}

.hoo-chatbot-input {
  flex: 1;
  border-radius: 40px;
  border: 1px solid #ddd !important;
  outline: none;
  min-height: 32px;
  overflow-y: hidden;
  font-size: 13px;
  text-align: right;
  height: 48px;
  background: #fefefe;
  resize: none;
  margin-bottom: 0;
  padding-top: 1em;
  color: #5e5e5e;
}

.hoo-chatbot-send {
  font-size: 12px !important;
  background: #f1f1f1 !important;
  color: white !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer !important;
  width: 48px !important;
  height: 48px !important;
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.hoo-chatbot-clear {
  font-size: 12px !important;
  background: #f1f1f1 !important;
  color: white !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer !important;
  width: 48px !important;
  height: 48px !important;
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.hoo-chatbot-custom-logo {
  width: 50px !important;
  height: 50px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

#chat-teaser {
  position: absolute;
  bottom: 88px;
  right: 0;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  max-width: 300px;
  width: 260px;
  display: none;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#chat-teaser .close-teaser {
  position: absolute;
  top: 5px;
  left: 8px;
  cursor: pointer;
  font-weight: bold;
}

.hoo-code {
  direction: ltr;
  background: #fefefe;
  padding: 16px;
  white-space: pre-wrap;
  overflow: auto;
  text-align: left;
  border-radius: 8px;
}

.hoo-results {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
  margin: 5px 0;
}
.hoo-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hoo-results li {
  margin-bottom: 10px;
}
.hoo-results a {
  font-weight: bold;
  color: #0073aa;
  text-decoration: none;
}
.hoo-results a:hover {
  text-decoration: underline;
}
