/* ==========================================================================
   Benetech Product Page – strona pojedynczego produktu
   Zmienne (--bpp-*) i progi responsywne są generowane z ustawień (inline CSS).
   Selektor bazowy elementów: body.bpp-active div.product (działa w obu trybach).
   ========================================================================== */

body.bpp-active {
	--bpp-accent: #2563eb;
	--bpp-accent-contrast: #fff;
	--bpp-text: #111827;
	--bpp-muted: #6b7280;
	--bpp-border: #e5e7eb;
	--bpp-panel-bg: #fff;
	--bpp-gallery-bg: #f8fafc;
	--bpp-radius: 14px;
	--bpp-radius-sm: calc(var(--bpp-radius) * .6);
	--bpp-btn-h: 52px;
}

/* Tryb „Pełne nadpisanie” – obszar treści między nagłówkiem a stopką motywu. */
.bpp-main { display: block; width: 100%; clear: both; float: none; }
.bpp-main::after { content: ""; display: table; clear: both; }

/* --------------------------------------------------------------------------
   Kontener i siatka (tryb „Pełny układ”)
   ----------------------------------------------------------------------- */

.bpp-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--bpp-max, 1280px);
	margin: var(--bpp-mt, 32px) auto var(--bpp-mb, 64px);
	padding-left: var(--bpp-px, 24px);
	padding-right: var(--bpp-px, 24px);
	color: var(--bpp-text);
}
.bpp-wrap *,
.bpp-wrap *::before,
.bpp-wrap *::after { box-sizing: border-box; }

/* Ograniczenia szerokości motywów wokół produktu. */
body.bpp-mode-layout .bpp-wrap .bpp-product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	display: block;
}

.bpp-top {
	display: grid;
	/* Panel nie węższy niż ~340 px – przy braku miejsca zwęża się galeria. */
	grid-template-columns: minmax(0, var(--bpp-gal-w, 60%)) minmax(min(100%, var(--bpp-panel-min, 340px)), 1fr);
	grid-template-areas: "media summary";
	column-gap: var(--bpp-gap, 56px);
	row-gap: var(--bpp-section-gap, 64px);
	align-items: start;
}
body.bpp-gallery-right .bpp-top { grid-template-columns: minmax(min(100%, var(--bpp-panel-min, 340px)), 1fr) minmax(0, var(--bpp-gal-w, 60%)); grid-template-areas: "summary media"; }
.bpp-media { grid-area: media; }
.bpp-summary-col { grid-area: summary; }

/* Zakładki pod galerią: panel zajmuje oba wiersze, więc przypięty panel przewija się aż do produktów powiązanych. */
.bpp-details { grid-area: details; min-width: 0; }
body.bpp-tabs-beside .bpp-top { grid-template-areas: "media summary" "details summary"; grid-template-rows: auto 1fr; }
body.bpp-tabs-beside.bpp-gallery-right .bpp-top { grid-template-areas: "summary media" "summary details"; }
body.bpp-tabs-beside .bpp-summary-col { align-self: stretch; }
body.bpp-mode-layout .bpp-details > .woocommerce-tabs { float: none !important; width: 100% !important; margin: 0 !important; clear: both; }

.bpp-media,
.bpp-summary-col { min-width: 0; position: relative; }

/* Reset pływających kolumn motywu (float/width 48%). */
body.bpp-mode-layout .bpp-product .bpp-media .woocommerce-product-gallery,
body.bpp-mode-layout .bpp-product .bpp-media div.images,
body.bpp-mode-layout .bpp-product .bpp-summary-col div.summary,
body.bpp-mode-layout .bpp-product .bpp-summary-col .entry-summary {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	clear: none !important;
}
body.bpp-mode-layout .bpp-product .bpp-bottom > *,
body.bpp-mode-layout .bpp-product .woocommerce-tabs,
body.bpp-mode-layout .bpp-product .related,
body.bpp-mode-layout .bpp-product .upsells {
	float: none !important;
	width: 100% !important;
	clear: both;
}

.bpp-bottom {
	display: flex;
	flex-direction: column;
	gap: var(--bpp-section-gap, 64px);
	margin-top: var(--bpp-section-gap, 64px);
}
.bpp-bottom:empty { display: none; }
.bpp-bottom > * { margin-top: 0 !important; margin-bottom: 0 !important; }

/* Panel z informacjami. */
body.bpp-panel-card .bpp-summary-col > .summary,
body.bpp-panel-border .bpp-summary-col > .summary {
	background: var(--bpp-panel-bg);
	border-radius: var(--bpp-radius);
	padding: var(--bpp-panel-pad, 28px) !important;
}
body.bpp-panel-card .bpp-summary-col > .summary { box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 28px rgba(15, 23, 42, .08); }
body.bpp-panel-border .bpp-summary-col > .summary { border: 1px solid var(--bpp-border); }

/* --------------------------------------------------------------------------
   Okruszki
   ----------------------------------------------------------------------- */

body.bpp-bc-hide .woocommerce-breadcrumb,
body.bpp-bc-plugin .woocommerce-breadcrumb:not(.bpp-bc) { display: none !important; }

.bpp-bc.woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 20px !important;
	padding: 0 !important;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bpp-muted);
	background: none !important;
}
.bpp-bc a { color: var(--bpp-muted); text-decoration: none; }
.bpp-bc a:hover { color: var(--bpp-accent); }
.bpp-bc__sep { opacity: .5; }

/* --------------------------------------------------------------------------
   Galeria
   ----------------------------------------------------------------------- */

body.bpp-active div.product .woocommerce-product-gallery { position: relative; margin-bottom: 0; }

body.bpp-active div.product .woocommerce-product-gallery .flex-viewport,
body.bpp-active div.product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child,
body.bpp-active div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image {
	border-radius: var(--bpp-radius);
	overflow: hidden;
	background: var(--bpp-gallery-bg);
}
body.bpp-active div.product .woocommerce-product-gallery__image { background: var(--bpp-gallery-bg); }
body.bpp-active div.product .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; }

/* Bez slidera – kolejne zdjęcia jedno pod drugim z odstępem. */
body.bpp-active div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image + .woocommerce-product-gallery__image { margin-top: 12px; }

/* Ikona pełnego ekranu. */
body.bpp-active div.product .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px !important;
	right: 14px !important;
	left: auto !important;
	z-index: 5;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .92) !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
	display: flex !important;
	align-items: center;
	justify-content: center;
	text-indent: -9999px;
	overflow: hidden;
	transition: transform .15s ease;
}
body.bpp-active div.product .woocommerce-product-gallery__trigger:hover { transform: scale(1.06); }
body.bpp-active div.product .woocommerce-product-gallery__trigger::before,
body.bpp-active div.product .woocommerce-product-gallery__trigger::after { display: none !important; }
body.bpp-active div.product .woocommerce-product-gallery__trigger {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}
body.bpp-active div.product .woocommerce-product-gallery__trigger > * { display: none !important; }

/* Miniatury – pod zdjęciem (domyślnie). */
body.bpp-active div.product .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(var(--bpp-thumb-cols, 5), minmax(0, 1fr));
	gap: 10px;
	margin: 10px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
body.bpp-active div.product .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
body.bpp-active div.product .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--bpp-radius-sm);
	background: var(--bpp-gallery-bg);
	border: 2px solid transparent;
	opacity: .65 !important;
	cursor: pointer;
	transition: opacity .15s ease, border-color .15s ease;
}
body.bpp-active div.product .flex-control-thumbs li img:hover { opacity: 1 !important; }
body.bpp-active div.product .flex-control-thumbs li img.flex-active { opacity: 1 !important; border-color: var(--bpp-accent); }

/* Miniatury – z lewej strony (kolumna przewijana w pionie). */
body.bpp-thumbs-left div.product .woocommerce-product-gallery:has(.flex-control-thumbs) { padding-left: 92px !important; }
body.bpp-thumbs-left div.product .flex-control-thumbs {
	position: absolute !important;
	top: 0;
	bottom: 0;
	left: 0;
	width: 80px !important;
	margin: 0 !important;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: max-content;
	overflow-y: auto;
	scrollbar-width: thin;
}
body.bpp-thumbs-left.bpp-mode-layout div.product .bpp-media > .onsale { left: 108px !important; }

