/**
 * Styling voor WooCommerce productreviews.
 *
 * Desktop:
 * - Reviews links, 60%
 * - Beoordeling plaatsen rechts, 40%
 *
 * Mobiel:
 * - Alles onder elkaar
 */


/* ============================================================
   ALGEMEEN
   ============================================================ */

.single-product #reviews {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
	align-items: start;
	gap: 48px;

	color: #3f3f3f;
	font-family: "Instrument Sans", sans-serif;
}

.single-product #reviews .clear {
	display: none;
}


/* ============================================================
   LINKERKOLOM - REVIEWS
   ============================================================ */

.single-product #reviews #comments {
	min-width: 0;
}


/* Titel Reviews */
.single-product #reviews #comments > h2,
.single-product #reviews .woocommerce-Reviews-title {
	margin: 0 0 20px;

	color: #343434;
	font-family: "Montserrat", sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
}


/* ============================================================
   REVIEWLIJST
   ============================================================ */

.single-product #reviews #comments ol.commentlist {
	margin: 0;
	padding: 0;

	list-style: none;
}

.single-product #reviews #comments ol.commentlist li.review {
	margin: 0;
	padding: 0;

	border: 0;
}


/* Iedere review */
.single-product #reviews #comments ol.commentlist li.review .comment_container {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 0 18px;

	margin: 0;
	padding: 22px 0;

	border-bottom: 1px solid #e2e2e2;
}


/* ============================================================
   AVATAR
   ============================================================ */

.single-product #reviews #comments ol.commentlist li.review img.avatar {
	position: static;
	float: none;

	width: 48px;
	height: 48px;

	margin: 0;
	padding: 0;

	background: #eeeeee;
	border: 0;
	border-radius: 50%;

	object-fit: cover;
}


/* ============================================================
   REVIEWINHOUD
   ============================================================ */

.single-product #reviews #comments ol.commentlist li.review .comment-text {
	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 0;
}


/* Naam + verificatie + datum */
.single-product #reviews .comment-text .meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 8px;

	margin: 0 0 7px;
	padding: 0;

	color: #777777;
	font-size: 13px;
	line-height: 1.35;
}


/* Naam reviewer */
.single-product #reviews .woocommerce-review__author {
	color: #343434;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
}


/* WooCommerce-streepje verwijderen */
.single-product #reviews .woocommerce-review__dash {
	display: none;
}


/* Datum */
.single-product #reviews .woocommerce-review__published-date {
	color: #8a8a8a;
	font-size: 13px;
	font-weight: 400;
}


/* ============================================================
   GEVERIFIEERDE EIGENAAR
   ============================================================ */

.single-product #reviews .woocommerce-review__verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;

	margin: 0;

	color: #1e8a3d;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
}


/* Zelfde soort groen rond vinkje als bij 'Op voorraad' */
.single-product #reviews .woocommerce-review__verified::before {
	content: "";

	display: block;
	flex: 0 0 16px;

	width: 16px;
	height: 16px;

	background-color: #1e8a3d;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.8 12.2L10.3 15.7L17.6 8.3' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;

	border-radius: 50%;
}


/* ============================================================
   STERREN REVIEWS
   ============================================================ */

.single-product #reviews .star-rating {
	float: none;

	margin: 0 0 9px;

	color: #c5a309;
	font-size: 16px;
}


/* ============================================================
   REVIEWTEKST
   ============================================================ */

.single-product #reviews .description {
	margin: 0;
	padding: 0;
}

.single-product #reviews .description p {
	margin: 0;

	color: #4a4a4a;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}


/* ============================================================
   GEEN REVIEWS
   ============================================================ */

.single-product #reviews .woocommerce-noreviews {
	margin: 0;

	color: #666666;
	font-size: 15px;
}


/* ============================================================
   RECHTERKOLOM - BEOORDELING PLAATSEN
   ============================================================ */

body.single-product #reviews #review_form_wrapper {
	min-width: 0;

	margin: 0;
	padding: 0;

	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.single-product #reviews #review_form {
	margin: 0;
	padding: 0;

	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}


/* Buitenste standaard WooCommerce-randen verwijderen */
body.single-product #reviews #review_form form,
body.single-product #reviews #review_form #commentform {
	margin: 0;

	border: 0;
	box-shadow: none;
}


