/*
 * Wille Reviews – front-end styles.
 *
 * Layouts (.willerev--layout-*) set the structure, styles (.willerev--style-*) only swap the custom properties
 * below. Per widget: --willerev-accent, --willerev-accent-ink, --willerev-radius, --willerev-cols, --willerev-lines
 * (set inline from the settings / shortcode / block). Override anything from your theme, e.g.
 *   .willerev { --willerev-star: #f59e0b; }
 *
 * Design rules: the theme's font family, but a fixed type scale (themes with an 18–20 px body would otherwise blow the
 * cards up); a clear hierarchy – score bar, then cards (name, date, stars, text) – fine borders and soft depth, the
 * accent colour only on actions.
 */

.willerev {
	--willerev-accent: #1a73e8;
	--willerev-accent-ink: #fff;
	--willerev-radius: 12px;
	--willerev-cols: 3;
	--willerev-lines: 5;
	--willerev-gap: 16px;
	--willerev-bg: transparent;
	--willerev-pad: 0;
	/*
	 * Text outside of boxes follows the theme's text colour (light and dark themes alike); the shades are mixed
	 * from it. Boxes with their own background (white cards, badges) set fixed colours below.
	 */
	--willerev-ink: currentColor;
	--willerev-muted: color-mix(in srgb, currentColor 64%, transparent);
	--willerev-line: color-mix(in srgb, currentColor 14%, transparent);
	/* Accent as text (links, outline button): darkened a little so light accents stay readable on white. */
	--willerev-link: color-mix(in srgb, var(--willerev-accent) 82%, #000);
	--willerev-card-bg: #fff;
	--willerev-card-border: #e4e7eb;
	--willerev-card-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.04);
	--willerev-card-shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.05), 0 10px 28px rgba(16, 24, 40, 0.08);
	--willerev-header-bg: var(--willerev-card-bg);
	--willerev-header-border: var(--willerev-card-border);
	--willerev-star: #fbbc04;
	--willerev-star-empty: color-mix(in srgb, currentColor 20%, transparent);
	--willerev-star-size: 17px;
	--willerev-button-bg: transparent;
	--willerev-button-ink: var(--willerev-ink);
	--willerev-button-border: color-mix(in srgb, currentColor 28%, transparent);
	--willerev-face-ring: #fff;
	--willerev-avatar-l: 93%;
	--willerev-avatar-ink-l: 32%;

	box-sizing: border-box;
	margin: 0 0 1.5em;
	padding: var(--willerev-pad);
	border-radius: calc(var(--willerev-radius) + 4px);
	background: var(--willerev-bg);
	color: var(--willerev-ink);
	font-size: clamp(14px, 0.875em, 16px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-align: left;
}

.willerev *,
.willerev *::before,
.willerev *::after {
	box-sizing: border-box;
}

.willerev--layout-grid,
.willerev--layout-carousel,
.willerev--layout-list,
.willerev--layout-masonry {
	container-type: inline-size;
}

