/*
Theme Name: Inwestycje Hryniewicz (GeneratePress)
Theme URI: https://inwestycje.hryniewicz.pl
Description: Motyw potomny GeneratePress – zmiany w plikach, synchronizacja z projektu.
Author: Inwestycje Hryniewicz
Template: generatepress
Version: 1.0.58
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-inwestycje
*/

/* ========== Krok B: Kontener 1140px (nowoczesny 960px), mobile płynnie ========== */
.grid-container,
body .grid-container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 768px) {
	.grid-container,
	body .grid-container {
		width: 100%;
		padding-left: 20px;
		padding-right: 20px;
		box-sizing: border-box;
	}
}

/* ========== Krok C: Menu mobilne – hamburger wyśrodkowany, rozwijanie na pełną szerokość ========== */
@media (max-width: 768px) {
	.menu-toggle {
		display: block;
		width: 100%;
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	.main-navigation.toggled .main-nav,
	.main-navigation.toggled ul {
		width: 100%;
		left: 0;
		right: 0;
	}
	.main-navigation.toggled ul li {
		width: 100%;
	}
	.main-navigation.toggled ul ul {
		position: static;
		width: 100%;
		box-shadow: none;
	}
}

/* ========== Wariant „Brutalist Luxury” – nowy front IH.pl ========== */
/* Wrapper: jeden blok pod całą szerokością – stopka zawsze pod main, nie obok (flex GP). */
.ih-front-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 100%;
	flex: 1 1 100%;
	box-sizing: border-box;
}
.ih-front-main {
	background: #2d2d2d;
	color: #ffffff;
}

.ih-front-main a {
	text-decoration: none;
}

.ih-front-main .ih-tech-banner {
	background: #a73434;
	color: #fff;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	overflow: hidden;
}

.ih-front-main .ih-tech-banner__track {
	display: flex;
	width: max-content;
	min-width: 100%;
	will-change: transform;
	animation: ih-tech-banner-scroll 20s linear infinite;
}

.ih-front-main .ih-tech-banner__text {
	display: inline-block;
	padding: 10px 28px;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.4px;
	white-space: nowrap;
}

@keyframes ih-tech-banner-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ih-front-main .ih-tech-banner__track {
		animation: none;
		transform: none;
	}
}

.ih-front-main .nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 60px;
	background: #2d2d2d;
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Logo: proporcję zachowujemy przy zoomie – bez spłaszczania (object-fit + max-height zamiast height:100%) */
.ih-front-main .nav-logo {
	flex-shrink: 0;
	line-height: 0;
	height: auto;
}
.ih-front-main .nav-logo a {
	display: inline-block;
	height: auto;
}
.ih-front-main .nav-logo img {
	display: block;
	height: auto;
	max-height: 40px;
	width: auto;
	max-width: min(280px, 35vw);
	object-fit: contain;
	object-position: left center;
}

.ih-front-main .nav-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 2px solid #dab663;
	border-radius: 0;
	cursor: pointer;
}

.ih-front-main .nav-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	margin: 0 auto;
	transition: transform 0.2s, opacity 0.2s;
}

.ih-front-main .nav.nav--open .nav-hamburger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.ih-front-main .nav.nav--open .nav-hamburger span:nth-child(2) {
	opacity: 0;
}
.ih-front-main .nav.nav--open .nav-hamburger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/*
 * Menu: przy pełnej szerokości jedna linia (nowrap). Gdy brak miejsca – albo całe linki
 * przechodzą do następnego wiersza (flex-wrap), albo w wąskim kontenerze włącza się
 * łamanie tekstu w odnośniku (@container).
 */
.ih-front-main .nav-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	container-type: inline-size;
	container-name: ih-nav-menu;
}

.ih-front-main .nav-link {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	padding: 8px 14px;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: color 0.2s;
	white-space: nowrap;
	text-align: center;
	line-height: 1.3;
	box-sizing: border-box;
}

.ih-front-main .nav-link:hover {
	color: #dab663;
}

.ih-front-main .nav-label {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #eee3cc;
	white-space: nowrap;
	text-align: center;
	line-height: 1.3;
}

.ih-front-main .nav-link.ih-wpsam-section-link {
	border: 1px solid transparent;
	border-radius: 2px;
	transition: color 0.2s, border-color 0.2s;
}
.ih-front-main .nav-link.ih-wpsam-section-link:hover,
.ih-front-main .nav-link.ih-wpsam-section-link.is-active {
	color: #dab663;
	border-color: #dab663;
}

/* Blok po prawej jak logo po lewej – zawsze przyklejony do prawej, nie zawija się z menu */
.ih-front-main .nav-actions {
	flex-shrink: 0;
	margin-left: auto;
	display: flex;
	align-items: center;
	line-height: 0;
}

/* Zaloguj/Wyloguj – styl „jak logo”: złoty akcent, obramowanie, bez ciężkiego tła */
.ih-front-main .nav-actions .btn-login {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #dab663;
	background: transparent;
	padding: 8px 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #dab663;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	box-sizing: border-box;
}

/* Hover jak READ MORE: ciemniejsze tło #BB9B57 + biały tekst */
.ih-front-main .nav-actions .btn-login:hover {
	background: rgb(187, 155, 87);
	border-color: rgb(187, 155, 87);
	color: #fff;
}

.ih-front-main .subnav {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 10px 60px;
	background: #474849;
	border-bottom: 1px solid #474849;
}

.ih-front-main .subnav-label {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: #eee3cc;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.ih-front-main .subnav-divider {
	width: 1px;
	height: 16px;
	background: #2d2d2d;
}

.ih-front-main .subnav-link {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: #eeece9;
	cursor: pointer;
	transition: color 0.2s;
}

.ih-front-main .subnav-link:hover {
	color: #dab663;
}

.ih-front-main .subnav-link.active {
	font-weight: 500;
	color: #dab663;
}

/* Hero: 960b1.jpg wypełnia cały pas pod menu aż do sekcji .offers (full bleed + cover) */
.ih-front-main .hero {
	position: relative;
	display: flex;
	align-items: center;
	gap: 60px;
	padding: 80px 60px;
	background: #2d2d2d;
	min-height: min(85vh, 920px);
	overflow: hidden;
}
/* .home: hero wyżej o 6px – zdjęcie (inset 0 w .hero-image) wypełnia szczelinę; overflow hidden obcina nadmiar */
body.home .ih-front-main .hero {
	overflow: hidden;
	margin-top: -6px;
	padding-top: 86px;
}
body.home .ih-front-main .hero-image {
	inset: 0;
	top: 0;
	height: 100%;
}
/* Czytelność tekstu: gradient od lewej nad zdjęciem */
.ih-front-main .hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(45, 45, 45, 0.94) 0%,
		rgba(45, 45, 45, 0.75) 38%,
		rgba(45, 45, 45, 0.35) 58%,
		transparent 78%
	);
}
.ih-front-main .hero-text {
	position: relative;
	z-index: 2;
	flex: 0 1 auto;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ih-front-main .hero-label {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #dab663;
	letter-spacing: 0.14em;
}

.ih-front-main .hero-title {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 50px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: -1px;
}
/* Nadpisanie ustawień GP/Customizer (na PROD było capitalize). */
.ih-front-main .hero .hero-title {
	text-transform: none !important;
}

.ih-front-main .hero-sub {
	font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: #eeece9;
	line-height: 1.6;
}

.ih-front-main .hero-quote {
	display: inline-block;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #ffffff;
	background: transparent;
	padding: 12px 22px;
	letter-spacing: 0.2px;
	border: 1px solid #dab663;
	cursor: default;
	transition: none;
	align-self: flex-start;
	text-transform: none;
}

.ih-front-main .hero-quote-author {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.ih-front-main .hero-quote:hover {
	background: transparent;
	color: #ffffff;
	box-shadow: none;
}

/* ========== KROK 2 TYPOGRAFII (PROD): treść = Lato ========== */
body.ih-global-nav:not(.home) .inside-article .entry-content,
body.ih-global-nav:not(.home) .inside-article .entry-content p,
body.ih-global-nav:not(.home) .inside-article .entry-content li,
body.ih-global-nav:not(.home) .inside-article .entry-content td,
body.ih-global-nav:not(.home) .inside-article .entry-content label,
.ih-front-main .card-desc,
.ih-front-main .hero-sub {
	font-family: 'Lato', 'Segoe UI', Arial, sans-serif !important;
}
body.ih-global-nav:not(.home) .inside-article .entry-content,
body.ih-global-nav:not(.home) .inside-article .entry-content p,
body.ih-global-nav:not(.home) .inside-article .entry-content li {
	color: #2c3e50;
}

/* KROK 1+2 (PROD): wyraźne nadpisanie nagłówków/treści, aby efekt był widoczny od razu. */
body.ih-global-nav h1,
body.ih-global-nav h2,
body.ih-global-nav h3,
body.ih-global-nav h4,
body.ih-global-nav .entry-title,
body.ih-global-nav .hero-title,
body.ih-global-nav .card-title {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-weight: 700 !important;
}
body.ih-global-nav .hero-title {
	letter-spacing: -0.5px !important;
}

/* Warstwa zdjęcia – pod tekstem i gradientem, na całą powierzchnię .hero */
.ih-front-main .hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.ih-front-main .hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.ih-front-main .offers {
	padding: 80px 60px;
	background: #2d2d2d;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.ih-front-main .offers-label {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #dab663;
	letter-spacing: 2px;
}

.ih-front-main .cards-row {
	display: flex;
	gap: 24px;
}

.ih-front-main .card {
	flex: 1;
	border: 1px solid #474849;
	display: flex;
	flex-direction: column;
	background: transparent;
}

.ih-front-main .card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.ih-front-main .card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ih-front-main .card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ih-front-main .card-num {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 36px;
	font-weight: 700;
	color: #dab663;
}

.ih-front-main .card-title {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #ffffff;
}

.ih-front-main .card-desc {
	font-size: 14px;
	font-weight: 400;
	color: #eeece9;
	line-height: 1.6;
}

.ih-front-main .btn-outline {
	display: inline-block;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	color: #dab663;
	border: 2px solid #dab663;
	padding: 10px 22px;
	letter-spacing: 0.056em;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	align-self: flex-start;
	text-transform: uppercase;
}

.ih-front-main .btn-outline:hover {
	background: #dab663;
	color: #2d2d2d;
}

@media (max-width: 900px) {
	/* Menu → hamburger: ukryj linki, pokaż przycisk; po kliknięciu rozwiń w kolumnie */
	.ih-front-main .nav-hamburger {
		display: flex;
	}
	.ih-front-main .nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: #2d2d2d;
		padding: 16px 24px 24px;
		gap: 0;
		border-top: 1px solid #474849;
	}
	.ih-front-main .nav.nav--open .nav-menu {
		display: flex;
	}
	.ih-front-main .nav .nav-link {
		display: block;
		width: 100%;
		padding: 12px 16px;
		text-align: left;
		border-bottom: 1px solid #474849;
	}
	/* Przycisk zaloguj/wyloguj zostaje w .nav-actions po prawej – nie w rozwijanym menu */
	.ih-front-main .nav-actions {
		margin-left: auto;
		order: 2;
	}
	.ih-front-main .nav-hamburger {
		order: 1;
		margin-left: auto;
	}
	.ih-front-main .nav-logo {
		order: 0;
	}

	.ih-front-main .nav {
		position: relative;
		flex-wrap: wrap;
	}

	.ih-front-main .hero {
		flex-direction: column;
		align-items: stretch;
		padding: 48px 24px 56px;
		min-height: min(75vh, 640px);
	}
	/* .home: jak desktop – podciągnięty hero, bez osobnego paska */
	body.home .ih-front-main .hero {
		overflow: hidden;
		margin-top: -4px;
		padding-top: 52px;
	}
	body.home .ih-front-main .hero-image {
		inset: 0;
		top: 0;
		height: 100%;
	}
	/* Na mobile mocniejszy gradient – tekst często nad jasną częścią zdjęcia */
	.ih-front-main .hero::before {
		background: linear-gradient(
			to bottom,
			rgba(45, 45, 45, 0.92) 0%,
			rgba(45, 45, 45, 0.55) 45%,
			rgba(45, 45, 45, 0.25) 100%
		);
	}
	.ih-front-main .hero-text {
		max-width: none;
	}

	.ih-front-main .hero-title {
		font-size: 36px;
	}

	.ih-front-main .cards-row {
		flex-direction: column;
	}

	.ih-front-main .nav,
	.ih-front-main .subnav,
	.ih-front-main .offers {
		padding-left: 24px;
		padding-right: 24px;
	}

	.ih-front-main .subnav {
		flex-wrap: wrap;
	}
}

/* Ukryj domyślny nagłówek i stopkę GeneratePress na stronie głównej,
   żeby widoczny był tylko layout z wariantu „Brutalist Luxury”. */
.home .site-header,
.home .footer-widgets-container,
.home .site-info {
	display: none;
}

/* Stopka GP ukryta na całej witrynie – jedna wspólna stopka IH z wp_footer (ih-site-footer). */
.ih-global-nav .site-footer {
	display: none !important;
}

/* Pod naszą stopką get_footer() dokłada stopkę GP – często zostaje jaśniejszy pas (wrapper/padding).
   Na stronie głównej już wcześniej – poniżej dodatkowe zerowanie jeśli coś przebija. */
.home .site-footer,
.home footer.site-footer,
.home .inside-site-info,
.home .site-info-footer,
.home .footer-bar,
.home .gp-footer,
.home .inside-footer-widgets {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: none !important;
}
.home .site-footer {
	position: absolute;
	left: -9999px;
	width: 1px;
}
/* Żeby pod .ih-front-footer nie było „pasa” – koniec strony = koniec ciemnej stopki */
.home #page,
.home .site,
.home .site-content {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}
.home .ih-front-footer {
	margin-bottom: 0;
	padding-bottom: 36px;
}

/* Na podstronach – brak dodatkowego „pasa” pod credits (site-info często ma tło jak reszta stopki). */
.ih-global-nav .site-footer {
	margin-bottom: 0;
	padding-bottom: 0;
}
.ih-global-nav .site-info {
	margin-bottom: 0;
	padding-bottom: 16px;
}

/* Na stronie głównej kontent ma być pełnej szerokości (bez kontenerów GP). */
.home .site-content,
.home .content-area,
.home main#main,
.home .inside-article {
	max-width: 100%;
	margin: 0;
	padding: 0;
}
/* Jeśli .inside-article też jest flexem – stopka ma być pod main, nie obok. */
.home .inside-article {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

/* Usuń białe marginesy wokół całej strony głównej – pełna szerokość layoutu. */
html,
body {
	background: #2d2d2d;
}
/* Stały „gutter” pod pasek przewijania – mniej skoku szerokości przy przejściu główna ↔ podstrony */
html {
	scrollbar-gutter: stable;
}

.home .site,
.home #page,
.home .inside-site-container {
	max-width: 100%;
	margin: 0;
	box-shadow: none;
	background: transparent;
}

/* Stopka firmowa na stronie głównej (.site-info jest ukryte – własny blok pod main).
   GP często ustawia .site-content/.content-area na flex w rzędzie (sidebar) – wtedy
   footer ląduje „z boku”. Wymuszamy kolumnę i pełną szerokość, żeby stopka była na końcu strony. */
.home .site-content,
.home .content-area {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
}
.home main#main {
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
}
.ih-front-footer,
.home footer.ih-front-footer {
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	order: 10;
	box-sizing: border-box;
}
.ih-front-footer {
	background: #1a1a1a;
	border-top: 1px solid rgba(218, 182, 99, 0.25);
	padding: 28px 24px 36px;
	margin-top: 0;
}
.ih-front-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}
.ih-front-footer-text {
	margin: 0;
	font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
}

