/**
 * Styles shared by every display style.
 *
 * Colours and spacing stay deliberately sober and inherit the theme's
 * typography, so the reviews look like part of the site rather than a
 * widget bolted onto it.
 */

.wpau-reviews {
	--wpau-border: #e3e3e3;
	--wpau-muted: #6b6b6b;
	--wpau-star: #e8a33d;
	--wpau-radius: 8px;
	margin: 2rem 0;
}

.wpau-review {
	background: #fff;
	border: 1px solid var(--wpau-border);
	border-radius: var(--wpau-radius);
	padding: 1.25rem 1.4rem;
}

.wpau-review__head {
	align-items: flex-start;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.wpau-review__identity {
	min-width: 0;
}

.wpau-review__author {
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.wpau-review__date {
	color: var(--wpau-muted);
	font-size: 0.85em;
}

.wpau-review__source {
	border: 1px solid var(--wpau-border);
	border-radius: 999px;
	color: var(--wpau-muted);
	flex: none;
	font-size: 0.72em;
	letter-spacing: 0.02em;
	padding: 0.15em 0.7em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wpau-review__rating {
	color: var(--wpau-star);
	display: block;
	font-size: 1.05em;
	letter-spacing: 0.08em;
	margin: 0.5rem 0 0.25rem;
}

.wpau-review__text {
	line-height: 1.65;
}

.wpau-review__text p {
	margin: 0 0 0.75em;
}

.wpau-review__text p:last-child {
	margin-bottom: 0;
}

/*
 * Clamping limits the height of the text, never its presence: the full
 * review stays in the document and remains readable by machines.
 */
.wpau-review__text.is-clamped {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 7;
	display: -webkit-box;
	line-clamp: 7;
	overflow: hidden;
}

.wpau-review__more {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 0.88em;
	margin-top: 0.6rem;
	padding: 0;
	text-decoration: underline;
}

.wpau-review__more:hover,
.wpau-review__more:focus-visible {
	opacity: 0.7;
}

/* Visually hidden but announced by screen readers, the WordPress way. */
.wpau-reviews .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