/* Lichtgrijs beoordelingsblok */
body.single-product #reviews #review_form #respond {
	margin: 0;
	padding: 28px;

	background: #f7f7f7;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
}


/* ============================================================
   TITEL FORMULIER
   ============================================================ */

body.single-product
#reviews
#review_form
#respond
.comment-reply-title {
	display: block;

	margin: 0 0 10px;

	color: #343434;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
}


/* ============================================================
   LABELS
   ============================================================ */

.single-product #review_form label {
	display: block;

	margin: 0 0 7px;

	color: #3f3f3f;
	font-family: "Instrument Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
}


/* ============================================================
   WAARDERING / STERREN KIEZEN
   ============================================================ */

/* 'Je waardering' verbergen */
body.single-product
#reviews
#review_form
#respond
.comment-form-rating
label {
	display: none;
}

body.single-product
#reviews
#review_form
#respond
.comment-form-rating {
	margin: 0 0 20px;
}

body.single-product
#reviews
#review_form
#respond
.comment-form-rating
.stars {
	margin: 0;
}

.single-product #review_form .stars a {
	color: #c5a309;
	font-size: 20px;
}


/* ============================================================
   JE BEOORDELING
   ============================================================ */

body.single-product
#reviews
#review_form
#respond
.comment-form-comment
label {
	font-weight: 400;
}


/* ============================================================
   TEKSTVAK
   ============================================================ */

.single-product #review_form .comment-form-comment {
	margin: 0 0 18px;
}

.single-product #review_form textarea {
	width: 100%;
	min-height: 150px;

	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;

	background: #ffffff;
	border: 1px solid #d5d5d5;
	border-radius: 5px;
	box-shadow: none;

	color: #3f3f3f;
	font-family: "Instrument Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;

	resize: vertical;
}

.single-product #review_form textarea:focus {
	border-color: #999999;
	outline: none;
}


/* ============================================================
   NAAM + E-MAIL
   ============================================================ */

.single-product #review_form .comment-form-author,
.single-product #review_form .comment-form-email {
	margin: 0 0 16px;
}

.single-product #review_form input[type="text"],
.single-product #review_form input[type="email"] {
	width: 100%;
	height: 44px;

	box-sizing: border-box;
	margin: 0;
	padding: 0 12px;

	background: #ffffff;
	border: 1px solid #d5d5d5;
	border-radius: 5px;
	box-shadow: none;

	color: #3f3f3f;
	font-family: "Instrument Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
}

.single-product #review_form input[type="text"]:focus,
.single-product #review_form input[type="email"]:focus {
	border-color: #999999;
	outline: none;
}


/* ============================================================
   COOKIE / OPSLAAN GEGEVENS
   ============================================================ */

.single-product #review_form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;

	margin: 0 0 20px;
}

.single-product #review_form .comment-form-cookies-consent input {
	flex: 0 0 auto;
	margin-top: 4px;
}

.single-product #review_form .comment-form-cookies-consent label {
	margin: 0;

	color: #666666;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}


/* ============================================================
   VERZENDKNOP
   ============================================================ */

.single-product #review_form .form-submit {
	margin: 0;
}


/*
 * Zeer specifieke selector zodat Astra/WooCommerce
 * het lettergewicht niet opnieuw overschrijft.
 */
html
body.single-product
#reviews
#review_form_wrapper
#review_form
#respond
form#commentform
p.form-submit
input#submit.submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: auto;
	min-height: 44px;

	margin: 0;
	padding: 11px 24px;

	background: #c5a309;
	border: 0;
	border-radius: 5px;
	box-shadow: none;

	color: #ffffff;
	font: 400 15px/1.2 "Instrument Sans", sans-serif;
	letter-spacing: 0;
	text-transform: none;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;
}

html
body.single-product
#reviews
#review_form_wrapper
#review_form
#respond
form#commentform
p.form-submit
input#submit.submit:hover {
	opacity: 0.9;
}


/* Als de verzendknop als button wordt opgebouwd */
html
body.single-product
#reviews
#review_form_wrapper
#review_form
#respond
form#commentform
p.form-submit
button#submit.submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: auto;
	min-height: 44px;

	margin: 0;
	padding: 11px 24px;

	background: #c5a309;
	border: 0;
	border-radius: 5px;
	box-shadow: none;

	color: #ffffff;
	font: 400 15px/1.2 "Instrument Sans", sans-serif;
	letter-spacing: 0;
	text-transform: none;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1000px) {

	.single-product #reviews {
		grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
		gap: 30px;
	}

	body.single-product #reviews #review_form #respond {
		padding: 24px;
	}
}