/* Plakietka promocji. */
body.bpp-mode-layout div.product .bpp-media > .onsale {
	position: absolute !important;
	top: 16px !important;
	left: 16px !important;
	right: auto !important;
	z-index: 6;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	height: auto !important;
	padding: 6px 12px !important;
	border-radius: 999px !important;
	background: #dc2626 !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Podsumowanie (tytuł, cena, opis…)
   ----------------------------------------------------------------------- */

body.bpp-active div.product .summary {
	color: var(--bpp-text);
	display: flex;
	flex-direction: column;
	gap: 0;
}
body.bpp-active div.product .summary > * { margin-top: 0; }

.bpp-label {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--bpp-muted);
}
.bpp-label a { color: inherit !important; text-decoration: none !important; }
.bpp-label a:hover { color: var(--bpp-accent) !important; }

body.bpp-active div.product .summary .product_title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	font-size: var(--bpp-title, 32px) !important;
	font-weight: var(--bpp-title-w, 700) !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em;
	color: var(--bpp-text);
	overflow-wrap: anywhere;
}

body.bpp-active div.product .summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px !important;
	font-size: 14px;
	line-height: 1;
}
body.bpp-active div.product .summary .woocommerce-product-rating .star-rating { margin: 0 !important; float: none !important; }
body.bpp-active div.product .summary .woocommerce-review-link { color: var(--bpp-muted); text-decoration: none; }
body.bpp-active div.product .summary .woocommerce-review-link:hover { color: var(--bpp-accent); text-decoration: underline; }

body.bpp-active div.product .summary > .price,
body.bpp-active div.product .summary p.price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 4px 0 20px !important;
	font-size: var(--bpp-price, 26px) !important;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bpp-text) !important;
}
body.bpp-active div.product .summary .price del {
	order: 2;
	font-size: .65em;
	font-weight: 500;
	color: var(--bpp-muted) !important;
	opacity: 1;
}
body.bpp-active div.product .summary .price ins {
	text-decoration: none;
	color: #dc2626 !important;
	background: none;
	font-weight: 700;
}
body.bpp-active div.product .summary .price small,
body.bpp-active div.product .summary .price .woocommerce-price-suffix { font-size: .5em; font-weight: 500; color: var(--bpp-muted); }

body.bpp-active div.product .summary .woocommerce-product-details__short-description {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--bpp-text);
}
body.bpp-active div.product .summary .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }

/* Stan magazynowy. */
body.bpp-stock-pill div.product .summary .stock {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px !important;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	background: #ecfdf5;
	color: #047857 !important;
}
body.bpp-stock-pill div.product .summary .stock::before {
	content: "" !important;
	display: inline-block !important;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	font-family: inherit !important;
	margin: 0 !important;
	position: static !important;
}
body.bpp-stock-pill div.product .summary .stock.available-on-backorder { background: #fffbeb; color: #b45309 !important; }
body.bpp-stock-pill div.product .summary .stock.out-of-stock { background: #fef2f2; color: #b91c1c !important; }

/* --------------------------------------------------------------------------
   Formularz koszyka
   ----------------------------------------------------------------------- */

body.bpp-active div.product .summary form.cart { margin: 0 0 20px !important; padding: 0 !important; border: 0; }
body.bpp-active div.product .summary form.cart::before,
body.bpp-active div.product .summary form.cart::after { display: none; }

body.bpp-active div.product .summary form.cart:not(.variations_form):not(.grouped_form):not(.bpp-buy-grid),
body.bpp-active div.product .summary .woocommerce-variation-add-to-cart:not(.bpp-buy-grid) {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}
body.bpp-active div.product .summary form.cart:not(.variations_form):not(.grouped_form):not(.bpp-buy-grid) > *,
body.bpp-active div.product .summary .woocommerce-variation-add-to-cart:not(.bpp-buy-grid) > * { margin: 0 !important; float: none !important; }

/* Pole ilości. */
body.bpp-active div.product .summary form.cart .quantity label,
body.bpp-active div.product .summary form.cart .quantity .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
body.bpp-active div.product .summary form.cart .quantity {
	display: inline-flex !important;
	align-items: stretch;
	float: none !important;
	margin: 0 !important;
	height: var(--bpp-btn-h);
	border: 1px solid var(--bpp-border);
	border-radius: var(--bpp-radius-sm);
	background: #fff;
	overflow: hidden;
}
body.bpp-active div.product .summary form.cart .quantity.hidden,
body.bpp-active div.product .summary form.cart .quantity:has(input[type="hidden"]) { display: none !important; }
body.bpp-active div.product .summary form.cart .quantity .qty {
	width: 56px !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 4px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--bpp-text);
	-moz-appearance: textfield;
}
body.bpp-active div.product .summary form.cart .quantity .qty::-webkit-outer-spin-button,
body.bpp-active div.product .summary form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bpp-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--bpp-text) !important;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
	min-height: 0 !important;
	transition: background .15s ease;
}
.bpp-qty-btn:hover { background: rgba(15, 23, 42, .05) !important; }
.bpp-qty-btn:focus-visible { outline: 2px solid var(--bpp-accent); outline-offset: -2px; }

/* Przycisk „Dodaj do koszyka”. */
body.bpp-active:not(.bpp-btn-theme) div.product .summary .single_add_to_cart_button {
	flex: 1 1 200px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--bpp-btn-h) !important;
	height: auto;
	margin: 0 !important;
	padding: 10px 28px !important;
	border-radius: var(--bpp-radius-sm) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	float: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: filter .15s ease, background .15s ease, transform .1s ease;
}
body.bpp-btn-solid div.product .summary .single_add_to_cart_button {
	background: var(--bpp-accent) !important;
	color: var(--bpp-accent-contrast) !important;
	border: 1px solid var(--bpp-accent) !important;
}
body.bpp-btn-outline div.product .summary .single_add_to_cart_button {
	background: transparent !important;
	color: var(--bpp-accent) !important;
	border: 2px solid var(--bpp-accent) !important;
}
body.bpp-btn-soft div.product .summary .single_add_to_cart_button {
	background: color-mix(in srgb, var(--bpp-accent) 14%, #fff) !important;
	color: var(--bpp-accent) !important;
	border: 1px solid transparent !important;
}
body.bpp-active:not(.bpp-btn-theme) div.product .summary .single_add_to_cart_button:hover { filter: brightness(.93); }
body.bpp-active:not(.bpp-btn-theme) div.product .summary .single_add_to_cart_button:active { transform: translateY(1px); }
body.bpp-active:not(.bpp-btn-theme) div.product .summary .single_add_to_cart_button.disabled,
body.bpp-active:not(.bpp-btn-theme) div.product .summary .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; filter: none; }

/* Warianty. */
body.bpp-active div.product .summary table.variations {
	width: 100%;
	margin: 0 0 16px !important;
	border: 0 !important;
	border-collapse: collapse;
	background: none !important;
}
body.bpp-active div.product .summary table.variations,
body.bpp-active div.product .summary table.variations tbody,
body.bpp-active div.product .summary table.variations tr,
body.bpp-active div.product .summary table.variations th,
body.bpp-active div.product .summary table.variations td { display: block; width: 100%; border: 0 !important; background: none !important; padding: 0 !important; text-align: left; }
body.bpp-active div.product .summary table.variations tr + tr { margin-top: 14px; }
body.bpp-active div.product .summary table.variations th.label,
body.bpp-active div.product .summary table.variations td.label { margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; }
body.bpp-active div.product .summary table.variations th.label label,
body.bpp-active div.product .summary table.variations td.label label { margin: 0; font-weight: 600; }
body.bpp-active div.product .summary table.variations select {
	width: 100% !important;
	max-width: 100%;
	min-height: 46px;
	margin: 0 !important;
	padding: 8px 40px 8px 14px !important;
	border: 1px solid var(--bpp-border) !important;
	border-radius: var(--bpp-radius-sm) !important;
	background-color: #fff !important;
	font-size: 15px;
	color: var(--bpp-text);
}
body.bpp-active div.product .summary table.variations select:focus { border-color: var(--bpp-accent) !important; outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bpp-accent) 20%, transparent); }
body.bpp-active div.product .summary .reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--bpp-muted); }
body.bpp-active div.product .summary .single_variation_wrap .woocommerce-variation { margin-bottom: 14px; }
body.bpp-active div.product .summary .single_variation_wrap .woocommerce-variation-price .price { margin: 0 !important; font-size: calc(var(--bpp-price, 26px) * .85) !important; }

