@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #fcf7ef;
}

#chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 25px;
  height: 70px;
  /*width: 70px;*/
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /*border-radius: 50%;*/
  background:transparent;
  /*transition: all 0.2s ease;*/
  z-index:100;
}

body.show-chatbot #chatbot-toggler {
  /*transform: rotate(90deg);*/
}

#chatbot-toggler span {
  color: #0b2251;
  position: absolute;
}

#chatbot-toggler .ask {background:#fff; color:#333; padding:6px; font-size:13px; margin-left:13em; border-radius:10px; border:solid 1px #ccc;}

body.show-chatbot #chatbot-toggler span:first-child, #chatbot-toggler span:last-child{
  opacity: 0;
}

body.show-chatbot #chatbot-toggler span:last-child{
  opacity: 1;
}

.chatbot-popup {
  position: fixed;
  right: 25px;
  bottom:105px;
  width: 350px;
  background: #fffefb;
  overflow: hidden;
  border-radius: 15px;
  opacity: 0;
  transform: scale(0.2);
  transform-origin: bottom right;
  pointer-events: none;
  box-shadow: 0 0 128px rgba(0, 0, 0, 0.1), 0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
  z-index:100;
}

body.show-chatbot .chatbot-popup {
  opacity: 1;
  pointer-events: auto;
    transform: scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  background: #fffefb;
  padding: 15px 22px;
  justify-content: space-between;
  border-bottom: 2px solid #f6f3ee;
}

.chat-header .header-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-info .chatbot-logo {
  height: 46px;
  min-height: 46px;
  width: 46px;
  min-width: 46px;
  padding: 6px;
  fill: #0D1B2A;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
}

.header-info .logo-text {
  color: #0D1B2A;
  font-size: 1.31rem;
  font-weight: 600;
}

.chat-header #close-chatbot {
  border: none;
  color: #fff;
  height: 40px;
  width: 40px;
  font-size: 1.9rem;
  margin-right: -10px;
  padding-top: 2px;
  cursor: pointer;
  border-radius: 50%;
  background: none;
  transition: 0.2s ease;
}

.chat-header #close-chatbot:hover {
  background: #0D1B2A;
}

.chat-body {
  padding: 25px 22px;
  display: flex;
  gap: 20px;
  height:370px;
  margin-bottom: 82px;
  overflow-y: auto;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #ccccf5 transparent;
}