/* ============================================================
   MOBIEL
   ============================================================ */

@media (max-width: 767px) {

	.single-product #reviews {
		display: block;
	}

	.single-product #review_form_wrapper {
		margin-top: 32px;
	}

	.single-product #reviews #comments > h2,
	.single-product #reviews .woocommerce-Reviews-title {
		font-size: 21px;
	}

	.single-product #reviews #comments ol.commentlist li.review .comment_container {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 0 14px;

		padding: 18px 0;
	}

	.single-product #reviews #comments ol.commentlist li.review img.avatar {
		width: 42px;
		height: 42px;
	}

	.single-product #reviews .woocommerce-review__author {
		font-size: 15px;
	}

	.single-product #reviews .description p {
		font-size: 14px;
	}

	body.single-product #reviews #review_form #respond {
		padding: 20px;
	}

	body.single-product
	#reviews
	#review_form
	#respond
	.comment-reply-title {
		font-size: 18px;
	}
}

/* ============================================================
   REVIEWS - MOBIEL
   ============================================================ */

@media (max-width: 767px) {

	/* ---------------------------------------------------------
	   Hele reviewsectie
	   --------------------------------------------------------- */

	body.single-product #reviews {
		display: block;
	}


	/* ---------------------------------------------------------
	   BESTAANDE REVIEWS
	   --------------------------------------------------------- */

	body.single-product
	#reviews
	.comment_container {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 0 14px;

		padding: 18px 0;
	}


	body.single-product
	#reviews
	.comment_container
	img.avatar {
		width: 42px;
		height: 42px;
	}


	/* Naam + geverifieerd op regel 1
	   Datum altijd op regel 2 */

	body.single-product
	#reviews
	.comment-text
	p.meta {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 7px;
		row-gap: 3px;

		margin: 0 0 8px;
	}


	body.single-product
	#reviews
	.woocommerce-review__author {
		font-size: 15px;
	}


	body.single-product
	#reviews
	.woocommerce-review__verified {
		font-size: 13px;
	}


	/* WooCommerce-streepje voor de datum niet nodig */
	body.single-product
	#reviews
	.woocommerce-review__dash {
		display: none;
	}


	/* Datum altijd naar nieuwe regel */
	body.single-product
	#reviews
	.woocommerce-review__published-date {
		flex: 0 0 100%;

		margin: 0;

		color: #8a8a8a;
		font-size: 13px;
		line-height: 1.4;
	}


	/* Sterren netjes onder de gegevens */
	body.single-product
	#reviews
	.comment-text
	.star-rating {
		margin: 0 0 10px;
	}


	body.single-product
	#reviews
	.comment-text
	.description {
		margin: 0;
	}


	body.single-product
	#reviews
	.comment-text
	.description p {
		margin: 0;

		font-size: 15px;
		line-height: 1.55;
	}


	/* ---------------------------------------------------------
	   FORMULIER OM EEN REVIEW TE SCHRIJVEN
	   --------------------------------------------------------- */

	body.single-product
	#reviews
	#review_form_wrapper {
		margin-top: 22px;
	}


	body.single-product
	#reviews
	#respond {
		margin: 0;
		padding: 18px;

		border-radius: 7px;
	}


	/* Titel compacter */
	body.single-product
	#reviews
	#respond
	.comment-reply-title {
		margin: 0 0 10px;

		font-size: 18px;
		line-height: 1.35;
	}


	/* Tekst onder titel */
	body.single-product
	#reviews
	#respond
	.comment-notes {
		margin: 0 0 14px;

		font-size: 14px;
		line-height: 1.5;
	}


	/* Sterren dichter bij de titel */
	body.single-product
	#reviews
	#respond
	.comment-form-rating {
		margin: 0 0 16px;
	}


	body.single-product
	#reviews
	#respond
	.stars {
		margin: 0;
	}


	body.single-product
	#reviews
	#respond
	.stars a {
		font-size: 19px;
	}


	/* Labels */
	body.single-product
	#reviews
	#respond
	label {
		margin-bottom: 6px;

		font-size: 15px;
		line-height: 1.4;
	}


	/* Minder ruimte tussen velden */
	body.single-product
	#reviews
	#respond
	p {
		margin-bottom: 14px;
	}


	/* Tekstvak minder hoog */
	body.single-product
	#reviews
	#respond
	textarea {
		min-height: 110px;
		padding: 11px 12px;

		font-size: 15px;
	}


	/* Naam en e-mail compacter */
	body.single-product
	#reviews
	#respond
	input[type="text"],
	body.single-product
	#reviews
	#respond
	input[type="email"] {
		min-height: 44px;
		padding: 9px 12px;

		font-size: 15px;
	}


	/* Verstuurknop */
	body.single-product
	#reviews
	#respond
	.form-submit {
		margin-top: 4px;
		margin-bottom: 0;
	}
}