/* Stopka z wp_footer – pełna szerokość, na końcu strony (poza #page czasem węższa bez tego). */
.ih-site-footer.ih-front-footer {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Odstęp pod fixed menu – bez div-spacera w stopce (spacer w footerze wyglądał jak pas pod stopką). */
body.ih-global-nav {
	padding-top: 72px;
	box-sizing: border-box;
}

/*
 * Strona główna – bez osobnego „paska”: mniejszy padding-top + podciągnięty .hero (margin ujemny),
 * żeby blok hero (zdjęcie cover) fizycznie wszedł pod dół fixed menu – bez drugiej warstwy ::before.
 */
body.home.ih-global-nav {
	padding-top: 66px;
}

/*
 * Fixed wrap: line-height 0 usuwa ewentualną „sztuczną” linię pod nav (whitespace/strut między </div> a <nav> w DOM).
 * font-size 0 na wrapie – przywracamy na .nav, żeby dzieci dziedziczyły poprawnie z .nav-link itd.
 */
#ih-global-nav-wrap.ih-inner-nav-wrap {
	line-height: 0;
	font-size: 0;
}
#ih-global-nav-wrap .nav,
#ih-global-nav-wrap nav.ih-main-nav {
	line-height: normal;
	font-size: 14px; /* baza; linki mają własne w regułach .nav-link */
}

/* ========== Inner shell + global nav – ukryj nagłówek GP (menu IH jest fixed z functions.php) ========== */
.ih-global-nav .site-header,
.ih-global-nav .main-navigation,
.ih-global-nav .site-branding,
.ih-inner-shell .site-header,
.ih-inner-shell .main-navigation,
.ih-inner-shell .site-branding {
	display: none !important;
}

.ih-inner-nav-wrap {
	background: #2d2d2d;
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	box-sizing: border-box;
}

/* Ta sama nawigacja co .ih-front-main .nav – podwójny selektor żeby nie kopiować setek linii */
.ih-inner-nav-wrap .nav,
.ih-inner-nav-wrap nav.ih-main-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 60px;
	background: #2d2d2d;
}

/* Logo wewnętrzne – jak wyżej: brak spłaszczania przy powiększaniu */
.ih-inner-nav-wrap .nav-logo {
	flex-shrink: 0;
	line-height: 0;
	height: auto;
}
.ih-inner-nav-wrap .nav-logo a {
	display: inline-block;
	height: auto;
}
.ih-inner-nav-wrap .nav-logo img {
	display: block;
	height: auto;
	max-height: 40px;
	width: auto;
	max-width: min(280px, 35vw);
	object-fit: contain;
	object-position: left center;
}

.ih-inner-nav-wrap .nav-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid #dab663;
	border-radius: 0;
	cursor: pointer;
}
.ih-inner-nav-wrap .nav-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	margin: 0 auto;
	transition: transform 0.2s, opacity 0.2s;
}
.ih-inner-nav-wrap .nav.nav--open .nav-hamburger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.ih-inner-nav-wrap .nav.nav--open .nav-hamburger span:nth-child(2) {
	opacity: 0;
}
.ih-inner-nav-wrap .nav.nav--open .nav-hamburger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.ih-inner-nav-wrap .nav-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	container-type: inline-size;
	container-name: ih-nav-menu;
}
.ih-inner-nav-wrap .nav-link {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	padding: 8px 14px;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: color 0.2s;
	white-space: nowrap;
	text-align: center;
	line-height: 1.3;
	box-sizing: border-box;
}
.ih-inner-nav-wrap .nav-link:hover {
	color: #dab663;
}
.ih-inner-nav-wrap .nav-label {
	color: #dab663;
	cursor: default;
	white-space: nowrap;
	text-align: center;
	line-height: 1.3;
}

/* Dane wspólnika – ramka jak przyciski: złota na hover, złota utrzymana na aktywnej sekcji (hash w URL) */
.ih-inner-nav-wrap .nav-link.ih-wpsam-section-link {
	border: 1px solid transparent;
	border-radius: 2px;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ih-inner-nav-wrap .nav-link.ih-wpsam-section-link:hover {
	color: #dab663;
	border-color: #dab663;
}
.ih-inner-nav-wrap .nav-link.ih-wpsam-section-link.is-active {
	color: #dab663;
	border-color: #dab663;
}

/* Licznik „Nowa dyskusja” w belce (ERL / wspólnik) */
.ih-inner-nav-wrap .nav-link .ih-nav-badge,
.ih-front-main .nav-link .ih-nav-badge {
	display: inline-block;
	margin-left: 0.35em;
	padding: 0.12em 0.5em;
	font-size: 0.8em;
	line-height: 1.2;
	border-radius: 999px;
	background: #c9a227;
	color: #fff;
	font-weight: 600;
	vertical-align: middle;
}

/* Zakładka „Nowa dyskusja” (panel ERL / dane wspólnika) */
.wpsam-new-discussion-lead {
	margin: 0 0 1rem;
	max-width: 42rem;
	line-height: 1.5;
	color: #4a5568;
}
.wpsam-new-discussion-empty {
	margin: 0;
	color: #6b7280;
}

/* Prawy blok jak logo – zawsze po prawej, nie wchodzi w zawijanie .nav-menu */
.ih-inner-nav-wrap .nav-actions {
	flex-shrink: 0;
	margin-left: auto;
	display: flex;
	align-items: center;
	line-height: 0;
}

/* Gdy środkowa kolumna menu jest wąska – dopiero wtedy łamanie tekstu w linku (nie na pełnej szerokości). */
/* Próg – tylko gdy kolumna menu jest naprawdę ciasna (dostosuj po podglądzie). */
@container ih-nav-menu (max-width: 50rem) {
	.ih-inner-nav-wrap .nav-menu .nav-link,
	.ih-inner-nav-wrap .nav-menu .nav-label,
	.ih-front-main .nav-menu .nav-link,
	.ih-front-main .nav-menu .nav-label {
		white-space: normal;
	}
}

.ih-inner-nav-wrap .nav-actions .btn-login {
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #dab663;
	background: transparent;
	padding: 8px 14px;
	text-decoration: none;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid #dab663;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	box-sizing: border-box;
}
.ih-inner-nav-wrap .nav-actions .btn-login:hover {
	background: rgb(187, 155, 87);
	border-color: rgb(187, 155, 87);
	color: #fff;
}

/* Treść strony – na podstronach z papierowym tłem nie wymuszamy białego (nadpisuje blok niżej). */
.ih-inner-shell .site-content,
.ih-inner-shell .content-area {
	background: transparent;
}
.ih-inner-shell .inside-article {
	background: transparent;
	padding: 24px 32px;
	box-sizing: border-box;
}

/* ========== Layout jak startertemplatecloud.com/g41 – pełna szerokość, bez szarych marginesów, „papierowe” tło ========== */
/* Strona główna (.home) zostaje ciemna – poniżej tylko podstrony + wspólne elementy poza .home */

/*
 * Overlay jak Kadence Row Layout: <div class="kt-row-layout-overlay kt-row-overlay-normal">
 * W Kadence (style-blocks-rowlayout.css): position absolute, opacity .3, 100% w/h, z-index 0.
 * U nas fixed na cały viewport + własne tło (faktura) – treść nad nim przez z-index na #page.
 */
body.ih-global-nav:not(.home) #page,
body.ih-global-nav:not(.home) .site {
	position: relative;
	z-index: 1;
}

/*
 * Overlay jak Kadence – bez JPG z zewnętrznego linku (404 na startertemplatecloud).
 * Własny JPG: wgraj do Media i ustaw URL w ih-image-urls.php → ih_get_paper_texture_url()
 * – wtedy functions.php dopisze background-image inline.
 * Domyślnie: SVG grain (działa bez plików).
 */
.ih-paper-overlay.kt-row-layout-overlay,
div.ih-paper-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 0 !important;
	pointer-events: none !important;
	background-color: #eeece9;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 256px 256px;
	background-position: 0 0;
	opacity: 0.5;
	mix-blend-mode: multiply;
}

@supports not (mix-blend-mode: multiply) {
	.ih-paper-overlay.kt-row-layout-overlay,
	div.ih-paper-overlay {
		opacity: 0.4;
		mix-blend-mode: normal;
	}
}

/* Tło pod overlay – jednolity #eeece9 (palette8 g41); tekstura jest na .ih-paper-overlay (JPG) */
body.ih-global-nav:not(.home),
body.ih-global-nav:not(.home) #page,
body.ih-global-nav:not(.home) .site {
	background-color: #eeece9;
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%);
	background-attachment: fixed;
}

/*
 * Podstrony z małą ilością treści:
 * - szare tło ma wypełniać ekran aż do stopki,
 * - stopka ma zostać na dole, a nie "w połowie" strony.
 */
