/* Comentários
--------------------------------------------- */

/* Formulário de comentário */
.wp-block-comments .comment-form {
	gap: 8px;
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
}

.wp-block-comments .comment-form img.avatar {
	width: 64px;
	border-radius: 100%;
}

.wp-block-comments .comment-form textarea {
	height: 64px;
	border: none;
	padding: 0 16px;
	transition: .3s ease;
	width: calc(100% - 267px);
}

.wp-block-comments .comment-form textarea:focus {
	height: 90px;
}

.wp-block-comments .comment-form .wp-block-button {
	margin: 0;
}

.wp-block-comments .comment-form .wp-block-button input {
	background: transparent;
	color: var(--wp--preset--color--grey-5);
	font-size: var(--wp--preset--font-size--x-small);
	border: 1px solid var(--wp--preset--color--grey-2);
}

.wp-block-comments .comment-form .logged-in-as {
	order: 1;
	margin: 0;
	display: none;
	font-size: var(--wp--preset--font-size--xx-small);
}

.wp-block-comments.open .comment-form .logged-in-as {
	display: block;
}

/* Listagem de comentários e respostas */
.wp-block-comments .comment .avatar {
	width: 100%;
	height: auto;
	margin: -5px 0 0;
	border: 5px solid #fff;
	border-radius: 100% !important;
}

.wp-block-comments .wp-block-comment-author-name {
	margin-top: 8px !important;
}

.wp-block-comments .comment.depth-1 {
	position: relative;
}

.wp-block-comments .comment.depth-1::before {
	content: "";
	top: 10px;
	bottom: 0;
	left: 23px;
	width: 5px;
	z-index: -1;
	display: block;
	position: absolute;
	background: linear-gradient(45deg, transparent, #ccc);
}

/* Respostas de comentários */
.wp-block-comments .comment + .wp-block-post-comments-form {
	display: flex;
	flex-flow: column;
	border-radius: 5px;
	padding: var(--wp--preset--spacing--small);
	margin-bottom: var(--wp--preset--spacing--medium);
	margin-left: var(--wp--preset--spacing--medium);
	border: 1px solid var(--wp--preset--color--grey-2);
}

.wp-block-comments .comment + .wp-block-post-comments-form > a {
	order: 1;
	color: #000;
	opacity: .7;
	display: inline-block;
	text-decoration: none;
	margin-top: var(--wp--preset--spacing--small);
	font-size: var(--wp--preset--font-size--xx-small);
}

/* Responsivo */
@media (max-width: 996px) {
	.wp-block-comments .comment-form textarea {
		width: calc(100% - 72px);
		margin-bottom: var(--wp--preset--spacing--small);
	}

	.wp-block-comments .comment-form .wp-block-button,
	.wp-block-comments .comment-form .wp-block-button input{
		width: 100%;
	}
}