/* Produkty grupowe. */
body.bpp-active div.product .summary form.grouped_form table { width: 100%; margin-bottom: 16px; border-collapse: collapse; }
body.bpp-active div.product .summary form.grouped_form td { padding: 10px 8px; border-bottom: 1px solid var(--bpp-border); vertical-align: middle; }

/* --------------------------------------------------------------------------
   Zalety (USP) i meta
   ----------------------------------------------------------------------- */

.bpp-usp {
	display: grid;
	gap: 10px;
	margin: 4px 0 24px !important;
	padding: 16px 18px !important;
	list-style: none !important;
	border-radius: var(--bpp-radius);
	background: var(--bpp-gallery-bg);
}
.bpp-usp__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	font-size: 14px;
	line-height: 1.4;
	color: var(--bpp-text);
}
.bpp-usp__icon { flex: 0 0 auto; display: inline-flex; color: var(--bpp-accent); }
.bpp-usp__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

body.bpp-active div.product .summary .product_meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 16px;
	padding-top: 16px;
	border-top: 1px solid var(--bpp-border);
	font-size: 13px;
	line-height: 1.5;
	color: var(--bpp-muted);
}
body.bpp-active div.product .summary .product_meta > span { display: block; margin: 0; }
body.bpp-active div.product .summary .product_meta a { color: var(--bpp-text); text-decoration: none; }
body.bpp-active div.product .summary .product_meta a:hover { color: var(--bpp-accent); }
body.bpp-no-sku div.product .product_meta .sku_wrapper,
body.bpp-no-cats div.product .product_meta .posted_in,
body.bpp-no-tags div.product .product_meta .tagged_as { display: none !important; }
body.bpp-no-sku.bpp-no-cats.bpp-no-tags div.product .summary .product_meta:not(:has(> :not(.sku_wrapper):not(.posted_in):not(.tagged_as))) { display: none; }

/* --------------------------------------------------------------------------
   Zakładki / akordeon / sekcje
   ----------------------------------------------------------------------- */

body.bpp-active div.product .woocommerce-tabs {
	max-width: var(--bpp-tabs-max, none);
	padding: 0 !important;
	margin-left: 0;
	margin-right: 0;
	border: 0 !important;
}
body.bpp-active div.product .woocommerce-tabs .panel {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: none !important;
	font-size: 15px;
	line-height: 1.7;
	color: var(--bpp-text);
	float: none !important;
	width: 100% !important;
}
body.bpp-active div.product .woocommerce-tabs .panel > :last-child { margin-bottom: 0; }
body.bpp-active div.product .woocommerce-tabs .panel h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }

/* Zakładki. */
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 28px;
	margin: 0 0 28px !important;
	padding: 0 !important;
	list-style: none !important;
	border-bottom: 1px solid var(--bpp-border) !important;
	overflow-x: auto;
	scrollbar-width: none;
	background: none !important;
	float: none !important;
	width: 100% !important;
}
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs::before,
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs::after,
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li::before,
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li::after { display: none !important; border: 0 !important; box-shadow: none !important; }
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li {
	flex: 0 0 auto;
	display: block !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	width: auto !important;
}
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	position: relative;
	padding: 0 0 14px !important;
	font-size: 15px;
	font-weight: 600;
	color: var(--bpp-muted) !important;
	text-decoration: none !important;
	white-space: nowrap;
	background: none !important;
	border: 0 !important;
}
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: transparent;
	transition: background .15s ease;
}
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--bpp-text) !important; }
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li.active a { color: var(--bpp-text) !important; }
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li.active a::after { background: var(--bpp-accent); }

/* Akordeon i sekcje – lista zakładek ukryta, nagłówki tworzy skrypt. */
body.bpp-tabs-accordion div.product .woocommerce-tabs.bpp-tabs-ready ul.tabs,
body.bpp-tabs-sections div.product .woocommerce-tabs.bpp-tabs-ready ul.tabs { display: none !important; }

body.bpp-tabs-accordion div.product .woocommerce-tabs.bpp-tabs-ready { border-top: 1px solid var(--bpp-border) !important; }
.bpp-acc__head {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0 !important;
	padding: 20px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--bpp-border) !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--bpp-text) !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-align: left;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	min-height: 0 !important;
}
.bpp-acc__head:hover { color: var(--bpp-accent) !important; }
.bpp-acc__head:focus-visible { outline: 2px solid var(--bpp-accent); outline-offset: 2px; }
.bpp-acc__icon {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}
.bpp-acc__icon::before,
.bpp-acc__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 2px;
	right: 2px;
	height: 2px;
	margin-top: -1px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease;
}
.bpp-acc__icon::after { transform: rotate(90deg); }
.bpp-acc__head[aria-expanded="true"] .bpp-acc__icon::after { transform: rotate(0deg); }
body.bpp-tabs-accordion div.product .woocommerce-tabs.bpp-tabs-ready .panel.bpp-acc-open {
	padding: 4px 0 28px !important;
	border-bottom: 1px solid var(--bpp-border) !important;
}
body.bpp-tabs-accordion div.product .woocommerce-tabs.bpp-tabs-ready #tab-description > h2:first-child,
body.bpp-tabs-accordion div.product .woocommerce-tabs.bpp-tabs-ready #tab-additional_information > h2:first-child { display: none; }

body.bpp-tabs-sections div.product .woocommerce-tabs.bpp-tabs-ready .panel { display: block !important; }
body.bpp-tabs-sections div.product .woocommerce-tabs.bpp-tabs-ready .panel + .panel { margin-top: 48px !important; padding-top: 48px !important; border-top: 1px solid var(--bpp-border) !important; }
.bpp-sec__title { font-size: 20px; font-weight: 700; margin: 0 0 14px; color: var(--bpp-text); }

/* Informacje dodatkowe – tabela. */
body.bpp-active div.product .woocommerce-tabs table.shop_attributes {
	width: 100%;
	margin: 0;
	border: 0 !important;
	border-collapse: collapse;
}
body.bpp-active div.product .woocommerce-tabs table.shop_attributes th,
body.bpp-active div.product .woocommerce-tabs table.shop_attributes td {
	padding: 12px 16px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--bpp-border) !important;
	background: none !important;
	font-style: normal;
	text-align: left;
	vertical-align: top;
}
body.bpp-active div.product .woocommerce-tabs table.shop_attributes th { width: 35%; font-weight: 600; color: var(--bpp-muted); }
body.bpp-active div.product .woocommerce-tabs table.shop_attributes td p { margin: 0; padding: 0; }
body.bpp-active div.product .woocommerce-tabs table.shop_attributes tr:nth-child(even) th,
body.bpp-active div.product .woocommerce-tabs table.shop_attributes tr:nth-child(even) td { background: none !important; }

/* Produkty powiązane / upsell – nagłówki. */
body.bpp-active div.product .related > h2,
body.bpp-active div.product .upsells > h2,
body.bpp-active .bpp-bottom .related > h2,
body.bpp-active .bpp-bottom .upsells > h2 {
	margin: 0 0 24px !important;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-align: left;
}

/* --------------------------------------------------------------------------
   Przypięty pasek zakupu
   ----------------------------------------------------------------------- */

