/* THEFLOW reviews — editorial layout: big score, hairlines, initials, one bronze accent. */

.tf-rv {
	--tf-gold: var(--tf-accent, #95774d); /* bronze accents (buttons use the beige --btn-accented-bgcolor) */
	--tf-ink: #1a1a1a;
	--tf-muted: #6b6b6b;
	--tf-line: #e6e1d9;
	--tf-tint: #efebe5;
	--tf-serif: var(--wd-text-font, "Lora"), Georgia, serif;
	--tf-caps: var(--tf-label-font, "TF Tenor Sans", Georgia, serif); /* labels; buttons and titles use --tf-head-font */
	font-family: var(--tf-serif);
	color: var(--tf-ink);
}
/* The theme pads each direct block of #reviews by 20px on both sides; ours run edge to edge. */
.single-product .woocommerce-Reviews.tf-rv > div {
	padding-right: 0 !important;
	padding-left: 0 !important;
}
/* Woodmart lays #reviews out as a two-column flex row with gutters; ours is one column. */
.single-product .woocommerce-Reviews.tf-rv {
	display: block;
	margin: 0;
	padding-top: 64px; /* air after the full-bleed Delivery section */
	gap: 0;
}

/* Stars: one mask, filled to --tf-fill. */
.tf-stars {
	--tf-s: 17px;
	display: inline-block;
	flex: none;
	width: calc(var(--tf-s) * 5 * 28 / 24);
	height: var(--tf-s);
	background: linear-gradient(90deg, var(--tf-gold) var(--tf-fill, 100%), #ddd5c9 var(--tf-fill, 100%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M12 1.8l3.1 6.4 7 .9-5.1 4.9 1.3 7L12 17.6 5.7 21l1.3-7-5.1-4.9 7-.9z'/%3E%3C/svg%3E") left center / calc(var(--tf-s) * 28 / 24) var(--tf-s) repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M12 1.8l3.1 6.4 7 .9-5.1 4.9 1.3 7L12 17.6 5.7 21l1.3-7-5.1-4.9 7-.9z'/%3E%3C/svg%3E") left center / calc(var(--tf-s) * 28 / 24) var(--tf-s) repeat-x;
}
.tf-stars--lg {
	--tf-s: 20px;
}
.tf-rv__body > .tf-stars {
	--tf-s: 14px;
}
.tf-rv [hidden] {
	display: none !important; /* theme button styles would otherwise show hidden buttons */
}

/* ---------- Summary ---------- */

.tf-rv__summary {
	display: flex;
	align-items: center;
	gap: 14px 22px;
	padding: 0 0 22px !important; /* the theme pads #reviews' blocks left and right */
	border-bottom: 1px solid var(--tf-line);
}
.tf-rv__score {
	font-family: var(--tf-serif);
	font-size: 44px;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--tf-ink);
}
.tf-rv__overall {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tf-rv__based {
	font-family: var(--tf-caps);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #3a3a3a;
}
.tf-rv__rec {
	max-width: 230px;
	margin: 0;
	padding-left: 22px;
	border-left: 1px solid var(--tf-line);
	font-size: 14px;
	line-height: 1.45;
	color: var(--tf-muted);
}
.single-product .tf-rv .tf-rv__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 42px;
	height: 42px;
	margin-left: auto;
	padding: 0 26px;
	border: 0;
	border-radius: 4px;
	background: var(--btn-accented-bgcolor, #bc9764);
	box-shadow: none;
	color: #fff;
	font-family: var(--tf-head-font, "TF Tenor Sans", Georgia, serif);
	font-size: 13px; /* same as every other button */
	font-weight: 400;
	-webkit-text-stroke: .4px currentColor;
	letter-spacing: var(--tf-head-ls, 0);
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}
.single-product .tf-rv .tf-rv__add:hover {
	background: var(--btn-accented-bgcolor-hover, #84693f);
	color: #fff;
}
.tf-rv__pen {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linejoin: round;
}

/* ---------- Toolbar ---------- */

.tf-rv__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0 4px;
	font-size: 14px;
}
.single-product .tf-rv .tf-rv__sort select {
	height: auto;
	min-height: 0;
	padding: 4px 26px 4px 4px;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat;
	border-radius: 0;
	box-shadow: none;
	color: var(--tf-ink);
	font-family: var(--tf-serif);
	font-size: 14px;
	cursor: pointer;
	appearance: none;
}

/* ---------- Review ---------- */

.tf-rv__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}
.tf-rv__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 18px;
	margin: 0;
	padding: 20px 22px 16px;
	border-radius: 6px;
	background: #fcfaf7; /* barely-there warm card per review */
}
.tf-rv__item[hidden] {
	display: none;
}
.tf-rv__avatar {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--tf-tint);
	font-family: var(--tf-serif);
	font-size: 16px;
	color: var(--tf-ink);
}
.tf-rv__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 4px;
}
.tf-rv__name {
	font-size: 16px;
	line-height: 1.3;
}
.tf-rv__verified {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 10px 2px 6px;
	border-radius: 20px;
	background: var(--tf-tint);
	font-size: 12px;
	line-height: 1.4;
	color: #3a3a3a;
}
.tf-rv__verified svg {
	width: 14px;
	height: 14px;
}
.tf-rv__verified circle {
	fill: var(--tf-gold);
}
.tf-rv__verified path {
	fill: none;
	stroke: #fff;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tf-rv__date {
	margin-left: auto;
	font-size: 13px;
	color: var(--tf-muted);
}
.tf-rv__meta {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--tf-muted);
}
.tf-rv__text {
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--tf-ink);
}
.tf-rv__text p {
	margin: 0 0 .6em;
}
.tf-rv__text p:last-child {
	margin-bottom: 0;
}
.tf-rv__photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.single-product .tf-rv .tf-rv__photo {
	display: block;
	width: 96px;
	height: 96px;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 6px;
	background: var(--tf-tint);
	box-shadow: none;
	cursor: zoom-in;
}
.tf-rv__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.tf-rv__photo:hover img {
	transform: scale(1.04);
}

