/* Arteva Review System — product grids and product pages.
   Brand: Warm Brown #3A312B · Soft Gold #B89A62 · Warm Cream #F5F2EC
   Accent for ratings: Amber #F2A516 → Deep Amber #E07B00 (reads clearly on cream and white). */

:root {
	--arteva-ink: #3A312B;
	--arteva-muted: rgba(58, 49, 43, 0.62);
	--arteva-amber: #F2A516;
	--arteva-amber-deep: #E07B00;
	--arteva-amber-soft: #FFF4DE;
	--arteva-line: rgba(58, 49, 43, 0.09);
}

/* Partial-fill star bar (grid) */
.arteva-stars {
	position: relative;
	display: inline-block;
	color: rgba(58, 49, 43, 0.16);
	font-size: 13px;
	line-height: 1;
	letter-spacing: 1px;
	white-space: nowrap;
}

.arteva-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--arteva-amber);
}

/* Compact rating under the title (single product) */
.arteva-rating-inline {
	margin: 2px 0 10px;
}

.arteva-rating-inline__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	background: var(--arteva-amber-soft);
	color: var(--arteva-ink);
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
}

.arteva-rating-inline__link:hover,
.arteva-rating-inline__link:focus-visible {
	color: var(--arteva-ink);
	background: #FFEAC2;
}

.arteva-rating-inline .star-rating {
	float: none;
	margin: 0;
	font-size: 12px;
	color: var(--arteva-amber);
}

.arteva-rating-inline .star-rating::before {
	color: rgba(58, 49, 43, 0.16);
}

.arteva-rating-inline__value {
	font-weight: 700;
	color: var(--arteva-amber-deep);
}

.arteva-rating-inline__sep,
.arteva-rating-inline__count {
	color: var(--arteva-muted);
}

/* Product grid rating — sits directly under the title, aligned with it */
.astra-shop-summary-wrap .arteva-loop-rating,
.arteva-loop-rating {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 6px;
	padding: 0;
	box-sizing: border-box;
	font-size: 12px;
	line-height: 1;
	color: var(--arteva-ink);
}

.arteva-loop-rating__value {
	font-weight: 700;
	color: var(--arteva-amber-deep);
}

.arteva-loop-rating__count {
	color: var(--arteva-muted);
}

/* Featured review under add-to-cart */
.arteva-featured-review {
	position: relative;
	margin: 12px 0 4px;
	padding: 14px 16px 12px;
	border: 1px solid #F3DDB0;
	border-left: 3px solid var(--arteva-amber);
	border-radius: 10px;
	background: linear-gradient(135deg, #FFF9EE 0%, #FCEFD6 100%);
	color: var(--arteva-ink);
	box-shadow: 0 6px 18px -12px rgba(224, 123, 0, 0.45);
}

.arteva-featured-review::after {
	content: "“";
	position: absolute;
	top: -6px;
	right: 14px;
	font-family: Georgia, serif;
	font-size: 64px;
	line-height: 1;
	color: rgba(242, 165, 22, 0.28);
	pointer-events: none;
}

.arteva-featured-review__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.arteva-featured-review__stars {
	color: var(--arteva-amber);
	font-size: 14px;
	letter-spacing: 1px;
}

.arteva-featured-review__score {
	font-size: 12px;
	font-weight: 600;
	color: var(--arteva-amber-deep);
	text-decoration: none;
}

.arteva-featured-review__text {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	font-size: 14.5px;
	line-height: 1.55;
	font-style: normal;
	color: var(--arteva-ink);
	quotes: none;
}

.arteva-featured-review__text::before,
.arteva-featured-review__text::after {
	content: none;
}

.arteva-review-label {
	font-weight: 600;
	color: var(--arteva-amber-deep);
}

.arteva-featured-review__by {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.arteva-featured-review__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--arteva-amber), var(--arteva-amber-deep));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.arteva-featured-review__name {
	font-weight: 600;
	color: var(--arteva-ink);
}

.arteva-featured-review__more {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--arteva-amber-deep);
	text-decoration: none;
}