.bpp-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	padding: 10px var(--bpp-px, 16px) calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .97);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-top: 1px solid var(--bpp-border, #e5e7eb);
	box-shadow: 0 -6px 24px rgba(15, 23, 42, .08);
	transform: translateY(110%);
	transition: transform .25s ease;
	color: var(--bpp-text, #111827);
}
.bpp-bar.is-visible { transform: translateY(0); }
.bpp-bar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: var(--bpp-max, 1280px);
	margin: 0 auto;
}
.bpp-bar__img { flex: 0 0 auto; width: 44px !important; height: 44px !important; object-fit: cover; border-radius: 8px; background: var(--bpp-gallery-bg); }
.bpp-bar__info { flex: 1 1 auto; min-width: 0; }
.bpp-bar__name { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpp-bar__price { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpp-bar__price del { font-weight: 500; color: var(--bpp-muted); margin-right: 4px; }
.bpp-bar__price ins { text-decoration: none; color: #dc2626; }
.bpp-bar__btn {
	flex: 0 0 auto;
	min-height: 46px;
	margin: 0 !important;
	padding: 10px 22px !important;
	border: 0 !important;
	border-radius: var(--bpp-radius-sm, 8px) !important;
	background: var(--bpp-accent, #2563eb) !important;
	color: var(--bpp-accent-contrast, #fff) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: none !important;
}
.bpp-bar__btn:hover { filter: brightness(.93); }
body.bpp-bar-visible { padding-bottom: 72px; }

@media (max-width: 480px) {
	.bpp-bar__img { display: none; }
	.bpp-bar__btn { padding: 10px 16px !important; font-size: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.bpp-bar,
	.bpp-acc__icon::before,
	.bpp-acc__icon::after { transition: none; }
}

/* ==========================================================================
   Plakietki marki / kategorii (oba style)
   ========================================================================== */

.bpp-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.bpp-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: filter .15s ease, background .15s ease;
}
.bpp-badge--brand { background: var(--bpp-accent); color: var(--bpp-accent-contrast) !important; }
.bpp-badge--cat { background: color-mix(in srgb, var(--bpp-text) 7%, transparent); color: var(--bpp-muted) !important; }
a.bpp-badge--brand:hover { filter: brightness(.92); }
a.bpp-badge--cat:hover { background: color-mix(in srgb, var(--bpp-text) 12%, transparent); color: var(--bpp-text) !important; }

/* Styl klasyczny – plakietki jako delikatny tekst. */
body.bpp-style-classic .bpp-badge { padding: 0; background: none; color: var(--bpp-muted) !important; }
body.bpp-style-classic .bpp-badge + .bpp-badge::before { content: "·"; margin-right: 6px; }

/* ==========================================================================
   Panel „Karta z sekcjami”
   ========================================================================== */

body.bpp-style-sections div.product .summary {
	--bpp-pad: var(--bpp-panel-pad, 24px);
	padding: 0 !important;
	background: var(--bpp-panel-bg);
	border: 1px solid var(--bpp-border);
	border-radius: var(--bpp-radius);
	overflow: hidden;
	box-shadow: none;
}
body.bpp-style-sections.bpp-panel-card div.product .summary { border-color: transparent; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 32px rgba(15, 23, 42, .08); }

/* Treść panelu z odstępem od krawędzi; sekcje (zakup, zalety, meta, akcje) na całą szerokość. */
body.bpp-style-sections.bpp-active div.product div.summary.summary > * { margin-left: var(--bpp-pad) !important; margin-right: var(--bpp-pad) !important; }
body.bpp-style-sections.bpp-active div.product div.summary.summary > :first-child { margin-top: var(--bpp-pad) !important; }
body.bpp-style-sections.bpp-active div.product div.summary.summary > .bpp-buy,
body.bpp-style-sections.bpp-active div.product div.summary.summary > .bpp-usp,
body.bpp-style-sections.bpp-active div.product div.summary.summary > .product_meta,
body.bpp-style-sections.bpp-active div.product div.summary.summary > .bpp-actions { margin-left: 0 !important; margin-right: 0 !important; }
body.bpp-style-sections.bpp-active div.product div.summary.summary > :last-child:not(.bpp-actions):not(.bpp-buy):not(.bpp-usp):not(.product_meta) { margin-bottom: var(--bpp-pad) !important; }
body.bpp-style-sections div.product .summary > script,
body.bpp-style-sections div.product .summary > meta,
body.bpp-style-sections div.product .summary > style { display: none !important; }

/* Nagłówek panelu. */
body.bpp-style-sections .bpp-badges { margin-bottom: 12px !important; }
.bpp-ident {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0 0 8px !important;
	font-size: 12px;
	line-height: 1.5;
	color: var(--bpp-muted);
	font-variant-numeric: tabular-nums;
}
.bpp-ident__item[hidden] { display: none !important; }
.bpp-ident__item:not([hidden]) ~ .bpp-ident__item:not([hidden])::before { content: "·"; margin: 0 8px; opacity: .6; }
.bpp-ident__val { color: var(--bpp-text); font-weight: 500; letter-spacing: .01em; }

body.bpp-style-sections div.product .summary .product_title { margin-bottom: 10px !important; }
body.bpp-style-sections div.product .summary .woocommerce-product-rating { margin-bottom: 12px !important; }
body.bpp-style-sections div.product .summary > .price,
body.bpp-style-sections div.product .summary > p.price { margin: 2px 0 14px !important; }
body.bpp-style-sections div.product .summary .woocommerce-product-details__short-description {
	margin-bottom: 0 !important;
	font-size: 14.5px;
	line-height: 1.65;
	color: color-mix(in srgb, var(--bpp-text) 82%, var(--bpp-panel-bg));
}

/* SKU i kategorie są w nagłówku – nie powtarzaj ich w meta. */
body.bpp-style-sections div.product .product_meta .sku_wrapper,
body.bpp-style-sections div.product .product_meta .posted_in { display: none !important; }
body.bpp-style-sections div.product .summary .product_meta:not(:has(> :not(.sku_wrapper):not(.posted_in):not(.tagged_as))) { display: none !important; }
body.bpp-style-sections:not(.bpp-no-tags) div.product .summary .product_meta:has(> .tagged_as) { display: flex !important; }

/* ---- Sekcja zakupu ---- */

body.bpp-style-sections .bpp-buy {
	margin-top: 22px !important;
	border-top: 1px solid var(--bpp-border);
}
/* Znaczniki sekcji zakupu (przed uruchomieniem skryptu). */
.bpp-buy-end { display: none !important; }
body.bpp-style-sections.bpp-active div.product div.summary.summary > .bpp-buy-start { margin: 22px 0 0 !important; padding: 14px var(--bpp-pad); border-top: 1px solid var(--bpp-border); }
body.bpp-style-classic .bpp-buy-start { display: none; }

/* Elementy innych wtyczek w sekcji zakupu – z odstępem od krawędzi. */
body.bpp-style-sections .bpp-buy > :not(form):not(.b2bk-single):not(.bpp-avail):not(.stock):not(script):not(style) { margin-left: var(--bpp-pad) !important; margin-right: var(--bpp-pad) !important; }

/* Pusta cena (np. ukryta przez B2B) nie zostawia odstępu. */
body.bpp-active div.product .summary > p.price:empty,
body.bpp-active div.product .summary > .price:empty { display: none !important; }

/* Link do opinii – stonowany, bez podkreślenia motywu. */
body.bpp-active div.product .summary .woocommerce-product-rating .woocommerce-review-link { color: var(--bpp-muted) !important; text-decoration: none !important; font-size: 13px; }
body.bpp-active div.product .summary .woocommerce-product-rating .woocommerce-review-link:hover { color: var(--bpp-accent) !important; }

/* Dostępność, gdy nie ma formularza (np. brak na stanie) – osobny wiersz. */
body.bpp-style-sections .bpp-buy > .bpp-avail { padding: 14px var(--bpp-pad); }
body.bpp-style-sections .bpp-buy > .stock,
body.bpp-style-sections .bpp-buy .woocommerce-variation-availability { display: none !important; }
body.bpp-style-sections .bpp-buy > form.cart,
body.bpp-style-sections .bpp-buy > .b2bk-single { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }

/* Warianty i komunikaty w sekcji zakupu – z odstępem od krawędzi. */
body.bpp-style-sections.bpp-active div.product .summary .bpp-buy table.variations { padding: 18px var(--bpp-pad) 0 !important; margin: 0 0 14px !important; box-sizing: border-box; }
body.bpp-style-sections .bpp-buy .single_variation_wrap > .single_variation { padding: 0 var(--bpp-pad); }
body.bpp-style-sections .bpp-buy .single_variation_wrap .woocommerce-variation { margin-bottom: 12px; }
body.bpp-style-sections .bpp-buy .reset_variations { margin-top: 6px; }
body.bpp-style-sections .bpp-buy .b2bk-login-hint { margin: 0; padding: 14px var(--bpp-pad) 0; font-size: 13px; }
body.bpp-style-sections .bpp-buy form.variations_form .woocommerce-variation-add-to-cart { border-top: 1px solid var(--bpp-border); }

/* Siatka: [ilość | dostępność] / [przycisk | przycisk] */
body.bpp-style-sections.bpp-active div.product .summary .bpp-buy form.cart { margin: 0 !important; }
body.bpp-style-sections.bpp-active div.product .summary .bpp-buy .bpp-buy-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px !important;
	align-items: stretch;
	margin: 0 !important;
	padding: 0 var(--bpp-pad) var(--bpp-pad) !important;
	border: 0;
	background: none !important;
	flex-wrap: nowrap;
}
body.bpp-style-sections .bpp-buy .bpp-buy-grid > * { grid-column: 1 / -1; margin: 0 !important; float: none !important; width: auto !important; max-width: none !important; min-width: 0; }
body.bpp-style-sections .bpp-buy .bpp-buy-grid > .bpp-btn-half { grid-column: auto; }

.bpp-buy__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	border-bottom: 1px solid var(--bpp-border);
}
body.bpp-style-sections .bpp-buy .bpp-buy-grid > .bpp-buy__row { margin: 0 calc(var(--bpp-pad) * -1) 8px !important; }
.bpp-buy__row--single { grid-template-columns: minmax(0, 1fr); }
.bpp-buy__cell {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 76px;
	padding: 14px var(--bpp-pad);
}
.bpp-buy__cell--qty { justify-content: center; border-right: 1px solid var(--bpp-border); }
.bpp-buy__row--single .bpp-buy__cell--avail { padding-left: var(--bpp-pad); }

/* Pole ilości w komórce (WooCommerce i B2B). */
body.bpp-style-sections div.product .summary form.cart .bpp-buy__cell--qty .quantity { height: 44px !important; margin: 0 !important; }
body.bpp-style-sections div.product .summary form.cart .bpp-buy__cell--qty .quantity .qty { width: 48px !important; }
body.bpp-style-sections .bpp-buy__cell--qty .bpp-qty-btn { width: 40px; }
body.bpp-style-sections .bpp-buy__cell--qty .b2bk-single__qty {
	display: inline-flex !important;
	align-items: stretch;
	height: 44px;
	margin: 0 !important;
	border: 1px solid var(--bpp-border) !important;
	border-radius: var(--bpp-radius-sm) !important;
	background: #fff !important;
	overflow: hidden;
}
body.bpp-style-sections .bpp-buy__cell--qty .b2bk-single__qty button {
	width: 40px !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--bpp-text) !important;
	font-size: 18px !important;
	box-shadow: none !important;
}
body.bpp-style-sections .bpp-buy__cell--qty .b2bk-single__qty button:hover { background: rgba(15, 23, 42, .05) !important; }
body.bpp-style-sections .bpp-buy__cell--qty .b2bk-single__qty input {
	width: 48px !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--bpp-text);
	-moz-appearance: textfield;
}
body.bpp-style-sections .bpp-buy__cell--qty .b2bk-single__qty input::-webkit-outer-spin-button,
body.bpp-style-sections .bpp-buy__cell--qty .b2bk-single__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Dostępność. */
.bpp-avail { display: flex; align-items: center; gap: 12px; min-width: 0; --bpp-avail: #059669; }
.bpp-avail--yellow,
.bpp-avail--back { --bpp-avail: #d97706; }
.bpp-avail--red { --bpp-avail: #dc2626; }
.bpp-avail__icon {
	position: relative;
	flex: 0 0 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--bpp-avail) 12%, #fff);
	color: var(--bpp-avail);
}
.bpp-avail__icon::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bpp-avail);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--bpp-avail) 12%, #fff);
}
.bpp-avail__body { display: flex; flex-direction: column; min-width: 0; }
.bpp-avail__text { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--bpp-text); }
.bpp-avail__sub { margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--bpp-muted); }
.bpp-avail__sub[hidden] { display: none; }

