.ansera-search-botmessage p {
  margin: 0; /* Removes default margin */
  padding: 0; /* Ensures no extra padding */
}
/* Full-width search bar */
#ansera-search-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  position: relative;
}

/* Style the search input */
#ansera-search-input {
  flex: 1; /* Take full width */
  padding: 10px;
  font-size: 16px;
  border: none;
  outline: none;
  width: 100%;
  border-bottom: 2px solid black; /* Add black underline */
  margin-left: 3px; /* Move input slightly to the right */
}


#ansera-search-envelope-icon-tooltip {
  display: none;
  position: absolute;
  right: 20px;
  bottom:6px;
  white-space: nowrap;
  background-color: #f8f9fa !important;
  padding: 6px 10px;
  z-index: 1000;
}
#ansera-search-envelope-icon{
  position: relative;
}

#ansera-search-envelope-icon:hover #ansera-search-envelope-icon-tooltip {
  display: block;
}


/* User Message */
.ansera-search-message.ansera-search-user {
  align-self: flex-end;
  background: #f3f3f3;
  color: #303030;
  padding: 10px 15px; 
  border-radius: 15px 15px 0 15px;
  max-width: 100%;
  word-wrap: break-word;
}

/* Bot Message */
.ansera-search-message.ansera-search-bot {
  align-self: flex-start;
  /* background: #f1f1f1; */
  color: #303030;
  /* padding: 10px 15px; */
  border-radius: 15px 15px 15px 0;
  max-width: 100%;
  word-wrap: break-word;
}


/* Ensure message bot list items are black */
.ansera-search-botmessage > div > ol > li::before {
  color: black !important;
}

.ansera-search-botmessage li::before {
  color: black !important;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/**************************/

.ansera-search-send-email-dots .ansera-search-send-email-dot1 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.ansera-search-send-email-dots .ansera-search-send-email-dot2 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.ansera-search-send-email-dots .ansera-search-send-email-dot3 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.ansera-search-botmessage table,
.ansera-search-botmessage th,
.ansera-search-botmessage td {
  border: 2px solid #333; /* Darker border */
  border-collapse: collapse;
}

@-webkit-keyframes sk-stretchdelay {
  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
  }
  20% {
    -webkit-transform: scaleY(1);
  }
}

@keyframes sk-stretchdelay {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
  }
}  

.ansera-search-li{
  line-height: 0px !important;
}

.ansera-search-copy-btn,
.ansera-search-like-btn,
.ansera-search-dislike-btn{
  cursor: pointer !important;
}

/* Specific styling for the copy button */
.ansera-search-copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ct-ai-search-disable-scroll{
overflow: hidden;
height: 100vh;
}


.ansera-search-modal-ansera{
color: #303030 !important;
text-decoration: underline;
cursor: pointer;  
font-family: inherit;
font-weight: 700; /* Use numerical weight for bold */
}

.ansera-search-modal-ansera:hover{
color: #007bff !important;
}

p.ansera-search-modal-footer-text{
color: #303030 !important;
}

@media (max-width: 768px) {
  .ansera-search-modal-input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0;
    box-sizing: border-box;
    background: #fff;
    position: relative;
    z-index: 1000;
  }

  .ansera-search-modal-body {
    padding: 5px;
    position: relative;
    z-index: 999;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 120px;
  }

  .ansera-search-modal-container {
    height: auto;
    min-height: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 0 0 0px 0;
    display: flex;
    flex-direction: column;
  }

  .ansera-search-modal {
    height: auto;
    /* min-height: 0; */
    margin: 0;
    max-height: 87vh
  }

  #ansera-search-chat-history {
    margin-bottom: 0;
    padding-bottom: 0;
    flex: 0;
    min-height: 0;
    height: auto;
  }





  #ansera-search-chat-history:empty {
    display: none;
  }
}

.ansera-search-default-question-container::before,
.ansera-search-default-question-container::after {
  background: none;
}


#ansera-search-chat-history {
  margin-bottom: 0;
  overflow-y: auto;
}

#ansera-search-email-box {
  width: 95%;
  margin: 10px auto;
  display: flex;
  gap: 10px;
  align-items: center;
  height: 50px;
  min-height: 50px;
  position: relative;
  z-index: 2;
}



#ansera-search-send-question:hover {
  background-color: #7A7A7A;
  height: 40px;
}
#ansera-search-user-email {
  all: unset;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding-right: 30px;
  /* padding: 10px 15px; */
  color: #7A7A7A;
  display: none;


  background: white;
  outline: none;
  text-align: left; /* ensures cursor starts from the beginning */
  box-sizing: border-box;
}

#ansera-search-send-email {
  
  all: unset;
  position: absolute;
  right: 60px;
  cursor: pointer;
  margin-left: 5px;
  margin-top: 2px;
  display: none;
}

.ansera-search-modal-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.ansera-search-modal-body > * {
  flex-shrink: 0;
}

#ansera-search-chat-history {
  flex: 1;
  overflow-y: auto;
}


.ansera-search-initial-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}




/* Corner resize handles for modal */
.ansera-search-resize-handle.ansera-search-top-left,
.ansera-search-resize-handle.ansera-search-top-right,
.ansera-search-resize-handle.ansera-search-bottom-left,
.ansera-search-resize-handle.ansera-search-bottom-right {
    width: 16px;
    height: 16px;
    position: absolute;
    z-index: 10;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}
.ansera-search-resize-handle.ansera-search-top-left {
    top: -8px;
    left: -8px;
    cursor: nwse-resize !important;
}
.ansera-search-resize-handle.ansera-search-top-right {
    top: -8px;
    right: -8px;
    cursor: nesw-resize !important;
}
.ansera-search-resize-handle.ansera-search-bottom-left {
    bottom: -8px;
    left: -8px;
    cursor: nesw-resize !important;
}
.ansera-search-resize-handle.ansera-search-bottom-right {
    bottom: -8px;
    right: -8px;
    cursor: nwse-resize !important;
}
