.chat {
  width: 100%;
  margin-bottom: 20px;
  flex-direction: column;
}

.balloon-container {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.balloon {
  position: relative;
  padding: 15px;
  background: #f5f5fa;
  border-radius: 10px;
  flex: 1;
  min-width: 0;
}

.balloon::after {
  content: "";
  position: absolute;
  top: 15px;
  left: -20px;
  border: 10px solid transparent;
  border-right-color: #f5f5fa;
}

.avatar-img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.comment-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #d0d0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.comment-input:focus {
  outline: none;
  border-color: #5a67d8;
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.15);
}

.comment-input::placeholder {
  color: #aaa;
}

.comment-submit-btn {
  align-self: flex-start;
  padding: 8px 20px;
  background: #5a67d8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.comment-submit-btn:hover {
  background: #434fba;
}

.comment-submit-btn:active {
  transform: scale(0.97);
}
