/**
 * ZnanyLekarz Reviews — style listy opinii.
 *
 * Zmienne CSS pozwalają dopasować wygląd bez edycji pliku:
 * .zlr { --zlr-star: #ff8a00; --zlr-radius: 8px; }
 */

.zlr {
	--zlr-star: #ffb400;
	--zlr-star-empty: #e2e6ea;
	--zlr-border: #e6e9ed;
	--zlr-text: #2b3b47;
	--zlr-muted: #6b7c8a;
	--zlr-accent: #00b6c9;
	--zlr-bg: #fff;
	--zlr-radius: 8px;
	--zlr-gap: 16px;

	color: var(--zlr-text);
	font-size: 15px;
	line-height: 1.55;
}

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

.zlr-title {
	margin: 0 0 var(--zlr-gap);
	font-size: 1.35em;
}

/* --- Ocena zbiorcza --- */

.zlr-summary {
	display: flex;
	align-items: center;
	gap: var(--zlr-gap);
	flex-wrap: wrap;
	padding: var(--zlr-gap);
	margin-bottom: var(--zlr-gap);
	border: 1px solid var(--zlr-border);
	border-radius: var(--zlr-radius);
	background: var(--zlr-bg);
}

.zlr-summary__photo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.zlr-summary__score {
	display: flex;
	align-items: center;
	gap: 8px;
}

.zlr-summary__value {
	font-size: 1.8em;
	font-weight: 700;
	line-height: 1;
}

.zlr-summary__meta {
	display: flex;
	flex-direction: column;
}

.zlr-summary__name {
	font-weight: 600;
}

.zlr-summary__count {
	color: var(--zlr-muted);
	font-size: 0.9em;
}

/* --- Lista --- */

.zlr-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--zlr-gap);
}

.zlr--grid .zlr-list {
	grid-template-columns: repeat(var(--zlr-cols, 2), minmax(0, 1fr));
}

.zlr--cols-1 { --zlr-cols: 1; }
.zlr--cols-2 { --zlr-cols: 2; }
.zlr--cols-3 { --zlr-cols: 3; }
.zlr--cols-4 { --zlr-cols: 4; }

@media (max-width: 782px) {
	.zlr--grid .zlr-list {
		grid-template-columns: 1fr;
	}
}

/* --- Pojedyncza opinia --- */

.zlr-review {
	margin: 0;
	padding: var(--zlr-gap);
	border: 1px solid var(--zlr-border);
	border-radius: var(--zlr-radius);
	background: var(--zlr-bg);
}

.zlr-review[hidden] {
	display: none;
}

.zlr-review__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.zlr-review__avatar {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--zlr-accent);
	color: #fff;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.zlr-review__identity {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin-right: auto;
}

.zlr-review__author {
	font-weight: 600;
}

.zlr-review__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #1e9e5a;
	font-size: 0.8em;
}

.zlr-review__verified svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

.zlr-review__date {
	color: var(--zlr-muted);
	font-size: 0.85em;
	white-space: nowrap;
}

.zlr-review__rating {
	margin-bottom: 8px;
}

.zlr-review__service {
	margin: 0 0 8px;
	color: var(--zlr-muted);
	font-size: 0.88em;
}

.zlr-review__text p {
	margin: 0;
}

.zlr-review__expand,
.zlr-more {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--zlr-accent);
	font: inherit;
	font-size: 0.9em;
	cursor: pointer;
	text-decoration: underline;
}

.zlr-more {
	display: block;
	margin: var(--zlr-gap) auto 0;
	padding: 9px 18px;
	border: 1px solid var(--zlr-accent);
	border-radius: 999px;
	text-decoration: none;
}

.zlr-more:hover,
.zlr-more:focus-visible {
	background: var(--zlr-accent);
	color: #fff;
}

.zlr-review__reply {
	margin-top: 12px;
	padding: 10px 12px;
	border-left: 3px solid var(--zlr-accent);
	background: #f6f9fb;
	border-radius: 0 var(--zlr-radius) var(--zlr-radius) 0;
}

.zlr-review__reply p {
	margin: 4px 0 0;
	font-size: 0.94em;
}

.zlr-review__reply-label {
	font-size: 0.82em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--zlr-muted);
}

/* --- Gwiazdki --- */

.zlr-stars {
	position: relative;
	display: inline-block;
	line-height: 1;
	white-space: nowrap;
}

.zlr-stars__bg,
.zlr-stars__fg {
	display: block;
	line-height: 1;
}

.zlr-stars__bg .zlr-star {
	fill: var(--zlr-star-empty);
}

.zlr-stars__fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.zlr-stars__fg .zlr-star {
	fill: var(--zlr-star);
}

.zlr-star {
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: top;
}

/* --- Stopka i tryb awaryjny --- */

.zlr-source {
	margin: var(--zlr-gap) 0 0;
	font-size: 0.9em;
	text-align: center;
}

.zlr--fallback {
	padding: var(--zlr-gap);
	border: 1px solid var(--zlr-border);
	border-radius: var(--zlr-radius);
	text-align: center;
}

.zlr-fallback__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
}

.zlr-fallback__score {
	font-size: 1.3em;
	font-weight: 700;
}

.zlr-fallback__text {
	margin: 0 0 10px;
	color: var(--zlr-muted);
}

.zlr-notice {
	margin: 8px 0;
	padding: 8px 12px;
	border-left: 3px solid #d63638;
	background: #fcf0f1;
	font-size: 0.9em;
}

.zlr-notice--error {
	border-left-color: #d63638;
}