.willerev a:focus-visible,
.willerev button:focus-visible,
.willerev .willerev__items:focus-visible {
	outline: 2px solid var(--willerev-accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ stars */

.willerev-stars {
	position: relative;
	display: inline-block;
	flex: none;
	align-self: flex-start;
	/* Never stretched by a flex parent: the filled layer's width is a percentage of exactly five stars. */
	width: max-content;
	line-height: 0;
	white-space: nowrap;
	vertical-align: middle;
}

.willerev-stars svg {
	display: inline-block;
	width: var(--willerev-star-size);
	height: var(--willerev-star-size);
	fill: currentColor;
}

.willerev-stars svg + svg {
	margin-inline-start: 1px;
}

.willerev-stars__empty {
	color: var(--willerev-star-empty);
}

.willerev-stars__full {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	overflow: hidden;
	color: var(--willerev-star);
}

.willerev-g {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/* ----------------------------------------------------------------- avatar */

.willerev .willerev-avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	max-width: none;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	/* Initials: a quiet tint of a colour derived from the name, not a loud fill. */
	background: hsl(var(--willerev-hue, 210) 30% var(--willerev-avatar-l));
	color: hsl(var(--willerev-hue, 210) 35% var(--willerev-avatar-ink-l));
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
}

.willerev--no-avatars .willerev-card .willerev-avatar {
	display: none;
}

/* ----------------------------------------------------------------- header */

/*
 * Summary bar above the reviews, in one line: brand · score · stars · count, the buttons on the right. It sits in its
 * own box so the trust signal (rating + number of reviews) is the first thing a visitor reads.
 */
.willerev__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 0 0 20px;
	padding: 14px 14px 14px 22px;
	border: 1px solid var(--willerev-header-border);
	border-radius: calc(var(--willerev-radius) + 4px);
	background: var(--willerev-header-bg);
	box-shadow: var(--willerev-card-shadow);
	color: var(--willerev-ink);
}

.willerev--no-header .willerev__header {
	display: none;
}

.willerev__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.0625em;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.willerev__demo {
	padding: 1px 7px;
	border: 1px solid #ecd9a6;
	border-radius: 4px;
	background: #fdf8e8;
	color: #7a5800;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: normal;
}

.willerev__score {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.willerev__rating {
	font-size: 2em;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.willerev__score .willerev-stars {
	--willerev-star-size: 20px;

	align-self: center;
}

.willerev__count {
	color: var(--willerev-muted);
	font-size: 0.9375em;
}

.willerev__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
}

.willerev--no-cta .willerev__actions {
	display: none;
}

.willerev .willerev__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid color-mix(in srgb, var(--willerev-accent) 45%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--willerev-accent) 8%, transparent);
	box-shadow: none;
	color: var(--willerev-link);
	font-size: 0.875em;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.willerev .willerev__button:hover {
	border-color: var(--willerev-accent);
	background: color-mix(in srgb, var(--willerev-accent) 14%, transparent);
	color: var(--willerev-link);
}

.willerev .willerev__button--primary {
	border-color: var(--willerev-accent);
	background: var(--willerev-accent);
	color: var(--willerev-accent-ink);
}

.willerev .willerev__button--primary:hover {
	background: var(--willerev-accent);
	color: var(--willerev-accent-ink);
	filter: brightness(0.94);
}

/* ------------------------------------------------------------------ cards */

.willerev-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--willerev-card-border);
	border-radius: calc(var(--willerev-radius) + 4px);
	background: var(--willerev-card-bg);
	box-shadow: var(--willerev-card-shadow);
	color: var(--willerev-ink);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.willerev-card:hover {
	box-shadow: var(--willerev-card-shadow-hover);
}

.willerev-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.willerev-card__head .willerev-g {
	align-self: flex-start;
	margin-top: 2px;
}

.willerev-card__meta {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.3;
}

.willerev .willerev-card__author {
	overflow: hidden;
	color: inherit;
	font-size: 1.0625em;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.willerev a.willerev-card__author:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.willerev-card__time {
	color: var(--willerev-muted);
	font-size: 0.875em;
}

.willerev-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.willerev .willerev-card__text {
	margin: 0;
	font-size: 1em;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

/* Clamping only with JavaScript (it adds the toggle); without it every text is shown in full. */
.willerev.is-enhanced .willerev-card:not(.is-open) .willerev-card__text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--willerev-lines);
	line-clamp: var(--willerev-lines);
}

.willerev .willerev-card__more {
	align-self: flex-start;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--willerev-link);
	font: inherit;
	font-size: 0.9375em;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	appearance: none;
}

.willerev .willerev-card__more[hidden] {
	display: none;
}

.willerev .willerev-card__more:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ------------------------------------------------------------------- grid */

.willerev--layout-grid .willerev__items {
	display: grid;
	grid-template-columns: repeat(var(--willerev-cols), minmax(0, 1fr));
	gap: var(--willerev-gap);
	align-items: stretch;
}

/* ----------------------------------------------------------------- slider */

.willerev__viewport {
	position: relative;
}