/* Przyciski: główny wypełniony, drugi z obrysem – równej wysokości. */
body.bpp-style-sections .bpp-buy .bpp-buy-grid > .single_add_to_cart_button,
body.bpp-style-sections .bpp-buy .bpp-buy-grid > .b2bk-btn--primary,
body.bpp-style-sections .bpp-buy .bpp-buy-grid > .bpp-btn-secondary {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--bpp-btn-h) !important;
	height: auto !important;
	padding: 10px 16px !important;
	border-radius: var(--bpp-radius-sm) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none !important;
	cursor: pointer;
	transition: filter .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
body.bpp-style-sections:not(.bpp-btn-theme) .bpp-buy .bpp-buy-grid > .b2bk-btn--primary {
	background: var(--bpp-accent) !important;
	color: var(--bpp-accent-contrast) !important;
	border: 1px solid var(--bpp-accent) !important;
}
body.bpp-style-sections:not(.bpp-btn-theme).bpp-btn-outline .bpp-buy .bpp-buy-grid > .b2bk-btn--primary { background: transparent !important; color: var(--bpp-accent) !important; border-width: 2px !important; }
body.bpp-style-sections:not(.bpp-btn-theme).bpp-btn-soft .bpp-buy .bpp-buy-grid > .b2bk-btn--primary { background: color-mix(in srgb, var(--bpp-accent) 14%, #fff) !important; color: var(--bpp-accent) !important; border-color: transparent !important; }
body.bpp-style-sections .bpp-buy .bpp-buy-grid > .b2bk-btn--primary:hover { filter: brightness(.93); }
body.bpp-style-sections:not(.bpp-btn-theme) .bpp-buy .bpp-buy-grid > .bpp-btn-secondary {
	background: var(--bpp-panel-bg) !important;
	color: var(--bpp-text) !important;
	border: 1px solid color-mix(in srgb, var(--bpp-text) 22%, var(--bpp-panel-bg)) !important;
}
body.bpp-style-sections:not(.bpp-btn-theme) .bpp-buy .bpp-buy-grid > .bpp-btn-secondary:hover { border-color: var(--bpp-text) !important; filter: none; }
body.bpp-style-sections .bpp-buy .bpp-buy-grid > .single_add_to_cart_button { flex: none; }
body.bpp-style-sections .bpp-buy .bpp-buy-grid svg { flex: 0 0 auto; }
/* Dodatkowe linki innych wtyczek (np. lista życzeń) – wyśrodkowane pod przyciskami. */
body.bpp-style-sections .bpp-buy .bpp-buy-grid > a:not(.button):not(.bpp-btn-half):not(.b2bk-btn--primary) { justify-self: center; font-size: 13px; }

/* ---- Zalety i meta jako sekcje ---- */

body.bpp-style-sections div.product .summary > .bpp-usp {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 16px var(--bpp-pad) !important;
	border-radius: 0;
	border-top: 1px solid var(--bpp-border);
	background: color-mix(in srgb, var(--bpp-gallery-bg) 60%, var(--bpp-panel-bg));
	gap: 8px;
}
body.bpp-style-sections .bpp-usp__item { font-size: 13.5px; }
body.bpp-style-sections div.product .summary > .product_meta {
	margin: 0 !important;
	padding: 14px var(--bpp-pad) !important;
	border-top: 1px solid var(--bpp-border);
}

/* ---- Akcje: Dodaj opinię | Udostępnij ---- */

.bpp-actions {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	margin: 0 !important;
	border-top: 1px solid var(--bpp-border);
}
.bpp-action {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	margin: 0 !important;
	padding: 12px 16px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--bpp-text) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.bpp-action + .bpp-action { border-left: 1px solid var(--bpp-border) !important; }
.bpp-action svg { color: var(--bpp-muted); transition: color .15s ease; }
.bpp-action:hover { background: color-mix(in srgb, var(--bpp-text) 4%, transparent) !important; }
.bpp-action:hover svg { color: var(--bpp-accent); }
.bpp-action:focus-visible { outline: 2px solid var(--bpp-accent); outline-offset: -2px; }

/* Komunikat (np. „Link skopiowany”). */
.bpp-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 9999;
	padding: 10px 16px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
	opacity: 0;
	transform: translate(-50%, 10px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.bpp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.bpp-bar-visible .bpp-toast { bottom: 90px; }

/* Wąskie panele / telefony. */
@media (max-width: 420px) {
	.bpp-buy__cell { padding-left: 14px; padding-right: 14px; }
	.bpp-avail { gap: 10px; }
	.bpp-avail__icon { flex-basis: 34px; width: 34px; height: 34px; }
	body.bpp-style-sections .bpp-buy .bpp-buy-grid > .bpp-btn-half { font-size: 14px !important; padding-left: 10px !important; padding-right: 10px !important; }
}

/* ==========================================================================
   Galeria wtyczki
   ========================================================================== */

.bpp-gallery {
	--bpp-thumb-gap: 10px;
	--bpp-thumb-w: 76px;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	width: 100%;
}
.bpp-gallery__stage {
	position: relative;
	aspect-ratio: var(--bpp-ratio, 1 / 1);
	background: var(--bpp-gallery-bg);
	border: 1px solid color-mix(in srgb, var(--bpp-border) 70%, transparent);
	border-radius: var(--bpp-radius);
	overflow: hidden;
	isolation: isolate;
}
.bpp-gallery__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	outline: none;
}
.bpp-gallery__track::-webkit-scrollbar { display: none; }
.bpp-gallery__track:focus-visible { box-shadow: inset 0 0 0 2px var(--bpp-accent); }
.bpp-gallery__slide {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.bpp-gallery__link { display: block; width: 100%; height: 100%; cursor: default; }
.bpp-gallery--lightbox .bpp-gallery__link { cursor: zoom-in; }
.bpp-gallery__slide img,
.bpp-gallery__slide .bpp-gallery__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 4%;
	object-fit: contain;
	border-radius: 0 !important;
	box-shadow: none !important;
	transition: transform .25s ease;
	user-select: none;
	-webkit-user-drag: none;
}
.bpp-gallery--fit-cover .bpp-gallery__slide img { padding: 0; object-fit: cover; }
.bpp-gallery--zoom .bpp-gallery__slide.is-zoomed img { transform: scale(1.9); transition: transform .1s ease; }
.bpp-gallery--zoom .bpp-gallery__slide.is-zoomed .bpp-gallery__link { cursor: zoom-in; }

/* Strzałki, licznik, pełny ekran. */
.bpp-gallery__nav,
.bpp-gallery__expand {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .94) !important;
	color: #111827 !important;
	box-shadow: 0 2px 12px rgba(15, 23, 42, .14) !important;
	cursor: pointer;
	min-height: 0 !important;
	transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.bpp-gallery__nav { top: 50%; transform: translateY(-50%); opacity: 0; }
.bpp-gallery__nav--prev { left: 14px; }
.bpp-gallery__nav--next { right: 14px; }
.bpp-gallery__stage:hover .bpp-gallery__nav,
.bpp-gallery__nav:focus-visible { opacity: 1; }
.bpp-gallery__nav:hover,
.bpp-gallery__expand:hover { background: #fff !important; transform: translateY(-50%) scale(1.06); }
.bpp-gallery__expand:hover { transform: scale(1.06); }
.bpp-gallery.is-first .bpp-gallery__nav--prev,
.bpp-gallery.is-last .bpp-gallery__nav--next { opacity: 0 !important; pointer-events: none; }
.bpp-gallery__expand { top: 14px; right: 14px; width: 40px; height: 40px; }
.bpp-gallery__nav:focus-visible,
.bpp-gallery__expand:focus-visible { outline: 2px solid var(--bpp-accent); outline-offset: 2px; }
.bpp-gallery__counter {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 3;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(17, 24, 39, .62);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}
.bpp-gallery__dots { display: none; position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%); gap: 6px; pointer-events: none; }
.bpp-gallery__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(17, 24, 39, .22); transition: width .2s ease, background .2s ease; }
.bpp-gallery__dot.is-active { width: 18px; border-radius: 4px; background: var(--bpp-accent); }

@media (hover: none) {
	.bpp-gallery__nav { display: none !important; }
}

/* Miniatury – pod zdjęciem. */
.bpp-gallery__thumbs {
	display: flex;
	gap: var(--bpp-thumb-gap);
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px;
	margin: -2px;
	scrollbar-width: thin;
	scrollbar-color: var(--bpp-border) transparent;
}
.bpp-gallery__thumb {
	position: relative;
	flex: 0 0 calc((100% - (var(--bpp-thumb-cols, 5) - 1) * var(--bpp-thumb-gap)) / var(--bpp-thumb-cols, 5));
	aspect-ratio: 1 / 1;
	margin: 0 !important;
	padding: 6% !important;
	border: 1px solid var(--bpp-border) !important;
	border-radius: var(--bpp-radius-sm) !important;
	background: var(--bpp-gallery-bg) !important;
	box-shadow: none !important;
	cursor: pointer;
	overflow: hidden;
	min-height: 0 !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bpp-gallery__thumb img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; opacity: .72; transition: opacity .15s ease; margin: 0 !important; }
.bpp-gallery--fit-cover .bpp-gallery__thumb { padding: 0 !important; }
.bpp-gallery--fit-cover .bpp-gallery__thumb img { object-fit: cover; }
.bpp-gallery__thumb:hover { border-color: color-mix(in srgb, var(--bpp-text) 30%, var(--bpp-border)) !important; }
.bpp-gallery__thumb:hover img,
.bpp-gallery__thumb.is-active img { opacity: 1; }
.bpp-gallery__thumb.is-active { border-color: var(--bpp-accent) !important; box-shadow: 0 0 0 1px var(--bpp-accent) !important; }
.bpp-gallery__thumb:focus-visible { outline: 2px solid var(--bpp-accent); outline-offset: 2px; }

/* Miniatury – z lewej strony (kolumna przewijana w pionie, wysokość = wysokość zdjęcia). */
.bpp-gallery--thumbs-left.bpp-gallery--multi { grid-template-columns: var(--bpp-thumb-w) minmax(0, 1fr); }
.bpp-gallery--thumbs-left .bpp-gallery__stage { grid-column: 2; grid-row: 1; }
.bpp-gallery--thumbs-left .bpp-gallery__thumbs {
	grid-column: 1;
	grid-row: 1;
	flex-direction: column;
	height: 0;
	min-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
}
.bpp-gallery--thumbs-left .bpp-gallery__thumb { flex: 0 0 auto; width: 100%; }
body.bpp-thumbs-left.bpp-mode-layout div.product .bpp-media > .onsale { left: calc(var(--bpp-thumb-w, 76px) + 28px) !important; }

/* Pełny ekran. */
html.bpp-lightbox-open,
html.bpp-lightbox-open body { overflow: hidden !important; }
.bpp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .2s ease;
}
.bpp-lightbox.is-open { opacity: 1; }
.bpp-lightbox__backdrop { position: absolute; inset: 0; background: rgba(9, 11, 15, .92); }
.bpp-lightbox__figure {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 64px 72px;
	box-sizing: border-box;
}
.bpp-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	opacity: 0;
	transform: scale(.98);
	transition: opacity .2s ease, transform .2s ease;
}
.bpp-lightbox__img.is-loaded { opacity: 1; transform: none; }
.bpp-lightbox__close,
.bpp-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .12) !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: none !important;
	min-height: 0 !important;
	transition: background .15s ease;
}
.bpp-lightbox__close:hover,
.bpp-lightbox__nav:hover { background: rgba(255, 255, 255, .24) !important; }
.bpp-lightbox__close { top: 16px; right: 16px; }
.bpp-lightbox__nav { top: 50%; transform: translateY(-50%); }
.bpp-lightbox__nav--prev { left: 16px; }
.bpp-lightbox__nav--next { right: 16px; }
.bpp-lightbox__counter {
	position: absolute;
	left: 50%;
	bottom: 20px;
	z-index: 2;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .8);
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
	.bpp-lightbox__figure { padding: 64px 8px; }
	.bpp-lightbox__nav { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; }
	.bpp-lightbox__nav--prev { left: 12px; }
	.bpp-lightbox__nav--next { right: 12px; }
	.bpp-lightbox__counter { bottom: 22px; }
}

