/*
 * Synced review list.
 *
 * Colours come from the theme's custom properties where they exist, with
 * literal fallbacks so the list still reads correctly in any other theme.
 */

.wws-kr__summary {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-wrap: wrap;
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--border, #e4e0d8);
}

.wws-kr__average {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--text, #1a1814);
}

.wws-kr__summary-count {
	font-size: 0.875rem;
	color: var(--text-muted, #615a4f);
}

/* Clipped gold overlay over grey stars, so fractional ratings are exact. */
.wws-kr__rating {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.wws-kr__rating-base,
.wws-kr__rating-fill {
	display: flex;
}

.wws-kr__rating svg {
	flex: none;
}

.wws-kr__rating-base {
	color: var(--border-strong, #d3cdc2);
}

.wws-kr__rating-fill {
	position: absolute;
	inset: 0;
	width: var(--wws-kr-fill, 0);
	overflow: hidden;
	color: hsl(45 95% 50%);
}

.wws-kr__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
}

.wws-kr__item.is-hidden {
	display: none;
}

.wws-kr__head {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-wrap: wrap;
}

.wws-kr__title {
	font-weight: 600;
	color: var(--text, #1a1814);
}

.wws-kr__meta {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-wrap: wrap;
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	color: var(--text-muted, #615a4f);
}

.wws-kr__verified {
	display: inline-flex;
	align-items: center;
	padding: 0.0625rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--surface-2, #f3f1ed);
	color: var(--text, #1a1814);
}

.wws-kr__body {
	margin-top: 0.5rem;
}

.wws-kr__body p:last-child {
	margin-bottom: 0;
}

.wws-kr__reply {
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--border-strong, #d3cdc2);
	background: var(--surface-2, #f3f1ed);
	font-size: 0.9375rem;
}

.wws-kr__reply strong {
	display: block;
	margin-bottom: 0.25rem;
}

.wws-kr__more {
	margin-top: 1.5rem;
	padding: 0.625rem 1.25rem;
	border: 1px solid var(--border-strong, #d3cdc2);
	border-radius: 0.5rem;
	background: transparent;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	color: var(--text, #1a1814);
}

.wws-kr__more:hover {
	background: var(--surface-2, #f3f1ed);
}