@media (max-width: 767px) {

	html body.single-product
	#reviews
	#comments
	.commentlist
	.comment_container
	.comment-text
	p.meta {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		column-gap: 7px;
		row-gap: 2px;

		margin: 0 0 8px;
		padding: 0;
	}

	html body.single-product
	#reviews
	#comments
	.commentlist
	.comment_container
	.comment-text
	p.meta
	.woocommerce-review__author {
		grid-column: 1;
		margin: 0;
		padding: 0;
	}

	html body.single-product
	#reviews
	#comments
	.commentlist
	.comment_container
	.comment-text
	p.meta
	.woocommerce-review__verified {
		grid-column: 2;
		margin: 0;
		padding: 0;
		justify-self: start;
	}

	html body.single-product
	#reviews
	#comments
	.commentlist
	.comment_container
	.comment-text
	p.meta
	.woocommerce-review__dash {
		display: none;
	}

	html body.single-product
	#reviews
	#comments
	.commentlist
	.comment_container
	.comment-text
	p.meta
	time.woocommerce-review__published-date {
		grid-column: 1 / -1;

		display: block;
		justify-self: start;

		margin: 0;
		margin-left: 0;
		padding: 0;

		color: #8a8a8a;
		font-size: 13px;
		line-height: 1.4;
		text-align: left;
		text-indent: 0;
	}
}

/* ============================================================
   GERELATEERDE PRODUCTEN - MOBIELE SLIDER
   2 producten volledig + deel van product 3
   ============================================================ */

@media (max-width: 767px) {

	html body.single-product
	.elementor
	.elementor-element.lastore-productslider
	.jet-woo-products {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;

		gap: 12px;

		width: 100%;
		margin: 0;
		padding: 0 0 8px;

		overflow-x: auto;
		overflow-y: hidden;

		scroll-behavior: smooth;
		scroll-snap-type: x proximity;
		scrollbar-width: none;

		-webkit-overflow-scrolling: touch;
	}

	html body.single-product
	.elementor
	.elementor-element.lastore-productslider
	.jet-woo-products::-webkit-scrollbar {
		display: none;
	}


	/* 2 hele producten + zichtbaar stukje van nummer 3 */
	html body.single-product
	.elementor
	.elementor-element.lastore-productslider
	.jet-woo-products
	.jet-woo-products__item {
		--columns: 1;

		flex: 0 0 42%;
		width: 42%;
		min-width: 42%;
		max-width: 42%;

		margin: 0;
		padding: 0;

		box-sizing: border-box;
		scroll-snap-align: start;
	}
}

/* ============================================================
   PRODUCTSLIDER - NAVIGATIE ONDER DE PRODUCTEN
   ============================================================ */

@media (max-width: 767px) {

	body.single-product
	.lastore-productslider
	.lastore-productslider-nav {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		gap: 8px;

		width: 100%;
		margin: 14px 0 0;
		padding: 0;
	}


	body.single-product
	.lastore-productslider
	.lastore-productslider-nav__knop {
		display: flex;
		align-items: center;
		justify-content: center;

		flex: 0 0 32px;

		width: 32px;
		height: 32px;

		margin: 0;
		padding: 0;

		border: 1px solid #dcdcdc;
		border-radius: 50%;

		background: #ffffff;
		color: #343434;

		box-shadow: none;

		cursor: pointer;
		appearance: none;
	}


	body.single-product
	.lastore-productslider
	.lastore-productslider-nav__knop svg {
		display: block;

		width: 15px;
		height: 15px;

		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}


	body.single-product
	.lastore-productslider
	.lastore-productslider-nav__knop:disabled {
		color: #cfcfcf;
		border-color: #e8e8e8;
		cursor: default;
	}
}