/* Opinie na stronie glownej - wariant 1 "Duza ocena" (echtelikes.de 05.11; makieta 4hhFBexvCmtZRKxhfHhrth, spec.html).
   Markup: template-parts/home-reviews.php, JS: assets/js/home-reviews.js. Komentarze w ASCII.
   Selektory z ID (#plh-hr, #plh-hr-how): motyw ma globalne style button (wysokosc 40/50, padding 0 60, obwodka 2 px,
   promien 40) i reset font-family z !important. Arkusz mobile JS przenosi do <body>, dlatego panel ma wlasne ID. */
#plh-hr,
#plh-hr-how,
.plh-hr-ov {
	--hr-brand: #7131F1;
	--hr-ink: #303435;
	--hr-ink2: #5F6366;
	--hr-h: #222;
	--hr-line: #EDEDED;
	--hr-fh: 'Sora', 'Lato', sans-serif;
	--hr-fb: 'Lato', sans-serif;
}
#plh-hr {
	box-sizing: border-box;
	padding: 40px 16px 44px;
	margin: 0 0 50px; /* stopka motywu footer#jas-footer.bgbl ma margin-top:-50px !important (newstyle.css) - jak dawna sekcja opinii */
	color: var(--hr-ink);
	background: #fff;
	overflow: visible;
}
#plh-hr *,
#plh-hr *::before,
#plh-hr *::after,
#plh-hr-how,
#plh-hr-how * {
	box-sizing: border-box;
}
#plh-hr, #plh-hr div, #plh-hr p, #plh-hr span, #plh-hr a, #plh-hr button, #plh-hr ul, #plh-hr li, #plh-hr article,
#plh-hr-how, #plh-hr-how div, #plh-hr-how span, #plh-hr-how button, #plh-hr-how ul, #plh-hr-how li {
	font-family: var(--hr-fb) !important;
}
#plh-hr .plh-hr__h2,
#plh-hr .plh-hr__num,
#plh-hr-how .plh-hr__popt {
	font-family: var(--hr-fh) !important;
}
.plh-hr__in {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.plh-hr__sum {
	position: relative;
	min-width: 0;
}
.plh-hr__main {
	min-width: 0;
}
#plh-hr .plh-hr__h2 {
	margin: 0;
	padding: 0;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--hr-h);
	text-transform: none;
	letter-spacing: 0;
}
.plh-hr__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Duza ocena */
.plh-hr__big {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
}
#plh-hr .plh-hr__num {
	font-size: 52px;
	font-weight: 500;
	line-height: 1;
	color: var(--hr-h);
	font-variant-numeric: tabular-nums;
}
#plh-hr .plh-hr__cnt {
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--hr-ink2);
}

/* Kwadraty z gwiazdkami: gwiazdka = maska SVG (viewBox kwadratowy - WebKit sciska inne proporcje). */
.plh-hr__sq {
	display: inline-flex;
	gap: 3px;
	vertical-align: middle;
	flex: none;
}
.plh-hr__sq i {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	background: var(--hr-brand);
}
.plh-hr__sq i.is-off {
	background: #DDD9D5;
}
.plh-hr__sq i::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 11px;
	height: 11px;
	margin: -5.5px 0 0 -5.5px;
	background: #fff;
	transform: translateY(.05em);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -32 576 576'%3E%3Cpath d='M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -32 576 576'%3E%3Cpath d='M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plh-hr__sq--lg {
	gap: 4px;
}
.plh-hr__sq--lg i {
	width: 26px;
	height: 26px;
	border-radius: 4px;
}
.plh-hr__sq--lg i::before {
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
}

/* "Jak zbieramy opinie" */
.plh-hr__how {
	position: relative;
	margin-top: 8px;
}
#plh-hr button.plh-hr__howbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: auto;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--hr-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: none;
}
#plh-hr .plh-hr__howbtn .plh-hr__ic {
	flex: none;
	width: 15px;
	height: 15px;
	color: var(--hr-ink2);
}
#plh-hr .plh-hr__howbtn span {
	text-decoration: underline;
	text-decoration-color: var(--hr-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-color .12s ease;
}
#plh-hr .plh-hr__howbtn:is(:hover, :focus-visible, [aria-expanded="true"]) span {
	text-decoration-color: var(--hr-brand);
	text-decoration-thickness: 2px;
}
#plh-hr .plh-hr__howbtn:focus {
	outline: none;
}
#plh-hr .plh-hr__howbtn:focus-visible span {
	outline: 2px solid var(--hr-ink);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Dymek (desktop/tablet) */
