.comments__comment {
	list-style-type: none;
	margin-top: 20px;
	position: relative;

	&.depth-0,
	&.depth-1,
	&.depth-2 {
		padding-left: 42px;

		> .comments__comment-author .gravatar {
			left: 0;
		}
	}

	&.depth-2 {
		.comments__view-replies-btn {
			margin-left: -40px;
		}
	}

	&.is-child {
		background: transparent;
	}

	&.is-highlighted {
		animation: highlight 2s ease-in-out;
		animation-iteration-count: 1;
	}

	.comments__form {
		margin-top: 10px;
	}

	&:not(.depth-0) .comments__comment-actions .comments__comment-actions-reply-label,
	&:not(.depth-0) .comments__comment-actions .reader-share__label {
		display: none;
	}
}

// A list of comments
.comments__list {
	list-style: none;
	margin: 0;
}

.comments__view-replies-btn {
	cursor: pointer;
	background-color: var(--color-neutral-0);
	width: 100%;
	color: var(--color-neutral-40);
	text-align: left;
	margin-top: 15px;
	padding: 5px 10px 10px 12px;

	.gridicon {
		position: relative;
		top: 4px;
		margin-right: 4px;
		transform: rotate(180deg);
	}
}

.comments__comment-author {
	color: var(--color-text);
	display: flex;
	flex-wrap: wrap;
	font-size: $font-body-small;
	font-weight: 600;

	.gravatar {
		border-radius: 48px; /* stylelint-disable-line scales/radii */
		position: absolute;
		top: 8px;
		left: -41px;
	}
}

.comments__comment-username {
	color: var(--color-text);
	height: 21px;
	margin-right: 7px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

a.comments__comment-username {
	color: var(--color-primary);
	height: 21px;

	&:hover {
		color: var(--color-primary-light);
	}
}

.comments__comment-trackbackicon {
	background-color: var(--color-neutral-0);
	border-radius: 50%;
	height: 32px;
	margin-right: 9px;
	position: absolute;
	left: 1px;
	top: -5px;
	width: 32px;

	.gridicon {
		height: 24px;
		fill: var(--color-neutral-20);
		margin-left: 4px;
		margin-top: 4px;
	}

	@include breakpoint-deprecated( "<480px" ) {
		top: -4px;
	}
}

// Avoids long trackback links from wrapping
// Using General Sibling Selector so this doesn't affect regular comment usernames
.comments__comment-trackbackicon ~ .comments__comment-username {
	height: 16px * 1.6;
	overflow: hidden;
	white-space: nowrap;

	&::after {
		@include long-content-fade( $size: 35px );
	}
}

.comments__comment-respondee {
	color: var(--color-text-subtle);
	margin-right: 12px;

	.gridicon {
		fill: var(--color-neutral-light);
		position: relative;
		left: -5px;
		top: 3px;
	}
}

.comments__comment-respondee .comments__comment-respondee-link {
	color: var(--color-text-subtle);
	font-weight: 400;
	margin-left: -2px;

	&:hover {
		color: var(--color-primary-light);
	}
}

.comments__comment-timestamp a {
	color: var(--color-text-subtle);
	font-weight: 400;
	text-decoration: none;

	&:hover {
		color: var(--color-link-dark);
	}
}

.comments__comment-moderation {
	color: var(--color-text-subtle);
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	font-size: $font-body-extra-small;
}
