/* ==========================================================================
   Live Chat / Comment - Minimal & Clean Style
   ========================================================================== */

.chat {
  width: 100%;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.chat .chat-history {
  padding: 20px;
}

.chat .chat-history ul {
  overflow-y: auto;
  padding-right: 8px;
  height: 420px;
  list-style: none;
  margin: 0;
}

.chat .chat-history ul::-webkit-scrollbar {
  width: 5px;
}

.chat .chat-history ul::-webkit-scrollbar-track {
  background: #f1f1f5;
  border-radius: 4px;
}

.chat .chat-history ul::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.chat .chat-history .message-data {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.chat .chat-history .message-data-name {
  font-weight: 600;
  color: #374151;
}

.chat .chat-history .message-data-time {
  color: #9ca3af;
  font-size: 11px;
}

.online {
  color: #10b981;
  font-size: 8px;
}

.me {
  color: #e41e26;
  font-size: 8px;
}

.chat .chat-history .message {
  padding: 9px 14px;
  line-height: 1.5;
  font-size: 13.5px;
  border-radius: 8px;
  margin-bottom: 16px;
  max-width: 80%;
  word-wrap: break-word;
  display: inline-block;
}

.chat .chat-history .my-message {
  background: #f3f4f6;
  color: #1f2937;
}

.chat .chat-history .other-message {
  background: #e41e26;
  color: #ffffff;
}

.float-right {
  float: right !important;
}

.align-right {
  text-align: right;
  justify-content: flex-end;
}

.chat .chat-message {
  padding: 16px 0px;
  border-top: 1px solid #e5e7eb;
}

.chat .chat-message textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  outline: none;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 10px;
  border-radius: 6px;
  resize: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.chat .chat-message textarea:focus {
  border-color: #e41e26;
}

.pill-button {
  border-radius: 6px;
  background: #e41e26;
  border: none;
  padding: 9px 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pill-button:hover {
  background: #c61820;
}

/* Responsive */
@media (max-width: 768px) {
  .chat .chat-history {
    padding: 15px;
  }

  .chat .chat-history ul {
    height: 350px;
  }

  .chat .chat-history .message {
    max-width: 90%;
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 14px;
  }

  .pill-button {
    width: 100%;
  }
}
