/* Pinek NAP Reviews 1.7.1 — ściana opinii: filtry, sortowanie, paginacja + profile firmy */

.pnr {
	--pnr-accent: #ffbf2d;
	--pnr-ink: #2a2a2b;
	--pnr-muted: #6b6b70;
	--pnr-line: #e9e9ec;
	font-family: inherit;
	color: var(--pnr-ink);
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

/* Zjada wolne miejsce, spycha paginację na dół karty i służy za miarę luzu przy dopasowaniu. */
.pnr__spacer {
	flex: 1 1 auto;
	min-height: 0;
}

.pnr__header,
.pnr__filters,
.pnr__list,
.pnr__pagination {
	flex: 0 0 auto;
}

.pnr__header {
	margin-bottom: 20px;
}

.pnr__title {
	margin: 0 0 4px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--pnr-ink);
}

.pnr__subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--pnr-muted);
}

.pnr__list {
	display: flex;
	flex-direction: column;
}

.pnr__item {
	padding: 20px 0;
	border-bottom: 1px solid var(--pnr-line);
}

.pnr__item:first-child {
	padding-top: 0;
}

.pnr__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.pnr__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.pnr__avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background-color: #6c5ce7;
	text-transform: uppercase;
}

/* Zdjęcia awatarów: Elementor wymusza `.elementor img{border-radius:0}` (wyższa specyficzność
   niż `.pnr__avatar`), a Google oddaje awatar JUŻ przycięty do koła (parametr `br100` w URL) —
   przez przezroczyste rogi prześwitywało kolorowe tło spod awatara z inicjałem. Stąd !important. */
.pnr__avatar--photo {
	object-fit: cover;
	background-color: transparent !important;
	border-radius: 50% !important;
}

.pnr__meta {
	display: flex;
	flex-direction: column;
	/* Plakietka zrodla jest o 12 px wyzsza od imienia, wiec jej dolna krawedz schodzi nisko —
	   przy 2 px przerwy dotykala wzrokowo daty. */
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
}

/* Imie i plakietka zrodla dziela jeden wiersz; rzad z gwiazdkami dostaje pod nimi cala szerokosc. */
.pnr__meta-top {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.pnr__author {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pnr__line {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.pnr__stars {
	display: inline-flex;
	gap: 1px;
	font-size: 21px;
	line-height: 1;
	letter-spacing: 1px;
}

.pnr__star {
	color: #d8d8dd;
}

.pnr__star--on {
	color: var(--pnr-accent);
}

.pnr__date {
	font-size: 14px;
	color: var(--pnr-muted);
}

.pnr__source {
	flex: 0 0 auto;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--pnr-line);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pnr-muted);
	white-space: nowrap;
}

.pnr__source-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #8a8a8a;
}

/* Logotyp zrodla — SVG marek + PNG ze znakiem Pinka */
.pnr__source-icon {
	flex: 0 0 auto;
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	overflow: hidden;
}

.pnr__source-icon svg,
img.pnr__source-icon {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* Ten sam override Elementora zdejmowałby zaokrąglenie znakowi Pinka. */
img.pnr__source-icon {
	border-radius: 4px !important;
}

.pnr__text {
	font-size: 15px;
	line-height: 1.6;
	color: #3f3f45;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pnr__text.is-open {
	display: block;
	overflow: visible;
}

.pnr__text p {
	margin: 0;
	white-space: pre-line;
}

/* Odpowiedź firmy pod opinią */

.pnr__reply {
	margin-top: 12px;
	padding: 12px 14px;
	border-left: 3px solid var(--pnr-accent);
	border-radius: 0 8px 8px 0;
	background: #fafafb;
}

.pnr__reply-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}

.pnr__reply-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--pnr-ink);
}

.pnr__reply-date {
	font-size: 12px;
	color: var(--pnr-muted);
}

.pnr__reply-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #3f3f45;
	white-space: pre-line;
}

.pnr__more {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--pnr-ink);
	text-decoration: underline;
	cursor: pointer;
}

.pnr__more:hover {
	color: #000;
}

.pnr__empty,
.pnr__notice {
	margin: 0;
	padding: 24px 0;
	font-size: 15px;
	color: var(--pnr-muted);
}

/* Paginacja */

.pnr__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--pnr-line);
}

.pnr__page {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--pnr-line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--pnr-ink);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pnr__page:hover:not(:disabled):not(.is-active) {
	background: #f6f6f8;
}

.pnr__page.is-active {
	background: var(--pnr-accent);
	border-color: var(--pnr-accent);
	cursor: default;
}

.pnr__page:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.pnr__ellipsis {
	padding: 0 4px;
	color: var(--pnr-muted);
}

/* Szkielet ładowania */

.pnr__item--skeleton .pnr__sk {
	border-radius: 6px;
	background: linear-gradient(90deg, #f0f0f3 25%, #e6e6ea 37%, #f0f0f3 63%);
	background-size: 400% 100%;
	animation: pnr-shimmer 1.4s ease infinite;
}

.pnr__sk--head {
	height: 40px;
	width: 60%;
	margin-bottom: 12px;
}

.pnr__sk--line {
	height: 12px;
	margin-bottom: 8px;
}

.pnr__sk--short {
	width: 70%;
}

@keyframes pnr-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
	.pnr__item--skeleton .pnr__sk {
		animation: none;
	}
}

@media (max-width: 480px) {
	.pnr__title {
		font-size: 19px;
	}

	/* Plakietka z napisem mieści się w wierszu z imieniem — patrz `.pnr__meta-top`.
	   Na wąskim ekranie tylko dociskamy odstępy. */
	.pnr__head {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.pnr__meta-top {
		gap: 8px;
	}

	/* Na telefonie plakietka jest najblizej daty — wiecej powietrza miedzy rzedami. */
	.pnr__meta {
		gap: 8px;
	}

	.pnr__source {
		padding: 5px 10px;
	}

	.pnr__page {
		min-width: 32px;
		height: 32px;
		padding: 0 8px;
	}
}

/* Pasek filtrów */

.pnr__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--pnr-line);
}

.pnr__filter {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 160px;
}

.pnr__filter-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--pnr-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pnr__select {
	width: 100%;
	height: 40px;
	padding: 0 32px 0 12px;
	border: 1px solid var(--pnr-line);
	border-radius: 8px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6b70' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 10px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--pnr-ink);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.pnr__select:hover {
	border-color: #c9c9d0;
}

.pnr__select:focus-visible {
	outline: 2px solid var(--pnr-accent);
	outline-offset: 1px;
}

/* Profile firmy */

.pnp__title {
	margin: 0 0 14px;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	color: var(--pnr-ink, #2a2a2b);
}

/* `.pnp` bywa renderowane poza `.pnr`, więc zmienne z fallbackiem. */
.pnp__empty {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pnr-muted, #6b6b70);
}

.pnp__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.pnp__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 84px;
	text-decoration: none;
	color: #6b6b70;
}

.pnp__item:hover .pnp__mark {
	transform: translateY(-2px);
}

.pnp__item:hover .pnp__label {
	color: #2a2a2b;
}

.pnp__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	line-height: 1;
	transition: transform 0.15s ease;
}

/* Kolorowe „G" Google nie moze lezec na kolorowym tle (wytyczne marki) — bialy kafel z ramka. */
.pnp__mark--outline {
	border: 1px solid #eaeaea;
}

.pnp__mark svg {
	width: 28px;
	height: 28px;
	display: block;
}

.pnp__label {
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.pnp__mark {
		transition: none;
	}
}

@media (max-width: 480px) {
	.pnr__filter {
		flex: 1 1 100%;
	}
}