/* ==========================================================================
   Sekcje pod galerią: zakładki, informacje, opinie, polecane
   ========================================================================== */

/* Zakładki / akordeon / sekcje – w karcie. */
body.bpp-active div.product .woocommerce-tabs {
	box-sizing: border-box;
	background: var(--bpp-panel-bg) !important;
	border: 1px solid var(--bpp-border) !important;
	border-radius: var(--bpp-radius);
	padding: var(--bpp-panel-pad, 28px) !important;
}
body.bpp-active div.product .woocommerce-tabs .panel { font-size: 15px; line-height: 1.75; }
body.bpp-active div.product .woocommerce-tabs .panel h2 { font-size: 19px !important; font-weight: 700; letter-spacing: -.01em; margin: 0 0 16px !important; }
body.bpp-active div.product .woocommerce-tabs .panel img { max-width: 100%; height: auto; border-radius: var(--bpp-radius-sm); }
body.bpp-active div.product .woocommerce-tabs .panel ul,
body.bpp-active div.product .woocommerce-tabs .panel ol { padding-left: 1.3em; }

/* Zakładki jako przełącznik „pigułki”. */
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs {
	display: inline-flex !important;
	gap: 4px;
	max-width: 100%;
	margin: 0 0 28px !important;
	padding: 4px !important;
	border: 0 !important;
	border-bottom: 0 !important;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bpp-text) 5%, var(--bpp-panel-bg)) !important;
	width: auto !important;
}
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li a {
	padding: 9px 18px !important;
	border-radius: 999px !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li a::after { display: none !important; }
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li.active a {
	background: var(--bpp-panel-bg) !important;
	color: var(--bpp-text) !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .04) !important;
}

