.container-chat-add {
    background: white;
    width: 100%;
    height: 80vh;
    position: absolute;
    z-index: 99;
    display: none;
}

.btn-exit-add {
    width: 50px;
    height: 50px;
    right: 0;
    position: absolute;
    padding: 14px;
    color: #165760;
    cursor: pointer;
}

.content-search-chat {
    height: 35px;
    background: #fafafa;
    border: 1px solid #eee;
    margin: 20px 15px 17px 15px;
    border-radius: 8px;
}

.input-search-chat {
    width: 83%;
    background: transparent;
    border: none;
    margin-left: 20px;
    margin-top: 7px;
}

.content-icon-search {
    margin: 6px;
    position: absolute;
}

.create-chat-lb {
    position: absolute;
    margin-top: 16px !important;
    margin-bottom: 20px;
}

.content-list-chat {
    margin-top: 55px;
}


.msg_cotainer:after {
    content: "";
    position: absolute;
    left: -0.625rem;
    border-right: 0.7rem solid #efefef !important;
    border-bottom: 0.625rem solid transparent;
    border-top: 0rem solid;
    top: 0;
}

.msg_cotainer_send:after {
    content: "";
    position: absolute;
    right: -0.625rem;
    border-left: 0.7rem solid #f5f5f5 !important;
    border-bottom: 0.625rem solid transparent;
    border-top: 0rem solid;
    top: 0;
}


.chatbox .nav {
    padding: 1rem 1rem 0 1rem;
    background: #165760 !important;
    border: 0;
    justify-content: space-between;
}

.chatbox .nav .nav-link {
    color: white !important;
    opacity: 0.7;
    text-transform: uppercase;
}

.btn-primary:hover {
    border-color: #13717e !important;
    background-color: #13717e !important;
}

.chatbox .user_info span {
    max-width: 220px !important;
}

.user_info {
    width: 200px;
}

.chatbox .msg_cotainer {
    background: #efefef !important;
    color: black !important;
}

.badget-count {
    background: red;
    width: 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    height: 20px;
    margin-left: 10px;
    font-weight: 600;
    padding-top: 1px;
}

.badget-count-none {
    display: none;
}

.emoji-picker-container {
    position: relative;
    width: 86%;
}

.emoji-picker-open .emoji-picker {
    display: block;
    position: absolute;
    right: 0;
    top: -300px !important;
}

.emoji-picker-trigger {
    top: 13px !important;
    right: 10px !important;
}

.chatbox .msg_cotainer {
    width: 232px !important;
}

.chatbox .msg_cotainer_send {
    width: 232px !important;
}

.contacts_body_q {
    height: calc(100vh - 200px);
}

.loading-chat {
    background: #fff;
    width: 100%;
    height: 100vh;
}

.preloader-chat {
    background-color: #fff;
    padding: 0;
    height: 73px !important;
    margin: 0 auto !important;
    margin-top: 300px !important;
    position: relative !important;
    z-index: 99999 !important;
    width: 73px !important;
    align-items: center;
    justify-content: center;
}

.text-loading {
    text-align: center;
    margin-top: 10px;
}


.text_icon {
    width: 2.5rem;
    border-radius: 2.5rem;
    margin-right: 0.625rem;
    position: relative;
    height: 2.5rem;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
}


.lh-lg-3 {
    line-height: 3 !important;
}
/* Estilos para el botón de "Volver arriba" */
.scroll-to-top {
    position: fixed;
    bottom: 20px; /* Distancia desde el fondo de la ventana */
    right: 20px;  /* Distancia desde el lado derecho */
    background-color: #007bff; /* Color de fondo del botón */
    color: white; /* Color del texto */
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 13px;
    cursor: pointer;
    z-index: 1000; /* Asegura que esté encima de otros elementos */
    display: none; /* Oculto por defecto */
  }
  
  .scroll-to-top:hover {
    background-color: #0056b3; /* Color de fondo cuando el mouse está sobre el botón */
  }
  

  /*************** IA *********************/

  .cont_img_ia {
    width: 50px;
    margin-right: 20px;
  }

  .user_img_msg_ia {
    width: 50px;
  }

  .content-sms-bot {
    border: 1px solid #e8e8e880;
    padding: 20px;
    border-radius: 0 25px 25px;
    font-size: 18px;
    margin-bottom: 25px;
  }

  .content-sms-bot-send {
    padding: 25px;
    border-radius: 25px 0px 25px 25px;
    border: 1px solid #e8e8e880;
    margin-bottom: 25px;
    background: #e8e8e880;
    font-size: 18px;
    color: black;
  }

  .cont_date_ia {
    width: 100%;
    text-align: right;
    font-size: 12px;
  }

  .textarea-ia-send {
    position: sticky;
    width: 100%;
    bottom: 0;
    border-radius: 8px;
  }

  .btn-send-ia {
    height: 53px;
    border-radius: 0px 8px 8px 0px;
  }

  .content-btn-agents {
    position: sticky;
    z-index: 99999;
    margin-left: 10%;
    bottom: 0;
  }

  .toggle-btn {
    border: 1px solid #e6e6e6;
    background: #f8f9fa;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px 5px 0px 0px;
    transition: background 0.3s;
  }

  .toggle-btn.active {
    background: #ebebeb;
    color: white;
  }

  .toggle-icon {
    margin-right: 5px;
  }

.typing-content {
    padding: 13px; 
    display: block;
}

.oculto {
   display: none;
   padding: 13px; 
}

.visible-typing {
    display: block;
    padding: 13px; 
}


.scroll-container {
      display: flex;
      overflow-x: auto;
      gap: 10px;
      white-space: nowrap; 
    }

    .scroll-container::-webkit-scrollbar {
      height: 6px; /* tamaño del scrollbar */
    }

    .scroll-container::-webkit-scrollbar-thumb {
      background: #999;
      border-radius: 3px;
    }

    .scroll-container button {
      flex: 0 0 auto; /* no se encoge, no crece */
      padding: 10px 20px;
      color: white;
      border: none;
      cursor: pointer;
      white-space: nowrap;
    }