/* 2026-06-12 comment thread layout */
.comment-list.comment-thread-list {
  display: grid;
  gap: 14px;
}

.comment-list.comment-thread-list .comment-item {
  position: relative;
  margin-left: min(calc(var(--comment-depth, 0) * 22px), 132px);
}

.comment-list.comment-thread-list .comment-item.comment-reply {
  padding: 13px 14px;
  border-left: 3px solid rgba(31, 78, 120, .16);
  border-radius: 0 10px 10px 0;
  background: #f8fbff;
}

.comment-meta.comment-meta-v2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-meta-v2 .comment-author {
  flex: 1 1 auto;
  min-width: 0;
}

.comment-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
}

.comment-meta-actions .comment-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.comment-meta-actions .comment-reply-details {
  position: relative;
  display: inline-block;
  margin-left: 0;
  font-size: 13px;
}

.comment-meta-actions .comment-reply-details summary {
  cursor: pointer;
  list-style: none;
  color: var(--primary);
  font-weight: 800;
}

.comment-meta-actions .comment-reply-details summary::-webkit-details-marker {
  display: none;
}

.comment-meta-actions .comment-reply-form {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(360px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 39, 64, .18);
}

.comment-meta-actions .comment-delete-form {
  display: inline-flex;
  margin: 0;
}

.comment-meta-actions .comment-delete-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.comment-list.comment-thread-list .comment-body {
  line-height: 1.52;
}

@media (max-width: 720px) {
  .comment-meta.comment-meta-v2 {
    align-items: flex-start;
  }
  .comment-meta-actions {
    gap: 8px;
    font-size: 12px;
  }
  .comment-list.comment-thread-list .comment-item {
    margin-left: min(calc(var(--comment-depth, 0) * 14px), 70px);
  }
}