/* Akordeon w karcie. */
body.bpp-tabs-accordion div.product .woocommerce-tabs { padding-top: 0 !important; padding-bottom: 0 !important; }
body.bpp-tabs-accordion div.product .woocommerce-tabs.bpp-tabs-ready { border-top: 1px solid var(--bpp-border) !important; }
body.bpp-tabs-accordion .woocommerce-tabs .bpp-acc__head:last-of-type:not([aria-expanded="true"]) { border-bottom: 0 !important; }
body.bpp-tabs-accordion div.product .woocommerce-tabs.bpp-tabs-ready .panel.bpp-acc-open:last-child { border-bottom: 0 !important; }

/* Informacje dodatkowe – czytelna tabela. */
body.bpp-active div.product .woocommerce-tabs table.shop_attributes {
	width: 100%;
	margin: 0 !important;
	border: 1px solid var(--bpp-border) !important;
	border-collapse: separate !important;
	border-spacing: 0;
	border-radius: var(--bpp-radius-sm);
	overflow: hidden;
}
body.bpp-active div.product .woocommerce-tabs table.shop_attributes th,
body.bpp-active div.product .woocommerce-tabs table.shop_attributes td {
	padding: 13px 18px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--bpp-border) !important;
	text-align: left !important;
	vertical-align: top;
	font-size: 14px;
	line-height: 1.5;
}
body.bpp-active div.product .woocommerce-tabs table.shop_attributes tr:last-child th,
body.bpp-active div.product .woocommerce-tabs table.shop_attributes tr:last-child td { border-bottom: 0 !important; }
body.bpp-active div.product .woocommerce-tabs table.shop_attributes th {
	width: 40%;
	font-weight: 500 !important;
	color: var(--bpp-muted) !important;
	background: color-mix(in srgb, var(--bpp-text) 3%, var(--bpp-panel-bg)) !important;
}
body.bpp-active div.product .woocommerce-tabs table.shop_attributes td { font-weight: 500; color: var(--bpp-text); font-style: normal !important; background: var(--bpp-panel-bg) !important; }
body.bpp-active div.product .woocommerce-tabs table.shop_attributes tr:hover th,
body.bpp-active div.product .woocommerce-tabs table.shop_attributes tr:hover td { background: color-mix(in srgb, var(--bpp-accent) 4%, var(--bpp-panel-bg)) !important; }

/* Opinie. */
body.bpp-active div.product #reviews .woocommerce-Reviews-title { font-size: 19px !important; }
body.bpp-active div.product #reviews ol.commentlist {
	display: grid;
	gap: 12px;
	margin: 0 0 28px !important;
	padding: 0 !important;
	list-style: none !important;
}
body.bpp-active div.product #reviews ol.commentlist li { margin: 0 !important; padding: 0 !important; list-style: none !important; background: none !important; border: 0 !important; }
body.bpp-active div.product #reviews ol.commentlist li .comment_container {
	display: flex;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--bpp-border);
	border-radius: var(--bpp-radius-sm);
	background: var(--bpp-panel-bg);
}
body.bpp-active div.product #reviews ol.commentlist li img.avatar {
	position: static !important;
	float: none !important;
	flex: 0 0 44px;
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: none !important;
}
body.bpp-active div.product #reviews ol.commentlist li .comment-text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}
body.bpp-active div.product #reviews ol.commentlist li .comment-text .star-rating { float: right; margin: 2px 0 0 12px; font-size: 13px; }
body.bpp-active div.product #reviews ol.commentlist li .meta { margin: 0 0 6px !important; font-size: 13px !important; color: var(--bpp-muted) !important; }
body.bpp-active div.product #reviews ol.commentlist li .meta strong { color: var(--bpp-text); font-weight: 600; }
body.bpp-active div.product #reviews ol.commentlist li .description p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; }
body.bpp-active div.product #reviews ol.commentlist li .description p:last-child { margin-bottom: 0; }

body.bpp-active div.product #review_form_wrapper {
	padding: 20px 22px;
	border-radius: var(--bpp-radius-sm);
	background: color-mix(in srgb, var(--bpp-text) 3%, var(--bpp-panel-bg));
}
body.bpp-active div.product #review_form #reply-title { display: block; margin-bottom: 12px; font-size: 17px; font-weight: 700; }
body.bpp-active div.product #review_form label { font-size: 13px; font-weight: 600; }
body.bpp-active div.product #review_form input[type="text"],
body.bpp-active div.product #review_form input[type="email"],
body.bpp-active div.product #review_form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px !important;
	border: 1px solid var(--bpp-border) !important;
	border-radius: var(--bpp-radius-sm) !important;
	background: #fff !important;
	font-size: 15px;
	box-shadow: none !important;
}
body.bpp-active div.product #review_form input:focus,
body.bpp-active div.product #review_form textarea:focus { border-color: var(--bpp-accent) !important; outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bpp-accent) 18%, transparent) !important; }
body.bpp-active div.product #review_form p.stars a { color: var(--bpp-accent) !important; }
body.bpp-active div.product #review_form .form-submit input[type="submit"],
body.bpp-active div.product #review_form .form-submit button {
	min-height: 46px;
	padding: 10px 24px !important;
	border: 0 !important;
	border-radius: var(--bpp-radius-sm) !important;
	background: var(--bpp-accent) !important;
	color: var(--bpp-accent-contrast) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

/* Produkty powiązane / upsell – nagłówek z linią. */
body.bpp-active div.product .related > h2,
body.bpp-active div.product .upsells > h2,
body.bpp-active .bpp-bottom .related > h2,
body.bpp-active .bpp-bottom .upsells > h2 {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 22px !important;
}
body.bpp-active div.product .related > h2::after,
body.bpp-active div.product .upsells > h2::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--bpp-border);
}

@media (max-width: 600px) {
	body.bpp-active div.product .woocommerce-tabs table.shop_attributes th,
	body.bpp-active div.product .woocommerce-tabs table.shop_attributes td { padding: 11px 12px !important; font-size: 13.5px; }
	body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs { display: flex !important; overflow-x: auto; }
	body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li a { padding: 8px 14px !important; font-size: 13.5px; }
}


/* ==========================================================================
   Węższe szerokości
   Klasy ustawia skrypt na podstawie rzeczywistej szerokości obszaru treści
   i panelu (działa także przy pasku bocznym motywu i w kreatorach stron).
   ========================================================================== */

/* Za mało miejsca na dwie kolumny – jedna kolumna (galeria, panel, zakładki). */
.bpp-top.bpp-stack { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "media" "summary" !important; grid-template-rows: auto !important; row-gap: var(--bpp-gap) !important; }
body.bpp-tabs-beside .bpp-top.bpp-stack { grid-template-areas: "media" "summary" "details" !important; }
body.bpp-tabs-beside .bpp-top.bpp-stack .bpp-details { margin-top: calc(var(--bpp-section-gap) - var(--bpp-gap)); }
body.bpp-sticky-summary .bpp-top.bpp-stack .bpp-summary-col > .summary { position: static !important; }

/* Wąski panel (< 400 px). */
body.bpp-active div.product .summary.bpp-narrow { --bpp-pad: min(var(--bpp-panel-pad, 24px), 18px); }
body.bpp-active div.product .summary.bpp-narrow .bpp-ident { flex-direction: column; align-items: flex-start; gap: 2px; }
body.bpp-active div.product .summary.bpp-narrow .bpp-ident .bpp-ident__item.bpp-ident__item::before { display: none; content: none; }
body.bpp-active div.product .summary.bpp-narrow .bpp-buy__row { grid-template-columns: minmax(0, 1fr); }
body.bpp-active div.product .summary.bpp-narrow .bpp-buy__cell { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
body.bpp-active div.product .summary.bpp-narrow .bpp-buy__cell--qty { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--bpp-border); }
body.bpp-style-sections div.product .summary.bpp-narrow .bpp-buy .bpp-buy-grid > .bpp-btn-half { grid-column: 1 / -1; }
body.bpp-style-sections div.product .summary.bpp-narrow .bpp-buy .bpp-buy-grid > * { white-space: normal; }
body.bpp-active div.product .summary.bpp-narrow .bpp-action { gap: 6px; min-height: 48px; padding: 10px 8px !important; font-size: 13px !important; }
body.bpp-active div.product .summary.bpp-narrow .woocommerce-product-details__short-description { font-size: 14px; }