#plh-hr-how {
	position: absolute;
	left: 0;
	top: calc(100% + 6px);
	z-index: 60;
	width: 360px;
	max-width: calc(100vw - 32px);
	padding: 18px 20px 12px;
	border: 1px solid var(--hr-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(48, 52, 53, .12);
	color: var(--hr-ink);
	text-align: left;
}
#plh-hr-how[hidden] {
	display: none !important;
}
#plh-hr-how .plh-hr__grab,
#plh-hr-how button.plh-hr__ok {
	display: none;
}
#plh-hr-how .plh-hr__popt {
	margin: 0 44px 12px 0;
	padding: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--hr-h);
	outline: none;
}
#plh-hr-how button.plh-hr__x {
	position: absolute;
	right: 6px;
	top: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	box-shadow: none;
	color: var(--hr-ink2);
	line-height: 1;
	cursor: pointer;
	transition: none;
}
#plh-hr-how button.plh-hr__x:hover {
	color: var(--hr-ink);
	background: none;
}
#plh-hr-how .plh-hr__x .plh-hr__ic {
	width: 16px;
	height: 16px;
}
#plh-hr-how .plh-hr__hl {
	margin: 0;
	padding: 0;
	list-style: none;
}
#plh-hr-how .plh-hr__hl li {
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--hr-line);
	font-size: 14px;
	line-height: 1.45;
	color: var(--hr-ink);
	list-style: none;
}
#plh-hr-how .plh-hr__hl li::before {
	content: none;
}
#plh-hr-how .plh-hr__hl li:first-child {
	padding-top: 0;
	border-top: 0;
	font-weight: 700;
}
#plh-hr-how button:focus {
	outline: none;
}
#plh-hr-how button:focus-visible {
	outline: 2px solid var(--hr-brand);
	outline-offset: 2px;
}

/* Arkusz od dolu (telefon) - panel i tlo w <body>. Blokada przewijania gestami w JS (bez body fixed). */
.plh-hr-ov {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: rgba(48, 52, 53, .45);
	opacity: 0;
	touch-action: none;
	transition: opacity .2s ease-out;
}
.plh-hr-ov.is-open {
	opacity: 1;
}
.plh-hr-ov:not(.is-open) {
	pointer-events: none;
}
#plh-hr-how.is-sheet {
	position: fixed;
	left: 0;
	right: 0;
	top: auto;
	bottom: 0;
	z-index: 2147483001;
	width: auto;
	max-width: none;
	max-height: 85vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	touch-action: pan-y;
	padding: 10px 20px 24px;
	border: 0;
	border-radius: 14px 14px 0 0;
	box-shadow: 0 -8px 24px rgba(48, 52, 53, .16);
	transform: translateY(100%);
	transition: transform .25s ease-out;
}
#plh-hr-how.is-sheet.is-open {
	transform: none;
}
#plh-hr-how.is-sheet .plh-hr__grab {
	display: block;
	width: 40px;
	height: 4px;
	margin: 0 auto 14px;
	border-radius: 2px;
	background: #DDD9D5;
}
#plh-hr-how.is-sheet button.plh-hr__x {
	display: none;
}
#plh-hr-how.is-sheet .plh-hr__popt {
	margin: 0 0 14px;
	font-size: 18px;
}
#plh-hr-how.is-sheet button.plh-hr__ok {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	margin: 14px 0 0;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: var(--hr-ink);
	box-shadow: none;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: none;
}
#plh-hr-how.is-sheet button.plh-hr__ok:hover {
	background: var(--hr-ink);
	color: #fff;
}