.tf-rv__foot {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #efe9e1;
	font-size: 13px;
	color: #3a3a3a;
}
.tf-rv__helpful {
	margin-right: 8px;
}
.single-product .tf-rv .tf-rv__vote,
.single-product .tf-rv .tf-rv__report {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 0;
	padding: 2px;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--tf-muted);
	font-family: var(--tf-serif);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	-webkit-text-stroke: 0;
	text-transform: none;
	cursor: pointer;
	transition: color .2s ease;
}
.tf-rv__vote svg,
.tf-rv__report svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linejoin: round;
}
.single-product .tf-rv .tf-rv__vote:hover:not(:disabled),
.single-product .tf-rv .tf-rv__report:hover:not(:disabled) {
	color: var(--tf-ink);
}
.single-product .tf-rv .tf-rv__vote:disabled,
.single-product .tf-rv .tf-rv__report:disabled {
	cursor: default;
}
.single-product .tf-rv .tf-rv__vote.is-voted {
	color: var(--tf-gold);
}
.tf-rv__sep {
	width: 1px;
	height: 18px;
	background: #e0d8cc;
}
.single-product .tf-rv .tf-rv__report {
	margin-left: auto;
}

.tf-rv__more-wrap {
	text-align: center;
}
.single-product .tf-rv .tf-rv__more {
	min-height: 42px;
	height: 42px;
	margin-top: 18px;
	padding: 0 32px;
	border: 0;
	border-radius: 4px;
	background: #2b2b2b; /* solid dark grey, white text */
	box-shadow: none;
	color: #fff;
	font-family: var(--tf-head-font, "TF Tenor Sans", Georgia, serif);
	font-size: 12px;
	font-weight: 400;
	-webkit-text-stroke: .4px currentColor;
	letter-spacing: var(--tf-head-ls, 0);
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}
.single-product .tf-rv .tf-rv__more:hover {
	background: #111;
	color: #fff;
}

