/**
 * Product Comment Reply Styles
 */

/* Reply button */
.comment-buttons .reply-comment {
  cursor: pointer;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.comment-buttons .reply-comment:hover {
  color: #333;
}

.comment-buttons .reply-comment i {
  font-size: 18px;
}

/* Reply form container */
.reply-form-container {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #007bff;
}

.reply-form .reply-textarea {
  width: 100%;
  margin-bottom: 10px;
  resize: vertical;
  min-height: 80px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-size: 14px;
}

.reply-form .reply-textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.reply-actions {
  display: flex;
  gap: 10px;
}

.reply-actions .btn {
  padding: 6px 15px;
  font-size: 14px;
}

/* Replies container */
.replies-container {
  margin-top: 20px;
  margin-left: 30px;
  border-left: 2px solid #e9ecef;
  padding-left: 20px;
}

/* Individual reply item */
.comment-reply-item {
  padding: 15px;
  margin-bottom: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.comment-reply-item:last-child {
  margin-bottom: 0;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee2e6;
}

.reply-author {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.reply-date {
  color: #6c757d;
  font-size: 12px;
}

.reply-content {
  color: #495057;
  line-height: 1.6;
}

.reply-content p {
  margin: 0;
  font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .replies-container {
    margin-left: 15px;
    padding-left: 15px;
  }

  .reply-form-container {
    padding: 10px;
  }

  .comment-reply-item {
    padding: 10px;
  }

  .reply-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Loading state */
.reply-loading {
  text-align: center;
  padding: 10px;
  color: #6c757d;
  font-style: italic;
}

/* Empty state */
.no-replies {
  padding: 10px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* Admin badge for employee replies */
.reply-author .admin-badge {
  background: #007bff;
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 5px;
  font-weight: normal;
}
