/**
 * Custom Reviews — Modern Premium SaaS Design System
 *
 * Specyfikacja:
 *   - Karty: #ffffff, rounded-3xl (32px), shadow 0 20px 50px -12px rgba(0,0,0,0.05)
 *   - Tło: #FDFDFF z mesh gradients (pastelowy fiolet/róż)
 *   - Typografia: #111827, weight 800, accent gradient na wyróżnieniach
 *   - Pill elements: full rounded, delikatny border lub jasne tło
 *   - CTA: gradient fiolet→purpura, shadow w kolorze gradientu
 *   - Ikony: soft pastel (nasycona ikona na jasnym tle tego samego odcienia)
 *
 * @package CustomReviews
 */

/* ==================================================================
   Design tokens
   ================================================================== */
.cr-reviews,
.cr-review-form,
.cr-account-form,
.cr-token-page,
.cr-token-thankyou,
.cr-latest-reviews,
.cr-wizard,
.cr-single-product-form {
	/* === Kolorystyka Wypromowani.pl === */

	/* Tła */
	--cr-bg-page:       #F5F7FF;
	--cr-bg-card:       #FFFFFF;
	--cr-bg-subtle:     #ECF3FF;

	/* Tekst */
	--cr-text:          #132A5F;
	--cr-text-secondary:#333333;
	--cr-text-muted:    #333333;
	--cr-border:        #E5E7EB;
	--cr-border-strong: #ABD4FF;

	/* Akcent — navy gradient */
	--cr-accent-from:   #132A5F;
	--cr-accent-to:     #2a4f8f;
	--cr-accent:        #132A5F;
	--cr-accent-light:  #ECF3FF;
	--cr-accent-ultra-light: #F5F7FF;

	/* Sukces */
	--cr-success:       #10b981;
	--cr-success-light: #ecfdf5;
	--cr-success-border:#a7f3d0;

	/* Błąd */
	--cr-error:         #ef4444;
	--cr-error-light:   #fef2f2;

	/* Gwiazdki — złoty separator Wypromowani */
	--cr-star:          #FFE27A;
	--cr-star-empty:    #E5E7EB;

	/* Separator */
	--cr-separator:     #FFE27A;

	/* Karta */
	--cr-card-radius:   32px;
	--cr-card-shadow:   0 20px 50px -12px rgba(19, 42, 95, 0.06);
	--cr-card-shadow-hover: 0 25px 60px -12px rgba(19, 42, 95, 0.12);

	/* Pill */
	--cr-pill-radius:   9999px;

	/* Mniejsze radiusy */
	--cr-radius-md:     16px;
	--cr-radius-sm:     12px;
	--cr-radius-xs:     8px;

	/* Typografia */
	--cr-font:          inherit;

	font-family: var(--cr-font);
	color: var(--cr-text);
	line-height: 1.6;
}

/* ==================================================================
   Gwiazdki (globalne)
   ================================================================== */
.cr-star {
	display: inline-block;
	line-height: 1;
}

.cr-star-full,
.cr-star-half {
	color: var(--cr-star);
}

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

.cr-star-half {
	position: relative;
	display: inline-block;
	color: var(--cr-star-empty);
}

.cr-star-half::before {
	content: "★";
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	overflow: hidden;
	color: var(--cr-star);
	display: inline-block;
}

/* ==================================================================
   Avatary z inicjałami — gradientowe kółka
   ================================================================== */
.cr-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	flex-shrink: 0;
	text-transform: uppercase;
	line-height: 1;
}

