/**
 * Comentarios y reseñas — lenguaje visual editorial de NautaColecciones.
 */

.comments_wrap,
.woocommerce #review_form_wrapper {
	--nauta-comment-ink: #151312;
	--nauta-comment-accent: #e6402b;
	--nauta-comment-muted: #858b95;
	--nauta-comment-line: rgba(21, 19, 18, .18);
}

.comments_wrap .comments_form_title,
.woocommerce #review_form #reply-title {
	margin: 0 0 34px;
	font-family: "Bebas Neue", cursive;
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: .01em;
	color: var(--nauta-comment-ink);
	text-transform: uppercase;
}

.comments_wrap .comment-form,
.woocommerce #review_form #commentform {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 48px;
	row-gap: 26px;
}

.comments_wrap .comment-form > p,
.woocommerce #review_form #commentform > p {
	margin: 0;
}

.comments_wrap .comments_author,
.comments_wrap .comments_email,
.woocommerce #review_form .comment-form-author,
.woocommerce #review_form .comment-form-email {
	float: none;
	width: auto;
}

.comments_wrap .comments_comment,
.comments_wrap .comment-form-cookies-consent,
.comments_wrap .comments_i_agree_privacy_policy,
.comments_wrap .form-submit,
.comments_wrap .logged-in-as,
.woocommerce #review_form .comment-form-rating,
.woocommerce #review_form .comment-form-comment,
.woocommerce #review_form .comment-form-cookies-consent,
.woocommerce #review_form .form-submit {
	grid-column: 1 / -1;
}

.comments_wrap .comments_field label,
.woocommerce #review_form label {
	display: block;
	margin: 0 0 8px;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--nauta-comment-muted);
}

.comments_wrap .comments_field input:not([type="checkbox"]),
.comments_wrap .comments_field textarea,
.woocommerce #review_form input[type="text"],
.woocommerce #review_form input[type="email"],
.woocommerce #review_form textarea {
	width: 100%;
	padding: 9px 0 12px !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--nauta-comment-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--nauta-comment-ink);
}

.comments_wrap .comments_field textarea,
.woocommerce #review_form textarea {
	min-height: 104px;
	resize: vertical;
}

.comments_wrap .comments_field input:focus,
.comments_wrap .comments_field textarea:focus,
.woocommerce #review_form input:focus,
.woocommerce #review_form textarea:focus {
	border-bottom-color: var(--nauta-comment-ink) !important;
	outline: none;
}

.comments_wrap .comment-form-cookies-consent,
.comments_wrap .comments_i_agree_privacy_policy,
.woocommerce #review_form .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--nauta-comment-muted);
}

.comments_wrap .comment-form-cookies-consent label,
.comments_wrap .comments_i_agree_privacy_policy label,
.woocommerce #review_form .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
}

.comments_wrap .form-submit,
.woocommerce #review_form .form-submit {
	margin-top: 8px !important;
	text-align: left;
}

.comments_wrap .form-submit::before {
	display: none !important;
}

.comments_wrap .form-submit input[type="submit"],
.woocommerce #review_form #respond .form-submit input[type="submit"] {
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 14px 30px !important;
	background: var(--nauta-comment-accent) !important;
	border: 1px solid var(--nauta-comment-ink) !important;
	border-radius: 0 !important;
	box-shadow: 3px 3px 0 rgba(21, 19, 18, .35) !important;
	font-family: Archivo, sans-serif !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	letter-spacing: .08em !important;
	color: #fff !important;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.comments_wrap .form-submit input[type="submit"]:hover,
.comments_wrap .form-submit input[type="submit"]:focus-visible,
.woocommerce #review_form #respond .form-submit input[type="submit"]:hover,
.woocommerce #review_form #respond .form-submit input[type="submit"]:focus-visible {
	background: #c52e1e !important;
	box-shadow: 6px 6px 0 rgba(21, 19, 18, .35) !important;
	transform: translate(-2px, -2px);
	outline: none;
}

@media (max-width: 767px) {
	.comments_wrap .comment-form,
	.woocommerce #review_form #commentform {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 22px;
	}

	.comments_wrap .comments_comment,
	.comments_wrap .comment-form-cookies-consent,
	.comments_wrap .comments_i_agree_privacy_policy,
	.comments_wrap .form-submit,
	.comments_wrap .logged-in-as,
	.woocommerce #review_form .comment-form-rating,
	.woocommerce #review_form .comment-form-comment,
	.woocommerce #review_form .comment-form-cookies-consent,
	.woocommerce #review_form .form-submit {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.comments_wrap .form-submit input[type="submit"],
	.woocommerce #review_form #respond .form-submit input[type="submit"] {
		transition: none;
	}
}
