/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* =========================================================
   XEROGRAF - tokeny zgodne z projektem
   ========================================================= */
:root {
	--xg-ink: #0b0d10;
	--xg-body: #4a5058;
	--xg-muted: #8a8f96;
	--xg-line: #e6e6e2;
	--xg-surface: #f6f6f4;
	--xg-accent: #0E55A8;
	--xg-accent-dark: #0a417f;
	--xg-radius: 14px;
	--xg-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--xg-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Naglowki poza Elementorem (sklep, archiwa) - bez monospace */
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.woocommerce-page h4,
.woocommerce-page .woocommerce-loop-product__title,
.archive .entry-title,
.single-product .product_title,
.ct-footer h1,
.ct-footer h2,
.ct-footer h3,
.ct-footer h4,
.ct-footer h5 {
	font-family: var(--xg-sans);
	letter-spacing: -0.02em;
}

/* =========================================================
   MEGA MENU
   Mobile first: w menu mobilnym to zwykla, rozwinieta lista.
   Panel rozwijany wlacza sie dopiero od 1000px.
   ========================================================= */
.xg-mega {
	display: block;
	padding: 0.35rem 0 0.9rem;
}

.xg-mega__inner {
	display: grid;
	gap: 1.5rem;
}

.xg-mega__eyebrow {
	display: block;
	margin-bottom: 0.7rem;
	font-family: var(--xg-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--xg-muted);
}

.xg-mega__title {
	margin: 0 0 0.5rem;
	font-family: var(--xg-sans);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--xg-ink);
}

.xg-mega__desc {
	margin: 0 0 0.85rem;
	font-size: 15px;
	line-height: 1.55;
	color: var(--xg-body);
}

.xg-mega__cta {
	display: inline-block;
	font-weight: 500;
	font-size: 15px;
	color: var(--xg-accent);
	text-decoration: none;
}

.xg-mega__cta:hover {
	color: var(--xg-accent-dark);
}

.xg-mega__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.xg-mega__list li {
	margin: 0 0 0.5rem;
	break-inside: avoid;
}

.xg-mega__list a {
	display: inline-block;
	font-size: 15px;
	line-height: 1.4;
	color: var(--xg-ink);
	text-decoration: none;
}

.xg-mega__list a::after {
	content: "\2197";
	margin-left: 0.35em;
	font-size: 0.72em;
	color: var(--xg-muted);
	vertical-align: 1px;
}

.xg-mega__list a:hover,
.xg-mega__list a:focus-visible {
	color: var(--xg-accent);
}

.xg-mega__list a:hover::after {
	color: var(--xg-accent);
}

/* Menu mobilne (offcanvas) ma ciemne tlo, wiec kolory dziedziczymy
   po pozycjach menu zamiast wymuszac wlasne. Panel zwijamy do
   samych odnosnikow - naglowek i opis kategorii sa tu zbedne. */
#offcanvas .xg-mega {
	margin: 0.25rem 0 0.85rem;
	padding: 0;
	border: 0;
	text-align: center;
}

#offcanvas .xg-mega__inner {
	gap: 1.1rem;
}

#offcanvas .xg-mega__title,
#offcanvas .xg-mega__desc {
	display: none;
}

#offcanvas .xg-mega__col--promo {
	padding: 0;
	border: 0;
}

#offcanvas .xg-mega__eyebrow {
	margin-bottom: 0.45rem;
	color: inherit;
	opacity: 0.5;
}

#offcanvas .xg-mega__cta {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#offcanvas .xg-mega__list li {
	margin-bottom: 0.4rem;
}

#offcanvas .xg-mega__list a,
#offcanvas .xg-mega__list a::after {
	color: inherit;
}

#offcanvas .xg-mega__list a::after {
	opacity: 0.5;
}