body.ih-global-nav:not(.home) {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.ih-global-nav:not(.home) #page,
body.ih-global-nav:not(.home) .site {
	flex: 1 0 auto;
	width: 100%;
}
body.ih-global-nav:not(.home) .ih-site-footer.ih-front-footer {
	flex-shrink: 0;
	margin-top: auto;
}

/* Pełna szerokość – obcinamy szare/ciemne marginesy GP */
body.ih-global-nav:not(.home) .site,
body.ih-global-nav:not(.home) #page,
body.ih-global-nav:not(.home) .site-content,
body.ih-global-nav:not(.home) .content-area,
body.ih-global-nav:not(.home) .inside-site-container {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-shadow: none !important;
}

body.ih-global-nav:not(.home) .site-content,
body.ih-global-nav:not(.home) .content-area {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
}

/* ========== Bez prawego paska (Szukaj, Recent Posts…) – tylko treść na pełną szerokość ========== */
body.ih-global-nav:not(.home) .widget-area,
body.ih-global-nav:not(.home) .sidebar,
body.ih-global-nav:not(.home) aside.widget-area,
body.ih-global-nav:not(.home) #right-sidebar,
body.ih-global-nav:not(.home) .site-content .widget-area,
body.ih-global-nav:not(.home) .content-area .widget-area {
	display: none !important;
	width: 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Jedna kolumna – treść na całą szerokość po ukryciu sidebara */
body.ih-global-nav:not(.home) .site-content,
body.ih-global-nav:not(.home) .content-area {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
}
body.ih-global-nav:not(.home) .content-area,
body.ih-global-nav:not(.home) main#main {
	flex: 1 1 100% !important;
	max-width: 100% !important;
}

/* ========== Bez białych „pudełek” – tekst i tabele bezpośrednio na papierowym tle ========== */
body.ih-global-nav:not(.home) .inside-article,
body.ih-global-nav:not(.home) .entry-content,
body.ih-global-nav:not(.home) .one-container .site-content > *,
body.ih-global-nav:not(.home) .page-content,
body.ih-global-nav:not(.home) article {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

body.ih-global-nav:not(.home) .inside-article {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 32px 40px 48px;
	box-sizing: border-box;
}

/*
 * Typografia treści na podstronach: 17px, interlinia 1.6, kolor #2d2d2d.
 * Bez max-width na akapitach – pełna szerokość kontenera (42em było za wąsko).
 */
body.ih-global-nav:not(.home) .inside-article .entry-content {
	font-size: 17px;
	line-height: 1.6;
	color: #2d2d2d;
}
body.ih-global-nav:not(.home) .inside-article .entry-content h2,
body.ih-global-nav:not(.home) .inside-article .entry-content h3,
body.ih-global-nav:not(.home) .inside-article .entry-content h4 {
	line-height: 1.35;
	margin-top: 1.25em;
	margin-bottom: 0.5em;
	color: #2d2d2d;
}

/* wpsam / jQuery UI tabs – bez białego tła pod tabelami */
body.ih-global-nav:not(.home) .ui-tabs,
body.ih-global-nav:not(.home) .ui-tabs .ui-tabs-panel,
body.ih-global-nav:not(.home) .ui-widget-content,
body.ih-global-nav:not(.home) .ui-widget-header,
body.ih-global-nav:not(.home) .inside-article table,
body.ih-global-nav:not(.home) .inside-article .wpsam-szn-wrap,
body.ih-global-nav:not(.home) .inside-article div[class*="wpsam"]:not(.wpsam-tx-discussion-internal-block):not(.wpsam-tx-discussion-team-public-divider),
body.ih-global-nav:not(.home) .entry-content table {
	background: transparent !important;
	background-color: transparent !important;
}

/* Komórki tabel – czytelność bez „kartki”. Nagłówki .wpsam-transactions-table nadpisane niżej (#5a5a5a + biały tekst). */
body.ih-global-nav:not(.home) .inside-article table th,
body.ih-global-nav:not(.home) .inside-article table td {
	background: transparent !important;
}

/* Strona Dane wspólnika – bez duplikatu tytułu (belka = nawigacja sekcji) */
body.page-dane-wspolnika .entry-header,
body.page-dane-wspolnika header.entry-header,
body.page-dane-wspolnika .page-header,
body.page-dane-wspolnika .inside-page-header {
	display: none !important;
}

/* Panel ERL – bez tytułu strony w treści (nazwa w belce menu) */
body.page-panel-erl .entry-header,
body.page-panel-erl header.entry-header,
body.page-panel-erl .page-header,
body.page-panel-erl .inside-page-header {
	display: none !important;
}

/*
 * Wszystkie panele Dane wspólnika – bez powtórki tytułu z menu.
 * Stary mustache na serwerze mógł zostawiać h3 w tab-4/tab-3/tab-statystyki – ukrywamy bezpośrednie h3 w .wpsam-panel.
 */
body.page-dane-wspolnika .wpsam-associate-panels .wpsam-panel > h3 {
	display: none !important;
}

/* „Moje umowy” – tytuł wewnątrz .wpsam-moje-umowy (nie bezpośrednie dziecko panelu) */
body.page-dane-wspolnika #tab-6 .wpsam-moje-umowy-title {
	display: none !important;
}

/* Tabela Moje umowy – kolumna ID tylko przy nowym markup (data-cols="6" / .wpsam-umowy-col-id) */
body.page-dane-wspolnika .wpsam-moje-umowy .wpsam-umowy-table[data-cols="6"] .wpsam-umowy-col-id {
	display: table-cell !important;
	min-width: 72px;
	width: 80px;
	text-align: right;
}

/* Shortcode .wpsam-moje-umowy ma inline margin: 20px 0 – bez h3 treść zaczyna się niżej niż w Bezpieczeństwie */
body.page-dane-wspolnika #tab-6 .wpsam-moje-umowy {
	margin-top: 0 !important;
}
body.page-dane-wspolnika #tab-6 .wpsam-moje-umowy .wpsam-instructions:first-of-type {
	margin-top: 0;
}

/* Bezpieczeństwo – h3 wewnątrz .wpsam-bezpieczenstwo */
body.page-dane-wspolnika #tab-7 .wpsam-bezpieczenstwo > h3 {
	display: none !important;
}
body.page-dane-wspolnika #tab-7 .wpsam-bezpieczenstwo {
	margin-top: 0;
	padding-top: 0;
}

/* Treść bliżej góry – mniejszy padding u góry (belka już oddziela) */
body.page-dane-wspolnika .inside-article,
body.page-dane-wspolnika .inside-article .entry-content {
	padding-top: 12px !important;
	margin-top: 0 !important;
}

body.page-dane-wspolnika .associate_summary .content,
body.page-dane-wspolnika #wpsam-associate-panels {
	margin-top: 0;
	padding-top: 0;
}

/* Szerokość treści – bez sztucznego zwężenia jeśli sidebar zniknął */
body.ih-global-nav:not(.home) .entry-content,
body.ih-global-nav:not(.home) .inside-article .entry-header,
body.ih-global-nav:not(.home) .inside-article .page-content {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

body.ih-global-nav:not(.home) .inside-article .entry-content .wpsam-szn-wrap,
body.ih-global-nav:not(.home) .inside-article table {
	max-width: 100%;
}

/* ========== Moje transakcje – przełącznik w toku / rozliczone (hash w URL) ========== */
body.page-dane-wspolnika .associate_summary .ih-transakcje-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 12px; /* przerwa między przyciskami – nie są już „sklejone” */
	margin-bottom: 14px;
	border: none;
	background: transparent;
	box-sizing: border-box;
}
body.page-dane-wspolnika .associate_summary .ih-transakcje-switch-btn {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	padding: 12px 16px;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #2d2d2d;
	text-decoration: none !important;
	border: 1px solid #d0ccc4;
	background: #faf9f7;
	box-sizing: border-box;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
body.page-dane-wspolnika .associate_summary .ih-transakcje-switch-btn:hover {
	background: rgba(218, 182, 99, 0.2);
	color: #2d2d2d;
}
body.page-dane-wspolnika .associate_summary .ih-transakcje-switch-btn.is-active {
	background: rgb(218, 182, 99);
	color: #2d2d2d;
	box-shadow: inset 0 0 0 2px rgb(187, 155, 87);
}

/* ========== Tabele transakcji (Dane wspólnika) – pełna szerokość, wyśrodkowanie w pionie, czytelny nagłówek ========== */
body.page-dane-wspolnika .associate_summary .transaction-filters {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	align-items: stretch;
}
/* Pole szukaj + X czyszczący na końcu */
body.page-dane-wspolnika .associate_summary .transaction-filter-input-wrap {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	align-items: stretch;
	border: 1px solid #ccc;
	box-sizing: border-box;
	background: #fff;
}
body.page-dane-wspolnika .associate_summary .transaction-filter-input-wrap .transaction-filter-input {
	border: none !important;
	flex: 1 1 auto;
	min-width: 0;
}
body.page-dane-wspolnika .associate_summary .ih-filter-clear {
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	border: none;
	border-left: 1px solid #e0ddd6;
	background: #f5f3ef;
	color: #5a5a5a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}
body.page-dane-wspolnika .associate_summary .ih-filter-clear:hover {
	background: rgb(218, 182, 99);
	color: #2d2d2d;
}
body.page-dane-wspolnika .associate_summary .transaction-filter-input {
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	font-size: 15px;
}
/* Pole wyszukiwania – węższe, żeby zmieścić przycisk CSV po prawej */
body.page-dane-wspolnika .associate_summary .transaction-filter-search {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}
/* Przycisk CSV – kolorystyka jak Moje umowy / g41 */
body.page-dane-wspolnika .associate_summary .ih-btn-transaction-csv {
	flex: 0 0 auto;
	align-self: stretch;
	white-space: nowrap;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 0 18px !important;
	min-height: 42px;
	height: auto;
	line-height: 1.2 !important;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	text-decoration: none !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	transition: background 0.2s ease, color 0.2s ease;
}
body.page-dane-wspolnika .associate_summary .ih-btn-transaction-csv:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}

body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table {
	width: 100%;
	border-collapse: collapse;
	/* auto = kolumny wg treści; fixed + wąskie % obcinało nagłówki */
	table-layout: auto;
	margin: 0 0 1em;
	box-sizing: border-box;
}
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table th,
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table td,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table th,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table td {
	vertical-align: middle !important;
	padding: 12px 14px;
	border: 1px solid #d0ccc4;
	text-align: left;
	word-wrap: break-word;
	overflow-wrap: break-word;
	overflow: visible;
}
/* Nagłówki: jaśniejsze tło #5a5a5a, biały tekst; !important wygrywa z transparent */
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table th,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table th {
	background: #5a5a5a !important;
	color: #fff !important;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.5;
	padding-top: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* Druga kolumna (Nieruchomość) – szerzej = mniej łamania; bez max-width żeby wykorzystać miejsce */
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active th:nth-child(2),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active td:nth-child(2),
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table--active th:nth-child(2),
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table--active td:nth-child(2) {
	min-width: 22rem;
	width: 38%;
}
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished th:nth-child(2),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished td:nth-child(2),
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table--finished th:nth-child(2),
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table--finished td:nth-child(2) {
	min-width: 24rem;
	width: 45%;
}
/* Wiersze danych: komórki obok wielolinijkowej komórki wyśrodkowane w pionie względem wiersza */
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table tbody tr.transaction-row td,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table tbody tr.transaction-row td {
	vertical-align: middle !important;
}
/* Kolumny numeryczne / ID – wyrównanie do prawej opcjonalnie w 1. i 3. kolumnie tab-active */
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active th:nth-child(1),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active td:nth-child(1),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active th:nth-child(3),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active td:nth-child(3),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished th:nth-child(1),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished td:nth-child(1),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished th:nth-child(3),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished td:nth-child(3) {
	text-align: right;
}
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table .transaction-summary-row td {
	background: rgba(0, 0, 0, 0.04);
	font-weight: 600;
}

/* Panel ERL — treść + przełącznik + filtry + podsumowanie (jak dane wspólnika; tabele już z body.ih-global-nav…) */
body.page-panel-erl .inside-article,
body.page-panel-erl .inside-article .entry-content {
	padding-top: 12px !important;
	margin-top: 0 !important;
}
body.page-panel-erl .associate_summary .content,
body.page-panel-erl #wpsam-erl-panels {
	margin-top: 0;
	padding-top: 0;
}

/* Panel ERL: backup — mustache ma inline opacity:0 na #wpsam-erl-panels (pierwszy paint przed CSS); klasa .wpsam-erl-panels-ready dokładana w JS razem z opacity:1. */
body.page-panel-erl #wpsam-erl-panels:not(.wpsam-erl-panels-ready) {
	opacity: 0;
	transition: opacity 0.12s ease;
}
body.page-panel-erl #wpsam-erl-panels.wpsam-erl-panels-ready {
	opacity: 1;
}
body.page-panel-erl .wpsam-table-empty-row td {
	text-align: left;
	vertical-align: middle;
}
body.page-panel-erl .associate_summary .ih-transakcje-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
	border: none;
	background: transparent;
	box-sizing: border-box;
}
body.page-panel-erl .associate_summary .ih-transakcje-switch-btn {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	padding: 12px 16px;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #2d2d2d;
	text-decoration: none !important;
	border: 1px solid #d0ccc4;
	background: #faf9f7;
	box-sizing: border-box;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
body.page-panel-erl .associate_summary .ih-transakcje-switch-btn:hover {
	background: rgba(218, 182, 99, 0.2);
	color: #2d2d2d;
}
body.page-panel-erl .associate_summary .ih-transakcje-switch-btn.is-active {
	background: rgb(218, 182, 99);
	color: #2d2d2d;
	box-shadow: inset 0 0 0 2px rgb(187, 155, 87);
}
body.page-panel-erl .associate_summary .transaction-filters {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	align-items: stretch;
}
body.page-panel-erl .associate_summary .transaction-filter-input-wrap {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	align-items: stretch;
	border: 1px solid #ccc;
	box-sizing: border-box;
	background: #fff;
}
body.page-panel-erl .associate_summary .transaction-filter-input-wrap .transaction-filter-input {
	border: none !important;
	flex: 1 1 auto;
	min-width: 0;
}
body.page-panel-erl .associate_summary .ih-filter-clear {
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	border: none;
	border-left: 1px solid #e0ddd6;
	background: #f5f3ef;
	color: #5a5a5a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}
body.page-panel-erl .associate_summary .ih-filter-clear:hover {
	background: rgb(218, 182, 99);
	color: #2d2d2d;
}
body.page-panel-erl .associate_summary .transaction-filter-input {
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	font-size: 15px;
}
body.page-panel-erl .associate_summary .transaction-filter-search {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}
body.page-panel-erl .associate_summary .ih-btn-transaction-csv {
	flex: 0 0 auto;
	align-self: stretch;
	white-space: nowrap;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 0 18px !important;
	min-height: 42px;
	height: auto;
	line-height: 1.2 !important;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	text-decoration: none !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	transition: background 0.2s ease, color 0.2s ease;
}
body.page-panel-erl .associate_summary .ih-btn-transaction-csv:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}
body.page-panel-erl .associate_summary table.wpsam-transactions-table .transaction-summary-row td {
	background: rgba(0, 0, 0, 0.04);
	font-weight: 600;
}
body.page-panel-erl .associate_summary table.wpsam-transactions-table--erl-active th:nth-child(4),
body.page-panel-erl .associate_summary table.wpsam-transactions-table--erl-active td:nth-child(4) {
	text-align: right;
}

/* ========== Statystyki – kafelki styl g41 (beż, większa czcionka, akcent złoto-pomarańcz) ========== */
/* Kolory zbliżone do załącznika g41: tło krem/beż, tekst ciemny, akcent przy kafelku */
body.page-dane-wspolnika #tab-statystyki .ih-stats-g41,
body.ih-inner-shell #tab-statystyki .ih-stats-g41 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-g41,
body.ih-inner-shell #tab-statystyki .ih-stats-g41 {
	/* Siatka reaguje na realną szerokość panelu (zoom / wąski content) zamiast tylko viewport */
	container-type: inline-size;
	container-name: ih-stats;
}

/*
 * Statystyki: domyślnie 4 kolumny (2 rzędy). Przy powiększeniu ~200% – 2 kolumny × 4 rzędy.
 * Container query patrzy na szerokość panelu (.ih-stats-g41), nie tylko viewport – zoom działa stabilniej.
 */