/* Bardzo wąski panel (< 300 px) – akcje jedna pod drugą. */
body.bpp-active div.product .summary.bpp-xnarrow .bpp-actions { grid-auto-flow: row; }
body.bpp-active div.product .summary.bpp-xnarrow .bpp-action + .bpp-action { border-left: 0 !important; border-top: 1px solid var(--bpp-border) !important; }

/* Długie słowa / nazwy nie rozpychają panelu. */
body.bpp-active div.product .summary { min-width: 0; overflow-wrap: anywhere; }
body.bpp-active div.product .summary .bpp-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Przełącznik zakładek zawija się do kolejnego rzędu zamiast się ucinać. */
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs { flex-wrap: wrap !important; overflow: visible !important; border-radius: 16px !important; }
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li { flex: 0 1 auto; }
body.bpp-tabs-tabs div.product .woocommerce-tabs ul.tabs li a { white-space: normal; }

/* ==========================================================================
   Galeria – ograniczona wysokość i mniejsze miniatury
   ========================================================================== */

.bpp-gallery__stage { max-height: var(--bpp-gal-h, none); }
/* Przy ograniczonej wysokości zdjęcie zostaje w całości i wyśrodkowane w karcie. */
.bpp-gallery__slide img,
.bpp-gallery__slide .bpp-gallery__img { padding: clamp(12px, 3%, 28px); }
.bpp-gallery--fit-cover .bpp-gallery__slide img { padding: 0; }

/* Miniatury pod zdjęciem – stały, umiarkowany rozmiar (maks. 80 px). */
.bpp-gallery--thumbs-bottom .bpp-gallery__thumb {
	flex: 0 0 min(80px, calc((100% - (var(--bpp-thumb-cols, 5) - 1) * var(--bpp-thumb-gap)) / var(--bpp-thumb-cols, 5)));
}
.bpp-gallery { --bpp-thumb-w: 72px; --bpp-thumb-gap: 8px; }

/* ==========================================================================
   Karuzela produktów powiązanych / upsell
   ========================================================================== */

.bpp-carousel { position: relative; --bpp-car-gap: var(--bsl-gap, 16px); }
.bpp-carousel > h2 { padding-right: 104px; }
.bpp-carousel ul.products.bpp-carousel__track,
#bsl-shop.bsl-shop ul.products.bpp-carousel__track {
	display: grid !important;
	grid-auto-flow: column !important;
	grid-template-columns: none !important;
	grid-auto-columns: calc((100% - (var(--bpp-car-n, 4) - 1) * var(--bpp-car-gap)) / var(--bpp-car-n, 4)) !important;
	gap: var(--bpp-car-gap) !important;
	width: auto !important;
	margin: -6px -4px -14px !important;
	padding: 6px 4px 14px !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 4px;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	list-style: none !important;
}
.bpp-carousel ul.products.bpp-carousel__track::-webkit-scrollbar { display: none; }
.bpp-carousel ul.products.bpp-carousel__track::before,
.bpp-carousel ul.products.bpp-carousel__track::after { display: none !important; content: none !important; }
.bpp-carousel ul.products.bpp-carousel__track > li.product,
#bsl-shop.bsl-shop ul.products.bpp-carousel__track > li.product {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	scroll-snap-align: start;
}
.bpp-carousel #bsl-shop.bsl-loop { margin-bottom: 0 !important; }

.bpp-carousel__nav {
	position: absolute;
	top: -8px;
	right: 0;
	z-index: 2;
	display: flex;
	gap: 8px;
}
.bpp-carousel.is-static .bpp-carousel__nav { display: none; }
.bpp-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--bpp-border) !important;
	border-radius: 50% !important;
	background: var(--bpp-panel-bg, #fff) !important;
	color: var(--bpp-text) !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06) !important;
	cursor: pointer;
	min-height: 0 !important;
	transition: border-color .15s ease, color .15s ease, opacity .15s ease, background .15s ease;
}
.bpp-carousel__btn:hover:not(:disabled) { border-color: var(--bpp-accent) !important; color: var(--bpp-accent) !important; }
.bpp-carousel__btn:disabled { opacity: .35; cursor: default; }
.bpp-carousel__btn:focus-visible { outline: 2px solid var(--bpp-accent); outline-offset: 2px; }
@media (hover: none) and (max-width: 600px) {
	.bpp-carousel__nav { display: none; }
	.bpp-carousel > h2 { padding-right: 0; }
}
/* Stały odstęp w miniaturze (procent liczyłby się od szerokości całego rzędu). */
.bpp-gallery__thumb { padding: 5px !important; }
.bpp-gallery--fit-cover .bpp-gallery__thumb { padding: 0 !important; }
/* Kadr na pełną szerokość kolumny – przy limicie wysokości robi się niższy, a nie węższy. */
.bpp-gallery__stage { width: 100%; }

/* ==========================================================================
   Sekcja zakupu – bez pustej przestrzeni pod przyciskami
   ========================================================================== */

/* Boks B2B Katalog ma własny margines 1.5em – zerowany niezależnie od zagnieżdżenia. */
body.bpp-style-sections div.product .summary .bpp-buy .b2bk-single { margin: 0 !important; padding: 0 !important; }
body.bpp-style-sections div.product .summary .bpp-buy > :last-child,
body.bpp-style-sections div.product .summary .bpp-buy .bpp-buy-grid > :last-child { margin-bottom: 0 !important; }
/* Odstęp pod przyciskami taki jak nad nimi. */
body.bpp-style-sections.bpp-active div.product .summary .bpp-buy .bpp-buy-grid { padding-bottom: 18px !important; }
/* Puste elementy innych wtyczek / motywu wykryte przez skrypt. */
.bpp-buy .bpp-empty { display: none !important; }

/* ==========================================================================
   Krótki opis – „Pokaż więcej”
   ========================================================================== */

.bpp-excerpt__short > :last-child,
.bpp-excerpt__full > :last-child { margin-bottom: 0 !important; }
.bpp-excerpt__short > p,
.bpp-excerpt__full > p { margin: 0 0 .6em; }
.bpp-excerpt__short[hidden],
.bpp-excerpt__full[hidden] { display: none !important; }
.bpp-excerpt__toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--bpp-accent) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	min-height: 0 !important;
	cursor: pointer;
}
.bpp-excerpt__toggle:hover .bpp-excerpt__label { text-decoration: underline; text-underline-offset: 3px; }
.bpp-excerpt__toggle:focus-visible { outline: 2px solid var(--bpp-accent); outline-offset: 3px; border-radius: 4px !important; }
.bpp-excerpt__toggle svg { transition: transform .2s ease; }
.bpp-excerpt__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.bpp-excerpt.is-open .bpp-excerpt__full { animation: bpp-fade .2s ease; }
@keyframes bpp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.bpp-excerpt.is-open .bpp-excerpt__full { animation: none; }
}

/* Przewijany panel: wygaszenie na dole, gdy w panelu jest więcej treści. */
body.bpp-sticky-summary div.product .bpp-summary-col > .summary.is-scrollable:not(.at-end)::after {
	content: "";
	position: sticky;
	bottom: 0;
	z-index: 4;
	display: block;
	flex: 0 0 36px;
	height: 36px;
	margin-top: -36px;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--bpp-panel-bg) 0%, transparent), var(--bpp-panel-bg));
	pointer-events: none;
}
/* Przewijanie zatrzymuje się w panelu tylko wtedy, gdy panel faktycznie ma co przewijać. */
body.bpp-sticky-summary div.product .bpp-summary-col > .summary.is-scrollable { overscroll-behavior-y: contain; }

/* Jedno zdjęcie (bez miniatur) – kadr na całą szerokość, także przy ustawieniu „miniatury z lewej”. */
.bpp-gallery--thumbs-left:not(.bpp-gallery--multi) { grid-template-columns: minmax(0, 1fr); }
.bpp-gallery--thumbs-left:not(.bpp-gallery--multi) .bpp-gallery__stage { grid-column: 1; grid-row: 1; }
body.bpp-thumbs-left.bpp-mode-layout div.product .bpp-media:has(.bpp-gallery:not(.bpp-gallery--multi)) > .onsale { left: 16px !important; }