.willerev--layout-carousel .willerev__items {
	display: grid;
	grid-auto-columns: calc((100% - (var(--willerev-cols) - 1) * var(--willerev-gap)) / var(--willerev-cols));
	grid-auto-flow: column;
	gap: var(--willerev-gap);
	align-items: stretch;
	margin: -4px;
	padding: 4px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: 4px; /* = padding, so the first card snaps to scrollLeft 0 */
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.willerev--layout-carousel .willerev__items::-webkit-scrollbar {
	display: none;
}

.willerev--layout-carousel .willerev-card {
	scroll-snap-align: start;
}

/* Arrow buttons: centred below the cards, never covering a review. */
.willerev--layout-carousel .willerev__viewport {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 12px;
}

.willerev--layout-carousel .willerev__items {
	flex: none;
	width: calc(100% + 8px);
}

.willerev .willerev__nav {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--willerev-card-border);
	border-radius: 50%;
	background: var(--willerev-card-bg);
	box-shadow: var(--willerev-card-shadow);
	color: var(--willerev-ink);
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.willerev .willerev__nav:hover {
	border-color: var(--willerev-accent);
	color: var(--willerev-link);
}

.willerev.is-scrollable .willerev__nav {
	display: inline-flex;
}

.willerev .willerev__nav:disabled {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

.willerev.is-rtl .willerev__nav svg {
	transform: scaleX(-1);
}

/* ------------------------------------------------------------------- list */

.willerev--layout-list .willerev__items {
	display: flex;
	flex-direction: column;
	gap: var(--willerev-gap);
}

@container (min-width: 640px) {
	.willerev--layout-list:not(.willerev--style-quote) .willerev-card {
		display: grid;
		grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
		gap: 24px;
		align-items: start;
	}
}

/* ------------------------------------------------------------------- wall */

.willerev--layout-masonry .willerev__items {
	column-count: var(--willerev-cols);
	column-gap: var(--willerev-gap);
}

.willerev--layout-masonry .willerev-card {
	margin: 0 0 var(--willerev-gap);
	break-inside: avoid;
}

/* -------------------------------------------------------------- responsive */

@container (max-width: 760px) {
	.willerev--cols-3.willerev--layout-grid .willerev__items,
	.willerev--cols-4.willerev--layout-grid .willerev__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.willerev--cols-3.willerev--layout-masonry .willerev__items,
	.willerev--cols-4.willerev--layout-masonry .willerev__items {
		column-count: 2;
	}

	.willerev--cols-3.willerev--layout-carousel .willerev__items,
	.willerev--cols-4.willerev--layout-carousel .willerev__items {
		grid-auto-columns: calc((100% - var(--willerev-gap)) / 2);
	}
}

/* :is() matches the specificity of the column rules above, so one column wins on narrow containers. */
@container (max-width: 520px) {
	.willerev--layout-grid:is(.willerev--cols-1, .willerev--cols-2, .willerev--cols-3, .willerev--cols-4) .willerev__items {
		grid-template-columns: minmax(0, 1fr);
	}

	.willerev--layout-masonry:is(.willerev--cols-1, .willerev--cols-2, .willerev--cols-3, .willerev--cols-4) .willerev__items {
		column-count: 1;
	}

	.willerev--layout-carousel:is(.willerev--cols-1, .willerev--cols-2, .willerev--cols-3, .willerev--cols-4) .willerev__items {
		grid-auto-columns: 86%;
	}

	.willerev__header {
		padding: 18px;
	}

	.willerev__actions {
		width: 100%;
		margin-inline-start: 0;
	}

	.willerev .willerev__button {
		flex: 1 1 auto;
	}

	.willerev-card {
		padding: 20px;
	}
}

/* ------------------------------------------------------------------ badge */

.willerev--layout-badge,
.willerev--layout-social {
	padding: 0;
	background: none;
}

.willerev--align-center {
	text-align: center;
}

.willerev--align-right {
	text-align: right;
}

.willerev .willerev-badge {
	position: relative;
	display: inline-flex;
	/* Top, not baseline: no descender gap below, the widget is exactly as tall as the badge. */
	vertical-align: top;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 10px 12px;
	border: 1px solid var(--willerev-card-border);
	border-radius: var(--willerev-radius);
	background: var(--willerev-card-bg);
	box-shadow: var(--willerev-card-shadow);
	color: var(--willerev-ink);
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.willerev a.willerev-badge:hover {
	border-color: var(--willerev-button-border);
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.willerev-badge__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.willerev-badge__title {
	color: var(--willerev-muted);
	font-size: 0.8125em;
	font-weight: 500;
}

.willerev-badge__score {
	display: flex;
	align-items: center;
	gap: 8px;
}

.willerev-badge__score .willerev-stars,
.willerev-social__score .willerev-stars {
	/* The stars default to the top of a flex row (card bodies); next to the rating they sit on its centre line. */
	align-self: center;
}

.willerev-badge__rating {
	font-size: 1.25em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.willerev-badge__count {
	color: var(--willerev-muted);
	font-size: 0.8125em;
}

/* ------------------------------------------------------------ social proof */

.willerev .willerev-social {
	display: inline-flex;
	vertical-align: top;
	align-items: center;
	gap: 14px;
	color: var(--willerev-ink);
	text-align: left;
	text-decoration: none;
}

.willerev-social__faces {
	display: flex;
	flex: none;
}

.willerev .willerev-social__faces .willerev-avatar {
	width: 38px;
	height: 38px;
	margin-inline-start: -10px;
	border: 2px solid var(--willerev-face-ring);
}

.willerev .willerev-social__faces .willerev-avatar:first-child {
	margin-inline-start: 0;
}

.willerev-social__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.willerev-social__score {
	display: flex;
	align-items: center;
	gap: 8px;
}

.willerev-social__rating {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.willerev-social__max {
	color: var(--willerev-muted);
	font-weight: 400;
}

.willerev-social__caption {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--willerev-muted);
	font-size: 0.875em;
}

.willerev-social__caption strong {
	font-weight: 600;
}

/* The number of reviews in header, badge and social proof: own colour via count_color, else the text around it. */
.willerev .willerev-num {
	color: var(--willerev-count, inherit);
}

/* --------------------------------------------------------- floating badge */

.willerev.willerev--floating {
	position: fixed;
	bottom: 20px;
	z-index: 99990;
	margin: 0;
	animation: willerev-in 0.3s ease 0.6s both;
}

.willerev--floating-right {
	right: 20px;
}

.willerev--floating-left {
	left: 20px;
}

.willerev--floating .willerev-badge {
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.12);
}

.willerev .willerev-badge__close {
	position: absolute;
	top: -8px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--willerev-card-border);
	border-radius: 50%;
	background: var(--willerev-card-bg);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
	color: var(--willerev-muted);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.willerev--floating:hover .willerev-badge__close,
.willerev--floating:focus-within .willerev-badge__close {
	opacity: 1;
}

@media (hover: none) {
	.willerev .willerev-badge__close {
		opacity: 1;
	}
}

@media (max-width: 600px) {
	.willerev.willerev--floating {
		bottom: 12px;
		font-size: 14px;
	}

	.willerev--floating-right {
		right: 12px;
	}

	.willerev--floating-left {
		left: 12px;
	}
}

@keyframes willerev-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ================================================================= styles */

/* Elements on their own white surface: fixed dark text, whatever the page around them looks like. */
.willerev--style-light :is(.willerev__header, .willerev-card, .willerev-badge),
.willerev--style-accent :is(.willerev__header, .willerev-card),
.willerev--style-quote .willerev-badge,
.willerev:not(.willerev--style-dark) :is(.willerev__nav, .willerev-badge__close) {
	--willerev-ink: #1f2328;
	--willerev-muted: #646b73;
	--willerev-line: #e6e8eb;
	--willerev-star-empty: #dfe2e6;
	--willerev-button-border: #d4d8dd;
	--willerev-avatar-l: 93%;
	--willerev-avatar-ink-l: 32%;
}

/*
 * Dark: a near-black panel with a faint light from the top left, cards and score bar as slightly lighter glass
 * with a fine edge – depth without loud shadows.
 */
.willerev--style-dark {
	--willerev-ink: #f1f2f4;
	--willerev-muted: #a0a6ae;
	--willerev-line: rgba(255, 255, 255, 0.09);
	--willerev-link: color-mix(in srgb, var(--willerev-accent) 72%, #fff);
	--willerev-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)), #15171b;
	--willerev-card-border: rgba(255, 255, 255, 0.09);
	--willerev-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
	--willerev-card-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 32px rgba(0, 0, 0, 0.35);
	--willerev-star-empty: #3a3f47;
	--willerev-button-border: rgba(255, 255, 255, 0.16);
	--willerev-face-ring: #111317;
	--willerev-avatar-l: 26%;
	--willerev-avatar-ink-l: 82%;
}

.willerev--style-dark:not(.willerev--layout-badge):not(.willerev--layout-social) {
	--willerev-bg: radial-gradient(120% 120% at 0% 0%, #1c1f25 0%, #111317 60%);
	--willerev-pad: 28px;
}

.willerev--style-dark .willerev-card:hover {
	border-color: rgba(255, 255, 255, 0.16);
}

.willerev--style-dark .willerev-badge {
	background: #16181c;
}

.willerev--style-dark .willerev-social {
	padding: 8px 16px 8px 8px;
	border-radius: var(--willerev-radius);
	background: #121519;
}

/* Minimal: no boxes – typography and hairlines only. */
.willerev--style-minimal {
	--willerev-card-bg: transparent;
	--willerev-card-border: transparent;
	--willerev-card-shadow: none;
	--willerev-card-shadow-hover: none;
}

.willerev--style-minimal .willerev__header {
	padding: 0 0 20px;
	border: 0;
	border-bottom: 1px solid var(--willerev-line);
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.willerev--style-minimal .willerev-card {
	padding: 0;
	border: 0;
	border-radius: 0;
}

.willerev--style-minimal.willerev--layout-grid .willerev__items,
.willerev--style-minimal.willerev--layout-masonry .willerev__items {
	gap: 32px;
	column-gap: 32px;
}

.willerev--style-minimal.willerev--layout-masonry .willerev-card {
	margin-bottom: 32px;
}

.willerev--style-minimal.willerev--layout-carousel .willerev__items {
	gap: 32px;
	grid-auto-columns: calc((100% - (var(--willerev-cols) - 1) * 32px) / var(--willerev-cols));
}

.willerev--style-minimal.willerev--layout-list .willerev__items {
	gap: 0;
}

.willerev--style-minimal.willerev--layout-list .willerev-card {
	padding: 20px 0;
	border-top: 1px solid var(--willerev-line);
}

.willerev--style-minimal.willerev--layout-list .willerev-card:first-child {
	padding-top: 0;
	border-top: 0;
}

.willerev--style-minimal .willerev__nav {
	border-color: var(--willerev-button-border);
	background: transparent;
	color: inherit;
}

.willerev--style-minimal .willerev-badge {
	padding: 4px 0;
	border: 0;
	box-shadow: none;
}

/*
 * Quote: the review as a quotation on a soft tint, the reviewer below it – the classic
 * testimonial. No speech-bubble tail, no decorative quote marks.
 */
.willerev--style-quote {
	/* Derived from the text colour, so the tint works on white, grey and dark page backgrounds alike. */
	--willerev-quote-bg: color-mix(in srgb, var(--willerev-ink) 5%, transparent);
}

.willerev--style-quote .willerev__header {
	border-color: transparent;
	background: var(--willerev-quote-bg);
	box-shadow: none;
}

.willerev--style-quote .willerev-card {
	gap: 14px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.willerev--style-quote .willerev-card__head {
	order: 2;
	padding-inline-start: 4px;
}

.willerev--style-quote .willerev-card__body {
	gap: 10px;
	padding: 20px 22px;
	border-radius: var(--willerev-radius);
	background: var(--willerev-quote-bg);
}

.willerev--style-quote .willerev-card__text {
	font-size: 1em;
	line-height: 1.65;
}

/* Accent color: a light tint of the accent as the section background, the accent on the score and buttons. */
.willerev--style-accent {
	--willerev-card-border: color-mix(in srgb, var(--willerev-accent) 14%, #e6e8eb);
	--willerev-line: color-mix(in srgb, var(--willerev-accent) 18%, #e6e8eb);
}

.willerev--style-accent:not(.willerev--layout-badge):not(.willerev--layout-social) {
	--willerev-bg: color-mix(in srgb, var(--willerev-accent) 6%, #fff);
	--willerev-pad: 28px;
	--willerev-ink: #1f2328;
	--willerev-muted: #646b73;
	--willerev-star-empty: #dfe2e6;
	--willerev-button-border: #d4d8dd;
}

.willerev--style-accent .willerev__rating {
	color: var(--willerev-accent);
}

.willerev--style-accent .willerev-badge,
.willerev--style-accent .willerev-social {
	--willerev-ink: var(--willerev-accent-ink);
	--willerev-muted: color-mix(in srgb, var(--willerev-accent-ink) 78%, var(--willerev-accent));
	--willerev-star-empty: color-mix(in srgb, var(--willerev-accent-ink) 30%, var(--willerev-accent));
	--willerev-face-ring: var(--willerev-accent);

	border-color: transparent;
	background: var(--willerev-accent);
}

.willerev--style-accent .willerev-social {
	padding: 8px 16px 8px 8px;
	border-radius: var(--willerev-radius);
}

.willerev--style-accent .willerev-badge .willerev-g,
.willerev--style-accent .willerev-social .willerev-g {
	padding: 3px;
	border-radius: 50%;
	background: #fff;
	box-sizing: content-box;
}

/* ------------------------------------------------------------------ misc */

/* Elementor spaces its widgets itself – no extra margin that would push the widget out of line. */
.elementor-widget-willerev-reviews .willerev {
	margin-bottom: 0;
}

.willerev-notice {
	padding: 12px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	background: #fcf9e8;
	color: #1d2327;
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.willerev *,
	.willerev.willerev--floating {
		animation: none !important;
		transition: none !important;
	}
}

@media print {
	.willerev--floating,
	.willerev__nav,
	.willerev-card__more {
		display: none !important;
	}

	.willerev.is-enhanced .willerev-card .willerev-card__text {
		display: block;
		-webkit-line-clamp: unset;
		line-clamp: unset;
	}
}
