/*
 * Signum – poprawki do oryginalnego arkusza style.css (który zostaje 1:1).
 * Tylko poprawki niewidocznych błędów i style elementów, których stary CMS nie miał.
 */

/* 1. Kontakt na telefonie: tabela adresowa ma stałą szerokość 438 px i wychodziła poza ekran (467 px zamiast 375). */
@media (max-width: 575.98px) {
	main .lead table[style*="438px"] {
		width: 100% !important;
		height: auto !important;
	}
}

/* 2. Potwierdzenie po zamówieniu połączenia („Oddzwonimy”). */
.signum-oddzwon-ok {
	display: none;
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 2000;
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
	padding: 12px 20px;
	border-radius: 6px;
	background: #ff6600;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.signum-oddzwon-ok.show {
	display: block;
}
.signum-oddzwon-blad {
	background: #b00020;
}

/* 3. Ukryte pole ochrony przed spamem w formularzach. */
input[name="signum_www"] {
	position: absolute !important;
	left: -9999px !important;
}

/* 4. Nowe aktualności z edytora blokowego (stare wpisy mają własne style w treści). */
.news .text .wp-block-image img,
.news .text figure img {
	max-width: 100%;
	height: auto;
}
.news .text .alignleft {
	float: left;
	margin: 0 1rem 1rem 0;
}
.news .text .alignright {
	float: right;
	margin: 0 0 1rem 1rem;
}
.news .text .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
.news .text figure {
	margin: 1rem 0;
}
.news .text .wp-block-table {
	overflow-x: auto;
}
.news .text .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}
.news .text .wp-block-table th,
.news .text .wp-block-table td {
	border: 1px solid rgba(255, 255, 255, .35);
	padding: 4px 8px;
}
.news .text .wp-block-table figcaption,
.news .text .wp-element-caption {
	font-size: .85em;
	opacity: .8;
}
.news .text .wp-block-quote {
	margin: 1rem 0;
	padding-left: 1rem;
	border-left: 3px solid #ff6600;
}
.news .text .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.news .text .wp-block-button__link {
	display: inline-block;
	padding: .4rem 1rem;
	border-radius: 999px;
	background: #ff6600;
	color: #fff;
	text-decoration: none;
}

/* 1.3.1: Kontakt EN na telefonie – długa etykieta pola wyboru („Only gratuity with art. 92 (1) of the Labor Code”)
   nie zawijała się i strona wystawała o ok. 5–9 px. Zawijanie z wcięciem; kwadrat pola zostaje przy pierwszej linii. */
@media (max-width: 575.98px) {
	main .pretty {
		white-space: normal;
		max-width: 100%;
	}
	main .pretty .state label {
		text-indent: 0;
		padding-left: 1.5em;
		max-width: 100%;
	}
	main .pretty .state label:before,
	main .pretty .state label:after {
		top: -1px !important;
	}
}

/* 1.3.2: Okno zgody Complianz (decyzja 69). „Akceptuję” i „Odrzucam” w tym samym kolorze (pomarańcz strony, #f60),
   „Wybieram” obrysowany. Okno na dole po lewej (ikona „Oddzwonimy” jest po prawej); na telefonie nad ikoną.
   Niezależne od pola „Własny CSS” w panelu Complianz. */
