*{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.chat-button {
  position: fixed;
  bottom: 124px;
  right: -76px;
  z-index: 10;
  background-color: #0d6efd;
  color: white;
  border-radius: 50px;
  padding: 10px 20px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.offcanvas.offcanvas-end {
  width: 355px;
  border-left: 1px solid #ddd;
  transition: transform 0.3s ease-in-out;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  bottom: 80px;
  top: auto;
  height: 534px;
  position: fixed;
  right: 20px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
  height: 100%;
}

.chat-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  max-height: 297px;
  margin-bottom: 10px;
}

.chat-message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 14px;
  word-wrap: break-word;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.data_criacao{
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
  text-align: start;
  width: 100%;
}


.chat-message.client {
  align-self: flex-end;
  background-color: #0d6efd;
  color: white;
  border-radius: 15px 15px 0 15px;
  margin-left: 10px;

}
.chat-message.client .data_criacao{
  text-align: left;
  color: white;
}

.chat-message.attendant {
  align-self: flex-start;
  background-color: #e9ecef;
  color: #333;
  border-radius: 15px 15px 15px 0;
  margin-right: 10px;
}

.chat-message img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 10px;
  object-fit: cover;
  margin: 5px 0;
}

.chat-input-container {
  display: flex;
  gap: 5px;
  padding: 5px;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

.chat-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.chat-send-btn {
  padding: 8px 16px;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-send-btn:hover {
  background-color: #0b5ed7;
}

@media (max-width: 768px) {
  .offcanvas.offcanvas-end {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80%;
    border-radius: 10px 10px 0 0;
  }
    .chat-button {
      position: fixed;
      bottom: 54px;
      right: -76px;
      z-index: 10;
      background-color: #0d6efd;
      color: white;
      border-radius: 50px;
      padding: 10px 20px;
      border: none;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

        .chat-messages {
          flex: 1;
          overflow-y: auto;
          display: flex;
          flex-direction: column;
          gap: 10px;
          padding: 10px;
          max-height: 466px;
          margin-bottom: 10px;   }

  .chat-message {
    max-width: 85%;
  }

  .chat-message img {
    max-height: 120px;
  }
}

#chatButtonAtendimento {
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}