/* Public member profile */

#profile {
  position: relative;
}

.member-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
  align-items: center;
}

.member-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  border: 1px solid transparent;
  line-height: 1.2;
}

.member-contact-btn.primary {
  background: #7AB730;
  color: #fff !important;
  border-color: #6aa328;
}

.member-contact-btn.primary:hover {
  background: #6aa328;
  color: #fff !important;
}

.member-contact-btn.secondary {
  background: #fff;
  color: #333 !important;
  border-color: #ddd;
}

.member-contact-btn.secondary:hover {
  background: #f5f5f5;
}

/* Old style: place contact under username, clear of report link */
#profile .profile_box#details .member-profile-actions {
  clear: both;
  margin-left: 0;
  padding-top: 4px;
}

#profile .profile_box#details h2#username_head {
  margin-bottom: 4px;
  padding-right: 120px; /* room for report link */
}

#profile .report_user_link {
  z-index: 2;
}

.member-last-online {
  color: #555;
}

.member-last-online .ago-rel {
  color: #777;
  font-size: 0.92em;
}

/* Comments list (matches feedback list tone) */
.member-comments-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.member-comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
  display: block;
}

.member-comment-body {
  flex: 1 1 auto;
  min-width: 0;
}

.member-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 13px;
}

.member-comment-author {
  font-weight: 600;
  color: #111;
}

.member-comment-message {
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  margin-top: 4px;
}

#feedbackcontent,
#commentcontent {
  margin-top: 12px;
  margin-bottom: 24px;
}

@media (max-width: 575.98px) {
  #profile .profile_box#details h2#username_head {
    padding-right: 0;
  }
  .member-profile-actions {
    width: 100%;
  }
  .member-contact-btn {
    width: 100%;
  }
}