:root { --cmplz_banner_width: 440px !important; }
.cmplz-cookiebanner { font-family: 'open_sansregular', Arial, sans-serif !important; padding: 14px 18px 12px !important; row-gap: 8px !important; }
.cmplz-cookiebanner .cmplz-header .cmplz-title { font-size: 15px !important; }
.cmplz-cookiebanner .cmplz-message, .cmplz-cookiebanner .cmplz-message p { font-size: 12.5px !important; line-height: 1.45 !important; margin: 0 !important; }
.cmplz-cookiebanner .cmplz-buttons { gap: 8px !important; }
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn { height: auto !important; min-height: 36px !important; padding: 6px 10px !important; font-size: 13px !important; line-height: 1.2 !important; }
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences { background-color: #f60 !important; border-color: #f60 !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences { background: transparent !important; border: 0 !important; color: #c45000 !important; text-decoration: underline !important; font-size: 12.5px !important; min-height: 0 !important; padding: 4px 6px !important; }
/* 1.3.3: „Akceptuję wszystkie” i „Odrzucam opcjonalne” równorzędne (jak w Prospecto, wg opinii prawnej), „Wybieram cele” jako link,
   żeby nie wyglądał na główny przycisk. */
.cmplz-cookiebanner .cmplz-links a, .cmplz-cookiebanner .cmplz-message a { color: #c45000 !important; font-size: 12px !important; }
@media (max-width: 767.98px) {
	.cmplz-cookiebanner { bottom: 110px !important; max-height: calc(100vh - 130px) !important; overflow-y: auto !important; }
}

/* 1.3.2: tabele w treści stron (polityka cookies). */
/* 1.3.3: tylko tabele z nagłówkiem (polityka cookies); stare tabele układu, np. adres na stronie Kontakt, bez ramek. */
.lead table:has(thead) { width: 100%; margin: 0 0 15px; border-collapse: collapse; font-size: 13px; }
.lead table:has(thead) th, .lead table:has(thead) td { padding: 6px 8px; border: 1px solid #ddd; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.lead table:has(thead) th { background: #f5f5f5; }

/* 1.3.3: informacja o danych (RODO) pod formularzem Kontakt i w oknie „Oddzwonimy”; pole daty wyceny. */
.signum-info-dane { margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: #aaa; }
.signum-info-dane a { color: #f60; text-decoration: underline; }
.callback-modal .signum-info-dane-okno { margin: 8px 0 0; font-size: 11px; line-height: 1.35; text-align: left; color: #666; }
.callback-modal .signum-info-dane-okno a { color: #c45000; }
/* 1.3.3: okno zgody po lewej na komputerze. Plik CSS generowany przez Complianz potrafi zostać przy „na dole po prawej”
   mimo ustawienia „na dole po lewej”, a po prawej jest ikona „Oddzwonimy”. */
@media (min-width: 768.02px) {
	.cmplz-cookiebanner { left: 10px !important; right: auto !important; }
}


/* 1.3.3: dane kontaktowe na stronie Kontakt (PL i EN), zamiast starej tabeli z faksem. */
.signum-kontakt { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 6px 0 22px; }
@media (min-width: 576px) { .signum-kontakt { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.signum-kontakt-karta { padding: 14px 18px; background: rgba(255, 255, 255, .05); border-left: 3px solid #f60; border-radius: 4px; }
.signum-kontakt-karta p { margin: 0 0 10px; line-height: 1.5; }
.signum-kontakt-karta p:last-child { margin-bottom: 0; }
.signum-kontakt-etykieta { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #f90; margin-bottom: 2px; }
.signum-kontakt-karta a { color: #fff; text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, .45); }
.signum-kontakt-karta a:hover { color: #f90; border-bottom-color: #f90; }

/* 1.3.14: mapa Google pod formularzem Kontakt, na pełną szerokość treści. */
.signum-mapa-blok { margin: 28px 0 24px; clear: both; }
.signum-mapa { position: relative; width: 100%; height: 360px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); box-sizing: border-box; }
.signum-mapa iframe { display: block; width: 100%; height: 100%; border: 0; }
.signum-mapa-wczytana { border-color: transparent; }
.signum-mapa-zaslepka { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px; text-align: center; font-size: 13px; }
.signum-mapa-zaslepka p { margin: 0 0 10px; }
.signum-mapa-od_razu .signum-mapa-zaslepka { visibility: hidden; }
.signum-mapa-podpis { margin: 8px 0 0; font-size: 13px; }
.signum-mapa-link { color: #f90; text-decoration: underline; }
@media (max-width: 767.98px) { .signum-mapa { height: 260px; } }

/* 1.3.14: klikalne nagrody, certyfikaty i logo „Odpowiedzialni społecznie” lekko unoszą się po najechaniu. */
.logo-firma a { display: inline-block; }
.logo-firma a img { transition: transform .2s ease; }
.logo-firma a:hover img, .logo-firma a:focus img { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .logo-firma a img { transition: none; } .logo-firma a:hover img, .logo-firma a:focus img { transform: none; } }


/* 1.3.15: mniejsze, spokojniejsze okno zgody (ok. 380 x 130 px zamiast 440 x 218 px). Bez widocznego tytułu i krzyżyka,
   mniejsza czcionka, niższe przyciski. „Zgadzam się” i „Tylko niezbędne” nadal tej samej wielkości i tego samego wyglądu
   (biały z pomarańczowym obrysem), żeby były równorzędne. */
:root { --cmplz_banner_width: 380px !important; }
html body div.cmplz-cookiebanner { padding: 10px 12px 8px !important; row-gap: 6px !important; box-shadow: 0 2px 10px rgba(0,0,0,.12) !important; border: 1px solid #e5e5e5 !important; }
html body div.cmplz-cookiebanner .cmplz-divider { display: none !important; }
html body div.cmplz-cookiebanner .cmplz-header { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
html body div.cmplz-cookiebanner .cmplz-close { display: none !important; }
html body div.cmplz-cookiebanner .cmplz-body, html body div.cmplz-cookiebanner .cmplz-message { margin: 0 !important; padding: 0 !important; min-height: 0 !important; max-height: none !important; }
html body div.cmplz-cookiebanner .cmplz-message, html body div.cmplz-cookiebanner .cmplz-message p { font-size: 11.5px !important; line-height: 1.4 !important; margin: 0 !important; }
html body div.cmplz-cookiebanner .cmplz-buttons { gap: 6px !important; margin: 0 !important; }
html body div.cmplz-cookiebanner .cmplz-buttons .cmplz-btn { height: 28px !important; min-height: 28px !important; max-height: 28px !important; padding: 0 12px !important; font-size: 12px !important; line-height: 26px !important; }
html body div.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept,
html body div.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny,
html body div.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences { background: #fff !important; background-color: #fff !important; color: #f60 !important; border: 1px solid #f60 !important; font-weight: 600 !important; }
html body div.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover,
html body div.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover,
html body div.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover { background: #fff3e8 !important; background-color: #fff3e8 !important; }
html body div.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences { font-size: 12px !important; }
html body div.cmplz-cookiebanner .cmplz-documents { margin: 0 !important; }
html body div.cmplz-cookiebanner .cmplz-links a, html body div.cmplz-cookiebanner .cmplz-documents a, html body div.cmplz-cookiebanner .cmplz-message a { font-size: 11px !important; }