body.page-dane-wspolnika #tab-statystyki .ih-stats-tiles,
body.ih-inner-shell #tab-statystyki .ih-stats-tiles,
body.page-dane-wspolnika #tab-statystyki #ih-stats-tiles-root,
body.ih-inner-shell #tab-statystyki #ih-stats-tiles-root {
	display: grid !important;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	align-items: stretch;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Panel węższy niż ~1120px → 2 kolumny (typowo po zoomie 200% lub wąski content) */
@container ih-stats (max-width: 1120px) {
	body.page-dane-wspolnika #tab-statystyki #ih-stats-tiles-root,
	body.ih-inner-shell #tab-statystyki #ih-stats-tiles-root,
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tiles,
	body.ih-inner-shell #tab-statystyki .ih-stats-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Fallback bez container queries – wyższy próg niż 900px, żeby 200% zoom częściej wchodził w 2 kolumny */
@media (max-width: 1120px) {
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tiles,
	body.ih-inner-shell #tab-statystyki .ih-stats-tiles,
	body.page-dane-wspolnika #tab-statystyki #ih-stats-tiles-root,
	body.ih-inner-shell #tab-statystyki #ih-stats-tiles-root {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 480px) {
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tiles,
	body.ih-inner-shell #tab-statystyki .ih-stats-tiles,
	body.page-dane-wspolnika #tab-statystyki #ih-stats-tiles-root,
	body.ih-inner-shell #tab-statystyki #ih-stats-tiles-root {
		grid-template-columns: 1fr !important;
	}
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile,
body.ih-inner-shell #tab-statystyki .ih-stats-tile {
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.75rem 1.5rem 1.5rem;
	box-sizing: border-box;
	background: #f5f0e8;
	border: 1px solid #e5dfd2;
	border-left: 4px solid #d4a84f;
	border-radius: 2px;
	color: #2c2c2c;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-label,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a5346;
	line-height: 1.35;
	margin-bottom: 0.65rem;
	/* Długie etykiety nie rozpychają kafelka w nieskończoność */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	word-break: break-word;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-value,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
	color: #2c2c2c;
	margin-bottom: 0.5rem;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-meta,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-meta {
	font-size: 0.95rem;
	line-height: 1.45;
	color: #4a453c;
	word-break: break-word;
	overflow-wrap: anywhere;
	/* Max 2 linie – długi tekst (np. nazwa transakcji) nie wydłuża kafelka */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	/* Przy równej wysokości rzędu – meta przy dolnej krawędzi kafelka */
	margin-top: auto;
	padding-top: 0.35rem;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-meta a,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-meta a {
	color: #8a6d2e;
	text-decoration: underline;
}
body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-meta a:hover,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-meta a:hover {
	color: #5a4a22;
}

@media (min-width: 900px) {
	/* Kolumny 3 lub 4 już ustawione wyżej (800px / 1100px) – tu tylko padding/czcionki */
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tile,
	body.ih-inner-shell #tab-statystyki .ih-stats-tile {
		padding: 1.75rem 2rem 1.75rem 1.65rem;
	}
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-value,
	body.ih-inner-shell #tab-statystyki .ih-stats-tile-value {
		font-size: 2rem;
	}
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-label,
	body.ih-inner-shell #tab-statystyki .ih-stats-tile-label {
		font-size: 0.85rem;
	}
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-meta,
	body.ih-inner-shell #tab-statystyki .ih-stats-tile-meta {
		font-size: 1rem;
	}
}

/* ========== TEST: tabele → karty (wymaga ih-wpsam-tables-mobile.js – data-label) ========== */
/* Próg podniesiony z 640px → 1200px: przy zoomie 200–250% viewport nadal >640px, a tabela ma
   min-width na kolumnach – wtedy był poziomy scroll. Poniżej 1200px od razu karty, bez przewijania. */
@media (max-width: 1200px) {
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"],
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"],
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] {
		display: block;
		width: 100%;
		border: none;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] thead,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] thead,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] thead {
		display: none;
	}
	/* Pierwszy wiersz z th (mustache bez thead) – ukryty; klasa dodawana w ih-wpsam-tables-mobile.js */
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"].ih-first-row-is-header tr:first-child,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"].ih-first-row-is-header tr:first-child {
		display: none;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tbody,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tbody,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] tbody {
		display: block;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tr,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tr,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] tr {
		display: block;
		margin-bottom: 1rem;
		padding: 0.75rem 0;
		border: 1px solid #d0ccc4;
		border-radius: 4px;
		background: #faf9f7;
		box-sizing: border-box;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] td {
		display: block;
		width: 100% !important;
		min-width: 0 !important;
		text-align: left !important;
		border: none;
		border-bottom: 1px solid #e8e6e2;
		padding: 0.5rem 0.75rem 0.5rem 42% !important;
		position: relative;
		box-sizing: border-box;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tr td:last-child,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tr td:last-child,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] tr td:last-child {
		border-bottom: none;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td::before,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td::before,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] td::before {
		content: attr(data-label);
		position: absolute;
		left: 0.75rem;
		top: 0.5rem;
		width: 38%;
		font-weight: 600;
		font-size: 12px;
		color: #5a5a5a;
		line-height: 1.4;
	}
	/*
	 * Moje umowy – kolumna ID: shortcode ma inline width:80px + nowrap + text-align:right na td:nth-child(1).
	 * Przy display:block (karty) 80px ściska komórkę → „ID8576” w jednym kleju. Reset = jak pozostałe wiersze:
	 * etykieta ID z ::before po lewej (38%), wartość w polu od 42% w lewo, jak Nieruchomość.
	 */
	/*
	 * Desktop (poza media): .wpsam-umowy-col-id ma display:table-cell !important + width:80px.
	 * W kartach tr/td są block – table-cell na pierwszej komórce psuje układ i łamie „8576” na 8/5/7/6.
	 */
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] td.wpsam-umowy-col-id,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] tr td:nth-child(1) {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		text-align: left !important;
		white-space: normal !important;
	}
	/* Jedna linia jak „170 000 zł” – bez łamania każdej cyfry (word-break z .entry-content) */
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] td.wpsam-umowy-col-id .wpsam-umowy-id-num {
		display: block;
		text-align: left;
		white-space: nowrap;
		word-break: normal;
		overflow-wrap: normal;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td:empty,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td:empty {
		display: none;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] .transaction-summary-row td,
	body.page-panel-erl .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] .transaction-summary-row td {
		background: rgba(0, 0, 0, 0.06);
		font-weight: 600;
	}
}

@media (max-width: 768px) {
	body.ih-global-nav:not(.home) .inside-article {
		padding: 20px 16px 32px;
	}
	/* Na mobile minimum 16px */
	body.ih-global-nav:not(.home) .inside-article .entry-content {
		font-size: 16px;
		line-height: 1.55;
	}
}

@media (max-width: 900px) {
	.ih-inner-nav-wrap .nav-hamburger {
		display: flex;
	}
	.ih-inner-nav-wrap .nav-menu {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 16px 0;
	}
	.ih-inner-nav-wrap .nav.nav--open .nav-menu {
		display: flex;
	}
	.ih-inner-nav-wrap .nav {
		flex-wrap: wrap;
		padding-left: 24px;
		padding-right: 24px;
	}
	/* Hamburger + przycisk razem po prawej jak na froncie */
	.ih-inner-nav-wrap .nav-actions {
		margin-left: auto;
		order: 2;
	}
	.ih-inner-nav-wrap .nav-hamburger {
		order: 1;
		margin-left: auto;
	}
	.ih-inner-nav-wrap .nav-logo {
		order: 0;
	}
}

/* ========== Wpsam – przyciski jak g41: złoto #dab663, tekst #2d2d2d ========== */
/* Formularz logowania: HTML to .container > .login > form.form – NIE .container.login */
body.ih-inner-shell .login form.form button[type="submit"],
body.ih-global-nav .login form.form button[type="submit"],
body.ih-inner-shell .container .login form button[type="submit"],
body.ih-inner-shell .wpsam-bezpieczenstwo button.button:not(.wpsam-toggle-password),
body.ih-inner-shell .wpsam-bezpieczenstwo .button.button-primary {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 7px 20px !important;
	min-height: 36px !important;
	line-height: 1 !important;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-size: 11.2px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.056em !important;
	cursor: pointer !important;
	text-decoration: none !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}
body.ih-inner-shell .login form.form button[type="submit"]:hover,
body.ih-global-nav .login form.form button[type="submit"]:hover,
body.ih-inner-shell .container .login form button[type="submit"]:hover,
body.ih-inner-shell .wpsam-bezpieczenstwo button.button:not(.wpsam-toggle-password):hover,
body.ih-inner-shell .wpsam-bezpieczenstwo .button.button-primary:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}
body.ih-inner-shell .wpsam-bezpieczenstwo button.button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Moje umowy – te same przyciski co wyżej; motyw ładuje się po GP – przebija pomarańczowy .button */
body.page-dane-wspolnika .wpsam-moje-umowy a.button,
body.page-dane-wspolnika .wpsam-moje-umowy button.button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 7px 20px !important;
	min-height: 36px !important;
	line-height: 1 !important;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-size: 11.2px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.056em !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}
body.page-dane-wspolnika .wpsam-moje-umowy a.button:hover,
body.page-dane-wspolnika .wpsam-moje-umowy button.button:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}

/* Dyskusja przy transakcji – ten sam złoty przycisk co umowy / logowanie (GP nadpisuje .button na szary) */
body.ih-inner-shell .wpsam-transaction-discussion button.button,
body.ih-inner-shell .wpsam-transaction-discussion button[type="submit"],
body.ih-inner-shell .wpsam-discussion-form button.button,
body.ih-inner-shell .wpsam-discussion-form button[type="submit"],
body.ih-inner-shell .wpsam-discussion-edit-form button.button,
body.ih-inner-shell .wpsam-discussion-edit-form button[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 7px 20px !important;
	min-height: 36px !important;
	line-height: 1 !important;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-size: 11.2px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.056em !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
}
body.ih-inner-shell .wpsam-transaction-discussion button.button:hover,
body.ih-inner-shell .wpsam-transaction-discussion button[type="submit"]:hover,
body.ih-inner-shell .wpsam-discussion-form button.button:hover,
body.ih-inner-shell .wpsam-discussion-form button[type="submit"]:hover,
body.ih-inner-shell .wpsam-discussion-edit-form button.button:hover,
body.ih-inner-shell .wpsam-discussion-edit-form button[type="submit"]:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}

/* Ta sama stylistyka na single transakcji gdy body nie ma jeszcze ih-inner-shell */
body.single-transaction .wpsam-transaction-discussion button.button,
body.single-transaction .wpsam-transaction-discussion button[type="submit"],
body.post-type-transaction .wpsam-transaction-discussion button.button,
body.post-type-transaction .wpsam-transaction-discussion button[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 7px 20px !important;
	min-height: 36px !important;
	line-height: 1 !important;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-size: 11.2px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.056em !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	box-shadow: none !important;
	cursor: pointer !important;
}
body.single-transaction .wpsam-transaction-discussion button:hover,
body.post-type-transaction .wpsam-transaction-discussion button:hover {
	background: rgb(187, 155, 87) !important;
	color: #fff !important;
}

/* ========== Systemowy standard przycisków (złoty) ==========
 * Każdy nowy przycisk na froncie dziedziczy ten styl bez dopisywania per-sekcja.
 * Wyjątki: przyciski techniczne/link-delete/secondary, toggle hasła.
 * Skala 0.7 (~−30% wysokości/tekstu względem pierwotnego g41).
 */
:root {
	--ih-btn-bg: rgb(218, 182, 99);
	--ih-btn-bg-hover: rgb(187, 155, 87);
	--ih-btn-fg: rgb(45, 45, 45);
	--ih-btn-fg-hover: #fff;
}
body.ih-global-nav :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password),
body.ih-inner-shell :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password),
body.page-dane-wspolnika :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password),
body.page-panel-erl :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password) {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 7px 20px !important;
	min-height: 36px !important;
	line-height: 1 !important;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-size: 11.2px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.056em !important;
	border: none !important;
	border-radius: 0 !important;
	background: var(--ih-btn-bg) !important;
	background-color: var(--ih-btn-bg) !important;
	color: var(--ih-btn-fg) !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
	text-decoration: none !important;
}
body.ih-global-nav :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password):hover,
body.ih-inner-shell :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password):hover,
body.page-dane-wspolnika :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password):hover,
body.page-panel-erl :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password):hover {
	background: var(--ih-btn-bg-hover) !important;
	background-color: var(--ih-btn-bg-hover) !important;
	color: var(--ih-btn-fg-hover) !important;
}
body.ih-global-nav :is(button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):disabled,
body.ih-inner-shell :is(button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):disabled,
body.page-dane-wspolnika :is(button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):disabled,
body.page-panel-erl :is(button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):disabled {
	opacity: 0.65;
	cursor: not-allowed !important;
}

/* Dane wspólnika: mniejsze przyciski niż na stronie głównej (czytelniej w tabelach/panelach). */
body.page-dane-wspolnika :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password),
body.page-panel-erl :is(a.button, button.button, input.button, input[type="submit"], button[type="submit"], .wp-element-button):not(.button-secondary):not(.button-link-delete):not(.wpsam-toggle-password) {
	font-size: 10px !important;
	padding: 6px 13px !important;
	min-height: 31px !important;
	letter-spacing: 0.042em !important;
}