/* --- Desktop: pelnoszerokosciowy panel pod naglowkiem --- */
@media (min-width: 1000px) {

	.ct-header .ct-sticky-container {
		position: relative;
	}

	.ct-header [data-id="menu"] {
		position: static;
	}

	.xg-has-mega {
		position: static;
	}

	/* Wlasny daszek na <li>. Nie uzywamy .ct-menu-link::after,
	   bo Blocksy trzyma tam wlasny wskaznik aktywnej pozycji. */
	.xg-has-mega::after {
		content: "";
		align-self: center;
		width: 6px;
		height: 6px;
		margin: -3px 0 0 -6px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
		opacity: 0.5;
		transition: transform 0.18s ease, opacity 0.18s ease;
		pointer-events: none;
	}

	.xg-has-mega:hover::after,
	.xg-has-mega:focus-within::after {
		transform: rotate(225deg) translate(-3px, -3px);
		opacity: 1;
	}

	/* Zeby wszystkie pozycje zmiescily sie w jednym rzedzie
	   i motyw nie chowal ich pod "Wiecej". */
	.ct-header [data-id="menu"] > ul > li > .ct-menu-link {
		padding-left: 12px;
		padding-right: 12px;
		font-size: 15px;
	}

	.xg-has-mega > .xg-mega {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		z-index: 60;
		padding: 2.5rem 0 2.75rem;
		background: #fff;
		border-top: 1px solid var(--xg-line);
		box-shadow: 0 28px 48px -28px rgba(11, 13, 16, 0.3);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	}

	.xg-has-mega:hover > .xg-mega,
	.xg-has-mega:focus-within > .xg-mega {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.xg-mega__inner {
		max-width: 1290px;
		margin: 0 auto;
		padding: 0 32px;
		grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
		gap: 2.5rem;
	}

	.xg-mega__title {
		font-size: 26px;
	}

	.xg-mega__col--promo {
		padding-right: 1.5rem;
		border-right: 1px solid var(--xg-line);
	}

	.xg-mega__list--flow {
		column-count: 1;
		column-gap: 2rem;
	}
}

@media (min-width: 1400px) {
	.ct-header [data-id="menu"] > ul > li > .ct-menu-link {
		padding-left: 16px;
		padding-right: 16px;
		font-size: 16px;
	}

	/* Dwie kolumny kategorii dopiero wtedy, gdy jest na nie miejsce */
	.xg-mega__list--flow {
		column-count: 2;
	}
}

/* =========================================================
   WOOCOMMERCE - archiwum / karty produktow
   ========================================================= */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0 0 2rem;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}

.woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	display: flex;
	flex-direction: column;
	padding: 1rem 1rem 1.15rem;
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.woocommerce ul.products li.product:hover {
	border-color: #cfd3d8;
	box-shadow: 0 18px 32px -24px rgba(11, 13, 16, 0.4);
	transform: translateY(-2px);
}

/* Jednakowe kadry zdjec. Blocksy ustawia aspect-ratio na samym <img>
   na podstawie wymiarow pliku, dlatego proporcje trzymamy na kontenerze. */
.woocommerce ul.products li.product figure {
	margin: 0 0 1rem;
}

.woocommerce ul.products li.product .ct-media-container {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0.9rem;
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: 10px;
	overflow: hidden;
}

.woocommerce ul.products li.product .ct-media-container img {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	object-fit: contain;
	aspect-ratio: auto !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 0.35rem;
	padding: 0 !important;
	font-family: var(--xg-sans);
	font-size: 17px !important;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--xg-ink);
}

.woocommerce ul.products li.product .price {
	margin: 0 0 0.75rem;
	font-size: 15px;
	color: var(--xg-body);
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin-top: auto;
	align-self: flex-start;
	padding: 0.7rem 1.1rem;
	font-family: var(--xg-sans);
	font-size: 14px;
	font-weight: 500;
	border-radius: 10px;
	background: var(--xg-ink);
	color: #fff;
}

.woocommerce ul.products li.product .button:hover {
	background: var(--xg-accent);
	color: #fff;
}