/* Karty */
.plh-hr__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}
.plh-hr__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--hr-line);
	border-radius: 8px;
	background: #fff;
	outline: none;
}
.plh-hr__card:focus-visible {
	outline: 2px solid var(--hr-ink);
	outline-offset: 2px;
}
/* Telefon: z HTML widac 3 karty, kolejne 3 odslania pierwszy klik "Pokaz wiecej" (bez zapytania). Bez JS - wszystkie. */
@media (max-width: 767px) {
	#plh-hr.is-js .plh-hr__card.is-m:not(.is-on) {
		display: none;
	}
}
.plh-hr__who {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
#plh-hr .plh-hr__name {
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: .02em;
	color: var(--hr-ink);
	white-space: nowrap;
	text-overflow: ellipsis;
}
#plh-hr .plh-hr__txt {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hr-ink);
	white-space: pre-line;
	overflow-wrap: anywhere;
}
#plh-hr a.plh-hr__svc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	min-height: 32px;
	margin-top: auto;
	padding: 6px 0 0;
	color: var(--hr-ink2);
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: none;
}
#plh-hr a.plh-hr__svc img {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
}
#plh-hr a.plh-hr__svc span {
	text-decoration: underline;
	text-decoration-color: #B5B8BA;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#plh-hr a.plh-hr__svc .plh-hr__ic {
	flex: none;
	width: 10px;
	height: 10px;
}
#plh-hr a.plh-hr__svc:hover,
#plh-hr a.plh-hr__svc:focus-visible {
	color: var(--hr-ink);
}
#plh-hr a.plh-hr__svc:is(:hover, :focus-visible) span {
	text-decoration-color: var(--hr-brand);
	text-decoration-thickness: 2px;
}
#plh-hr a.plh-hr__svc:focus {
	outline: none;
}
#plh-hr a.plh-hr__svc:focus-visible {
	outline: 2px solid var(--hr-ink);
	outline-offset: 2px;
	border-radius: 2px;
}

/* "Pokaz wiecej" + stany */
.plh-hr__morew {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}
.plh-hr__morew:has(> .plh-hr__more[hidden]):has(> .plh-hr__err:empty) {
	margin-top: 0;
}
#plh-hr button.plh-hr__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--hr-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--hr-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	opacity: 1;
	transition: border-color .12s ease;
}
#plh-hr button.plh-hr__more[hidden] {
	display: none;
}
#plh-hr button.plh-hr__more:hover,
#plh-hr button.plh-hr__more:focus-visible {
	border-color: var(--hr-brand);
	background: #fff;
	color: var(--hr-ink);
	outline: none;
}
#plh-hr button.plh-hr__more:focus {
	outline: none;
}
#plh-hr button.plh-hr__more[disabled] {
	color: var(--hr-ink2);
	cursor: default;
	opacity: 1;
}
.plh-hr__more .plh-hr__spin,
.plh-hr__more .plh-hr__ic--retry {
	display: none;
	flex: none;
}
.plh-hr__more.is-busy .plh-hr__spin {
	display: block;
	width: 16px;
	height: 16px;
	border: 2px solid #DDD9D5;
	border-top-color: var(--hr-ink2);
	border-radius: 50%;
	animation: plh-hr-spin .8s linear infinite;
}
.plh-hr__more.is-retry .plh-hr__ic--retry {
	display: block;
	width: 16px;
	height: 16px;
}
@keyframes plh-hr-spin {
	to { transform: rotate(360deg); }
}
#plh-hr .plh-hr__err {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #F4C7C1;
	border-radius: 8px;
	background: #FDEDEB;
	color: #B3261E;
	font-size: 14px;
	line-height: 1.45;
}
#plh-hr .plh-hr__err:empty {
	display: none;
}
#plh-hr .plh-hr__err .plh-hr__ic {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
}
#plh-hr .plh-hr__err span {
	color: #B3261E;
}

@media (prefers-reduced-motion: reduce) {
	.plh-hr__more.is-busy .plh-hr__spin {
		animation: none;
	}
	.plh-hr-ov,
	#plh-hr-how.is-sheet {
		transition: none;
	}
}

@media (min-width: 768px) {
	.plh-hr__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
	#plh-hr button.plh-hr__more {
		width: auto;
		align-self: flex-start;
	}
}
@media (min-width: 1024px) {
	#plh-hr {
		padding: 72px 30px 80px;
	}
	/* dymek nie zachodzi na kolumne kart (kolumna 300 px + odstep 48) */
	#plh-hr-how:not(.is-sheet) {
		width: 340px;
	}
	.plh-hr__in {
		display: grid;
		grid-template-columns: 300px minmax(0, 1fr);
		gap: 48px;
		align-items: start;
	}
	#plh-hr .plh-hr__h2 {
		font-size: 30px;
	}
}
