#custom-chat {
  height: 60px;
  width: 60px;

  position: fixed;
  right: 20px;
  bottom: 20px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;
  background-color: rgba(255, 255, 255, .8);
  border: 1px solid gray;

  cursor: pointer;
  z-index: 1000;
}

.custom-chat-img {
  width: 60%;
  height: 60%;
} 

img{
  width: 100%;
}

.custom-chat-notification {
  height: 25px;
  width: 25px;
  position: absolute;
  right: 0;
  top: 0;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgb(159, 1, 1); 
  border-radius: 50%;
  color: white;
  font-size: 8px;
}

.chat_info_customer {
  padding: 5px;
}
.chat-form-field {
  margin-bottom: 5px;
}
.chat-fields {
  width: 100%;
    font-size: 10px;
    padding: 5px;
    height: 30px;
    margin: 0;
}
#chat_info_customer_send {
  width: 100%;
  padding: 5px;
  font-size: 12px;
}

#custom-chat-block,
#custom-chat-preview {
  height: 400px;
  width: 250px;

  position: fixed;
  right: 20px;
  bottom: 20px;

  display: none;

  border-radius: 5px;
  background-color: rgba(255, 255, 255, .8);
  border: 1px solid gray;

  z-index: 1000;
}

.custom-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;

  background-color: #55A747;
  border-bottom: 1px rgba(255, 255, 255, .8) solid;
}

#custom-chat-title {
  font-size: 14px;
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;
}
#custom-chat-title img{
  height: 25px;
  margin-right: 10px;
  margin-bottom: 4px;
}

#custom-chat-bot-gif img{
  width: 25px;
  height: 25px;
  margin-right: 10px;
  margin-bottom: 5px;
}

#custom-chat-title img#custom-chat-size__item {
  height: 25px;
  width: auto;
  margin-left: -50px;
  margin-top: -20px;
  position: absolute;
  color: #fff;
  cursor:nwse-resize;
}

.modal-dialog-pop-up {
  width: 300px;
  height: auto;
  margin: 25vh auto;
}

.modal-dialog-pop-up--type-1 {
  width: 30%;
}

.modal-dialog-pop-up--type-2 {
  width: 50%;
  min-height: 60%;
}

.modal-dialog-pop-up--type-3 {
  height: 90%;
  min-width: 90%;
  margin: 3% auto;
}

.modal-content{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.modal-content--type-3 {
  background-color: #363636;
  color: #fff;
}

.chat-pop-up-field {
  height: 50px;
}

#modal_chat-pop-up_send{
  width: 100%;
}

.modal_chat-pop-up-block {
  padding: 10px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.modal_chat-pop-up-block--type-3 {
  height: 100%;
  padding: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.modal_chat-pop-up-container-type-3 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 50%;
  height: 70%;
}

.modal_chat-pop-up-form{
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.modal_chat-pop-up-form--type-2{
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.modal_chat-pop-up-img-type-2{
  width: 60px;
  position: absolute;
  bottom: 35px;
  left: 30px;
}

.modal_chat-pop-up-img-type-2-2{
  width: 60px;
  position: absolute;
  top: 25px;
  right: 35px;
  transform: scaleY(-1);
}

.modal_chat-pop-up-form--type-3 {
  width: 50%;
}

.modal_chat-pop-up-title-type-3 {
  padding-bottom: 25px;
  text-align: center;
  font-size: 3rem;
  border-bottom: 1px solid grey;
}

#chat-dialog-pop-up {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

#chat-dialog-pop-up-type-1 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

#chat-dialog-pop-up-type-2 {
  width: 70%;
  height: 100%;
  padding: 25px;
}

#chat-dialog-pop-up-type-3 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

#chat-dialog-pop-up-type-2 .form-group:not(:last-child){
  width: 48%;
}

#chat-dialog-pop-up-type-2 .form-group:nth-of-type(odd) {
  float: left;
}
#chat-dialog-pop-up-type-2 .form-group:nth-of-type(even) {
  float: right;
}
#chat-dialog-pop-up-type-2 .form-group:last-of-type {
  float: right !important;
}