/* ---------- Empty ---------- */

.tf-rv__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px 16px 8px;
	border-top: 1px solid var(--tf-line);
	text-align: center;
}
.tf-rv__flower {
	width: 44px;
	height: 56px;
	margin-bottom: 10px;
	fill: none;
	stroke: var(--tf-gold);
	stroke-width: 1.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.single-product .tf-rv .tf-rv__empty-title {
	margin: 0 0 6px;
	font-family: var(--tf-serif);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: var(--tf-head-ls, 0);
	text-transform: none;
	color: var(--tf-ink);
}
.tf-rv__empty-text {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--tf-muted);
}
.single-product .tf-rv .tf-rv__empty .tf-rv__add {
	margin-left: 0;
}

/* ---------- Dialogs ---------- */

.tf-rv__dialog,
.tf-rv__lightbox {
	position: fixed;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #fff;
	color: var(--tf-ink);
}
.tf-rv__dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 36px 32px 28px;
	overflow: auto;
}
.tf-rv__dialog::backdrop,
.tf-rv__lightbox::backdrop {
	background: rgba(20, 16, 12, .55);
}
.tf-rv__lightbox {
	max-width: min(900px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	background: transparent;
	overflow: visible;
}
.tf-rv__lightbox img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 48px);
	border-radius: 6px;
}
.single-product .tf-rv .tf-rv__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 1;
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	color: var(--tf-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.tf-rv__dialog .comment-reply-title {
	display: block;
	margin: 0 0 18px;
	font-family: var(--tf-head-font, "TF Tenor Sans", Georgia, serif);
	font-size: 18px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tf-rv__dialog .form-submit input[type="submit"],
.tf-rv__dialog .form-submit button {
	width: 100%;
	border-radius: 4px;
	background: var(--btn-accented-bgcolor, #bc9764);
	color: #fff;
	font-family: var(--tf-head-font, "TF Tenor Sans", Georgia, serif);
	font-weight: 400;
	letter-spacing: .2em;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1024px) {
	.tf-rv__summary {
		flex-wrap: wrap;
	}
	.single-product .tf-rv .tf-rv__summary .tf-rv__add {
		width: 100%;
		margin-left: 0;
	}
}
@media (max-width: 767px) {
	.single-product .woocommerce-Reviews.tf-rv {
		padding-top: 44px;
	}
	.tf-rv__summary {
		gap: 12px 16px;
	}
	.tf-rv__score {
		font-size: 40px;
	}
	.tf-rv__rec {
		flex: 0 0 100%;
		max-width: none;
		padding: 0;
		border: 0;
		font-size: 13.5px;
	}
	.tf-rv__bar {
		padding-top: 14px;
	}
	/* Card: small avatar beside the name, everything else full width. */
	.tf-rv__item {
		display: block;
		position: relative;
		padding: 16px 16px 12px;
	}
	.tf-rv__avatar {
		position: absolute;
		top: 16px;
		left: 16px;
		width: 38px;
		height: 38px;
		font-size: 13px;
	}
	.tf-rv__head {
		min-height: 38px;
		padding-left: 50px;
		gap: 2px 8px;
		margin-bottom: 6px;
	}
	.tf-rv__name {
		font-size: 15px;
	}
	.tf-rv__date {
		flex: 0 0 100%;
		margin-left: 0;
		font-size: 12px;
	}
	.tf-rv__meta {
		font-size: 12px;
	}
	.tf-rv__text {
		font-size: 14px;
		line-height: 1.6;
	}
	.single-product .tf-rv .tf-rv__photo {
		width: 84px;
		height: 84px;
	}
	.tf-rv__foot {
		margin-top: 12px;
		padding-top: 10px;
	}
	.single-product .tf-rv .tf-rv__more {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tf-rv__photo img {
		transition: none;
	}
}