@media (min-width: 600px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

/* Naglowek archiwum i karty produktu.
   Motyw daje mu szare tlo (wyzsza specyficznosc - stad !important),
   wymuszone min-height 300px oraz waski, wysrodkowany kontener.
   Przez to nad produktami zostawal pas pustego tla, a tytul nie
   trzymal sie osi siatki. */
/* Pasek z tytulem archiwum - wypelniony, na calą szerokosc okna. */
.archive .hero-section,
.woocommerce-page:not(.single-product) .hero-section {
	padding-block: 1.4rem 1.2rem;
	background: #eaf1fa !important;
	border-bottom: 1px solid #d8e5f5;
	text-align: left;
}

/* Na karcie produktu ten sam pasek zawiera tylko okruszki i jest
   wciety do kontenera - tlo wygladaloby tam jak przypadkowy
   prostokat, wiec zostaje bez wypelnienia. */
.single-product .hero-section {
	padding-block: 1.15rem 0.9rem;
	background: transparent !important;
	border-bottom: 1px solid var(--xg-line);
	text-align: left;
}

/* Motyw daje 60px odstepu nad trescia - nad siatka produktow
   to za duzo, skoro naglowek jest juz oddzielony linia. */
.archive .site-main > .ct-container,
.archive .site-main > .ct-container-full,
.woocommerce-page .site-main > .ct-container,
.woocommerce-page .site-main > .ct-container-full {
	padding-top: 1.25rem;
}

.archive .hero-section .entry-header,
.single-product .hero-section .entry-header,
.woocommerce-page .hero-section .entry-header {
	min-height: 0;
	padding-block: 0;
	width: var(--theme-container-width, 100%);
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin-inline: auto;
	align-items: flex-start;
}

.archive .hero-section .page-title,
.single-product .hero-section .page-title,
.woocommerce-page .hero-section .page-title {
	font-family: var(--xg-sans);
	font-size: clamp(21px, 3.1vw, 29px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--xg-ink);
	text-align: left;
}

.woocommerce-page .hero-section .entry-header,
.woocommerce-page .hero-section .page-description {
	text-align: left;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	font-size: 14px;
	color: var(--xg-muted);
}

/* =========================================================
   WOOCOMMERCE - karta produktu
   ========================================================= */
.single-product .product_title {
	font-family: var(--xg-sans);
	font-size: clamp(26px, 5vw, 40px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--xg-ink);
}

.single-product div.product .woocommerce-product-gallery img {
	background: var(--xg-surface);
	border-radius: var(--xg-radius);
	padding: 1.25rem;
}

.single-product div.product .woocommerce-tabs ul.tabs li a {
	font-family: var(--xg-mono);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.single-product div.product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}

.single-product .related > h2,
.single-product .up-sells > h2 {
	font-family: var(--xg-sans);
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 600;
	letter-spacing: -0.03em;
}

/* Blok zapytania pod danymi produktu */
/* Blok stoi w kolumnie obok zdjecia produktu */
.xg-product-cta {
	margin: 1.5rem 0 0;
	padding: 1.25rem;
	background: var(--xg-surface);
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
}

.xg-product-cta__label {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--xg-mono);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--xg-muted);
}

.xg-product-cta__title {
	margin: 0 0 0.6rem;
	font-family: var(--xg-sans);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--xg-ink);
}

.xg-product-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.xg-product-cta__btn {
	display: inline-block;
	padding: 0.75rem 1.15rem;
	font-family: var(--xg-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	border-radius: 10px;
	text-decoration: none;
	background: var(--xg-accent);
	color: #fff;
}

.xg-product-cta__btn:hover {
	background: var(--xg-accent-dark);
	color: #fff;
}

.xg-product-cta__btn--ghost {
	background: transparent;
	color: var(--xg-ink);
	border: 1px solid var(--xg-line);
}

.xg-product-cta__btn--ghost:hover {
	background: #fff;
	border-color: var(--xg-ink);
	color: var(--xg-ink);
}

@media (min-width: 700px) {
	.xg-product-cta {
		padding: 1.5rem;
	}
}

/* =========================================================
   STOPKA - logo
   ========================================================= */
.xg-footer-logo {
	display: inline-block;
	margin-bottom: 1rem;
}

.xg-footer-logo img {
	width: 190px;
	max-width: 100%;
	height: auto;
}

/* =========================================================
   Filtr producenta nad lista produktow
   ========================================================= */
/* Motyw trzyma pasek w kontenerze flex, przez co kurczyl sie
   do szerokosci tresci i linia pod filtrem urywala sie w polowie. */
.woo-listing-top {
	flex-wrap: wrap;
}

.woo-listing-top .xg-brandbar {
	flex: 1 1 100%;
}

.xg-brandbar {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.9rem;
	margin: 0 0 1.5rem;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid var(--xg-line);
}

.xg-brandbar__label {
	font-family: var(--xg-mono);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--xg-muted);
}

