.tokiz-chatbot-bubble {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  font-size: 14px;
}

#tokiz-chatbot-header {
  padding: 20px;
  display: flex;
}

.tokiz-chatbot-window {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  max-width: 400px;
  width: 100%;
  max-height: 750px;
  height: calc(100% - 100px);
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media only screen and (max-width: 600px) {
  .tokiz-chatbot-window {
    left: 20px;
    max-width: -webkit-fill-available;
  }
}

.tokiz-chatbot-messages {
  flex: 1;
  padding: 0 20px 20px 20px;
  overflow-y: auto;
}

.tokiz-chatbot-messages .message.bot .tokiz-chatbot-bot-containeur {
  display: flex;
  gap: 10px;
}
.tokiz-chatbot-messages .message.bot .tokiz-chatbot-bot-containeur .bot-avatar {
  width: 24px;
  height: 24px;
}
.tokiz-chatbot-messages .message.bot .tokiz-chatbot-bot-containeur .bot-title {
  font-size: 11px;
  margin-bottom: 4px;
}

.tokiz-chatbot-messages .message.bot .tokiz-chatbot-bot-message {
  padding: 10px;
  border-radius: 8px;
  background-color: #e5e7eb;
  max-width: 80%;
  width: fit-content;
}

.tokiz-chatbot-messages .message.user {
  background: #017eb0;
  color: #fff;
  margin: 0 0 8px auto;
  padding: 10px;
  border-radius: 8px;
  max-width: 80%;
  width: fit-content;
}

.tokiz-chatbot-form,
.tokiz-chatbot-chat-area {
  /* border-top: 1px solid #e5e7eb; */
  padding: 20px;
}

#tokiz-chatbot-header .tcz-title {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  width: 100%;
}

#tokiz-chatbot-header .tcz-title img {
  height: 50px;
  width: auto;
}
#tokiz-chatbot-header .tcz-title p {
  margin: 16px 0 0 0;
  font-size: 14px;
}

.tokiz-chatbot-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
}

.tokiz-chatbot-form input {
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

.tokiz-chatbot-form button {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background: #017eb0;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.tokiz-chatbot-chat-area {
  /* display: none; */
  background: #fff;
}

.tokiz-chatbot-input-row {
  display: flex;
  gap: 6px;
}

.tcz-error {
  font-size: 12px;
  color: #dc2626;
  padding-left: 2px;
  margin-top: -4px;
  margin-bottom: 6px;
}

.tokiz-chatbot-input-row input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

.tokiz-chatbot-input-row button {
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background: #017eb0;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.tokiz-chatbot-messages .message {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.tokiz-chatbot-messages .message.user {
  text-align: right;
}

.tokiz-chatbot-messages .message.bot {
  text-align: left;
}

.message.loader {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
}

.message.loader .dot {
  width: 6px;
  height: 6px;
  background: #d1d5db;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.4s infinite both;
}

.message.loader .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.message.loader .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}