.chat-body .message {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-body .bot-message .bot-avatar {
  height: 46px;
  width: 46px;
  padding: 6px;
  fill: #fff;
  flex-shrink: 0;
  margin-bottom: 2px;
  align-self: flex-end;
  border-radius: 50%;
  background-image: url(../images/amity-bot-icon.png);
  background-repeat: none;
  background-size: contain;
  object-fit: contain;
}

.user-image{
  flex-direction: column;
  align-items: flex-end;

}
.chat-body .user-message .user-avatar, .user-image .user-avatar {
  height: 35px;
  width: 35px;
  padding: 0;
  fill: #fff;
  flex-shrink: 0;
  margin-bottom: 2px;
  align-self: flex-end;
  background: #f1f1f1;
  border-radius: 50%;
}

.chat-body .user-message {
  flex-direction: column;
  align-items: flex-end;
}

.chat-body .message .message-text {
  padding: 12px 16px;
  max-width: 75%;
  font-size: 0.95rem;
  background: #faf4ec;
}

.chat-body .bot-message.thinking .message-text {
  padding: 2px 16px;
}

.chat-body .message .message-text b{
  color: #0D1B2A;
}

.chat-body .bot-message .message-text {
  background-color: #faf4ec;
  border-radius: 13px 13px 13px 3px;
  color: #4A5568;
  line-height: 1.2;
}

.chat-body .user-message .message-text {
  color: #fff;
  background-color: #163c90;
  border-radius: 13px 13px 3px 13px;
  line-height: 1.
}

.chat-body .bot-message .thinking-indicator {
  display: flex;
  gap: 4px;
  padding-block: 15px;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(1) {
  animation-delay: 0.2s;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(2) {
  animation-delay: 0.3s;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-body .bot-message .thinking-indicator .dot {
  height: 7px;
  width: 7px;
  opacity: 0.7;
  border-radius: 50%;
  background: #6f6bc2;
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  44% {
    transform: translateY(0);
  }

  28% {
    opacity: 0.4;
    transform: translateY(-4px);
  }

  44% {
    opacity: 0.2;
  }
}

.chat-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: white;
  padding: 15px 22px 20px;
}

.chat-footer .chat-form {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 32px;
  outline: 2px solid #e3c99c;
}

.chat-footer .chat-form:focus-within {
  outline: 2px solid #D9A441;
}

.chat-form .message-input {
  border: none;
  outline: none;
  height: 47px;
  width: 100%;
  resize: none;
  max-height: 70px;
  white-space: pre-line;
  font-size: 1rem;
  padding: 13px;
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.chat-form .message-input::hover {
  scrollbar-color: #ccccf5 transparent;
}

.chat-form .chat-controls {
  display: flex;
  height: 47px;
  gap: 3px;
  align-items: center;
  align-self: flex-end;
  padding-right: 6px;
}

.chat-form .chat-controls button {
  height: 35px;
  width: 35px;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: #706db0;
  background: none;
  border-radius: 50%;
  transition: 0.2s ease;
}

.chat-form .chat-controls #send-message {
  color: #fff;
  display: none;
  background: #D9A441;
}

.chat-form .message-input:valid ~ .chat-controls #send-message {
  display: block;
}

.chat-form .chat-controls #send-message:hover {
  background: #0D1B2A;
}

.chat-form .chat-controls button:hover {
  background: #f1f1f1;
}

.chat-body .user-message .attachment {
  width: 50%;
  margin-top: -7px;
  border-radius: 13px 3px 13px 3px;
}

em-emoji-picker {
  position: absolute;
  left: 50%;
  top: -337px;
  width: 100%;
  max-width: 350px;
  max-height: 330px;
  visibility: hidden;
  transform: translateX(-50%);
}

 body.show-emoji-picker em-emoji-picker {
  visibility: visible;
 }


/*/////new-add////*/

.select-items-block{
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  transition: all 0.5s;

}

.select-items-block .badge{
  width: auto;
  display: flex;
  padding: 5px 10px;
  margin: 0;
  gap: 5px;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid #163c90;
  color: #163c90;
  border-radius: 16px;
  align-items: center;
  transition: all 0.5s;
  cursor: pointer;
}
.select-items-block .badge img{
  width: auto;
  height: 10px;
  padding: 0;
  margin: 0;
  border-radius: none;
  transition: all 0.5s;
}

.select-items-block .badge:hover, .select-items-block .badge.active{
  text-decoration: none;
  background-color: #163c90;
  color: #ffffff;
}


.charboot-logo img{
  width: 70px;
  height: 70px;
  cursor: pointer;
  transition: all 0.5s;
  object-fit: cover;
  border-radius:50%
}

.chat-body .imagebox {
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    text-decoration: none;
    clear: both;
}

.chat-body .imagebox img{
  max-width: 90%;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
}

.chat-body .imagebox.align-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}



/* Responsive for mobile screen */
@media screen and (max-width: 300px) {
  .chatbot-popup {
    width:300px !important;
    right: 0;
    bottom: 0;
    border-radius: 0;
    height:50vh !important;
  }

  .chat-header .header-info .logo-text {
    font-size: 1.1rem;
  }

  .chat-body {
    height: 100%;
    margin-bottom: 0;
  }

  .chat-body .message .message-text {
    max-width: 85%;
  }

  .chat-footer .chat-form {
    border-radius: 0;
    border-radius: 25px;
  }

  .chat-footer .chat-form .message-input {
    border-radius: 0;
  }

  .chat-footer .chat-form .chat-controls {
    padding-right: 10px;
  }

  .chat-footer .chat-form .chat-controls button {
    height: 40px;
    width: 40px;
  }

} 


/* ================================
   CALL AGENT BUTTON STYLE
================================ */
.call-agent-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background-color: #007bff; /* Blue chat-like color */
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 20px; /* Rounded bubble shape */
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
}

.call-agent-btn:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-1px);
}

.call-agent-btn:active {
  background-color: #004080; /* Even darker on click */
  transform: translateY(1px);
}

/* Responsive for mobile chat bubbles */
@media (max-width: 480px) {
  .call-agent-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
}