.xg-brandbar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xg-brandbar__item {
	display: inline-block;
	padding: 0.55rem 0.95rem;
	font-family: var(--xg-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--xg-ink);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: 999px;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.xg-brandbar__item:hover {
	border-color: var(--xg-accent);
	color: var(--xg-accent);
}

.xg-brandbar__item.is-active {
	background: var(--xg-ink);
	border-color: var(--xg-ink);
	color: #fff;
}

/* Naglowki kolumn w stopce - motyw daje im szary, malo czytelny kolor */
.ct-footer [data-column] h5,
.ct-footer .widget h5,
.ct-footer .wp-block-heading {
	margin-bottom: 0.85rem;
	color: #fff;
	font-family: var(--xg-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	opacity: 1;
}

/* =========================================================
   Formularz zgloszen - kafelki priorytetu

   Wtyczka renderuje kafelek jako <span> (element inline),
   ale nadaje mu tlo, ramke i padding. Gdy tekst zawija sie
   do drugiej linii, tlo zaznaczonego kafelka rozjezdza sie
   poza ramke. Ustawiamy elementy blokowo.
   ========================================================= */
.supf-prio {
	align-items: stretch;
}

.supf-prio-opt {
	display: flex;
	align-self: stretch;
	height: 100%;
}

/* Flex, nie block: kontener flex pomija puste wezly tekstowe
   miedzy spanami, ktore w jednym z kafelkow dodawaly 8px. */
.supf-prio-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 auto;
	height: auto;
}

.supf-prio-name,
.supf-prio-sub {
	display: block;
}

/* =========================================================
   PLIKI DO POBRANIA (karty katalogowe, PDF)
   Ten sam blok na karcie produktu (waska kolumna obok zdjecia)
   i pod trescia wpisu - stad siatka auto-fill: w kolumnie
   produktu wychodzi jedna kolumna, we wpisie dwie.
   ========================================================= */
.xg-docs {
	margin: 1.5rem 0 0;
	font-family: var(--xg-sans);
}

.xg-docs__label {
	display: block;
	margin-bottom: 0.7rem;
	font-family: var(--xg-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--xg-muted);
}

.xg-docs__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xg-docs__item {
	margin: 0;
}

.xg-docs__link {
	display: flex;
	gap: 1rem;
	align-items: center;
	height: 100%;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	color: var(--xg-ink);
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.xg-docs__link:hover,
.xg-docs__link:focus-visible {
	border-color: #cfd3d8;
	box-shadow: 0 18px 32px -24px rgba(11, 13, 16, 0.4);
	transform: translateY(-2px);
	color: var(--xg-ink);
}

/* Miniatura w proporcjach kartki A4, kadr od gory strony. */
.xg-docs__thumb {
	flex: 0 0 72px;
	aspect-ratio: 1 / 1.414;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	overflow: hidden;
	background: var(--xg-surface);
	border: 1px solid var(--xg-line);
	border-radius: 6px;
	box-shadow: 0 6px 14px -10px rgba(11, 13, 16, 0.45);
	color: var(--xg-accent);
}

.xg-docs__thumb .xg-docs__img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: top center;
	background: #fff;
}

.xg-docs__ext {
	font-family: var(--xg-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.xg-docs__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.xg-docs__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.xg-docs__meta {
	font-family: var(--xg-mono);
	font-size: 12px;
	color: var(--xg-muted);
}

.xg-docs__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.35rem;
	font-size: 14px;
	font-weight: 500;
	color: var(--xg-accent);
}

.xg-docs__link:hover .xg-docs__cta {
	color: var(--xg-accent-dark);
}

/* We wpisie oddzielamy blok od tresci. */
.single-post .entry-content .xg-docs {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--xg-line);
}

/* =========================================================
   GORNY PASEK (telefon, e-mail, adres)

   Tresc paska to element "Tekst" Blocksy w Kreatorze wygladu.
   Edytor tego pola wycina markup i inline SVG, dlatego caly
   wyglad (ikony, odstepy) siedzi tutaj i dziala na golym
   <p><a tel/><a mailto/> adres</p>. Ikony sa maskami CSS.
   ========================================================= */
.ct-header [data-row*="top"] [data-id="text"] .entry-content > p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.75rem;
	margin: 0;
	font-family: var(--xg-mono);
	font-size: 12.5px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.72);
}