#chat-dialog-pop-up-type-3 input {
  height: 60px;
}

#chat-dialog-pop-up-type-3 button {
  height: 60px;
  font-size: 1.5rem;
}

#modal_chat-pop-up-block__title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

#modal_chat-pop-up-block__title-type-1 {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

#modal_chat-pop-up-block__title-type-2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}

#modal_chat-pop-up-block__title-type-3 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.modal_chat-pop-up-block__reaction {
  font-size: 30px;
  text-align: center;
}

.modal_chat-pop-up-block__reaction2 {
    display: none;
    width: 10%;
    padding-left: 40px;
    text-align: center;
    font-size: 5rem;
}

#custom-chat-close {
  height: 16px;
  color: gray;

  cursor: pointer;
}
#custom-chat-close img {
height: 100%;
}

.custom-chat-main {
  overflow-y: auto;
  padding: 10px;
  height: calc(100% - 110px);
  width: 100%;
}

.custom-chat-form,
.custom-chat-preview-form {
  padding: 10px;
  height: 60px;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#custom-chat-form-input-block,
#custom-chat-preview-form-input-block {
  margin: 0;
  width: 100%;
}

#custom-chat-form-btn-block,
#custom-chat-preview-form-btn-block {
margin: 0;
height: 40px;
width: 40px;
}

#custom-chat-form-btn,
#custom-chat-preview-form-btn {
  height: 40px;
  width: 40px;
}

.message-bot {
  align-self: flex-end;
  background-color: #daf8cb;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 10px;
}

.message-bot--auto {
  align-self: flex-start;
  background-color: #fff;
  border: 1px solid #ddd;
}

.message-temporary {
  align-self: flex-end;
  background-color: rgb(233, 244, 153);
  padding: 5px 10px;
  margin: 5px;
  border-radius: 10px;
}

.message-human {
  align-self: flex-start;
  background-color: #fff;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.message-content {
  margin-bottom: 5px;
}

.message-time {
  font-size: 0.8em;
  color: #666;
  text-align: right;
}

.message-PENDING {
  opacity: 0.5; /* Grayed out effect */
}

.message-SENT {
  opacity: 1; /* Normal message */
}

.pending-message {
  opacity: 0.5; /* Indicates the message is pending */
}

.delivered-message {
  opacity: 1; /* Full opacity indicates the message has been delivered */
}

.custom-chat-main::-webkit-scrollbar {
  width: 12px;
}


.custom-chat-main {
  scrollbar-width: thin;
  scrollbar-color: #888 rgba(242, 242, 242, 0);
}

.custom-chat-main::-webkit-scrollbar {
  width: 4px;
}

.custom-chat-main::-webkit-scrollbar-thumb {
  background-color: #b0b0b0;
  border-radius: 4px; 
}

.custom-chat-main::-webkit-scrollbar-track {
  background-color: transparent;
  margin-right: 2px;
}

#custom-chat-preview {
  max-height: 140px;
  height: auto;
  bottom: 100px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
}

.custom-chat-preview-main {
  padding: 20px;
  font-weight: 600;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3; 
}


.chat-dialog-pop-up__img-type-3 {
  width: 60%;
}

@media (max-width: 992px){
  .modal-dialog-pop-up--type-1 {
    width: 60%;
  }

  .modal_chat-pop-up-img-type-2 {
   display: none;
  }
  
  .modal_chat-pop-up-img-type-2-2 {
   display: none;
  }

  #chat-dialog-pop-up-type-2 {
    width: 100%;
  }

  .modal_chat-pop-up-container-type-3 {
    height: auto;
  }
}

@media (max-width: 578px){
  .modal-dialog-pop-up--type-1 {
    width: 90%;
  }
  
  .modal-dialog-pop-up--type-2 {
    width: 90%;
  }

  .modal_chat-pop-up-block--type-3 {
    flex-direction: column;
    gap: 20px;
  }

  .chat-dialog-pop-up__img-type-3 {
    display: none;
  }

  .modal_chat-pop-up-form--type-3 {
    width: 100%;
  }
}