.arteva-featured-review__more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Source chips (featured review + review list) */
.arteva-featured-review__chip,
.arteva-review-source {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #F3EBDD;
	color: #8A6A2F;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.01em;
}

.arteva-chip--shopee {
	background: #FFEDE7;
	color: #D2401C;
}

.arteva-chip--tokopedia {
	background: #E5F6E7;
	color: #13873A;
}

.arteva-chip--tiktok {
	background: #ECEDF1;
	color: #1F1F24;
}

/* Reviews tab summary */
.arteva-review-summary {
	display: grid;
	grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin: 0 0 8px;
	padding: 18px 20px;
	border-radius: 12px;
	background: linear-gradient(135deg, #FFF9EE 0%, #FCF1DD 100%);
	color: var(--arteva-ink);
}

.arteva-review-summary__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--arteva-amber-deep);
}

.arteva-review-summary__value {
	margin: 0 0 4px;
	line-height: 1;
}

.arteva-review-summary__avg {
	font-size: 42px;
	font-weight: 600;
	margin-right: 4px;
	color: var(--arteva-ink);
}

.arteva-review-summary__max {
	font-size: 15px;
	color: var(--arteva-muted);
}

.arteva-review-summary .star-rating {
	float: none;
	margin: 0 0 6px;
	color: var(--arteva-amber);
}

.arteva-review-summary .star-rating::before {
	color: rgba(58, 49, 43, 0.16);
}

.arteva-review-summary__count,
.arteva-review-summary__sources {
	margin: 0;
	font-size: 13px;
	color: var(--arteva-muted);
}

.arteva-review-summary__sources {
	margin-top: 2px;
}

.arteva-review-summary__row {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 30px;
	gap: 10px;
	align-items: center;
	margin: 5px 0;
	font-size: 12px;
}

.arteva-review-summary__label span {
	color: var(--arteva-amber);
}

.arteva-review-summary__track {
	display: block;
	height: 7px;
	border-radius: 999px;
	background: rgba(58, 49, 43, 0.08);
	overflow: hidden;
}

.arteva-review-summary__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--arteva-amber), var(--arteva-amber-deep));
}

.arteva-review-summary__num {
	text-align: right;
	color: var(--arteva-muted);
}

/* Review list — compact rows: name · date, then stars + source, then text */
.woocommerce #reviews #comments ol.commentlist {
	margin: 0;
	padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li {
	margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment_container {
	position: relative;
	padding: 12px 0;
	border-bottom: 1px solid var(--arteva-line);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	row-gap: 4px;
	margin: 0 0 0 46px;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text > * {
	order: 5;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta {
	order: 1;
	flex: 0 0 100%;
	margin: 0;
	font-size: 12px;
	color: var(--arteva-muted);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating {
	order: 2;
	float: none;
	margin: 0;
	font-size: 12px;
	color: var(--arteva-amber);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating::before {
	color: rgba(58, 49, 43, 0.16);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .arteva-review-source {
	order: 3;
	padding: 1px 7px;
	font-size: 10.5px;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description {
	order: 6;
	flex: 0 0 100%;
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--arteva-ink);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description:empty,
.woocommerce #reviews #comments ol.commentlist li .comment-text .description p:empty {
	display: none;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description p {
	margin: 0;
}

.arteva-review-avatar {
	position: absolute;
	top: 12px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--arteva-amber), var(--arteva-amber-deep));
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.woocommerce-review__author {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--arteva-ink);
}

.woocommerce-review__dash {
	display: none;
}

.woocommerce-review__published-date {
	margin-left: 4px;
	font-size: 11.5px;
}

.woocommerce-review__verified {
	color: #13873A;
	font-style: normal;
}

@media (max-width: 600px) {
	.arteva-review-summary {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 16px;
	}

	.arteva-review-summary__avg {
		font-size: 36px;
	}

	.arteva-featured-review {
		padding: 12px 14px 10px;
	}

	.arteva-featured-review__text {
		font-size: 14px;
	}
}