.ct-header [data-row*="top"] [data-id="text"] .entry-content > p > a {
	order: -1;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ct-header [data-row*="top"] [data-id="text"] .entry-content > p > a:hover {
	color: #9cc3f0;
}

.ct-header [data-row*="top"] [data-id="text"] .entry-content > p > a::before,
.ct-header [data-row*="top"] [data-id="text"] .entry-content > p::before {
	content: "";
	flex: none;
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: var(--xg-ico) center / contain no-repeat;
	mask: var(--xg-ico) center / contain no-repeat;
	opacity: 0.75;
}

.ct-header [data-row*="top"] [data-id="text"] a[href^="tel:"] {
	--xg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

.ct-header [data-row*="top"] [data-id="text"] a[href^="mailto:"] {
	--xg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2.4V17h16V7.4l-8 5.3zM5.8 7 12 11.1 18.2 7z'/%3E%3C/svg%3E");
}

/* Pinezka przed adresem: ::before akapitu ma order 0, a linki -1,
   wiec staje miedzy e-mailem a tekstem adresu. */
.ct-header [data-row*="top"] [data-id="text"] .entry-content > p::before {
	--xg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 5.2-7 13-7 13S5 14.2 5 9a7 7 0 0 1 7-7zm0 4.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E");
	margin-right: -1.25rem;
	color: #fff;
}

@media (max-width: 689.98px) {
	/* Na telefonie zostaje telefon i e-mail - adres jest w stopce */
	.ct-header [data-row*="top"] [data-id="text"] .entry-content > p {
		justify-content: center;
		gap: 0.35rem 1.25rem;
		font-size: 0;
	}

	.ct-header [data-row*="top"] [data-id="text"] .entry-content > p > a {
		font-size: 12px;
	}

	.ct-header [data-row*="top"] [data-id="text"] .entry-content > p::before {
		display: none;
	}
}

/* =========================================================
   SZEROKOSC TRESCI WPISU I OPISU PRODUKTU

   Blocksy zweza tresc (.entry-content.is-layout-constrained)
   regula WordPressa z "global-styles", ktorej WP 7.1 nie
   drukuje na tych stronach - tresc rozjezdzala sie od lewej
   krawedzi okna. Odtwarzamy ja tylko tam, gdzie jest potrzebna.
   ========================================================= */
.single-post article > .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.single-product .woocommerce-Tabs-panel.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}

.single-post article > .entry-content.is-layout-constrained > .alignwide,
.single-product .woocommerce-Tabs-panel.is-layout-constrained > .alignwide {
	max-width: var(--wp--style--global--wide-size);
}

/* =========================================================
   ZWYKLE STRONY TEKSTOWE (polityka prywatnosci itp.)

   Blocksy daje stronom szablon "Elementor default" - pelna
   szerokosc, bez kontenera i bez tytulu. Strony bez Elementora
   (i poza WooCommerce) dostaja czytelna kolumne tekstu.
   ========================================================= */
body.page.ct-elementor-default-template:not(.elementor-page):not(.woocommerce-page) article > .entry-content {
	max-width: 880px;
	margin: 0 auto;
	padding: 56px 24px 88px;
	box-sizing: content-box;
}

body.page.ct-elementor-default-template:not(.elementor-page):not(.woocommerce-page) article > .entry-content > * {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.page.ct-elementor-default-template:not(.elementor-page):not(.woocommerce-page) .entry-content h1 {
	font-size: clamp(30px, 4vw, 42px);
	margin-bottom: 8px;
}

body.page.ct-elementor-default-template:not(.elementor-page):not(.woocommerce-page) .entry-content h2 {
	font-size: clamp(21px, 2.4vw, 26px);
	margin-top: 44px;
	margin-bottom: 14px;
}

body.page.ct-elementor-default-template:not(.elementor-page):not(.woocommerce-page) .entry-content .wp-block-table {
	overflow-x: auto;
}

body.page.ct-elementor-default-template:not(.elementor-page):not(.woocommerce-page) .entry-content .wp-block-table table {
	min-width: 600px;
	font-size: 15px;
}