.cr-avatar-gradient-0 { background: linear-gradient(135deg, #132A5F, #a78bfa); }
.cr-avatar-gradient-1 { background: linear-gradient(135deg, #06b6d4, #67e8f9); }
.cr-avatar-gradient-2 { background: linear-gradient(135deg, #f97316, #fdba74); }
.cr-avatar-gradient-3 { background: linear-gradient(135deg, #10b981, #6ee7b7); }
.cr-avatar-gradient-4 { background: linear-gradient(135deg, #3b82f6, #93c5fd); }
.cr-avatar-gradient-5 { background: linear-gradient(135deg, #ec4899, #f9a8d4); }


/* ██████████████████████████████████████████████████████████████████
   STRONA PRODUKTU — zakładka "Opinie"
   ██████████████████████████████████████████████████████████████████ */

.cr-reviews {
	max-width: 1170px;
	margin: 0 auto;
	scroll-margin-top: 120px;
}

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

/* ------------------------------------------------------------------
   Widget statystyk — karta z cieniem
   ------------------------------------------------------------------ */
.cr-reviews-summary {
	display: grid;
	grid-template-columns: minmax(180px, auto) 1fr;
	gap: 48px;
	align-items: center;
	padding: 36px 40px;
	background: var(--cr-bg-card);
	border-radius: var(--cr-card-radius);
	box-shadow: var(--cr-card-shadow);
	margin-bottom: 28px;
}

@media (max-width: 640px) {
	.cr-reviews-summary {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px 14px;
		text-align: center;
		border-radius: var(--cr-radius-md);
	}
	.cr-summary-average { font-size: 40px; }
	.cr-summary-stars { font-size: 18px; margin: 6px 0 4px; }
	.cr-summary-count { font-size: 12px; }
	.cr-omnibus-notice { padding: 10px 12px; font-size: 12px; margin-bottom: 16px; }
	.cr-reviews-list-heading { font-size: 18px; margin: 16px 0 12px; }
	.cr-reviews-list { gap: 10px; margin-bottom: 16px; }
	.cr-review { padding: 14px 16px !important; border-radius: 16px; }
	.cr-review-author-row { gap: 10px; margin-bottom: 10px; }
	.cr-review-author-info .cr-review-author { font-size: 13px; }
	.cr-review-author-row .cr-review-rating { font-size: 14px; }
	.cr-review-title { font-size: 15px; }
	.cr-review-body { font-size: 13px; margin-bottom: 10px; }
	.cr-review-footer { padding-top: 10px; gap: 6px; }
	.cr-review-verified, .cr-review-pinned-badge, .cr-review-tag { font-size: 10px; padding: 3px 8px; }
	.cr-avatar { width: 34px; height: 34px; font-size: 13px; }
	.cr-admin-reply { padding: 12px 14px; margin-top: 12px; }
	.cr-admin-reply-body { font-size: 13px; }
	.cr-add-review-wrap { padding: 20px 16px; margin-top: 20px; }
	.cr-add-review-heading { font-size: 15px; margin-bottom: 10px; }
	.cr-add-review-btn { padding: 12px 28px; font-size: 14px; }
	.cr-pagination { gap: 4px; margin-top: 16px; padding-top: 14px; }
	.cr-pagination a, .cr-pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
	.cr-tag-filter-bar { gap: 6px; margin-bottom: 16px; }
	.cr-tag-filter-btn { padding: 6px 12px; font-size: 12px; }
	.cr-like-btn { padding: 4px 10px; min-width: 36px; min-height: 28px; }
	.cr-like-icon { font-size: 15px; }
	.card-description { padding: 15px !important; }
}

.cr-summary-score { text-align: center; }

.cr-summary-average {
	font-size: 60px;
	font-weight: 800;
	color: var(--cr-text);
	line-height: 1;
	letter-spacing: -0.03em;
}

.cr-summary-max {
	font-size: 22px;
	color: var(--cr-text-muted);
	font-weight: 400;
	margin-left: 2px;
}

.cr-summary-stars {
	display: inline-block;
	font-size: 24px;
	letter-spacing: 3px;
	margin: 12px 0 8px;
	line-height: 1;
}

.cr-summary-count {
	font-size: 13px;
	color: var(--cr-text-muted);
	font-weight: 500;
}

/* Rozkład gwiazdek */
.cr-summary-distribution {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cr-distribution-row {
	display: grid;
	grid-template-columns: 42px 1fr 36px;
	gap: 14px;
	align-items: center;
	font-size: 13px;
	text-decoration: none;
	color: inherit;
	padding: 4px 8px;
	margin: 0 -8px;
	border-radius: 6px;
	transition: background 0.15s;
}

a.cr-distribution-row.cr-distribution-clickable:hover {
	background: rgba(14, 40, 104, 0.04);
	cursor: pointer;
}

.cr-distribution-row.cr-distribution-active {
	background: #f0f2ff;
}

.cr-distribution-label {
	color: var(--cr-text-muted);
	font-weight: 600;
	font-size: 13px;
}

.cr-distribution-bar {
	background: #f3f4f6;
	height: 10px;
	border-radius: var(--cr-pill-radius);
	overflow: hidden;
}

.cr-distribution-fill {
	height: 100%;
	border-radius: var(--cr-pill-radius);
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cr-distribution-row:nth-child(1) .cr-distribution-fill { background: linear-gradient(90deg, #059669, #10b981); }
.cr-distribution-row:nth-child(2) .cr-distribution-fill { background: linear-gradient(90deg, #10b981, #34d399); }
.cr-distribution-row:nth-child(3) .cr-distribution-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.cr-distribution-row:nth-child(4) .cr-distribution-fill { background: linear-gradient(90deg, #ef4444, #f87171); }
.cr-distribution-row:nth-child(5) .cr-distribution-fill { background: linear-gradient(90deg, #9ca3af, #d1d5db); }

.cr-distribution-count {
	color: var(--cr-text-secondary);
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
   Omnibus notice — pill style
   ------------------------------------------------------------------ */
.cr-omnibus-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 20px;
	background: var(--cr-accent-ultra-light);
	border: 1px solid rgba(19, 42, 95, 0.06);
	border-radius: var(--cr-radius-md);
	color: var(--cr-accent);
	font-size: 13px;
	line-height: 1.6;
	margin-bottom: 28px;
}

.cr-omnibus-notice::before {
	content: "ℹ";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: rgba(19, 42, 95, 0.06);
	color: var(--cr-accent);
	border-radius: var(--cr-radius-xs);
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.cr-omnibus-notice p { margin: 0; }

/* ------------------------------------------------------------------
   Nagłówek "Recenzje klientów"
   ------------------------------------------------------------------ */
.cr-reviews-list-heading {
	margin: 32px 0 20px;
	font-size: 22px;
	font-weight: 800;
	color: var(--cr-text);
}

/* ------------------------------------------------------------------
   Lista opinii
   ------------------------------------------------------------------ */
.cr-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.cr-reviews-empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--cr-text-muted);
	background: var(--cr-bg-card);
	border: 2px dashed rgba(0, 0, 0, 0.06);
	border-radius: var(--cr-card-radius);
	font-size: 15px;
}

/* Pojedyncza opinia — karta */
.cr-review {
	padding: 28px 32px;
	background: var(--cr-bg-card);
	border: none;
	border-radius: var(--cr-card-radius);
	box-shadow: var(--cr-card-shadow);
}

.cr-review-pinned {
	border-left: 4px solid var(--cr-star);
}

/* Wiersz autora z avatarem */
.cr-review-author-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.cr-review-author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.cr-review-author-info .cr-review-author {
	font-weight: 700;
	font-size: 15px;
	color: var(--cr-text);
}

.cr-review-author-info .cr-review-date {
	font-size: 12px;
	color: var(--cr-text-muted);
}

.cr-review-author-row .cr-review-rating {
	font-size: 17px;
	letter-spacing: 1px;
	line-height: 1;
	flex-shrink: 0;
	margin: 0;
}

.cr-review-header { margin-bottom: 12px; }

.cr-review-rating {
	font-size: 18px;
	letter-spacing: 2px;
	margin-bottom: 6px;
	line-height: 1;
}

.cr-review-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	color: var(--cr-text);
	line-height: 1.35;
}

.cr-review-body {
	color: #333333;
	font-size: 14.5px;
	line-height: 1.7;
	margin-bottom: 16px;
	word-wrap: break-word;
}

.cr-review-body p { margin: 0 0 8px; }
.cr-review-body p:last-child { margin-bottom: 0; }

.cr-review-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--cr-text-muted);
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Badge pill — "Zweryfikowany zakup" */
.cr-review-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 14px;
	background: var(--cr-success-light);
	color: var(--cr-success);
	border: 1px solid var(--cr-success-border);
	border-radius: var(--cr-pill-radius);
	font-weight: 600;
	font-size: 11px;
}

.cr-review-pinned-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 14px;
	background: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
	border-radius: var(--cr-pill-radius);
	font-weight: 600;
	font-size: 11px;
}

/* Badge "Dane ocenzurowane na prośbę klienta" — anonimowa opinia */
.cr-author-anon-note {
	display: inline-block;
	font-size: 11px;
	color: var(--cr-text-muted);
	font-style: italic;
	line-height: 1.3;
}

/* Checkbox row w formularzu */
.cr-form-row-checkbox {
	padding: 14px 18px;
	background: var(--cr-bg-subtle, #f8f7ff);
	border-radius: var(--cr-radius-xs, 8px);
}

.cr-form-row-checkbox label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}

.cr-form-row-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--cr-accent, #132A5F);
	flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Paginacja
   ------------------------------------------------------------------ */
.cr-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
	padding-top: 24px;
}

.cr-pagination a,
.cr-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--cr-pill-radius);
	color: var(--cr-text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: all 0.2s;
	background: var(--cr-bg-card);
}

.cr-pagination a:hover {
	background: var(--cr-accent-ultra-light);
	border-color: var(--cr-accent);
	color: var(--cr-accent);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(19, 42, 95, 0.06);
}

.cr-pagination .current {
	background: linear-gradient(135deg, var(--cr-accent-from), var(--cr-accent-to));
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 4px 16px rgba(19, 42, 95, 0.25);
}

.cr-pagination .dots {
	border: none;
	background: transparent;
	color: var(--cr-text-muted);
	min-width: auto;
	box-shadow: none;
}

.cr-pagination .prev,
.cr-pagination .next {
	font-size: 18px;
}

.cr-pagination-info {
	width: 100%;
	text-align: center;
	margin-top: 10px;
	font-size: 13px;
	color: var(--cr-text-muted);
	font-weight: 500;
}

/* ------------------------------------------------------------------
   CTA "Dodaj opinię" — gradient button
   ------------------------------------------------------------------ */
.cr-add-review-wrap {
	margin: 36px 0 0;
	text-align: center;
	padding: 40px 32px;
	background: var(--cr-bg-card);
	border-radius: var(--cr-card-radius);
	box-shadow: var(--cr-card-shadow);
}

.cr-add-review-heading {
	display: block;
	margin-bottom: 16px;
	font-size: 18px;
	font-weight: 800;
	color: var(--cr-text);
}

.cr-add-review-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 40px;
	background: linear-gradient(135deg, var(--cr-accent-from), var(--cr-accent-to));
	color: #ffffff;
	text-decoration: none;
	border-radius: var(--cr-pill-radius);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	border: none;
	cursor: pointer;
	transition: all 0.25s;
	box-shadow: 0 8px 24px -4px rgba(19, 42, 95, 0.3);
	font-family: inherit;
}

.cr-add-review-btn::before {
	content: "✦";
	font-size: 16px;
}

.cr-add-review-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px -4px rgba(19, 42, 95, 0.4);
	color: #ffffff;
	text-decoration: none;
}

.cr-add-review-btn:active {
	transform: translateY(0);
	box-shadow: 0 4px 16px -4px rgba(19, 42, 95, 0.3);
}

/* ==================================================================
   Odpowiedź sklepu (admin reply)
   ================================================================== */
.cr-admin-reply {
	margin-top: 18px;
	padding: 18px 22px;
	background: var(--cr-accent-ultra-light, #F5F7FF);
	border-left: 4px solid var(--cr-accent, #132A5F);
	border-radius: 0 var(--cr-radius-sm, 12px) var(--cr-radius-sm, 12px) 0;
}

.cr-admin-reply-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.cr-admin-reply-icon {
	font-size: 16px;
	line-height: 1;
}

.cr-admin-reply-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--cr-accent, #132A5F);
}

.cr-admin-reply-date {
	font-size: 11px;
	color: var(--cr-text-muted);
	font-weight: 400;
	margin-left: auto;
}

.cr-admin-reply-body {
	font-size: 14px;
	line-height: 1.65;
	color: #333333;
}

.cr-admin-reply-body p {
	margin: 0 0 6px;
}

.cr-admin-reply-body p:last-child {
	margin-bottom: 0;
}

.cr-admin-reply-image {
	margin-top: 12px;
}

.cr-admin-reply-image img {
	max-width: 100%;
	max-height: 300px;
	border-radius: var(--cr-radius-sm, 12px);
	border: 1px solid var(--cr-border, #E5E7EB);
	object-fit: cover;
}

.cr-admin-reply-link {
	margin-top: 10px;
}

.cr-admin-reply-link a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	background: var(--cr-accent-light, #ECF3FF);
	color: var(--cr-accent, #132A5F);
	border-radius: var(--cr-pill-radius, 9999px);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.cr-admin-reply-link a:hover {
	background: var(--cr-border-strong, #ABD4FF);
	color: var(--cr-accent, #132A5F);
}

/* Kompaktowa wersja w [custom_reviews_latest] */
.cr-admin-reply-compact {
	padding: 12px 16px;
	margin-top: 14px;
	margin-bottom: 4px;
}

.cr-admin-reply-compact .cr-admin-reply-label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
}

.cr-admin-reply-compact .cr-admin-reply-body {
	font-size: 13px;
}

/* ==================================================================
   Tagi — pasek filtrów na stronie produktu
   ================================================================== */
.cr-tag-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	padding: 0;
}

.cr-tag-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	background: var(--cr-bg-card, #ffffff);
	border: 1.5px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--cr-pill-radius, 9999px);
	color: var(--cr-text-secondary, #4b5563);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
	line-height: 1;
}

.cr-tag-filter-btn:hover {
	border-color: var(--cr-accent, #132A5F);
	color: var(--cr-accent, #132A5F);
	background: var(--cr-accent-ultra-light, #F5F7FF);
	text-decoration: none;
}

.cr-tag-filter-btn.cr-tag-active {
	background: linear-gradient(135deg, var(--cr-accent-from, #132A5F), var(--cr-accent-to, #2a4f8f));
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(19, 42, 95, 0.2);
}

.cr-tag-filter-btn.cr-tag-active:hover {
	box-shadow: 0 6px 16px rgba(19, 42, 95, 0.3);
	color: #ffffff;
}


/* Pasek aktywnego filtra + przycisk wyczyść */
.cr-active-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	margin: 16px 0;
	background: #f0f2ff;
	border: 1px solid rgba(14, 40, 104, 0.08);
	border-radius: 10px;
	font-size: 13px;
}

.cr-active-filter-info {
	color: #0E2868;
	font-weight: 600;
}

.cr-clear-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 14px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.cr-clear-filter-btn:hover {
	background: #fef2f2;
	color: #ef4444;
	border-color: #fca5a5;
}

/* Badge tagu przy opinii */
.cr-review-tag {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	background: var(--cr-accent-ultra-light, #F5F7FF);
	color: var(--cr-accent, #132A5F);
	border: 1px solid rgba(19, 42, 95, 0.08);
	border-radius: var(--cr-pill-radius, 9999px);
	font-size: 11px;
	font-weight: 600;
}

@media (max-width: 640px) {
	.cr-tag-filter-bar {
		gap: 6px;
	}
	.cr-tag-filter-btn {
		padding: 6px 14px;
		font-size: 12px;
	}
}

/* ==================================================================
   Serduszka — polubienia opinii
   ================================================================== */
button.cr-like-btn,
.cr-like-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 4px 14px;
	min-width: 44px;
	min-height: 30px;
	background: #fef2f2;
	border: none;
	border-radius: 9999px;
	color: #ef4444;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-transform: none;
	vertical-align: middle;
	margin-top: 0;
	line-height: 1;
	transition: all 0.2s;
	margin-left: auto;
	line-height: 1;
}

.cr-like-btn:hover {
	background: #fde8e8;
	color: #dc2626;
}

.cr-like-btn.cr-liked {
	background: #fde8e8;
	color: #dc2626;
}

.cr-like-icon {
	font-size: 15px;
	line-height: 1;
}

.cr-like-count {
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* Gdy brak count span — serduszko wycentrowane dzięki justify-content: center.
   Gdy count jest — gap: 5px rozdziela ikonę od liczby. */

/* Animacja pulse po kliknięciu */
@keyframes cr-like-pulse-anim {
	0%   { transform: scale(1); }
	30%  { transform: scale(1.3); }
	60%  { transform: scale(0.9); }
	100% { transform: scale(1); }
}

.cr-like-pulse .cr-like-icon {
	animation: cr-like-pulse-anim 0.4s ease-out;
}

/* ==================================================================
   Ocenzurowana treść [cenzura]...[/cenzura]
   ================================================================== */
.cr-content-censored {
	display: inline;
	padding: 2px 8px;
	background: #ECF3FF;
	color: var(--cr-accent, #132A5F);
	border-radius: 4px;
	font-size: 0.9em;
	font-style: italic;
	font-weight: 500;
}


/* ██████████████████████████████████████████████████████████████████
   DASHBOARD KLIENTA — styl z mockupu Wypromowani
   Brand: #0E2868 | Accent: #FFDE65 | Light: #f0f2ff
   Taby pill: rounded-xl, active=navy fill | Karty: rounded-2xl border-gray-100
   ██████████████████████████████████████████████████████████████████ */

.cr-dashboard {
	max-width: 1170px;
	margin: 0 auto;
	font-family: 'Poppins', sans-serif;
}

/* --- Taby — pill buttons (z mockupu) -------------------------------- */
.cr-dashboard-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
}

.cr-dashboard-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #9ca3af;
	text-decoration: none;
	background: #ffffff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	transition: all 0.2s;
	cursor: pointer;
}

.cr-dashboard-tab:hover {
	color: #0E2868;
	border-color: #d1d5db;
	text-decoration: none;
}

.cr-dashboard-tab-active {
	background: #0E2868;
	color: #ffffff;
	border-color: #0E2868;
	box-shadow: 0 4px 12px rgba(14, 40, 104, 0.25);
}

.cr-dashboard-tab-active:hover {
	color: #ffffff;
}

.cr-dashboard-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	background: #e5e7eb;
	color: #6b7280;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
}

.cr-dashboard-tab-active .cr-dashboard-tab-badge {
	background: #FFDE65;
	color: #0E2868;
}

/* --- Pusta lista --------------------------------------------------- */
.cr-dashboard-empty {
	text-align: center;
	padding: 64px 24px;
}

.cr-dashboard-empty-icon {
	font-size: 48px;
	margin-bottom: 16px;
	display: block;
}

.cr-dashboard-empty h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: #0E2868;
}

.cr-dashboard-empty p {
	margin: 0 0 24px;
	font-size: 14px;
	color: #6b7280;
}

/* --- Statystyki — grid trust-style na dole -------------------------- */
.cr-dashboard-stats {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.cr-dashboard-stats-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9ca3af;
	margin-bottom: 12px;
	display: block;
}

.cr-dashboard-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.cr-dashboard-stat {
	background: #ffffff;
	border-radius: 12px;
	padding: 12px 16px;
	border: 1px solid #f3f4f6;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.cr-dashboard-stat-emoji {
	font-size: 18px;
	margin-bottom: 4px;
	display: block;
}

.cr-dashboard-stat-value {
	display: block;
	font-size: 20px;
	font-weight: 800;
	color: #0E2868;
	line-height: 1.2;
}

.cr-dashboard-stat-value small {
	font-size: 12px;
	font-weight: 400;
	color: #9ca3af;
}

.cr-dashboard-stat-label {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	font-weight: 500;
	color: #6b7280;
}

/* --- Karty zamówień (tab "Do oceny") -------------------------------- */
.cr-wizard-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* --- Karty opinii klienta (tab "Moje opinie") ----------------------- */
.cr-my-reviews {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cr-my-review {
	display: flex;
	gap: 16px;
	padding: 20px 24px;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	animation: cr-card-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cr-my-review:nth-child(1) { animation-delay: 0.06s; }
.cr-my-review:nth-child(2) { animation-delay: 0.12s; }
.cr-my-review:nth-child(3) { animation-delay: 0.18s; }
.cr-my-review:nth-child(4) { animation-delay: 0.24s; }
.cr-my-review:nth-child(5) { animation-delay: 0.30s; }

@keyframes cr-card-fade-in {
	0%   { opacity: 0; transform: translateY(8px); }
	100% { opacity: 1; transform: translateY(0); }
}

.cr-my-review:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Product icon (lewa kolumna) */
.cr-my-review-product-image {
	flex-shrink: 0;
}

.cr-my-review-thumb {
	width: 52px !important;
	height: 52px !important;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid #f3f4f6;
	background: #f0f2ff;
}

/* Content (prawa kolumna) */
.cr-my-review-body {
	flex: 1;
	min-width: 0;
}

.cr-my-review-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 0;
}

.cr-my-review-product-info { min-width: 0; }

.cr-my-review-product-name {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #0E2868;
}

.cr-my-review-product-name a {
	color: #0E2868;
	text-decoration: none;
	transition: color 0.2s;
}

.cr-my-review-product-name a:hover { color: #174a9a; }

.cr-my-review-order {
	font-size: 10px;
	color: #9ca3af;
	margin-top: 2px;
	display: block;
}

.cr-my-review-likes {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	color: #9ca3af;
	flex-shrink: 0;
}

/* Rating stars */
.cr-my-review-rating {
	display: flex;
	gap: 2px;
	margin: 8px 0;
	font-size: 12px;
}

/* Title + excerpt */
.cr-my-review-content { margin-bottom: 0; }

.cr-my-review-title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 500;
	color: #0E2868;
}

.cr-my-review-excerpt {
	margin: 0;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Footer: status */
.cr-my-review-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.cr-my-review-status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 10px;
	font-weight: 600;
}

.cr-status-published { background: #ecfdf5; color: #059669; }
.cr-status-published::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.cr-status-pending { background: #fffbeb; color: #b45309; }
.cr-status-hidden { background: #f3f4f6; color: #6b7280; }

/* Odpowiedź sklepu — bg-light rounded-xl (z mockupu) */
.cr-my-review-reply {
	margin-top: 14px;
	padding: 14px;
	background: #f0f2ff;
	border-radius: 12px;
	border: 1px solid #f3f4f6;
}

.cr-my-review-reply-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.cr-my-review-reply-label {
	font-size: 10px;
	font-weight: 600;
	color: #0E2868;
}

.cr-my-review-reply-date {
	font-size: 10px;
	color: #9ca3af;
}

.cr-my-review-reply-text {
	margin: 0;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.5;
}

/* --- Mobile --------------------------------------------------------- */
@media (max-width: 640px) {
	.cr-dashboard-tabs { flex-direction: column; gap: 6px; }
	.cr-dashboard-tab { justify-content: center; }
	.cr-dashboard-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.cr-dashboard-stat { padding: 10px 8px; }
	.cr-dashboard-stat-value { font-size: 16px; }
	.cr-dashboard-stat-emoji { font-size: 14px; }
	.cr-my-review { padding: 16px; gap: 12px; flex-direction: column; }
	.cr-my-review-thumb { width: 40px !important; height: 40px !important; }
	.cr-my-review-header { flex-direction: column; gap: 4px; }
}

.cr-pin-message-error {
	background: var(--cr-error-light);
	color: #991b1b;
	border: 1px solid #fecaca;
}

.cr-pin-message-success {
	background: var(--cr-success-light);
	color: #065f46;
	border: 1px solid var(--cr-success-border);
}

/* Character counter */
.cr-character-counter {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.cr-character-counter-below { color: var(--cr-text-muted); }
.cr-character-counter-ok { color: var(--cr-success); }


/* ██████████████████████████████████████████████████████████████████
   FORMULARZ OCENY (na stronie ocen-zakup i w innych kontekstach)
   ██████████████████████████████████████████████████████████████████ */

/* Stany formularza */
.cr-form-state {
	padding: 36px 28px;
	background: var(--cr-bg-card);
	border-radius: var(--cr-card-radius);
	box-shadow: var(--cr-card-shadow);
	text-align: center;
	margin-bottom: 32px;
}

.cr-form-state p {
	margin: 0 0 14px;
	color: var(--cr-text-secondary);
	font-size: 15px;
}

.cr-form-state p:last-child { margin-bottom: 0; }

.cr-form-state .button,
.cr-form-login-btn {
	display: inline-block;
	padding: 14px 32px;
	background: linear-gradient(135deg, var(--cr-accent-from), var(--cr-accent-to));
	color: #ffffff !important;
	text-decoration: none;
	border-radius: var(--cr-pill-radius);
	font-size: 15px;
	font-weight: 700;
	border: none;
	box-shadow: 0 8px 24px -4px rgba(19, 42, 95, 0.3);
	transition: all 0.25s;
}

.cr-form-state .button:hover,
.cr-form-login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px -4px rgba(19, 42, 95, 0.4);
	color: #ffffff;
}

.cr-form-state-hint {
	font-size: 13px;
	color: var(--cr-text-muted);
}

/* Notice "wszystko ocenione" */
.cr-form-all-reviewed-notice {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	margin-bottom: 24px;
	background: var(--cr-success-light);
	border: 1px solid var(--cr-success-border);
	border-radius: var(--cr-radius-md);
	color: #065f46;
	font-size: 14px;
	font-weight: 600;
}

.cr-all-reviewed-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--cr-success);
	color: #ffffff;
	border-radius: 50%;
	font-size: 18px;
	font-weight: 700;
	flex-shrink: 0;
}

/* Intro text */
.cr-single-product-intro {
	margin: 0 0 28px;
	padding: 10px;
	background: var(--cr-accent-ultra-light);
	border: 1px solid rgba(19, 42, 95, 0.05);
	border-radius: var(--cr-radius-md);
	color: var(--cr-text-secondary);
	font-size: 14px;
	line-height: 1.7;
}

/* Formularz */
.cr-review-form {
	padding: 32px;
	background: var(--cr-bg-card);
	border: none;
	border-radius: var(--cr-card-radius);
	box-shadow: var(--cr-card-shadow);
	margin-bottom: 32px;
}

.cr-form-title {
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 800;
	color: var(--cr-text);
}

.cr-form-row { margin-bottom: 22px; }
.cr-form-row:last-of-type { margin-bottom: 0; }

.cr-form-row > label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--cr-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cr-required { color: var(--cr-accent); font-weight: 700; }

.cr-review-form select,
.cr-review-form input[type="text"],
.cr-review-form textarea {
	width: 100%;
	padding: 10px;
	border: 2px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--cr-radius-sm);
	font-size: 15px;
	font-family: inherit;
	color: var(--cr-text);
	background: var(--cr-bg-card);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	line-height: 1.5;
}

.cr-review-form select:hover,
.cr-review-form input[type="text"]:hover,
.cr-review-form textarea:hover {
	border-color: rgba(0, 0, 0, 0.12);
}

.cr-review-form select:focus,
.cr-review-form input[type="text"]:focus,
.cr-review-form textarea:focus {
	outline: none;
	border-color: var(--cr-accent);
	box-shadow: 0 0 0 4px rgba(19, 42, 95, 0.05);
}

.cr-review-form textarea {
	resize: vertical;
	min-height: 140px;
}

.cr-review-form select:disabled,
.cr-review-form input:disabled,
.cr-review-form textarea:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.cr-form-hint {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	color: var(--cr-text-muted);
}

/* Rating input */
.cr-rating-input {
	display: inline-flex;
	gap: 4px;
	padding: 6px 0;
}

.cr-rating-star {
	background: none;
	border: none;
	padding: 4px 2px;
	cursor: pointer;
	font-size: 34px;
	line-height: 1;
	color: var(--cr-star-empty);
	transition: color 0.15s, transform 0.15s;
}

.cr-rating-star:hover { transform: scale(1.15); }
.cr-rating-star.is-active,
.cr-rating-star.is-hover { color: var(--cr-star); }
.cr-rating-star:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.cr-rating-star:focus { outline: none; }
.cr-rating-star:focus-visible {
	outline: 3px solid var(--cr-accent-light);
	outline-offset: 2px;
	border-radius: var(--cr-radius-xs);
}

/* Submit — gradient CTA */
.cr-form-actions { margin-top: 28px; margin-bottom: 0; }

.cr-form-submit {
	background: linear-gradient(135deg, var(--cr-accent-from), var(--cr-accent-to));
	color: #ffffff !important;
	border: none;
	padding: 16px 36px;
	font-size: 15px;
	font-weight: 700;
	border-radius: var(--cr-pill-radius);
	cursor: pointer;
	transition: all 0.25s;
	font-family: inherit;
	line-height: 1.4;
	box-shadow: 0 8px 24px -4px rgba(19, 42, 95, 0.3);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cr-form-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px -4px rgba(19, 42, 95, 0.4);
}

.cr-form-submit:active:not(:disabled) { transform: translateY(0); }
.cr-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form message */
.cr-form-message { margin-top: 20px; border-radius: var(--cr-radius-sm); font-size: 14px; line-height: 1.5; }
.cr-form-message:empty { display: none; }

.cr-form-message-success {
	padding: 16px 20px;
	background: var(--cr-success-light);
	color: #065f46;
	border: 1px solid var(--cr-success-border);
}

.cr-form-message-error {
	padding: 16px 20px;
	background: var(--cr-error-light);
	color: #991b1b;
	border: 1px solid #fecaca;
}


/* ██████████████████████████████████████████████████████████████████
   WIDOK POJEDYNCZEGO PRODUKTU (/ocen-zakup/?cr_product=ID)
   ██████████████████████████████████████████████████████████████████ */

.cr-single-product-form {
	max-width: 1170px;
	margin: 40px auto;
	background: var(--cr-bg-card);
	border-radius: var(--cr-card-radius);
	overflow: hidden;
	box-shadow: var(--cr-card-shadow);
}

.cr-single-product-header {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 40px 44px;
	background: linear-gradient(135deg, #0a1a3f 0%, #132A5F 50%, #1e4080 100%);
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.cr-single-product-header::before {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
	pointer-events: none;
}

.cr-single-product-header::after {
	content: "";
	position: absolute;
	left: 30%;
	bottom: -80px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
	pointer-events: none;
}

.cr-single-product-image {
	width: 110px !important;
	height: 110px !important;
	object-fit: cover;
	border-radius: var(--cr-radius-md);
	border: 4px solid rgba(255,255,255,0.2);
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	flex-shrink: 0;
	background: #ffffff;
	position: relative;
	z-index: 1;
}

.cr-single-product-heading { flex: 1; min-width: 0; position: relative; z-index: 1; }

.cr-single-product-kicker {
	display: inline-block;
	padding: 5px 14px;
	margin-bottom: 12px;
	background: rgba(255,255,255,0.15);
	border-radius: var(--cr-pill-radius);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffffff;
}

.cr-single-product-title {
	margin: 0 0 14px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
}

.cr-single-product-back {
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.2s;
}
.cr-single-product-back:hover { color: #ffffff; }

.cr-single-product-body { padding: 40px 44px; }

.cr-single-product-body .cr-review-form {
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	margin: 0;
}

.cr-single-product-body .cr-form-title { display: none; }

.cr-single-product-body .cr-form-state {
	background: transparent;
	box-shadow: none;
	border: 2px dashed rgba(0, 0, 0, 0.06);
	margin-bottom: 0;
}

.cr-single-error {
	max-width: 1170px;
	margin: 40px auto;
	padding: 48px 32px;
	background: var(--cr-error-light);
	border: 1px solid #fecaca;
	border-radius: var(--cr-card-radius);
	text-align: center;
	color: var(--cr-error);
}

@media (max-width: 640px) {
	.cr-single-product-form { margin: 20px auto; border-radius: var(--cr-radius-md); }
	.cr-single-product-header { flex-direction: column; text-align: center; padding: 32px 24px; gap: 20px; }
	.cr-single-product-image { width: 90px !important; height: 90px !important; }
	.cr-single-product-title { font-size: 22px; }
	.cr-single-product-body { padding: 28px 24px; }
}


/* ██████████████████████████████████████████████████████████████████
   WIZARD KROKOWY (strona /ocen-zakup/ bez parametrów)
   ██████████████████████████████████████████████████████████████████ */

.cr-wizard {
	max-width: 1170px;
	margin: 40px auto;
	padding: 40px 44px;
	background: var(--cr-bg-card);
	border-radius: var(--cr-card-radius);
	box-shadow: var(--cr-card-shadow);
}

.cr-wizard-title {
	margin: 0 0 28px;
	font-size: 26px;
	font-weight: 800;
	color: var(--cr-text);
}

/* Breadcrumb */
.cr-wizard-breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 36px;
	padding: 20px 28px;
	background: linear-gradient(135deg, #0a1a3f 0%, #132A5F 50%, #1e4080 100%);
	border-radius: var(--cr-radius-md);
	font-size: 13px;
	font-weight: 600;
	position: relative;
	overflow: hidden;
}

.cr-wizard-breadcrumb::after {
	content: "";
	position: absolute;
	right: -30px;
	top: -30px;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
	pointer-events: none;
}

.cr-wizard-step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,0.45);
	position: relative;
	z-index: 1;
}

.cr-wizard-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	color: rgba(255,255,255,0.5);
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.cr-wizard-step-current { color: #ffffff; }
.cr-wizard-step-current .cr-wizard-step-num {
	background: #ffffff;
	color: var(--cr-accent);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cr-wizard-step-done { color: rgba(255,255,255,0.8); }
.cr-wizard-step-done .cr-wizard-step-num {
	background: rgba(255,255,255,0.25);
	color: #ffffff;
}

a.cr-wizard-step-link {
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s;
}

a.cr-wizard-step-link:hover {
	opacity: 0.8;
	text-decoration: none;
}

a.cr-wizard-step-link:hover .cr-wizard-step-num {
	background: rgba(255,255,255,0.4);
}

.cr-wizard-step-separator {
	color: rgba(255,255,255,0.25);
	font-size: 16px;
	margin: 0 6px;
	z-index: 1;
}

/* Kontekst */
.cr-wizard-context {
	padding: 18px 24px;
	margin-bottom: 28px;
	background: var(--cr-accent-ultra-light);
	border-left: 4px solid var(--cr-accent);
	border-radius: 0 var(--cr-radius-sm) var(--cr-radius-sm) 0;
	font-size: 14px;
	color: var(--cr-text);
	line-height: 1.7;
}

.cr-wizard-context-label {
	display: inline-block;
	font-weight: 700;
	color: var(--cr-text-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-right: 8px;
	min-width: 85px;
}

/* Karty zamówień / produktów */
.cr-wizard-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cr-wizard-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 28px;
	background: var(--cr-bg-card);
	border: 2px solid rgba(0, 0, 0, 0.04);
	border-radius: var(--cr-radius-md);
	text-decoration: none;
	color: var(--cr-text);
	cursor: pointer;
	transition: all 0.25s;
}

a.cr-wizard-card:hover {
	border-color: var(--cr-accent);
	box-shadow: 0 8px 28px -4px rgba(19, 42, 95, 0.08);
	transform: translateY(-2px);
	text-decoration: none;
	color: var(--cr-text);
}

a.cr-wizard-card:active { transform: translateY(0); }

.cr-wizard-card-disabled {
	cursor: default;
	opacity: 0.45;
	background: var(--cr-bg-subtle);
	border-style: dashed;
}

.cr-wizard-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.cr-wizard-card-order { font-weight: 800; font-size: 16px; color: var(--cr-text); }

.cr-wizard-card-date {
	color: var(--cr-text-muted);
	font-size: 13px;
}
.cr-wizard-card-date::before { content: "·"; margin-right: 4px; color: var(--cr-text-muted); }

.cr-wizard-card-total {
	color: var(--cr-text-secondary);
	font-size: 14px;
	margin-left: auto;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cr-wizard-card-products {
	font-size: 13px;
	color: var(--cr-text-muted);
	line-height: 1.5;
}

.cr-wizard-card-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Pill badges */
.cr-wizard-badge-pending {
	display: inline-block;
	padding: 6px 14px;
	background: var(--cr-accent-ultra-light);
	color: var(--cr-accent);
	border: 1px solid rgba(19, 42, 95, 0.1);
	border-radius: var(--cr-pill-radius);
	font-weight: 600;
	font-size: 12px;
}

.cr-wizard-badge-done {
	display: inline-block;
	padding: 6px 14px;
	background: var(--cr-success-light);
	color: var(--cr-success);
	border: 1px solid var(--cr-success-border);
	border-radius: var(--cr-pill-radius);
	font-weight: 600;
	font-size: 12px;
}

.cr-wizard-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--cr-accent-ultra-light);
	color: var(--cr-accent);
	border-radius: 50%;
	font-size: 16px;
	font-weight: 700;
	transition: all 0.25s;
}

a.cr-wizard-card:hover .cr-wizard-arrow {
	background: linear-gradient(135deg, var(--cr-accent-from), var(--cr-accent-to));
	color: #ffffff;
	transform: translateX(3px);
	box-shadow: 0 4px 12px rgba(19, 42, 95, 0.25);
}

/* Karta produktu — kompaktowa */
.cr-wizard-card-product {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
}

.cr-wizard-card-product .cr-wizard-card-products {
	font-size: 15px;
	font-weight: 600;
	color: var(--cr-text);
	flex: 1;
}

.cr-wizard-card-product .cr-wizard-card-action {
	flex-shrink: 0;
	gap: 10px;
	border-top: none;
	padding-top: 0;
}

/* Formularz w kroku 3 */
.cr-wizard-form {
	border: none;
	box-shadow: none;
	padding: 0;
	background: transparent;
	margin-bottom: 0;
}

/* Link "Wróć" */
.cr-wizard-back {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.cr-wizard-back a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	background: var(--cr-bg-subtle);
	color: var(--cr-accent);
	border: 1.5px solid var(--cr-border);
	border-radius: var(--cr-pill-radius);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s;
}

.cr-wizard-back a:hover {
	background: var(--cr-border-strong);
	color: var(--cr-accent);
	text-decoration: none;
	border-color: var(--cr-border-strong);
}

.cr-wizard .cr-form-state {
	margin: 0;
	border-radius: var(--cr-radius-md);
	box-shadow: none;
}

@media (max-width: 640px) {
	.cr-wizard { margin: 20px auto; padding: 28px 20px; border-radius: var(--cr-radius-md); }
	.cr-wizard-title { font-size: 22px; }
	.cr-wizard-breadcrumb { font-size: 12px; gap: 4px; padding: 16px 18px; flex-wrap: wrap; }
	.cr-wizard-step-label { display: none; }
	.cr-wizard-step-current .cr-wizard-step-label { display: inline; }
	.cr-wizard-card { padding: 18px 20px; }
	.cr-wizard-card-header { flex-direction: column; align-items: flex-start; gap: 4px; }
	.cr-wizard-card-date::before { display: none; }
	.cr-wizard-card-total { margin-left: 0; }
	.cr-wizard-card-product { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* ██████████████████████████████████████████████████████████████████
   KONTO KLIENTA — stary [custom_reviews_form] tryb account
   ██████████████████████████████████████████████████████████████████ */

.cr-account-form { max-width: 1170px; margin: 0 auto; }

.cr-account-intro {
	padding: 16px 20px;
	background: var(--cr-accent-ultra-light);
	border-radius: var(--cr-radius-sm);
	color: var(--cr-text-secondary);
	font-size: 14px;
	margin-bottom: 24px;
}

.cr-order-group {
	margin-bottom: 28px;
	padding: 28px;
	background: var(--cr-bg-card);
	border: none;
	border-radius: var(--cr-card-radius);
	box-shadow: var(--cr-card-shadow);
}

.cr-order-group-header {
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cr-order-group-title { margin: 0; font-size: 16px; font-weight: 800; }

.cr-order-group-products { display: flex; flex-direction: column; gap: 24px; }

.cr-order-product-name { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.cr-order-product-name a { color: var(--cr-accent); text-decoration: none; }
.cr-order-product-name a:hover { text-decoration: underline; }

.cr-review-form-inline {
	padding: 22px;
	background: var(--cr-bg-subtle);
	border: none;
	border-radius: var(--cr-radius-md);
	box-shadow: none;
}


/* ██████████████████████████████████████████████████████████████████
   LANDING TOKENOWY (link z e-maila)
   ██████████████████████████████████████████████████████████████████ */

.cr-token-page,
.cr-token-thankyou {
	max-width: 1170px;
	margin: 0 auto;
	padding: 20px;
}

.cr-token-header {
	text-align: center;
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cr-token-header h2 { margin: 0 0 12px; font-size: 28px; font-weight: 800; }
.cr-token-intro { color: var(--cr-text-muted); font-size: 15px; margin: 0; }

.cr-token-already-reviewed {
	padding: 18px 22px;
	background: var(--cr-success-light);
	border-left: 4px solid var(--cr-success);
	border-radius: var(--cr-radius-sm);
	margin-bottom: 24px;
}

.cr-token-already-reviewed h3 { margin: 0 0 8px; font-size: 14px; color: #065f46; }
.cr-token-already-reviewed ul { margin: 0; padding-left: 20px; font-size: 14px; color: #065f46; }

.cr-token-forms { display: flex; flex-direction: column; gap: 28px; }

.cr-token-product {
	padding: 28px;
	background: var(--cr-bg-card);
	border: none;
	border-radius: var(--cr-card-radius);
	box-shadow: var(--cr-card-shadow);
	transition: opacity 0.5s, transform 0.5s;
}

.cr-token-product-done { opacity: 0; transform: scale(0.96); }

.cr-token-product-name { margin: 0 0 20px; font-size: 18px; font-weight: 800; }
.cr-token-product-name a { color: var(--cr-text); text-decoration: none; }
.cr-token-product-name a:hover { color: var(--cr-accent); }

.cr-token-product .cr-review-form { padding: 0; border: none; box-shadow: none; margin: 0; background: transparent; }

.cr-token-error {
	padding: 48px 32px;
	text-align: center;
	background: var(--cr-error-light);
	border: 1px solid #fecaca;
	border-radius: var(--cr-card-radius);
}
.cr-token-error h2 { margin: 0 0 12px; color: var(--cr-error); }

/* Strona podziękowania */
.cr-token-thankyou { text-align: center; padding: 48px 24px; }

.cr-thankyou-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, #059669, #10b981);
	color: #ffffff;
	border-radius: 50%;
	font-size: 40px;
	font-weight: 700;
	margin-bottom: 24px;
	box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.35);
}

.cr-thankyou-title { margin: 0 0 14px; font-size: 30px; font-weight: 800; }

.cr-thankyou-message {
	font-size: 15px;
	color: var(--cr-text-muted);
	max-width: 540px;
	margin: 0 auto 28px;
	line-height: 1.7;
}

.cr-thankyou-products {
	text-align: left;
	max-width: 400px;
	margin: 24px auto;
	padding: 20px 24px;
	background: var(--cr-bg-subtle);
	border-radius: var(--cr-radius-sm);
}

.cr-thankyou-products h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.cr-thankyou-products ul { margin: 0; padding-left: 20px; font-size: 14px; }
.cr-thankyou-products a { color: var(--cr-accent); text-decoration: none; }
.cr-thankyou-products a:hover { text-decoration: underline; }

.cr-thankyou-actions { margin-top: 28px; }
.cr-thankyou-actions .button {
	display: inline-block;
	padding: 16px 36px;
	background: linear-gradient(135deg, var(--cr-accent-from), var(--cr-accent-to));
	color: #ffffff;
	text-decoration: none;
	border-radius: var(--cr-pill-radius);
	font-weight: 700;
	box-shadow: 0 8px 24px -4px rgba(19, 42, 95, 0.3);
	transition: all 0.25s;
}
.cr-thankyou-actions .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px -4px rgba(19, 42, 95, 0.4);
	color: #ffffff;
}


/* ██████████████████████████████████████████████████████████████████
   [custom_reviews_latest] — Grid Pro
   ██████████████████████████████████████████████████████████████████ */

.cr-latest-reviews-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	max-width: 1440px;
	margin: 0 auto;
}

/* --- Card --- */
.cr-latest-hidden { display: none !important; }

.cr-latest-card {
	background: #ffffff;
	border-radius: 32px;
	padding: 32px;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, 0.02);
	height: fit-content;
}

/* --- Header: avatar + name + verified | date --- */
.cr-latest-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 24px;
}

.cr-latest-user-info {
	display: flex;
	gap: 14px;
	align-items: center;
}

.cr-avatar-square {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	font-size: 18px;
}

.cr-latest-name-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cr-latest-name {
	font-weight: 700;
	font-size: 15px;
	color: #1f2937;
}

.cr-latest-verified {
	font-size: 12px;
	color: #10b981;
	font-weight: 600;
}

.cr-latest-date {
	font-size: 13px;
	color: #94a3b8;
	flex-shrink: 0;
}

/* --- Stars & Title --- */
.cr-latest-stars {
	color: #FFE27A;
	font-size: 18px;
	margin-bottom: 12px;
	letter-spacing: 1px;
}

.cr-latest-stars .cr-star-off {
	color: #e5e7eb;
}

.cr-latest-title {
	font-size: 19px;
	font-weight: 800;
	margin-bottom: 8px;
	display: block;
	color: #1f2937;
}

/* --- Text with show-more --- */
.cr-latest-content-wrap {
	position: relative;
	margin-bottom: 0;
}

.cr-latest-text {
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
	overflow-wrap: anywhere;
	word-break: break-word;
	margin: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.cr-latest-text.cr-text-collapsed {
	max-height: 120px;
	position: relative;
}

.cr-latest-text.cr-text-collapsed::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50px;
	background: linear-gradient(transparent, #ffffff);
}

.cr-latest-text.cr-text-expanded {
	max-height: 2000px;
}

.cr-show-more-btn,
button.cr-show-more-btn {
	background: none;
	border: none;
	color: #1E5ABC;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 0;
	cursor: pointer;
	display: block;
	margin-top: 4px;
	font-family: inherit;
	text-transform: none;
	line-height: 1;
}

.cr-show-more-btn:hover {
	text-decoration: underline;
}

/* --- Reply thread --- */
.cr-latest-reply-thread {
	margin-top: 24px;
	padding-left: 32px;
	position: relative;
}

.cr-latest-reply-thread::before {
	content: "";
	position: absolute;
	left: 10px;
	top: -15px;
	width: 14px;
	height: 35px;
	border-left: 2px solid #e5e7eb;
	border-bottom: 2px solid #e5e7eb;
	border-bottom-left-radius: 12px;
}

.cr-latest-reply-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.cr-latest-shop-logo {
	width: 26px;
	height: 26px;
	background-color: #1E5ABC;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	color: white;
}

.cr-latest-shop-name {
	font-size: 14px;
	font-weight: 700;
	color: #1f2937;
}

.cr-latest-reply-bubble {
	background-color: #f8fafc;
	padding: 12px 18px;
	border-radius: 4px 18px 18px 18px;
	font-size: 15px;
	color: #374151;
	display: inline-block;
	border: 1px solid #f1f5f9;
	line-height: 1.5;
}

/* --- Product section --- */
.cr-latest-product-section {
	margin-top: 32px;
}

.cr-latest-context-label {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	margin-bottom: 10px;
	display: block;
}

.cr-latest-product-box {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background-color: #fafbfc;
}

.cr-latest-product-img-wrap {
	position: relative;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	text-decoration: none;
}

.cr-latest-product-img-wrap .cr-latest-product-thumb {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	background: white;
	border: 1px solid #eee;
}

.cr-latest-product-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	background: white;
	border-radius: 6px;
	padding: 2px;
	line-height: 0;
	font-size: 0;
}

.cr-latest-product-img-wrap .cr-latest-product-thumb {
	border-radius: 8px !important;
}

.cr-latest-product-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cr-latest-product-title {
	font-size: 14px;
	font-weight: 700;
	color: #1f2937;
	text-decoration: none;
}

.cr-latest-product-title:hover {
	color: #1E5ABC;
}

.cr-latest-product-variant {
	font-size: 12px;
	color: #6b7280;
}

/* --- Footer: stats + like --- */
.cr-latest-footer {
	margin-top: 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 1px solid #f8fafc;
}

.cr-latest-stats {
	display: flex;
	gap: 16px;
}

.cr-latest-stat {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #94a3b8;
	font-weight: 600;
	cursor: help;
}

/* CSS-only tooltips */
.cr-latest-stat::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 140%;
	left: 50%;
	transform: translateX(-50%) translateY(5px);
	background: #1f2937;
	color: white;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s;
	z-index: 10;
	pointer-events: none;
}

.cr-latest-stat:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Tooltip na verified badge + product page */
.cr-latest-verified[data-tooltip],
.cr-review-verified-inline[data-tooltip] {
	position: relative;
	cursor: help;
}

.cr-latest-verified[data-tooltip]::after,
.cr-review-verified-inline[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 140%;
	left: 50%;
	transform: translateX(-50%) translateY(5px);
	background: #1f2937;
	color: white;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	width: 260px;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s;
	z-index: 10;
	pointer-events: none;
}

.cr-latest-verified[data-tooltip]:hover::after,
.cr-review-verified-inline[data-tooltip]:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.cr-latest-footer .cr-like-btn {
	border-radius: 14px;
	margin-left: auto;
	flex-shrink: 0;
}

/* --- Load more --- */
.cr-latest-load-more-wrap {
	grid-column: 1 / -1;
	text-align: center;
	margin-top: 24px;
}

.cr-latest-load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 32px;
	background: transparent;
	border: 1.5px solid rgba(14, 40, 104, 0.15);
	border-radius: 999px;
	color: #0E2868;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.cr-latest-load-more-btn:hover {
	background: #f0f2ff;
	border-color: rgba(14, 40, 104, 0.25);
}

.cr-latest-load-more-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
	.cr-latest-reviews-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
	.cr-latest-reviews-list { grid-template-columns: 1fr; gap: 20px; }
	.cr-latest-card { padding: 24px; border-radius: 24px; }
	.cr-latest-header { flex-direction: column; gap: 8px; }
	.cr-latest-date { align-self: flex-start; }
}


/* ██████████████████████████████████████████████████████████████████
   [custom_reviews_stats] — statystyki sklepu
   ██████████████████████████████████████████████████████████████████ */

.cr-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1440px;
	margin: 0 auto 40px;
}

.cr-stats-box {
	background: #ffffff;
	border-radius: 24px;
	padding: 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cr-stats-box-icon {
	font-size: 28px;
	margin-bottom: 8px;
	line-height: 1;
}

.cr-stats-box-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.cr-stats-box-value {
	font-size: 32px;
	font-weight: 800;
	color: #1f2937;
	line-height: 1.1;
}

.cr-stats-box-value-max {
	font-size: 18px;
	font-weight: 600;
	color: #94a3b8;
}

.cr-stats-box-value-sm {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.cr-stats-box-link {
	color: #1E5ABC;
	text-decoration: none;
}

.cr-stats-box-link:hover {
	text-decoration: underline;
}

.cr-stats-box-label {
	font-size: 13px;
	color: #94a3b8;
	font-weight: 600;
}

.cr-stats-box-meta {
	font-size: 12px;
	color: #cbd5e1;
	margin-top: 8px;
}

.cr-stats-box-stars {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	font-size: 16px;
	color: #FFE27A;
}

.cr-stats-box-stars .cr-star-off {
	color: #e5e7eb;
}

.cr-stats-box-stars .cr-star-half {
	color: #FFE27A;
}

.cr-stats-box-stars-label {
	font-size: 11px;
	color: #94a3b8;
	margin-left: 4px;
}

@media (max-width: 1200px) {
	.cr-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.cr-stats-grid { grid-template-columns: 1fr; gap: 16px; }
	.cr-stats-box { padding: 22px; border-radius: 20px; }
	.cr-stats-box-value { font-size: 26px; }
}


/* ██████████████████████████████████████████████████████████████████
   [custom_reviews_summary] — pill badge widget
   ██████████████████████████████████████████████████████████████████ */

/* Pill wrapper */
.cr-summary-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 22px;
	background: #F5F7FF;
	border: 1px solid #ABD4FF;
	border-radius: var(--cr-pill-radius);
	font-size: 14px;
	font-weight: 600;
	color: #132A5F;
	line-height: 1;
	white-space: nowrap;
}

/* Gwiazdki — ciemniejszy złoty pasujący do jasnego tła pilla */
.cr-summary-pill-stars {
	display: inline-flex;
	gap: 1px;
	font-size: 15px;
	letter-spacing: 0.5px;
	line-height: 1;
}

.cr-summary-pill-stars .cr-star-full {
	color: #f5a623;
}

.cr-summary-pill-stars .cr-star-half {
	background: linear-gradient(90deg, #f5a623 50%, #d1d5db 50%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.cr-summary-pill-stars .cr-star-empty {
	color: #E5E7EB;
}

/* Ocena + liczba */
.cr-summary-pill-score {
	font-weight: 800;
	font-size: 14px;
	color: #132A5F;
	font-variant-numeric: tabular-nums;
}

.cr-summary-pill-sep {
	color: #ABD4FF;
	font-weight: 400;
}

.cr-summary-pill-count {
	color: #6D98D9;
	font-weight: 500;
	font-size: 13px;
}

/* Link */
.cr-summary-pill-link {
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}

.cr-summary-pill-link:hover {
	background: #ECF3FF;
	border-color: #ABD4FF;
	color: #132A5F;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(30, 34, 53, 0.08);
}

.cr-summary-pill-link:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Puste */
.cr-summary-empty {
	color: #9ca3af;
	font-style: italic;
	font-size: 13px;
	font-weight: 400;
	border-style: dashed;
	background: transparent;
}


/* ██████████████████████████████████████████████████████████████████
   DASHBOARD KLIENTA — mockup Wypromowani
   ██████████████████████████████████████████████████████████████████ */

.cr-dashboard-wrapper {
	background: #f0f2ff;
}

/* Hero — jednolite tło, bez gradientu */
.cr-dashboard-hero {
	text-align: center;
	padding: 32px 16px 24px;
	background: transparent;
}

.cr-dashboard-hero-badge {
	display: inline-block;
	padding: 6px 16px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0E2868;
	background: #FFDE65;
	border-radius: 9999px;
	margin-bottom: 16px;
}

.cr-dashboard-hero-title {
	font-family: 'Poppins', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #0E2868;
	margin: 0 0 8px;
	line-height: 1.2;
}

.cr-dashboard-hero-title span { color: #174a9a; }

.cr-dashboard-hero-desc {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* Container */
.cr-dashboard {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 16px;
	font-family: 'Poppins', sans-serif;
}

/* --- Taby pill ------------------------------------------------------ */
.cr-dashboard-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
}

.cr-dashboard-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #9ca3af;
	text-decoration: none;
	background: #ffffff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	transition: all 0.2s;
	cursor: pointer;
}

.cr-dashboard-tab:hover { color: #0E2868; border-color: #d1d5db; text-decoration: none; }

.cr-dashboard-tab-active {
	background: #0E2868;
	color: #ffffff;
	border-color: #0E2868;
	box-shadow: 0 4px 12px rgba(14,40,104,0.25);
}

.cr-dashboard-tab-active:hover { color: #ffffff; }

.cr-dashboard-tab-badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 5px;
	background: #e5e7eb; color: #6b7280;
	border-radius: 10px; font-size: 10px; font-weight: 700;
}

.cr-dashboard-tab-active .cr-dashboard-tab-badge {
	background: #FFDE65; color: #0E2868;
}

/* --- Pusta lista --------------------------------------------------- */
.cr-dashboard-empty {
	text-align: center;
	padding: 64px 24px;
}

.cr-dashboard-empty-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.cr-dashboard-empty h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #0E2868; }
.cr-dashboard-empty p { margin: 0 0 20px; font-size: 14px; color: #6b7280; }
.cr-dashboard-empty-link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 24px; background: #FFDE65; color: #0E2868;
	border-radius: 9999px; font-size: 13px; font-weight: 600;
	text-decoration: none; transition: background 0.2s;
}
.cr-dashboard-empty-link:hover { background: #e6c84e; color: #0E2868; text-decoration: none; }

/* --- Karty zamówień (tab Do oceny) ---------------------------------- */
.cr-order-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cr-order-item {
	display: block;
	padding: 20px 24px;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	text-decoration: none;
	color: #0E2868;
	transition: all 0.3s;
}

a.cr-order-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
	border-color: #e5e7eb;
	text-decoration: none;
	color: #0E2868;
}

.cr-order-item-done {
	opacity: 0.55;
	cursor: default;
}

.cr-order-item-done:hover {
	transform: none;
	box-shadow: none;
}

.cr-order-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 10px;
}

.cr-order-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-order-item-number { font-size: 14px; font-weight: 600; color: #0E2868; }
.cr-order-item-date { font-size: 12px; color: #9ca3af; }
.cr-order-item-total { font-size: 13px; font-weight: 600; color: #0E2868; }

.cr-order-item-products {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.cr-order-product-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #f0f2ff;
	border-radius: 8px;
	font-size: 12px;
	color: #0E2868;
}

.cr-order-item-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cr-order-badge-pending {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 8px 20px;
	background: #FFDE65; color: #0E2868;
	border: none;
	border-radius: 9999px;
	font-size: 12px; font-weight: 700;
	transition: background 0.2s;
}

a.cr-order-review-card:hover .cr-order-badge-pending {
	background: #e6c84e;
}

.cr-order-badge-done {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 12px; background: #ecfdf5;
	border-radius: 9999px; font-size: 11px; font-weight: 600; color: #059669;
}

.cr-order-arrow { font-size: 16px; color: #9ca3af; margin-left: auto; }

/* Karta produktu do oceny — reuse .cr-my-review + link */
a.cr-order-review-card {
	text-decoration: none;
	color: #0E2868;
	cursor: pointer;
}

a.cr-order-review-card:hover {
	text-decoration: none;
	color: #0E2868;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

a.cr-order-review-card:hover .cr-order-arrow {
	color: #0E2868;
	transform: translateX(3px);
	transition: transform 0.2s;
}

/* --- Karty opinii (tab Moje opinie) --------------------------------- */
.cr-my-reviews { display: flex; flex-direction: column; gap: 12px; }

.cr-my-review {
	display: flex; gap: 16px;
	padding: 20px 24px;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	transition: all 0.3s;
	animation: cr-card-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cr-my-review:nth-child(1) { animation-delay: 0.06s; }
.cr-my-review:nth-child(2) { animation-delay: 0.12s; }
.cr-my-review:nth-child(3) { animation-delay: 0.18s; }
.cr-my-review:nth-child(4) { animation-delay: 0.24s; }
.cr-my-review:nth-child(5) { animation-delay: 0.30s; }

@keyframes cr-card-fade-in {
	0%   { opacity: 0; transform: translateY(8px); }
	100% { opacity: 1; transform: translateY(0); }
}

.cr-my-review:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.cr-my-review-product-image {
	flex-shrink: 0;
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 12px;
}

.cr-my-review-thumb {
	width: 52px !important;
	height: 52px !important;
	object-fit: cover;
	border-radius: 12px !important;
	background: #f0f2ff;
	display: block;
}

.cr-my-review-product-image a {
	display: block;
	border-radius: 12px;
	overflow: hidden;
}

.cr-my-review-category-icon {
	position: absolute;
	bottom: -4px;
	right: -4px;
	line-height: 0;
	background: #ffffff;
	border-radius: 6px;
	padding: 2px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cr-my-review-body { flex: 1; min-width: 0; position: relative; }

.cr-my-review-header {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}

.cr-my-review-product-info { min-width: 0; }
.cr-my-review-product-name { margin: 0 0 1px; font-size: 14px; font-weight: 600; color: #0E2868; }
.cr-my-review-product-name a { color: #0E2868; text-decoration: none; }
.cr-my-review-product-name a:hover { color: #174a9a; }
.cr-my-review-order { font-size: 10px; color: #9ca3af; margin-top: 0; display: block; line-height: 1.3; }
.cr-my-review-likes { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #9ca3af; flex-shrink: 0; }

.cr-my-review-rating { display: flex; gap: 2px; margin: 4px 0; font-size: 12px; }
.cr-my-review-rating .cr-star-full { color: #FFDE65; }
.cr-my-review-rating .cr-star-empty { color: #e5e7eb; }

.cr-my-review-content { margin-bottom: 0; }
.cr-my-review-title { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: #0E2868; }
.cr-my-review-excerpt { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cr-my-review-footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; }

/* Status — prawy górny róg karty */
.cr-my-review-body > .cr-my-review-status {
	position: absolute;
	top: 0;
	right: 0;
}

.cr-my-review-status {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 10px; border-radius: 9999px; font-size: 10px; font-weight: 600;
}

.cr-status-published { background: #ecfdf5; color: #059669; }
.cr-status-published::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.cr-status-pending { background: #fffbeb; color: #b45309; }
.cr-status-hidden { background: #f3f4f6; color: #6b7280; }
.cr-status-refunded { background: #fef2f2; color: #ef4444; }
.cr-status-edit-pending { background: #fffbeb; color: #b45309; }

/* Lajki — prawy dolny w footer */
.cr-my-review-likes {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 13px; color: #ef4444; font-weight: 600;
	margin-left: auto;
	padding: 4px 14px;
	background: #fef2f2;
	border-radius: 9999px;
}

/* Przycisk edytuj */
.cr-my-review-edit-btn {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 8px 20px;
	background: #0E2868; color: #ffffff;
	border: none;
	border-radius: 9999px;
	font-size: 12px; font-weight: 700;
	text-decoration: none;
	transition: all 0.2s;
}

.cr-my-review-edit-btn:hover {
	background: #174a9a; color: #ffffff;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(14,40,104,0.25);
}

.cr-my-review-reply {
	margin-top: 14px; padding: 14px;
	background: #f0f2ff; border-radius: 12px; border: 1px solid #f3f4f6;
}

.cr-my-review-reply-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cr-my-review-reply-label { font-size: 10px; font-weight: 600; color: #0E2868; }
.cr-my-review-reply-date { font-size: 10px; color: #9ca3af; }
.cr-my-review-reply-text { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.5; }

/* --- Statystyki ----------------------------------------------------- */
.cr-dashboard-stats {
	margin-top: 40px; padding-top: 32px; border-top: 1px solid #e5e7eb;
}

.cr-dashboard-stats-label {
	font-size: 11px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.06em; color: #9ca3af; margin-bottom: 12px; display: block;
}

.cr-dashboard-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.cr-dashboard-stat {
	background: #ffffff; border-radius: 12px; padding: 12px 16px;
	border: 1px solid #f3f4f6; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.cr-dashboard-stat-emoji { font-size: 18px; margin-bottom: 4px; display: block; }

.cr-dashboard-stat-value {
	display: block; font-size: 20px; font-weight: 800; color: #0E2868; line-height: 1.2;
}

.cr-dashboard-stat-value small { font-size: 12px; font-weight: 400; color: #9ca3af; }
.cr-dashboard-stat-label { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; color: #6b7280; }

/* Mobile */
@media (max-width: 640px) {
	.cr-dashboard-hero-title { font-size: 22px; }
	.cr-dashboard-tabs { flex-direction: column; gap: 6px; }
	.cr-dashboard-stat { padding: 10px 8px; }
	.cr-dashboard-stat-value { font-size: 16px; }
	.cr-order-item { padding: 16px 18px; }
	.cr-my-review { padding: 16px; gap: 12px; }
	.cr-my-review-thumb { width: 40px !important; height: 40px !important; }
}

/* ==================================================================
   Logowanie PIN-em (integracja cleafs_wp_login)
   ================================================================== */
.cr-pin-login { max-width: 440px; margin: 0 auto; text-align: center; }
.cr-pin-login .cr-form-row { text-align: left; }
.cr-pin-login .cr-form-actions { text-align: center; }

.cr-pin-login-title { margin: 0 0 24px; font-size: 20px; font-weight: 800; color: #0E2868; text-align: center; }

.cr-pin-login .cr-form-row > label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }

.cr-pin-login input[type="email"],
.cr-pin-login input[type="text"] {
	width: 100%; padding: 12px 14px; border: 2px solid #e5e7eb; border-radius: 12px;
	font-size: 15px; font-family: inherit; color: #0E2868; background: #ffffff;
	transition: border-color 0.2s; box-sizing: border-box;
}

.cr-pin-login input:focus { outline: none; border-color: #0E2868; }

.cr-pin-sent-info {
	display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
	background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px;
	margin-bottom: 20px; font-size: 14px; color: #065f46;
}

.cr-pin-sent-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.cr-pin-sent-hint { font-size: 13px; color: #047857; }

.cr-pin-resend { text-align: center; font-size: 13px; color: #9ca3af; margin-top: 12px; }
.cr-pin-resend a { color: #0E2868; text-decoration: none; font-weight: 600; }
.cr-pin-resend a:hover { text-decoration: underline; }
.cr-pin-resend-hint { display: block; margin-top: 4px; font-size: 11px; color: #9ca3af; font-style: italic; }

.cr-pin-message:empty { display: none; }
.cr-pin-message { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; text-align: center; }
.cr-pin-message-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cr-pin-message-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ==================================================================
   Character counter
   ================================================================== */
.cr-character-counter { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cr-character-counter-below { color: #9ca3af; }
.cr-character-counter-ok { color: #059669; }

/* ==================================================================
   Step 3 — formularz oceny w stylu dashboard
   ================================================================== */
.cr-step3-product-card {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 20px 24px;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	margin-bottom: 16px;
}

.cr-step3-product-info { flex: 1; min-width: 0; }

.cr-step3-product-name {
	margin: 0 0 2px;
	font-size: 16px;
	font-weight: 700;
	color: #0E2868;
	font-family: 'Poppins', sans-serif;
}

.cr-step3-form-card {
	padding: 28px 32px;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
}

.cr-step3-form-title {
	margin: 0 0 24px;
	font-size: 18px;
	font-weight: 700;
	color: #0E2868;
	font-family: 'Poppins', sans-serif;
}

.cr-step3-form {
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	background: transparent !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

.cr-step3-form .cr-form-row > label {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cr-step3-form input[type="text"],
.cr-step3-form textarea {
	border: 2px solid #e5e7eb !important;
	border-radius: 12px !important;
	font-family: 'Poppins', sans-serif;
	padding: 10px 14px !important;
}

.cr-step3-form input[type="text"]:focus,
.cr-step3-form textarea:focus {
	border-color: #0E2868 !important;
	box-shadow: 0 0 0 3px rgba(14,40,104,0.08) !important;
}

.cr-step3-form .cr-rating-star {
	font-size: 32px;
	color: #e5e7eb;
}

.cr-step3-form .cr-rating-star.is-active,
.cr-step3-form .cr-rating-star.is-hover {
	color: #FFDE65;
}

.cr-step3-form .cr-form-submit {
	background: #FFDE65 !important;
	color: #0E2868 !important;
	border: none !important;
	padding: 12px 36px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	border-radius: 9999px !important;
	font-family: 'Poppins', sans-serif;
	box-shadow: none;
	text-shadow: none;
	transition: all 0.2s;
}

.cr-step3-form .cr-form-submit:hover {
	background: #e6c84e !important;
	box-shadow: 0 4px 12px rgba(14,40,104,0.15) !important;
}

.cr-step3-form .cr-form-row-checkbox {
	background: #f0f2ff;
	border-radius: 12px;
	padding: 14px 18px;
}

.cr-step3-form .cr-form-row-checkbox label {
	font-size: 13px;
	font-weight: 500;
	color: #0E2868;
	text-transform: none;
	letter-spacing: 0;
}

.cr-step3-form .cr-form-hint {
	color: #9ca3af;
}

/* ==================================================================
   Tips: wskazówki jak napisać lepszą opinię
   ================================================================== */
.cr-review-tips {
	margin: 4px 0 20px;
	padding: 16px 20px;
	background: #f0f2ff;
	border-radius: 12px;
	border: 1px solid rgba(14, 40, 104, 0.08);
	max-height: 300px;
	opacity: 1;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

.cr-review-tips.cr-review-tips-hidden {
	max-height: 0;
	opacity: 0;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-color: transparent;
}

.cr-review-tips-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.cr-review-tips-toggle {
	margin-left: auto;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0 2px;
	line-height: 1;
}

.cr-review-tips-chevron {
	display: inline-block;
	font-size: 16px;
	color: #9ca3af;
	transform: rotate(-90deg);
	transition: transform 0.3s ease, color 0.15s;
}

.cr-review-tips-toggle:hover .cr-review-tips-chevron {
	color: #4b5563;
}

.cr-review-tips.cr-review-tips-collapsed .cr-review-tips-chevron {
	transform: rotate(90deg);
}

.cr-review-tips-list {
	transition: max-height 0.35s ease, opacity 0.3s ease;
	max-height: 200px;
	opacity: 1;
	overflow: hidden;
}

.cr-review-tips.cr-review-tips-collapsed .cr-review-tips-list {
	max-height: 0;
	opacity: 0;
}

.cr-review-tips.cr-review-tips-collapsed .cr-review-tips-header {
	margin-bottom: 0;
}

/* ==================================================================
   Podgląd opinii
   ================================================================== */
.cr-preview-wrapper {
	margin-top: 20px;
	overflow: hidden;
	max-height: 600px;
	opacity: 1;
	transition: max-height 0.4s ease, opacity 0.35s ease;
}

.cr-preview-wrapper.cr-preview-hidden {
	max-height: 0;
	opacity: 0;
}

.cr-preview-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.cr-preview-label-icon {
	font-size: 14px;
}

.cr-review.cr-review-preview {
	border: 1.5px dashed #ABD4FF;
	background: #fafbff;
}

/* Przycisk podglądu */
.cr-preview-btn {
	background: transparent;
	border: 1.5px solid rgba(14, 40, 104, 0.15);
	color: #0E2868;
	padding: 10px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.cr-preview-btn:hover {
	background: #f0f2ff;
	border-color: rgba(14, 40, 104, 0.25);
}

.cr-form-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.cr-review-tips-icon {
	font-size: 18px;
	line-height: 1;
}

.cr-review-tips-title {
	font-size: 13px;
	font-weight: 700;
	color: #0E2868;
}

.cr-review-tips-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cr-review-tips-list li {
	position: relative;
	padding-left: 20px;
	font-size: 12.5px;
	color: #4b5563;
	line-height: 1.5;
}

.cr-review-tips-list li::before {
	content: "✦";
	position: absolute;
	left: 0;
	color: #FFDE65;
	font-size: 11px;
}

.cr-step3-form .cr-form-message-success {
	background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 12px;
}

.cr-step3-form .cr-form-message-error {
	background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 12px;
}

.cr-step3-form-card .cr-wizard-back {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
}

.cr-step3-form-card .cr-wizard-back a {
	display: inline-flex; align-items: center; gap: 4px;
	color: #9ca3af; font-size: 13px; font-weight: 500;
	text-decoration: none; transition: color 0.2s;
}

.cr-step3-form-card .cr-wizard-back a:hover { color: #0E2868; }

@media (max-width: 640px) {
	.cr-step3-product-card { padding: 16px 18px; gap: 12px; }
	.cr-step3-product-name { font-size: 14px; }
	.cr-step3-form-card { padding: 20px; }
	.cr-step3-form-title { font-size: 16px; }
}

/* cr_product form body — reset wewnątrz step3-form-card */
.cr-step3-form-body .cr-review-form {
	border: none; box-shadow: none; padding: 0; background: transparent; margin: 0; border-radius: 0;
}

.cr-step3-form-body .cr-form-title { display: none; }

.cr-step3-form-body .cr-review-form select,
.cr-step3-form-body .cr-review-form input[type="text"],
.cr-step3-form-body .cr-review-form textarea {
	border: 2px solid #e5e7eb !important;
	border-radius: 12px !important;
	padding: 10px 14px !important;
	font-family: 'Poppins', sans-serif;
}

.cr-step3-form-body .cr-review-form select:focus,
.cr-step3-form-body .cr-review-form input[type="text"]:focus,
.cr-step3-form-body .cr-review-form textarea:focus {
	border-color: #0E2868 !important;
	box-shadow: 0 0 0 3px rgba(14,40,104,0.08) !important;
}

.cr-step3-form-body .cr-form-submit {
	background: #FFDE65 !important;
	color: #0E2868 !important;
	border: none !important;
	padding: 12px 36px !important;
	font-weight: 700 !important;
	border-radius: 9999px !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.cr-step3-form-body .cr-form-submit:hover {
	background: #e6c84e !important;
}

.cr-step3-form-body .cr-rating-star { font-size: 32px; color: #e5e7eb; }
.cr-step3-form-body .cr-rating-star.is-active,
.cr-step3-form-body .cr-rating-star.is-hover { color: #FFDE65; }

.cr-step3-form-body .cr-form-row-checkbox {
	background: #f0f2ff; border-radius: 12px; padding: 14px 18px;
}

.cr-step3-form-body .cr-pin-login-title { color: #0E2868; font-family: 'Poppins', sans-serif; }

/* CTA pod [custom_reviews_latest] */
.cr-latest-cta {
	text-align: center;
	margin-top: 32px;
}

.cr-latest-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 36px;
	background: #FFDE65;
	color: #0E2868;
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	font-family: 'Poppins', sans-serif;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(14,40,104,0.1);
}

.cr-latest-cta-btn:hover {
	background: #e6c84e;
	color: #0E2868;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(14,40,104,0.15);
	transform: translateY(-1px);
}

/* ==================================================================
   Statystyki autora (trust signals) pod nagłówkiem opinii
   ================================================================== */
.cr-review-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.cr-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	background: #f0f2ff;
	border: 1px solid #f3f4f6;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 500;
	color: #6b7280;
}

.cr-trust-variant {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	color: #0E2868;
	font-weight: 600;
}

@media (max-width: 640px) {
	.cr-review-trust { gap: 4px; }
	.cr-trust-item { font-size: 10px; padding: 2px 8px; }
}

/* === Badge "Zweryfikowany zakup" inline obok nazwy autora === */
.cr-review-author-line {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cr-review-verified-inline {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	border-radius: 9999px;
	font-size: 10px;
	font-weight: 600;
}

/* === Trust signals w footer (przeniesione z góry) === */
.cr-review-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cr-review-footer .cr-review-trust {
	flex: 1;
	margin-bottom: 0;
}

.cr-review-footer .cr-like-btn {
	margin-left: auto;
	flex-shrink: 0;
}

/* ==================================================================
   Podsumowanie AI "Co mówią klienci"
   ================================================================== */
.cr-ai-summary {
	padding: 24px 28px;
	background: #f0f2ff;
	border-radius: 16px;
	border: 1px solid #f3f4f6;
	margin-bottom: 24px;
}

.cr-ai-summary-title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	color: #0E2868;
	font-family: 'Poppins', sans-serif;
}

.cr-ai-summary-text {
	font-size: 14px;
	color: #333333;
	line-height: 1.7;
}

.cr-ai-summary-text p {
	margin: 0 0 8px;
}

.cr-ai-summary-text p:last-child {
	margin-bottom: 0;
}

.cr-ai-summary-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 11px;
	color: #9ca3af;
}

.cr-ai-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	background: #0E2868;
	color: #ffffff;
	border-radius: 6px;
	line-height: 0;
}

.cr-ai-badge svg {
	width: 14px;
	height: 14px;
}

@media (max-width: 640px) {
	.cr-ai-summary { padding: 18px 20px; }
	.cr-ai-summary-title { font-size: 15px; }
	.cr-ai-summary-text { font-size: 13px; }
}

/* Nagłówek "Opinie o [Produkt]" */
.cr-reviews-heading {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	color: #0E2868;
	font-family: 'Poppins', sans-serif;
}

.cr-reviews-heading-product {
	background: linear-gradient(90deg, #1E5ABC, #FFDE65, #3b82f6, #ec4899, #1E5ABC);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: cr-gradient-shift 4s ease infinite;
}

@keyframes cr-gradient-shift {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@media (max-width: 640px) {
	.cr-reviews-heading { font-size: 18px; text-align: center; }
}

/* ==================================================================
   [custom_reviews_summary] — box karta (styl Wypromowani)
   ================================================================== */
.cr-summary-box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	font-family: 'Poppins', sans-serif;
	width: 100%;
	box-sizing: border-box;
}

.cr-summary-box-link {
	text-decoration: none;
	color: #0E2868;
	cursor: pointer;
	transition: all 0.3s;
}

.cr-summary-box-link:hover {
	border-color: #d1d5db;
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	transform: translateY(-1px);
	text-decoration: none;
	color: #0E2868;
}

.cr-summary-box-stars {
	display: inline-flex;
	gap: 1px;
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 1;
}

.cr-summary-box-score {
	font-size: 14px;
	font-weight: 700;
	color: #0E2868;
}

.cr-summary-box-sep {
	color: #d1d5db;
}

.cr-summary-box-count {
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
}

.cr-summary-box.cr-summary-empty {
	justify-content: center;
	color: #9ca3af;
	font-size: 13px;
	font-style: italic;
	border-style: dashed;
}

@media (max-width: 640px) {
	.cr-summary-box { padding: 12px 16px; gap: 8px; }
	.cr-summary-box-stars { font-size: 14px; }
	.cr-summary-box-score { font-size: 13px; }
	.cr-summary-box-count { font-size: 12px; }
}

/* [custom_reviews_summary] — prosty: gwiazdki + (N opinii klienta) */
.cr-summary-simple {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 16px;
	text-decoration: none;
	color: inherit;
	line-height: 1;
}

.cr-summary-simple .cr-star { font-size: 18px; }
.cr-summary-simple .cr-star-full { color: #FFDE65; }
.cr-summary-simple .cr-star-half { color: #FFDE65; }
.cr-summary-simple .cr-star-empty { color: #e5e7eb; }

.cr-summary-simple-count {
	font-size: 14px;
	color: #6b7280;
	font-style: italic;
	font-weight: 400;
}

a.cr-summary-simple:hover {
	text-decoration: none;
	color: inherit;
}

a.cr-summary-simple:hover .cr-summary-simple-count {
	color: #0E2868;
}

@media (max-width: 640px) {
	.cr-summary-simple-count { color: #ffffff; }
	.cr-summary-simple .cr-star-empty { color: rgba(255,255,255,0.35); }
}


/* ██████████████████████████████████████████████████████████████████
   PRODUCT REVIEWS — Premium Redesign (override)
   ██████████████████████████████████████████████████████████████████ */

/* Container spacing */
.cr-reviews {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Shared premium card */
.cr-premium-card {
	background: #ffffff;
	border-radius: 32px;
	padding: 32px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.02);
}

/* 1. Heading */
.cr-heading-wrap { display: flex; flex-direction: column; gap: 4px; }
.cr-heading-title { font-size: 28px; font-weight: 800; color: #1f2937; margin: 0 0 6px; }
.cr-heading-animated {
	display: inline-block;
	background: linear-gradient(90deg, #1E5ABC, #38bdf8, #1E5ABC);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: cr-heading-shine 3s linear infinite;
}
@keyframes cr-heading-shine {
	0%   { background-position: 0% center; }
	100% { background-position: 200% center; }
}
.cr-heading-sub { font-size: 14px; color: #6b7280; margin: 0; font-weight: 400; line-height: 1.5; }

/* 2. Summary card */
.cr-summary-card {
	display: flex;
	gap: 60px;
	align-items: center;
}
.cr-summary-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 150px;
}
.cr-rating-huge {
	font-size: 56px;
	font-weight: 800;
	color: #1f2937;
	line-height: 1;
}
.cr-rating-huge span { font-size: 24px; color: #6b7280; }
.cr-summary-stars { font-size: 22px; margin: 10px 0; color: #FFE27A; }
.cr-summary-stars .cr-star-off { color: #e5e7eb; }
.cr-rating-count { font-size: 13px; color: #94a3b8; font-weight: 500; }

.cr-summary-right { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }
.cr-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	text-decoration: none;
	padding: 2px 0;
}
a.cr-bar-row.cr-bar-clickable:hover { opacity: 0.8; }
.cr-bar-row.cr-bar-active { opacity: 1; }
.cr-bar-label { width: 20px; text-align: right; }
.cr-bar-track { flex-grow: 1; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.cr-bar-fill { height: 100%; border-radius: 3px; }
.cr-bar-count { width: 16px; }

/* 3. Info banner (Omnibus) */
.cr-info-banner {
	background: #ffffff;
	border-radius: 20px;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}
.cr-info-banner-icon {
	width: 40px; height: 40px;
	border-radius: 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.cr-info-banner-icon svg { width: 20px; height: 20px; fill: #16a34a; }
.cr-info-banner-body { flex-grow: 1; }
.cr-info-banner-title { font-size: 14px; font-weight: 700; color: #1f2937; display: block; margin-bottom: 2px; }
.cr-info-banner-sub { font-size: 13px; color: #6b7280; }
.cr-info-banner-link {
	display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #1E5ABC; text-decoration: none;
}
.cr-info-banner-link:hover { text-decoration: underline; }

/* 4. AI dark card */
.cr-ai-dark {
	border-radius: 32px;
	padding: 28px 32px;
	background: #1E5ABC;
}
.cr-ai-dark-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cr-ai-dark-header svg { color: rgba(255,255,255,0.45); }
.cr-ai-dark-title { font-size: 13px; font-weight: 700; letter-spacing: 0.3px; color: rgba(255,255,255,0.55); }
.cr-ai-dark-text { font-size: 15px; line-height: 1.65; margin: 0 0 18px; color: #ffffff; }
.cr-ai-dark-text p { margin: 0 0 8px; }
.cr-ai-dark-text p:last-child { margin-bottom: 0; }
.cr-ai-dark-footer { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.3); }

/* 5. Filters */
.cr-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.cr-filter-btn {
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #1f2937;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	transition: all 0.2s;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.cr-filter-btn.cr-filter-active {
	background: #1f2937;
	color: white;
	border-color: #1f2937;
	box-shadow: 0 4px 12px rgba(31, 41, 55, 0.15);
}
.cr-filter-btn:hover:not(.cr-filter-active) { background: #f8fafc; transform: translateY(-1px); }

/* 6. Review card */
.cr-review-card { display: flex; flex-direction: column; }

/* Header */
.cr-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}
.cr-user-block { display: flex; gap: 14px; align-items: center; }
.cr-avatar-square { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }
.cr-user-details { display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.cr-name-row { display: flex; align-items: center; gap: 10px; }
.cr-user-name { font-weight: 700; font-size: 15px; color: #1f2937; }
.cr-name-censored {
	text-decoration: underline dotted;
	text-underline-offset: 3px;
	cursor: help;
	position: relative;
}
.cr-name-censored[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 0;
	transform: translateY(4px);
	background: #1f2937;
	color: white;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.55;
	white-space: normal;
	width: 240px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 100;
	pointer-events: none;
}
.cr-name-censored[data-tooltip]:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.cr-verified-badge { font-size: 12px; color: #10b981; font-weight: 600; }
.cr-meta-row { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 6px; }
.cr-variant-meta { font-size: 13px; font-weight: 600; color: #64748b; }
.cr-date-main { font-size: 13px; color: #94a3b8; white-space: nowrap; }

/* Stars */
.cr-review-stars { color: #FFE27A; font-size: 18px; letter-spacing: 1px; margin-bottom: 10px; }
.cr-review-stars .cr-star-off { color: #e5e7eb; }

/* Title */
.cr-review-card .cr-review-title {
	font-size: 19px;
	font-weight: 800;
	color: #1f2937;
	margin-bottom: 8px;
	display: block;
}

/* Admin note */
.cr-admin-note {
	font-size: 13px;
	font-style: italic;
	color: #3b82f6;
	margin: 6px 0 12px;
	cursor: help;
}

/* Content wrapper + show more */
.cr-review-content-wrapper { position: relative; }
.cr-review-card .cr-review-text {
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}
.cr-review-card .cr-review-text p { margin: 0 0 8px; }
.cr-review-card .cr-review-text p:last-child { margin-bottom: 0; }
.cr-review-card .cr-text-collapsed { max-height: 120px; position: relative; }
.cr-review-card .cr-text-collapsed::after {
	content: "";
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 50px;
	background: linear-gradient(transparent, #ffffff);
}
.cr-review-card .cr-text-expanded { max-height: 2000px; }
.cr-review-card .cr-text-short { max-height: none; overflow: visible; }

/* Reply thread */
.cr-reply-thread {
	margin-top: 20px;
	padding-left: 32px;
	position: relative;
}
.cr-reply-thread::before {
	content: "";
	position: absolute;
	left: 10px; top: -12px;
	width: 14px; height: 32px;
	border-left: 2px solid #e5e7eb;
	border-bottom: 2px solid #e5e7eb;
	border-bottom-left-radius: 12px;
}
.cr-reply-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cr-shop-logo {
	width: 26px; height: 26px;
	background-color: #1E5ABC;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	color: white;
}
.cr-shop-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.cr-reply-bubble {
	background-color: #f8fafc;
	padding: 12px 18px;
	border-radius: 4px 18px 18px 18px;
	font-size: 15px;
	color: #374151;
	display: inline-block;
	border: 1px solid #f1f5f9;
	line-height: 1.5;
}
.cr-reply-bubble p { margin: 0 0 6px; }
.cr-reply-bubble p:last-child { margin-bottom: 0; }

/* Footer */
.cr-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 1px solid #f8fafc;
	margin-top: 24px;
}
.cr-user-stats { display: flex; gap: 16px; }
.cr-stat-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #94a3b8;
	font-weight: 600;
	cursor: help;
}
.cr-stat-item::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 140%;
	left: 50%;
	transform: translateX(-50%) translateY(5px);
	background: #1f2937;
	color: white;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s;
	z-index: 10;
	pointer-events: none;
}
.cr-stat-item:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Like pill */
button.cr-like-pill,
.cr-like-pill {
	background: #fff1f2;
	color: #e11d48;
	padding: 8px 18px;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
	border: none;
	cursor: pointer;
	transition: 0.2s;
	flex-shrink: 0;
	font-family: inherit;
	text-transform: none;
	vertical-align: middle;
	margin-top: 0;
	line-height: 1;
}
button.cr-like-pill:hover,
.cr-like-pill:hover { background: #ffe4e6; transform: translateY(-1px); }

/* Tooltip (general) */
.cr-tip { position: relative; cursor: help; }
.cr-tip::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 0;
	transform: translateY(4px);
	background: #1f2937;
	color: white;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.55;
	white-space: normal;
	width: 260px;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 100;
	pointer-events: none;
}
.cr-tip:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Reviews list */
.cr-reviews .cr-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
}
.cr-reviews .cr-reviews-list-heading { margin: 0; }
.cr-reviews .cr-active-filter-bar { margin: 0; }

/* Responsive */
@media (max-width: 768px) {
	.cr-summary-card { flex-direction: column; gap: 30px; }
	.cr-card-header { flex-direction: column; gap: 12px; }
	.cr-card-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
	.cr-heading-title { font-size: 22px; }
	.cr-premium-card { padding: 24px; border-radius: 24px; }
	.cr-info-banner { flex-direction: column; text-align: center; }
}