/* Systemowy styl pól "Wybierz plik" – ten sam we wszystkich sekcjach (np. Zgłoszenie, Umowy). */
body.ih-global-nav input[type="file"],
body.ih-inner-shell input[type="file"],
body.page-dane-wspolnika input[type="file"],
body.page-panel-erl input[type="file"] {
	width: 100%;
	max-width: 680px;
	font-size: 14px;
	color: #4b4b4b;
	padding: 8px 10px;
	border: 1px solid #ddd6c7;
	background: #f8f6f2;
	box-sizing: border-box;
}
body.ih-global-nav input[type="file"]::file-selector-button,
body.ih-inner-shell input[type="file"]::file-selector-button,
body.page-dane-wspolnika input[type="file"]::file-selector-button,
body.page-panel-erl input[type="file"]::file-selector-button {
	margin-right: 8px;
	padding: 7px 11px;
	min-height: 28px;
	border: 1px solid var(--ih-btn-bg);
	background: #2d2d2d;
	color: var(--ih-btn-bg);
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.056em;
	cursor: pointer;
	transition: all 0.2s ease;
}
body.ih-global-nav input[type="file"]::file-selector-button:hover,
body.ih-inner-shell input[type="file"]::file-selector-button:hover,
body.page-dane-wspolnika input[type="file"]::file-selector-button:hover,
body.page-panel-erl input[type="file"]::file-selector-button:hover {
	background: var(--ih-btn-bg);
	color: #2d2d2d;
}
body.ih-global-nav input[type="file"]::-webkit-file-upload-button,
body.ih-inner-shell input[type="file"]::-webkit-file-upload-button,
body.page-dane-wspolnika input[type="file"]::-webkit-file-upload-button,
body.page-panel-erl input[type="file"]::-webkit-file-upload-button {
	margin-right: 8px;
	padding: 7px 11px;
	min-height: 28px;
	border: 1px solid var(--ih-btn-bg);
	background: #2d2d2d;
	color: var(--ih-btn-bg);
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.056em;
	cursor: pointer;
	transition: all 0.2s ease;
}
body.ih-global-nav input[type="file"]::-webkit-file-upload-button:hover,
body.ih-inner-shell input[type="file"]::-webkit-file-upload-button:hover,
body.page-dane-wspolnika input[type="file"]::-webkit-file-upload-button:hover,
body.page-panel-erl input[type="file"]::-webkit-file-upload-button:hover {
	background: var(--ih-btn-bg);
	color: #2d2d2d;
}

/* Dyskusja transakcji — „Cytuj zaznaczenie” (popover, ton jak reszta UI) */
.wpsam-tx-discussion-quote-popover {
	position: fixed !important;
	z-index: 100090 !important;
	padding: 5px !important;
	margin: 0 !important;
	background: #fff !important;
	border: 1px solid #c5cdd4 !important;
	border-radius: 10px !important;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}
