/*
 * Ścieżka zakupu na telefonie (moduł ST_Sciezka_Zakupu).
 * Ładowane tylko, gdy moduł działa dla żądania; wszystko pod `body.st-sz`,
 * więc nawet zbłąkany plik w scalonym arkuszu LiteSpeed nic nie zmienia.
 *
 * Styl Stickerly: granat #344a90, obwódka #dce1ea, tekst #181b22, szary #606775,
 * tło jasne #f3f5fb. Bez pasków-akcentów z boku, bez gradientów, bez cieni „AI".
 */

/* ============================================ PASEK Z CENĄ (TELEFON, TABLET) */

.st-sz-pasek {
	display: none;
}

@media (max-width: 849px) {
	body.st-sz .st-sz-pasek {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid #dce1ea;
		box-shadow: 0 -4px 16px rgba(24, 27, 34, 0.06);
		transform: translateY(110%);
		transition: transform 0.22s ease;
		box-sizing: border-box;
	}

	body.st-sz .st-sz-pasek--widoczny {
		transform: translateY(0);
	}

	body.st-sz .st-sz-pasek-cena {
		display: flex;
		flex-direction: column;
		min-width: 0;
		flex: 1 1 auto;
		line-height: 1.2;
	}

	body.st-sz .st-sz-pasek-podpis {
		font-size: 12px;
		color: #606775;
	}

	body.st-sz .st-sz-pasek-kwota {
		font-size: 19px;
		font-weight: 700;
		color: #181b22;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	body.st-sz .st-sz-pasek-btn {
		flex: 0 0 auto;
		min-height: 46px;
		margin: 0;
		padding: 0 20px;
		border: 0;
		border-radius: 8px;
		background: #344a90;
		color: #fff;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: 0;
		text-transform: none;
		cursor: pointer;
	}

	body.st-sz .st-sz-pasek-btn:active {
		background: #2a3c76;
	}

	/* Ikona koszyka FunnelKit nie może przykrywać paska. */
	body.st-sz .fkcart-toggler {
		transition: transform 0.22s ease;
	}

	body.st-sz.st-sz-pasek-on .fkcart-toggler {
		transform: translateY(-72px);
	}

	/* Miejsce na pasek pod stopką, żeby nic nie zostało pod nim schowane. */
	body.st-sz.single-product {
		padding-bottom: 72px;
	}
}

/* Wskazanie pola po „Skonfiguruj naklejkę". */
body.st-sz .st-sz-wskaz {
	outline: 2px solid #344a90;
	outline-offset: 6px;
	border-radius: 10px;
	transition: outline-color 0.3s ease;
}

/* ============================================ DOSTAWA I PRÓG NA KARCIE */

body.st-sz .st-sz-wys-prog {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #344a90;
}

/* ============================================ PRÓG W KOSZYKU BOCZNYM */

.st-sz-prog {
	margin: 0 0 12px;
	padding: 12px 14px;
	border: 1px solid #dce1ea;
	border-radius: 10px;
	background: #f3f5fb;
	color: #181b22;
}

.st-sz-prog-tekst {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.4;
}

.st-sz-prog-tekst strong {
	color: #344a90;
}

.st-sz-prog-tor {
	height: 6px;
	border-radius: 3px;
	background: #dce1ea;
	overflow: hidden;
}

.st-sz-prog-tor span {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: #344a90;
}

.st-sz-prog--ok .st-sz-prog-tor span {
	background: #1e8e5a;
}

.st-sz-prog--ok .st-sz-prog-tekst {
	font-weight: 600;
	color: #1e8e5a;
}

.st-sz-prog-dopisek {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #606775;
}

/* ============================================ RAMKI BEZ PASKÓW-AKCENTÓW */

/* Rabat ilościowy: widoczny jak oferta, nie jak przypis. */
body.st-sz .st-rabat {
	border: 1px solid #c9d1e6;
	border-radius: 10px;
	background: #f3f5fb;
	box-shadow: none;
}

body.st-sz .st-rabat-naglowek {
	padding: 0.72rem 0.95rem;
	font-size: 0.98rem;
	font-weight: 700;
	color: #344a90;
}

body.st-sz .st-rabat-naglowek:hover {
	background: #eaeef8;
}

body.st-sz .st-rabat[open] > .st-rabat-naglowek {
	border-bottom-color: #c9d1e6;
}

body.st-sz .st-rabat-tresc {
	background: #fff;
}

/* Ramka „Zamów do… / dostawa". */
body.st-sz .st-wys {
	border: 1px solid #dce1ea;
	border-radius: 10px;
	box-shadow: none;
}

/* Podgląd napisu w konfiguratorze. */
body.st-sz .st-podglad {
	border: 1px solid #dce1ea;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
}

body.st-sz .st-podglad::after {
	display: none;
}

/* Komunikat o przekroczonym limicie znaków. */
body.st-sz .st-limit--blad {
	border: 1px solid rgba(192, 57, 43, 0.35);
	border-left-width: 1px;
}

/* ============================================ KRÓTSZY PIERWSZY EKRAN (TELEFON) */

@media (max-width: 549px) {
	/* Szukajka zostaje w menu (hamburger), okruszki dublują kategorię z menu. */
	body.st-sz.single-product #wide-nav,
	body.st-sz.single-product .product-breadcrumb-container {
		display: none !important;
	}

	body.st-sz.single-product .row:has(> .col .product-breadcrumb-container),
	body.st-sz.single-product .section:has(.product-breadcrumb-container) {
		display: none !important;
	}
}

/* ============================================ BANER ZGÓD JAKO PASEK NA DOLE (TELEFON) */

@media (max-width: 600px) {
	body.st-sz .cmplz-cookiebanner.cmplz-center {
		top: auto !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		transform: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		max-height: 70vh;
		overflow-y: auto;
		padding: 14px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
		border-radius: 14px 14px 0 0 !important;
		box-sizing: border-box;
	}

	body.st-sz .cmplz-cookiebanner .cmplz-message,
	body.st-sz .cmplz-cookiebanner .cmplz-message p {
		font-size: 12.5px !important;
		line-height: 1.4 !important;
	}

	body.st-sz .cmplz-cookiebanner .cmplz-buttons {
		gap: 6px !important;
		margin-top: 8px !important;
	}

	body.st-sz .cmplz-cookiebanner .cmplz-btn {
		min-height: 38px !important;
		height: auto !important;
		padding-top: 6px !important;
		padding-bottom: 6px !important;
		font-size: 13.5px !important;
	}

	body.st-sz .cmplz-cookiebanner .cmplz-documents {
		margin-top: 4px !important;
		font-size: 12px !important;
	}
}

/* ============================================ KASA: PACZKOMAT BEZ ZBĘDNYCH PÓL */

/*
 * Przy paczkomacie adres wpisuje się sam (moduł Paczkomat - adres), a jedyny
 * kraj dostawy to Polska. Ukrywamy tylko widok: pole `shipping_country`
 * zostaje w formularzu z wartością PL, więc zamówienie i SellAsist dostają to
 * samo co wcześniej.
 */
body.st-sz:has(input[name^="shipping_method"][value^="inpost_paczkomaty"]:checked) #shipping_country_field,
body.st-sz:has(input[name^="shipping_method"][value^="inpost_paczkomaty"]:checked) #shipping_address_2_collapse_label,
body.st-sz:has(input[type="hidden"][name^="shipping_method"][value^="inpost_paczkomaty"]) #shipping_country_field,
body.st-sz:has(input[type="hidden"][name^="shipping_method"][value^="inpost_paczkomaty"]) #shipping_address_2_collapse_label {
	display: none !important;
}