.wpsam-tx-discussion-quote-popover .button {
	margin: 0 !important;
	padding: 0.315rem 0.665rem !important;
	border: 1px solid #c9a227 !important;
	border-radius: 8px !important;
	background: linear-gradient(180deg, #f5e6b8 0%, #ecd078 100%) !important;
	color: #2d2d2d !important;
	font-size: calc(0.9rem * 0.7) !important;
	font-weight: 600 !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset !important;
	cursor: pointer !important;
	line-height: 1.35 !important;
}
.wpsam-tx-discussion-quote-popover .button:hover,
.wpsam-tx-discussion-quote-popover .button:focus-visible {
	background: linear-gradient(180deg, #f8ecc8 0%, #efd682 100%) !important;
	color: #1a1a1a !important;
	outline: none !important;
}
.wpsam-tx-discussion-quote-popover .button:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(218, 182, 99) !important;
}
/* Cytat w treści wpisu (IPS-owy nagłówek + treść) */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote,
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote {
	margin: 0.85rem 0 !important;
	padding: 0 !important;
	border: 1px solid #d5dbe0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:first-child,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:first-child,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:first-child,
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:first-child,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:first-child,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:first-child {
	margin: 0 !important;
	padding: 0.55rem 0.85rem !important;
	background: #e8edf3 !important;
	border-bottom: 1px solid #dce3ea !important;
	font-size: 0.88rem !important;
	line-height: 1.45 !important;
	color: #4a5560 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:first-child strong,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:first-child strong,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:first-child strong,
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:first-child strong,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:first-child strong,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:first-child strong {
	font-weight: 600 !important;
	color: #3d4a5c !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:not(:first-child),
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:not(:first-child),
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:not(:first-child),
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:not(:first-child),
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:not(:first-child),
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:not(:first-child) {
	margin: 0 !important;
	padding: 0.65rem 0.9rem !important;
	background: #fff !important;
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
	color: #2d2d2d !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:last-child:not(:first-child),
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:last-child:not(:first-child),
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-erl-html blockquote > p:last-child:not(:first-child),
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:last-child:not(:first-child),
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:last-child:not(:first-child),
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-partner-text blockquote > p:last-child:not(:first-child) {
	padding-bottom: 0.75rem !important;
}
/* Cytat z edytora — obudowa na froncie (bez przycisku ×, usuwany przy renderze) */
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-quote-widget,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-quote-widget,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-quote-widget {
	position: relative !important;
	margin: 0.85rem 0 !important;
	padding: 0 !important;
	border: 1px solid #d5dbe0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-quote-widget > blockquote,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-quote-widget > blockquote,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-quote-widget > blockquote {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Przewijanie strony (toolbar przy dyskusji transakcji) */
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools {
	position: fixed !important;
	z-index: 100050 !important;
	right: max(0.65rem, env(safe-area-inset-right)) !important;
	bottom: max(1rem, env(safe-area-inset-bottom)) !important;
	left: auto !important;
	top: auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0.45rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	pointer-events: none !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn {
	pointer-events: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 3.1rem !important;
	min-height: 3.1rem !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 999px !important;
	border: 2px solid #b89b6f !important;
	background: linear-gradient(to bottom, #fdf8f0 0%, #ecd8ae 100%) !important;
	box-shadow: 0 2px 8px rgba(60, 42, 18, 0.18) !important;
	font-size: inherit !important;
	line-height: 1 !important;
	color: #4a3820 !important;
	cursor: pointer !important;
	transition: filter 0.15s ease, transform 0.12s ease !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:hover,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:hover,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:hover {
	filter: brightness(1.06) !important;
	transform: translateY(-1px) !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:focus-visible,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:focus-visible,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:focus-visible {
	outline: 2px solid #4a3820 !important;
	outline-offset: 2px !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:disabled,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:disabled,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn:disabled {
	opacity: 0.45 !important;
	cursor: default !important;
	pointer-events: none !important;
	filter: none !important;
	transform: none !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn--unread .wpsam-tx-discussion-scroll-btn-icon,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn--unread .wpsam-tx-discussion-scroll-btn-icon,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn--unread .wpsam-tx-discussion-scroll-btn-icon {
	font-size: 1.1rem !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn-icon,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn-icon,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-scroll-tools .wpsam-tx-discussion-scroll-btn-icon {
	display: block !important;
	position: relative !important;
	top: 0 !important;
	font-size: 1.95rem !important;
	line-height: 1 !important;
	font-weight: 600 !important;
}

/* ========== Dyskusja przy transakcji – karty wpisów (GP zeruje article; style z motywu = na końcu cascade) ========== */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post,
.wpsam-transaction-discussion .wpsam-discussion-list .wpsam-discussion-post {
	display: block !important;
	box-sizing: border-box !important;
	margin: 0 0 1.25rem 0 !important;
	padding: 1rem 1.25rem !important;
	background: #eceff2 !important;
	background-color: #eceff2 !important;
	border: 1px solid #d5dbe0 !important;
	border-radius: 8px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
	overflow: hidden !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post:last-child,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post:last-child {
	margin-bottom: 0 !important;
}
/* Wpis ERL — grubsza ramka, cieplejsze tło (odróżnienie od odpowiedzi wspólnika) */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--erl,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--erl,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--erl {
	background: #faf6ef !important;
	background-color: #faf6ef !important;
	border: 3px solid #c4b49a !important;
	border-radius: 10px !important;
	box-shadow: 0 2px 10px rgba(75, 55, 30, 0.07) !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--erl .wpsam-discussion-post-meta,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--erl .wpsam-discussion-post-meta,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--erl .wpsam-discussion-post-meta {
	border-bottom-color: #e3dac8 !important;
}
/* Wpis administracji WP — zielonkawa paleta (odróżnienie od ERL i wspólnika) */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin {
	background: #eef7f2 !important;
	background-color: #eef7f2 !important;
	border: 3px solid #4d8564 !important;
	border-radius: 10px !important;
	box-shadow: 0 2px 10px rgba(38, 95, 68, 0.11) !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin .wpsam-discussion-post-meta,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin .wpsam-discussion-post-meta,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin .wpsam-discussion-post-meta {
	border-bottom-color: #c5e5d9 !important;
}
/* Wpis wspólnika — grubsza ramka jak u admina, chłodniejsze tło */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--partner {
	background: #eef1f5 !important;
	background-color: #eef1f5 !important;
	border: 3px solid #8b9cb2 !important;
	border-radius: 10px !important;
	box-shadow: 0 2px 10px rgba(55, 75, 100, 0.07) !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta {
	border-bottom-color: #c9d2df !important;
}
/* Wspólnik — jedna linia: imię · data · Edytuj · Usuń (do lewej) */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta--partner-row,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta--partner-row,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta--partner-row {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: flex-start !important;
	align-items: center !important;
	column-gap: 0.35rem !important;
	row-gap: 0.25rem !important;
	text-align: left !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post-meta,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post-meta,
.wpsam-transaction-discussion .wpsam-discussion-post-meta {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	margin: 0 0 0.75rem 0 !important;
	padding: 0 0 0.65rem 0 !important;
	border-bottom: 1px solid #cfd6dc !important;
	font-size: 0.9rem !important;
	color: #555 !important;
	line-height: 1.5 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--erl .wpsam-discussion-post-meta strong,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--erl .wpsam-discussion-post-meta strong,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--erl .wpsam-discussion-post-meta strong,
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin .wpsam-discussion-post-meta strong,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin .wpsam-discussion-post-meta strong,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--wp-admin .wpsam-discussion-post-meta strong,
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta strong,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta strong,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--partner .wpsam-discussion-post-meta strong {
	font-weight: 700 !important;
	color: #2d2d2d !important;
}
/* Edycja wpisu dyskusji (ERL / wspólnik / admin) */
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-msg-edit.button-link,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-msg-edit.button-link,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-msg-edit.button-link {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	font-size: inherit !important;
	font-weight: 600 !important;
	color: #1d6b9e !important;
	text-decoration: underline !important;
	cursor: pointer !important;
	vertical-align: baseline !important;
	line-height: inherit !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-msg-edit.button-link:hover,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-msg-edit.button-link:hover,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-msg-edit.button-link:hover {
	color: #14527a !important;
}
/* Usuwanie wpisu — tylko administrator WP */
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-msg-delete.button-link,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-msg-delete.button-link,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-msg-delete.button-link {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	font-size: inherit !important;
	font-weight: 600 !important;
	color: #b42318 !important;
	text-decoration: underline !important;
	cursor: pointer !important;
	vertical-align: baseline !important;
	line-height: inherit !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-msg-delete.button-link:hover,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-msg-delete.button-link:hover,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-msg-delete.button-link:hover {
	color: #8b1c14 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock {
	margin: 1.25rem 0 0 0 !important;
	padding: 1rem 1.1rem 1.1rem !important;
	border: 1px solid #cfd6dc !important;
	border-radius: 8px !important;
	background: #f7f9fb !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
/* Dok edycji wstawiony w liście wpisów — pełna szerokość i odstęp jak między kartami */
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock.wpsam-tx-discussion-edit-dock--inline,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock.wpsam-tx-discussion-edit-dock--inline,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock.wpsam-tx-discussion-edit-dock--inline {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 0 1.25rem 0 !important;
	clear: both !important;
	float: none !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-title,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-title,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-title {
	margin: 0 0 0.65rem 0 !important;
	padding: 0 !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	color: #2d2d2d !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-editor .wp-editor-wrap,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-editor .wp-editor-wrap,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-editor .wp-editor-wrap {
	margin-bottom: 0.5rem !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap {
	margin: 0.5rem 0 0 0 !important;
	padding: 0 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap .wpsam-tx-add-image-btn,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap .wpsam-tx-add-image-btn,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap .wpsam-tx-add-image-btn {
	margin-top: 0.25rem !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap .wpsam-tx-discussion-images-list,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap .wpsam-tx-discussion-images-list,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-edit-images-wrap .wpsam-tx-discussion-images-list {
	margin-top: 0.5rem !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-actions,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-actions,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-edit-dock-actions {
	margin: 0.75rem 0 0 0 !important;
	padding: 0 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post-body,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post-body,
.wpsam-transaction-discussion .wpsam-discussion-post-body {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
	color: #2d2d2d !important;
}
/* Wpis wspólnika — układ pionowy (bez kwadratu z inicjałami) */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--partner,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--partner {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 0.65rem !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post-partner-main,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post-partner-main,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post-partner-main {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: 100% !important;
	align-items: stretch !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-pre,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-pre {
	white-space: pre-wrap !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}
/* Wpis ERL / admin WP: pasek metadanych w prawo (odróżnienie od wspólnika), treść pod na całą szerokość */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--layout-row {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 0.65rem !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-meta--erl-row,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-meta--erl-row,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-meta--erl-row {
	flex: 0 0 auto !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: flex-end !important;
	align-items: center !important;
	align-content: flex-end !important;
	column-gap: 0.35rem !important;
	row-gap: 0.25rem !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}
/* W kanale wewnętrznym ERL CRM — meta po lewej tylko dla wpisów ERL-a */
body.single-transaction .wpsam-tx-discussion-internal-block .wpsam-discussion-post--erl .wpsam-discussion-post-meta--erl-row,
body.post-type-transaction .wpsam-tx-discussion-internal-block .wpsam-discussion-post--erl .wpsam-discussion-post-meta--erl-row,
body.ih-inner-shell .wpsam-tx-discussion-internal-block .wpsam-discussion-post--erl .wpsam-discussion-post-meta--erl-row {
	justify-content: flex-start !important;
	align-content: flex-start !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-body,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-body,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-body {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-form,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-form {
	margin-top: 1.75rem !important;
	padding-top: 1.25rem !important;
	border-top: 1px solid #dde2e6 !important;
}
/* Formularz wspólnika siedzi w osobnym bloku — bez „belki” jak przy formularzu ERL */
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-partner-compose .wpsam-discussion-form.wpsam-tx-discussion-form--partner,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-partner-compose .wpsam-discussion-form.wpsam-tx-discussion-form--partner,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose .wpsam-discussion-form.wpsam-tx-discussion-form--partner {
	margin-top: 0 !important;
	padding-top: 0 !important;
	border-top: none !important;
}

/* Nagłówek panelu dyskusyjnego (właściwa sekcja z wtyczki — mniejszy, niżej od treści transakcji) */
body.single-transaction .wpsam-transaction-discussion:not(.ih-transaction-discussion-placeholder) > .ih-transaction-discussion-title,
body.post-type-transaction .wpsam-transaction-discussion:not(.ih-transaction-discussion-placeholder) > .ih-transaction-discussion-title,
body.ih-inner-shell .wpsam-transaction-discussion:not(.ih-transaction-discussion-placeholder) > .ih-transaction-discussion-title {
	margin-top: 2.75rem !important;
	margin-bottom: 0.6rem !important;
	padding-top: 1.35rem !important;
	border-top: 1px solid #dde2e6 !important;
	font-size: 1.2rem !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em !important;
	color: #2d2d2d !important;
}

/* Dwa kanały: wewnętrzny (ERL + Zespół IH) — subtelne lawendowe tło + ramka fioletowa; kolory nagłówków jak w pozostałej dyskusji */
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-internal-block,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-internal-block,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-internal-block {
	margin-bottom: 2rem;
	padding: 1rem 1rem 1.25rem;
	border: 2px solid #a78bfa;
	border-radius: 8px;
	background: #ede9fe !important;
	background-color: #ede9fe !important;
}
body.single-transaction .wpsam-transaction-discussion--team .wpsam-tx-discussion-internal-block,
body.post-type-transaction .wpsam-transaction-discussion--team .wpsam-tx-discussion-internal-block,
body.ih-inner-shell .wpsam-transaction-discussion--team .wpsam-tx-discussion-internal-block {
	margin-bottom: 0;
}
/* Belka separatora między ERL CRM a sekcją „Panel dyskusyjny” (tylko personel z dwoma kanałami) */
body.single-transaction .wpsam-transaction-discussion--team .wpsam-tx-discussion-team-public-divider,
body.post-type-transaction .wpsam-transaction-discussion--team .wpsam-tx-discussion-team-public-divider,
body.ih-inner-shell .wpsam-transaction-discussion--team .wpsam-tx-discussion-team-public-divider {
	display: block;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: 100vw;
	height: 8px;
	/* Odstęp od bloku ERL CRM (przy --team wewnętrzny ma margin-bottom: 0) */
	margin: 1.25rem 0 1.75rem;
	padding: 0;
	border: none;
	border-radius: 0;
	box-sizing: border-box;
	/* Wyraźny fiolet (globalna reguła `div[class*="wpsam"]` nie może przezroczyć tej belki — wykluczenie wyżej) */
	background: #7c3aed !important;
	background-color: #7c3aed !important;
	box-shadow: 0 2px 0 rgba(91, 33, 182, 0.2);
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-subtitle,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-subtitle,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-subtitle {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e2937;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-channel-lead,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-channel-lead,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-channel-lead {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #4b5563;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-public-block .wpsam-tx-discussion-subtitle,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-discussion-public-block .wpsam-tx-discussion-subtitle,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-public-block .wpsam-tx-discussion-subtitle {
	margin-top: 0;
	font-size: 1.45rem !important;
	line-height: 1.3 !important;
}
/* Główny tytuł „Panel dyskusyjny” (wspólnik / kontynuacja bez ERL CRM jako h2) — większa typografia */
body.single-transaction .wpsam-transaction-discussion--public-only:not(.ih-transaction-discussion-placeholder) > .ih-transaction-discussion-title,
body.post-type-transaction .wpsam-transaction-discussion--public-only:not(.ih-transaction-discussion-placeholder) > .ih-transaction-discussion-title,
body.ih-inner-shell .wpsam-transaction-discussion--public-only:not(.ih-transaction-discussion-placeholder) > .ih-transaction-discussion-title ,
body.single-transaction .wpsam-transaction-discussion--public-only:not(.ih-transaction-discussion-placeholder) .wpsam-tx-discussion-section-header .ih-transaction-discussion-title,
body.post-type-transaction .wpsam-transaction-discussion--public-only:not(.ih-transaction-discussion-placeholder) .wpsam-tx-discussion-section-header .ih-transaction-discussion-title,
body.ih-inner-shell .wpsam-transaction-discussion--public-only:not(.ih-transaction-discussion-placeholder) .wpsam-tx-discussion-section-header .ih-transaction-discussion-title {
	font-size: 1.45rem !important;
	line-height: 1.32 !important;
}

/* Placeholder sekcji dyskusji (przed listą wpisów / formularzem) */
body.single-transaction .ih-transaction-discussion-placeholder,
body.post-type-transaction .ih-transaction-discussion-placeholder {
	margin-top: 2rem !important;
	padding-top: 1.25rem !important;
	border-top: 1px solid #dde2e6 !important;
}
body.single-transaction .ih-transaction-discussion-placeholder .ih-transaction-discussion-title,
body.post-type-transaction .ih-transaction-discussion-placeholder .ih-transaction-discussion-title {
	margin: 0 0 0.75rem !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	color: #2d2d2d !important;
}
body.single-transaction .ih-transaction-discussion-placeholder .ih-transaction-discussion-lead,
body.post-type-transaction .ih-transaction-discussion-placeholder .ih-transaction-discussion-lead {
	margin: 0 !important;
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
	color: #555 !important;
}

.wpsam-transaction-discussion .wpsam-discussion-form .wpsam-discussion-label {
	display: block !important;
	margin: 0.75rem 0 0.35rem !important;
	font-weight: 600 !important;
	font-size: 0.9rem !important;
}
.wpsam-transaction-discussion .wpsam-discussion-form .wpsam-discussion-textarea,
.wpsam-transaction-discussion .wpsam-discussion-form select {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Odpowiedź wspólnika — zwinięty: bez zewnętrznej szarej ramki (tylko awatar + dymek); rozwinięty: .is-expanded poniżej */
body.single-transaction .wpsam-tx-partner-compose:not(.is-expanded),
body.post-type-transaction .wpsam-tx-partner-compose:not(.is-expanded),
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose:not(.is-expanded) {
	margin-top: 1.75rem !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}
/* Rozwinięty compose: jedna karta zamiast szarej obwódki + białego „środka” */
body.single-transaction .wpsam-tx-partner-compose.is-expanded,
body.post-type-transaction .wpsam-tx-partner-compose.is-expanded,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose.is-expanded {
	margin-top: 1.25rem !important; /* jak odstęp między kartami wpisów (ostatni ma margin-bottom: 0) */
	background: #fff !important;
	border: 1px solid #cfd6dc !important;
	border-radius: 12px !important;
	padding: 12px 14px 14px !important;
	box-shadow: none !important;
}
/* W środku tylko układ w rzędzie — bez drugiej „kartki” wokół awatara i dymka */
body.single-transaction .wpsam-tx-partner-compose-inner,
body.post-type-transaction .wpsam-tx-partner-compose-inner,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: 14px !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}
body.single-transaction .wpsam-tx-partner-name,
body.post-type-transaction .wpsam-tx-partner-name,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-name {
	font-size: 0.96rem !important;
	font-weight: 600 !important;
	color: #2d2d2d !important;
	white-space: nowrap !important;
}
body.single-transaction .wpsam-tx-partner-compose-main,
body.post-type-transaction .wpsam-tx-partner-compose-main,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-main {
	flex: 1 !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
}
body.single-transaction .wpsam-tx-partner-compose-trigger,
body.post-type-transaction .wpsam-tx-partner-compose-trigger,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-trigger {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	cursor: pointer !important;
	text-align: left !important;
	font: inherit !important;
	color: inherit !important;
	box-shadow: none !important;
}
body.single-transaction .wpsam-tx-partner-compose-trigger:focus-visible,
body.post-type-transaction .wpsam-tx-partner-compose-trigger:focus-visible,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-trigger:focus-visible {
	outline: 2px solid rgb(218, 182, 99) !important;
	outline-offset: 3px !important;
	border-radius: 6px !important;
}
body.single-transaction .wpsam-tx-partner-compose-field,
body.post-type-transaction .wpsam-tx-partner-compose-field,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-field {
	position: relative !important;
	flex: 1 !important;
	min-width: 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 12px 14px 12px 42px !important;
	background: #fff !important;
	border: 1px solid #c5cdd4 !important;
	border-radius: 9px !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
body.single-transaction .wpsam-tx-partner-compose-field::before,
body.post-type-transaction .wpsam-tx-partner-compose-field::before,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-field::before {
	content: "" !important;
	position: absolute !important;
	left: -8px !important;
	top: 50% !important;
	margin-top: -7px !important;
	width: 0 !important;
	height: 0 !important;
	border-style: solid !important;
	border-width: 7px 8px 7px 0 !important;
	border-color: transparent #c5cdd4 transparent transparent !important;
}
body.single-transaction .wpsam-tx-partner-compose-field::after,
body.post-type-transaction .wpsam-tx-partner-compose-field::after,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-field::after {
	content: "" !important;
	position: absolute !important;
	left: -6px !important;
	top: 50% !important;
	margin-top: -6px !important;
	width: 0 !important;
	height: 0 !important;
	border-style: solid !important;
	border-width: 6px 7px 6px 0 !important;
	border-color: transparent #fff transparent transparent !important;
}
body.single-transaction .wpsam-tx-partner-compose-icon,
body.post-type-transaction .wpsam-tx-partner-compose-icon,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 0.85 !important;
	pointer-events: none !important;
}
body.single-transaction .wpsam-tx-partner-compose-placeholder,
body.post-type-transaction .wpsam-tx-partner-compose-placeholder,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-placeholder {
	flex: 1 !important;
	min-width: 0 !important;
	font-size: 0.98rem !important;
	color: #8a9399 !important;
	line-height: 1.45 !important;
}
body.single-transaction .wpsam-tx-partner-compose-expanded,
body.post-type-transaction .wpsam-tx-partner-compose-expanded,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-expanded {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-sizing: border-box !important;
	width: 100% !important;
}
body.single-transaction .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-trigger,
body.post-type-transaction .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-trigger,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-trigger {
	display: none !important;
}
body.single-transaction .wpsam-tx-partner-compose-inner.is-expanded,
body.post-type-transaction .wpsam-tx-partner-compose-inner.is-expanded,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-inner.is-expanded {
	display: block !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}
body.single-transaction .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-main,
body.post-type-transaction .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-main,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-main {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}
body.single-transaction .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-expanded,
body.post-type-transaction .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-expanded,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-inner.is-expanded .wpsam-tx-partner-compose-expanded {
	margin-top: 0.15rem !important;
	width: 100% !important;
	max-width: 100% !important;
}
body.single-transaction .wpsam-tx-partner-compose-inner .wpsam-tx-discussion-form--partner,
body.post-type-transaction .wpsam-tx-partner-compose-inner .wpsam-tx-discussion-form--partner,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-inner .wpsam-tx-discussion-form--partner {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-top: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	width: 100% !important;
	max-width: 100% !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-tx-partner-compose.is-expanded .wpsam-discussion-form.wpsam-tx-discussion-form--partner,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-tx-partner-compose.is-expanded .wpsam-discussion-form.wpsam-tx-discussion-form--partner,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose.is-expanded .wpsam-discussion-form.wpsam-tx-discussion-form--partner {
	margin-top: 0 !important;
	padding-top: 0 !important;
	border-top: 0 !important;
}
body.single-transaction .wpsam-tx-partner-compose-inner .wpsam-tx-discussion-partner-editor,
body.post-type-transaction .wpsam-tx-partner-compose-inner .wpsam-tx-discussion-partner-editor,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-inner .wpsam-tx-discussion-partner-editor {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}
body.single-transaction .wpsam-tx-discussion-partner-heading,
body.post-type-transaction .wpsam-tx-discussion-partner-heading,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-partner-heading {
	margin: 0 0 0.75rem !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	color: #2d2d2d !important;
}
body.single-transaction .wpsam-tx-partner-compose-actions,
body.post-type-transaction .wpsam-tx-partner-compose-actions,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose-actions {
	margin: 1rem 0 0 !important;
}
body.single-transaction .wpsam-tx-discussion-partner-editor .wp-editor-wrap,
body.post-type-transaction .wpsam-tx-discussion-partner-editor .wp-editor-wrap,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-partner-editor .wp-editor-wrap {
	border: 1px solid #cfd6dc !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	background: #fff !important;
	width: 100% !important;
	max-width: 100% !important;
}
body.single-transaction .wpsam-tx-partner-compose.is-expanded .wpsam-tx-discussion-partner-editor .wp-editor-wrap,
body.post-type-transaction .wpsam-tx-partner-compose.is-expanded .wpsam-tx-discussion-partner-editor .wp-editor-wrap,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose.is-expanded .wpsam-tx-discussion-partner-editor .wp-editor-wrap {
	border: 1px solid #dce3ea !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: none !important;
}
body.single-transaction .wpsam-tx-partner-compose.is-expanded .wpsam-tx-discussion-partner-editor .mce-tinymce,
body.post-type-transaction .wpsam-tx-partner-compose.is-expanded .wpsam-tx-discussion-partner-editor .mce-tinymce,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-partner-compose.is-expanded .wpsam-tx-discussion-partner-editor .mce-tinymce {
	border: none !important;
	box-shadow: none !important;
}

/* Panel wpisu ERL — edytor WordPress + upload (bez nagłówka „Nowy wpis”) */
body.single-transaction .wpsam-tx-discussion-erl-panel,
body.post-type-transaction .wpsam-tx-discussion-erl-panel,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-panel {
	margin-top: 0.35rem !important;
	padding: 0.75rem 1.25rem 1.15rem !important;
	background: #faf9f7 !important;
	border: 1px solid #ddd6c7 !important;
	border-radius: 10px !important;
	box-sizing: border-box !important;
	max-width: 100% !important;
}
body.single-transaction .wpsam-tx-discussion-erl-editor .wp-editor-wrap,
body.post-type-transaction .wpsam-tx-discussion-erl-editor .wp-editor-wrap,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-editor .wp-editor-wrap {
	border: 1px solid #cfd6dc !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	background: #fff !important;
}
body.single-transaction .wpsam-tx-discussion-erl-editor-actions,
body.post-type-transaction .wpsam-tx-discussion-erl-editor-actions,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-editor-actions {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 0.75rem 1rem !important;
	margin-top: 0.65rem !important;
}
body.single-transaction .wpsam-tx-discussion-erl-editor-actions-left,
body.post-type-transaction .wpsam-tx-discussion-erl-editor-actions-left,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-editor-actions-left {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
}
body.single-transaction .wpsam-tx-discussion-erl-upload-buttons,
body.post-type-transaction .wpsam-tx-discussion-erl-upload-buttons,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-upload-buttons {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 0.5rem 0.75rem !important;
}
body.single-transaction .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-docs-list,
body.post-type-transaction .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-docs-list,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-docs-list {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.single-transaction .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-docs-list:not(:empty),
body.post-type-transaction .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-docs-list:not(:empty),
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-docs-list:not(:empty) {
	margin-top: 0.45rem !important;
}
body.single-transaction .wpsam-tx-discussion-docs-list li,
body.post-type-transaction .wpsam-tx-discussion-docs-list li,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-docs-list li {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	padding: 6px 10px !important;
	margin: 0 0 6px !important;
	background: #f3f0fa !important;
	border: 1px solid #ddd5ec !important;
	border-radius: 6px !important;
	font-size: 0.9rem !important;
}
body.single-transaction .wpsam-tx-discussion-docs-hint,
body.post-type-transaction .wpsam-tx-discussion-docs-hint,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-docs-hint {
	flex: 1 1 100% !important;
	width: 100% !important;
	margin: 0.4rem 0 0 !important;
	font-size: 0.82rem !important;
	color: #5a5a5a !important;
	line-height: 1.4 !important;
}
body.single-transaction .wpsam-discussion-erl-html .wpsam-discussion-uploaded-docs,
body.post-type-transaction .wpsam-discussion-erl-html .wpsam-discussion-uploaded-docs,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-erl-html .wpsam-discussion-uploaded-docs {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.4rem !important;
	margin: 0.5rem 0 0.75rem !important;
}
/* Wrapper doc-row: link + opcjonalny przycisk pobierania po prawej */
body.single-transaction .wpsam-discussion-doc-row,
body.post-type-transaction .wpsam-discussion-doc-row,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-doc-row {
	display: flex !important;
	align-items: stretch !important;
	gap: 0 !important;
	margin: 0 !important;
}
body.single-transaction .wpsam-discussion-doc-link,
body.post-type-transaction .wpsam-discussion-doc-link,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-doc-link {
	display: inline-block !important;
	flex: 1 1 auto !important;
	padding: 0.4rem 0.65rem !important;
	background: #f3f0fa !important;
	border: 1px solid #c4b5e0 !important;
	border-radius: 6px 0 0 6px !important;
	text-decoration: none !important;
	color: #312e81 !important;
	font-weight: 600 !important;
	font-size: 0.92rem !important;
	word-break: break-word !important;
}
/* Gdy link jest bez wrappera (nie-admin) — pełne zaokrąglenie */
body.single-transaction p > .wpsam-discussion-doc-link:only-child,
body.post-type-transaction p > .wpsam-discussion-doc-link:only-child,
body.ih-inner-shell p > .wpsam-discussion-doc-link:only-child {
	border-radius: 6px !important;
}
body.single-transaction .wpsam-discussion-doc-link:hover,
body.post-type-transaction .wpsam-discussion-doc-link:hover,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-doc-link:hover {
	background: #ede9fe !important;
	border-color: #a78bfa !important;
}
/* Przycisk pobierania (admin) */
body.single-transaction .wpsam-discussion-doc-dl,
body.post-type-transaction .wpsam-discussion-doc-dl,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-doc-dl {
	flex: 0 0 auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 0.6rem !important;
	background: #ede9fe !important;
	border: 1px solid #c4b5e0 !important;
	border-left: none !important;
	border-radius: 0 6px 6px 0 !important;
	color: #3b1f6b !important;
	font-size: 1.1rem !important;
	line-height: 1 !important;
	text-decoration: none !important;
	cursor: pointer !important;
}
body.single-transaction .wpsam-discussion-doc-dl:hover,
body.post-type-transaction .wpsam-discussion-doc-dl:hover,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-doc-dl:hover {
	background: #ddd6fe !important;
	border-color: #a78bfa !important;
	color: #2e1065 !important;
}
body.single-transaction .wpsam-tx-discussion-erl-editor-actions-right,
body.post-type-transaction .wpsam-tx-discussion-erl-editor-actions-right,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-editor-actions-right {
	display: flex !important;
	align-items: center !important;
	margin-left: auto !important;
}
/* Przycisk Wyślij — stan ładowania */
body.single-transaction .wpsam-tx-discussion-submit.is-loading,
body.post-type-transaction .wpsam-tx-discussion-submit.is-loading,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-submit.is-loading {
	opacity: 0.7 !important;
	cursor: wait !important;
	position: relative !important;
}
body.single-transaction .wpsam-tx-discussion-submit.is-loading::after,
body.post-type-transaction .wpsam-tx-discussion-submit.is-loading::after,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-submit.is-loading::after {
	content: '' !important;
	display: inline-block !important;
	width: 0.85em !important;
	height: 0.85em !important;
	margin-left: 0.5em !important;
	border: 2px solid currentColor !important;
	border-top-color: transparent !important;
	border-radius: 50% !important;
	animation: wpsam-spin 0.7s linear infinite !important;
	vertical-align: middle !important;
}
@keyframes wpsam-spin {
	to { transform: rotate(360deg); }
}

body.single-transaction .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-images-list,
body.post-type-transaction .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-images-list,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-images-list {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.single-transaction .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-images-list:not(:empty),
body.post-type-transaction .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-images-list:not(:empty),
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-erl-editor-actions > .wpsam-tx-discussion-images-list:not(:empty) {
	margin-top: 0.45rem !important;
}
body.single-transaction .wpsam-tx-discussion-images-list,
body.post-type-transaction .wpsam-tx-discussion-images-list,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-images-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.single-transaction .wpsam-tx-discussion-images-list li,
body.post-type-transaction .wpsam-tx-discussion-images-list li {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	padding: 6px 10px !important;
	margin: 0 0 6px !important;
	background: #f7f6f2 !important;
	border: 1px solid #e5e1d8 !important;
	border-radius: 6px !important;
	font-size: 0.9rem !important;
}
body.single-transaction .wpsam-tx-discussion-images-list .wpsam-tx-file-row,
body.post-type-transaction .wpsam-tx-discussion-images-list .wpsam-tx-file-row,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-images-list .wpsam-tx-file-row {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex: 1 !important;
	min-width: 0 !important;
}
body.single-transaction .wpsam-tx-discussion-images-list .wpsam-tx-queue-thumb,
body.post-type-transaction .wpsam-tx-discussion-images-list .wpsam-tx-queue-thumb,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-images-list .wpsam-tx-queue-thumb {
	width: 44px !important;
	height: 44px !important;
	object-fit: cover !important;
	border-radius: 5px !important;
	flex-shrink: 0 !important;
	border: 1px solid #ddd8cf !important;
	background: #fff !important;
}
body.single-transaction .wpsam-tx-discussion-images-list .wpsam-tx-file-name,
body.post-type-transaction .wpsam-tx-discussion-images-list .wpsam-tx-file-name,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-tx-discussion-images-list .wpsam-tx-file-name {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	flex: 1 !important;
	min-width: 0 !important;
}
body.single-transaction .wpsam-tx-discussion-images-list .wpsam-tx-remove-img,
body.post-type-transaction .wpsam-tx-discussion-images-list .wpsam-tx-remove-img {
	flex-shrink: 0 !important;
}
body.single-transaction button.wpsam-tx-add-image-btn:disabled,
body.post-type-transaction button.wpsam-tx-add-image-btn:disabled,
body.ih-inner-shell .wpsam-transaction-discussion button.wpsam-tx-add-image-btn:disabled {
	opacity: 0.55 !important;
	cursor: not-allowed !important;
}

/* Treść wpisu ERL (HTML z TinyMCE): akapity, listy, tabele, linki — sekcja jest poza głównym .entry-content wpisu */
body.single-transaction .wpsam-discussion-erl-html,
body.post-type-transaction .wpsam-discussion-erl-html,
body.ih-inner-shell .wpsam-discussion-erl-html {
	font-size: 1rem !important;
	line-height: 1.6 !important;
	color: #2d2d2d !important;
	word-wrap: break-word !important;
	overflow-wrap: anywhere !important;
}
body.single-transaction .wpsam-discussion-erl-html > *:first-child,
body.post-type-transaction .wpsam-discussion-erl-html > *:first-child {
	margin-top: 0 !important;
}
body.single-transaction .wpsam-discussion-erl-html p,
body.post-type-transaction .wpsam-discussion-erl-html p {
	margin: 0 0 1em !important;
	padding: 0 !important;
}
body.single-transaction .wpsam-discussion-erl-html p:last-child,
body.post-type-transaction .wpsam-discussion-erl-html p:last-child {
	margin-bottom: 0 !important;
}
body.single-transaction .wpsam-discussion-erl-html h2,
body.single-transaction .wpsam-discussion-erl-html h3,
body.single-transaction .wpsam-discussion-erl-html h4,
body.post-type-transaction .wpsam-discussion-erl-html h2,
body.post-type-transaction .wpsam-discussion-erl-html h3,
body.post-type-transaction .wpsam-discussion-erl-html h4 {
	margin: 1.1em 0 0.5em !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}
body.single-transaction .wpsam-discussion-erl-html h2:first-child,
body.single-transaction .wpsam-discussion-erl-html h3:first-child,
body.post-type-transaction .wpsam-discussion-erl-html h2:first-child,
body.post-type-transaction .wpsam-discussion-erl-html h3:first-child {
	margin-top: 0 !important;
}
body.single-transaction .wpsam-discussion-erl-html ul,
body.single-transaction .wpsam-discussion-erl-html ol,
body.post-type-transaction .wpsam-discussion-erl-html ul,
body.post-type-transaction .wpsam-discussion-erl-html ol {
	margin: 0 0 1em !important;
	padding-left: 1.35em !important;
}
body.single-transaction .wpsam-discussion-erl-html li,
body.post-type-transaction .wpsam-discussion-erl-html li {
	margin: 0.25em 0 !important;
}
body.single-transaction .wpsam-discussion-erl-html blockquote,
body.post-type-transaction .wpsam-discussion-erl-html blockquote,
body.ih-inner-shell .wpsam-discussion-erl-html blockquote {
	margin: 0.85rem 0 !important;
	padding: 0 !important;
	border: 1px solid #d5dbe0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
body.single-transaction .wpsam-discussion-erl-html blockquote > p:first-child,
body.post-type-transaction .wpsam-discussion-erl-html blockquote > p:first-child,
body.ih-inner-shell .wpsam-discussion-erl-html blockquote > p:first-child {
	margin: 0 !important;
	padding: 0.55rem 0.85rem !important;
	background: #e8edf3 !important;
	border-bottom: 1px solid #dce3ea !important;
	font-size: 0.88rem !important;
	color: #4a5560 !important;
}
body.single-transaction .wpsam-discussion-erl-html blockquote > p:not(:first-child),
body.post-type-transaction .wpsam-discussion-erl-html blockquote > p:not(:first-child),
body.ih-inner-shell .wpsam-discussion-erl-html blockquote > p:not(:first-child) {
	margin: 0 !important;
	padding: 0.65rem 0.9rem !important;
}
body.single-transaction .wpsam-discussion-erl-html a,
body.post-type-transaction .wpsam-discussion-erl-html a {
	color: #1a5276 !important;
	text-decoration: underline !important;
	word-break: break-word !important;
}
/* Przycisk pobierania — wyższa specyficzność niż reguła wyżej */
body.single-transaction .wpsam-discussion-erl-html a.wpsam-discussion-doc-dl,
body.post-type-transaction .wpsam-discussion-erl-html a.wpsam-discussion-doc-dl,
body.ih-inner-shell .wpsam-transaction-discussion a.wpsam-discussion-doc-dl {
	color: #3b1f6b !important;
	text-decoration: none !important;
	gap: 4px !important;
	font-size: 0.88rem !important;
	word-break: normal !important;
}
body.single-transaction .wpsam-discussion-erl-html table,
body.post-type-transaction .wpsam-discussion-erl-html table {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 1em !important;
	border-collapse: collapse !important;
	font-size: 0.92em !important;
	background: rgba(255, 255, 255, 0.45) !important;
	border-radius: 6px !important;
	overflow: hidden !important;
}
body.single-transaction .wpsam-discussion-erl-html th,
body.single-transaction .wpsam-discussion-erl-html td,
body.post-type-transaction .wpsam-discussion-erl-html th,
body.post-type-transaction .wpsam-discussion-erl-html td {
	padding: 0.45rem 0.65rem !important;
	border: 1px solid #cfd6dc !important;
	vertical-align: top !important;
}
body.single-transaction .wpsam-discussion-erl-html th,
body.post-type-transaction .wpsam-discussion-erl-html th {
	font-weight: 600 !important;
	background: rgba(236, 239, 242, 0.95) !important;
}

/* Miniaturki zdjęć — siatka (domyślnie 5 w wierszu); klik → lightbox */
body.single-transaction .wpsam-discussion-uploaded-grid,
body.post-type-transaction .wpsam-discussion-uploaded-grid,
body.ih-inner-shell .wpsam-discussion-erl-html .wpsam-discussion-uploaded-grid,
body.ih-inner-shell .wpsam-discussion-partner-text .wpsam-discussion-uploaded-grid {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 10px !important;
	max-width: 100% !important;
	margin: 0 0 1.1rem !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}
@media (max-width: 720px) {
	body.single-transaction .wpsam-discussion-uploaded-grid,
	body.post-type-transaction .wpsam-discussion-uploaded-grid,
	body.ih-inner-shell .wpsam-discussion-erl-html .wpsam-discussion-uploaded-grid,
	body.ih-inner-shell .wpsam-discussion-partner-text .wpsam-discussion-uploaded-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 480px) {
	body.single-transaction .wpsam-discussion-uploaded-grid,
	body.post-type-transaction .wpsam-discussion-uploaded-grid,
	body.ih-inner-shell .wpsam-discussion-erl-html .wpsam-discussion-uploaded-grid,
	body.ih-inner-shell .wpsam-discussion-partner-text .wpsam-discussion-uploaded-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
body.single-transaction a.wpsam-discussion-img-thumb,
body.post-type-transaction a.wpsam-discussion-img-thumb,
body.ih-inner-shell .wpsam-discussion-erl-html a.wpsam-discussion-img-thumb,
body.ih-inner-shell .wpsam-discussion-partner-text a.wpsam-discussion-img-thumb {
	display: block !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	border: 1px solid #cfd6dc !important;
	background: #dfe3e8 !important;
	cursor: zoom-in !important;
	line-height: 0 !important;
	transition: box-shadow 0.15s ease, transform 0.15s ease !important;
}
body.single-transaction a.wpsam-discussion-img-thumb:hover,
body.post-type-transaction a.wpsam-discussion-img-thumb:hover,
body.ih-inner-shell .wpsam-discussion-erl-html a.wpsam-discussion-img-thumb:hover,
body.ih-inner-shell .wpsam-discussion-partner-text a.wpsam-discussion-img-thumb:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
	transform: translateY(-1px) !important;
}
body.single-transaction a.wpsam-discussion-img-thumb:focus-visible,
body.post-type-transaction a.wpsam-discussion-img-thumb:focus-visible,
body.ih-inner-shell .wpsam-discussion-erl-html a.wpsam-discussion-img-thumb:focus-visible,
body.ih-inner-shell .wpsam-discussion-partner-text a.wpsam-discussion-img-thumb:focus-visible {
	outline: 2px solid rgb(218, 182, 99) !important;
	outline-offset: 2px !important;
}
body.single-transaction a.wpsam-discussion-img-thumb img,
body.post-type-transaction a.wpsam-discussion-img-thumb img,
body.ih-inner-shell .wpsam-discussion-erl-html a.wpsam-discussion-img-thumb img,
body.ih-inner-shell .wpsam-discussion-partner-text a.wpsam-discussion-img-thumb img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3 !important;
	object-fit: cover !important;
	display: block !important;
	vertical-align: top !important;
}

/* Wrapper zdjęcia z przyciskiem pobierania (ERL CRM) */
body.single-transaction .wpsam-discussion-img-dl-wrap,
body.post-type-transaction .wpsam-discussion-img-dl-wrap,
body.ih-inner-shell .wpsam-discussion-erl-html .wpsam-discussion-img-dl-wrap {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	vertical-align: top !important;
}
body.single-transaction a.wpsam-discussion-img-dl,
body.post-type-transaction a.wpsam-discussion-img-dl,
body.ih-inner-shell .wpsam-discussion-erl-html a.wpsam-discussion-img-dl {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	padding: 3px 6px !important;
	background: #ede9fe !important;
	border: 1px solid #c4b5e0 !important;
	border-top: none !important;
	border-radius: 0 0 6px 6px !important;
	color: #3b1f6b !important;
	font-size: 0.82rem !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	cursor: pointer !important;
	white-space: nowrap !important;
}
body.single-transaction a.wpsam-discussion-img-dl:hover,
body.post-type-transaction a.wpsam-discussion-img-dl:hover,
body.ih-inner-shell .wpsam-discussion-erl-html a.wpsam-discussion-img-dl:hover {
	background: #ddd6fe !important;
	border-color: #a78bfa !important;
	color: #2e1065 !important;
}

/* Starsze wpisy: pojedyncze <figure> bez siatki */
body.single-transaction .wpsam-discussion-erl-html figure.wpsam-discussion-uploaded-img,
body.post-type-transaction .wpsam-discussion-erl-html figure.wpsam-discussion-uploaded-img {
	display: inline-block !important;
	max-width: 132px !important;
	margin: 0 8px 8px 0 !important;
	padding: 0 !important;
	vertical-align: top !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	border: 1px solid #cfd6dc !important;
	cursor: zoom-in !important;
	line-height: 0 !important;
}
body.single-transaction .wpsam-discussion-erl-html figure.wpsam-discussion-uploaded-img img,
body.post-type-transaction .wpsam-discussion-erl-html figure.wpsam-discussion-uploaded-img img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3 !important;
	object-fit: cover !important;
	display: block !important;
}

/* Lightbox (<dialog>) */
.wpsam-tx-discussion-lightbox::backdrop {
	background: rgba(26, 35, 45, 0.88) !important;
}
.wpsam-tx-discussion-lightbox {
	border: none !important;
	padding: 0 !important;
	margin: auto !important;
	max-width: min(96vw, 1100px) !important;
	width: auto !important;
	background: transparent !important;
	box-shadow: none !important;
}
.wpsam-tx-discussion-lightbox .wpsam-tx-discussion-lightbox-frame {
	display: block !important;
	max-height: min(88vh, 900px) !important;
	max-width: min(96vw, 1100px) !important;
	line-height: 0 !important;
}
.wpsam-tx-discussion-lightbox .wpsam-tx-discussion-lightbox-frame img {
	max-width: 100% !important;
	max-height: min(88vh, 900px) !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	display: block !important;
	margin: 0 auto !important;
	border-radius: 8px !important;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35) !important;
}
button.wpsam-tx-discussion-lightbox-close {
	position: fixed !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 100002 !important;
	min-width: 31px !important;
	min-height: 31px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 999px !important;
	background: rgba(45, 45, 45, 0.92) !important;
	color: #fff !important;
	font-size: 20px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}
button.wpsam-tx-discussion-lightbox-prev,
button.wpsam-tx-discussion-lightbox-next {
	position: fixed !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 100001 !important;
	width: 48px !important;
	height: 72px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 8px !important;
	background: rgba(35, 40, 48, 0.75) !important;
	color: #fff !important;
	font-size: 2rem !important;
	line-height: 1 !important;
	cursor: pointer !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25) !important;
	transition: background 0.15s ease, opacity 0.15s ease !important;
}
button.wpsam-tx-discussion-lightbox-prev:hover,
button.wpsam-tx-discussion-lightbox-next:hover,
button.wpsam-tx-discussion-lightbox-prev:focus-visible,
button.wpsam-tx-discussion-lightbox-next:focus-visible {
	background: rgba(55, 62, 72, 0.9) !important;
}
button.wpsam-tx-discussion-lightbox-prev {
	left: max(12px, env(safe-area-inset-left)) !important;
}
button.wpsam-tx-discussion-lightbox-next {
	right: max(12px, env(safe-area-inset-right)) !important;
}

/* ========== WordPress – formularz hasła (.post-password-form) ========== */
/* Tylko kolory/tło – bez display:flex na input[type=submit] (może rozjeżdżać layout / logo). */
form.post-password-form input[type="submit"] {
	background: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 8px 17px !important;
	font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}
form.post-password-form input[type="submit"]:hover {
	background: rgb(187, 155, 87) !important;
	color: #fff !important;
}

/* ========== FAQ – akordeon jak g41 (Popular questions: + / −, czysty układ) ========== */
/* Działa w .entry-content na stronie ze slugiem faq lub wszędzie, gdzie jest .ih-faq */
.ih-faq {
	max-width: 100%;
	margin: 1.5em 0 2em;
}
.ih-faq .ih-faq-item {
	border-bottom: 1px solid #e0ddd6;
}
.ih-faq .ih-faq-item:first-of-type {
	border-top: 1px solid #e0ddd6;
}
.ih-faq summary.ih-faq-q {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 0;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.45;
	color: #2d2d2d;
	-webkit-user-select: none;
	user-select: none;
}
.ih-faq summary.ih-faq-q::-webkit-details-marker {
	display: none;
}
.ih-faq summary.ih-faq-q::before {
	content: "+";
	flex: 0 0 auto;
	width: 1.25rem;
	text-align: center;
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.2;
	color: #2d2d2d;
}
.ih-faq details[open] summary.ih-faq-q::before {
	content: "−";
}
.ih-faq .ih-faq-a {
	padding: 0 0 1.25rem 2rem;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #444;
}
.ih-faq .ih-faq-a > p:first-child {
	margin-top: 0;
}
.ih-faq .ih-faq-a > p:last-child {
	margin-bottom: 0;
}
body.page-faq .entry-content .ih-faq {
	/* Opcjonalnie szerszy blok na stronie FAQ */
	margin-top: 0.5em;
}

/* ============================================================
   Pływający panel podglądu roli (tylko admin WP)
   ============================================================ */
#wpsam-role-preview-panel {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 99999;
	background: #ffffff;
	color: #1e293b;
	border-radius: 12px;
	box-shadow: 0 4px 28px rgba(0,0,0,.22);
	border: 2px solid #cbd5e1;
	width: 300px;
	font-size: 0.875rem;
	font-family: inherit;
}
#wpsam-role-preview-panel.wpsam-role-preview-panel--active {
	border-color: #d97706;
}
.wpsam-role-preview-panel__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 13px;
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
	border-radius: 10px 10px 0 0;
	cursor: default;
	user-select: none;
}
.wpsam-role-preview-panel--active .wpsam-role-preview-panel__header {
	background: #fffbeb;
	border-bottom-color: #fde68a;
}
.wpsam-role-preview-panel__header strong {
	flex: 1 1 auto;
	color: #1e293b;
	font-size: 0.85rem;
}
.wpsam-role-preview-panel--active .wpsam-role-preview-panel__header strong {
	color: #92400e;
}
.wpsam-role-preview-panel__toggle {
	background: none;
	border: none;
	color: #64748b;
	cursor: pointer;
	font-size: 0.8rem;
	padding: 2px 4px;
	line-height: 1;
}
.wpsam-role-preview-panel__toggle:hover {
	color: #334155;
}
.wpsam-role-preview-panel__body {
	padding: 12px 13px 14px;
	display: none;
}
.wpsam-role-preview-panel__active-notice {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 6px;
	padding: 8px 10px;
	margin-bottom: 12px;
	color: #78350f;
	font-size: 0.82rem;
	line-height: 1.45;
}
.wpsam-role-preview-panel__row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.wpsam-role-preview-panel__row label {
	flex: 0 0 100%;
	font-size: 0.78rem;
	color: #475569;
	font-weight: 600;
	margin-bottom: 2px;
}
.wpsam-role-preview-panel__id-input {
	flex: 1 1 80px;
	min-width: 60px;
	padding: 5px 9px;
	border-radius: 6px;
	border: 1px solid #94a3b8;
	background: #f8fafc;
	color: #1e293b;
	font-size: 0.85rem;
}
.wpsam-role-preview-panel__id-input:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 2px rgba(99,102,241,.2);
}
.wpsam-role-preview-panel__btn {
	flex: 0 0 auto;
	padding: 5px 11px;
	background: #4f46e5;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.81rem;
	font-weight: 600;
	white-space: nowrap;
}
.wpsam-role-preview-panel__btn:hover {
	background: #4338ca;
}
.wpsam-role-preview-panel__btn--stop {
	background: #b45309;
	color: #ffffff;
	margin-top: 6px;
	width: 100%;
}
.wpsam-role-preview-panel__btn--stop:hover {
	background: #92400e;
}
.wpsam-preview-ac-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}
.wpsam-preview-ac-wrap .wpsam-role-preview-panel__id-input {
	width: 100%;
	box-sizing: border-box;
}
.wpsam-preview-ac-dropdown {
	position: absolute;
	background: #ffffff;
	border: 1px solid #94a3b8;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0,0,0,.28);
	z-index: 2147483647;
	max-height: 220px;
	overflow-y: auto;
	overflow-x: hidden;
}
.wpsam-preview-ac-item {
	padding: 7px 11px;
	font-size: 0.83rem;
	color: #1e293b;
	cursor: pointer;
	border-bottom: 1px solid #f1f5f9;
}
.wpsam-preview-ac-item:last-child {
	border-bottom: none;
}
.wpsam-preview-ac-item:hover,
.wpsam-preview-ac-item:focus {
	background: #eff6ff;
	color: #1d4ed8;
	outline: none;
}
