/* Native product groups: one title, one price source and the original cart form. */

.psk-shop-breadcrumbs { color: #626972; font-size: 13px; line-height: 1.5; }
.psk-shop-breadcrumbs__trail { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 0; }
.psk-shop-breadcrumbs__trail > li { display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.psk-shop-breadcrumbs__trail > li + li::before { content: ""; display: block; flex: 0 0 14px; width: 14px; height: 14px; background: #92979e; mask: url("../images/icons/breadcrumb-chevron.svg") center / contain no-repeat; }
.psk-shop-breadcrumbs a { color: inherit; text-decoration: none; }
.psk-shop-breadcrumbs a:hover { color: #242424; text-decoration: underline; text-underline-offset: 4px; }
.psk-shop-breadcrumbs a:focus-visible { outline: 2px solid currentcolor; outline-offset: 4px; border-radius: 3px; }
.psk-shop-breadcrumbs [aria-current="page"] { color: #242424; font-weight: 600; }
.psk-shop-breadcrumbs__home { display: inline-flex; align-items: center; justify-content: center; width: 24px; min-height: 24px; }
.psk-shop-breadcrumbs__home > span { display: block; width: 18px; height: 18px; background: currentcolor; mask: url("../images/icons/breadcrumb-home.svg") center / contain no-repeat; }
.psk-shop-breadcrumbs__back { display: none; }
@media (max-width: 781px) {
	.psk-shop-breadcrumbs__trail { display: none; }
	.psk-shop-breadcrumbs .psk-shop-breadcrumbs__back { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; max-width: 100%; color: #242424; font-size: 14px; font-weight: 600; }
	.psk-shop-breadcrumbs__back-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
	.psk-shop-breadcrumbs__back-icon::before { content: ""; display: block; width: 22px; height: 22px; background: currentcolor; mask: url("../images/icons/breadcrumb-back.svg") center / contain no-repeat; }
	.psk-shop-breadcrumbs__back small { display: block; margin-bottom: 2px; color: #626972; font-size: 11px; font-weight: 400; }
}

.psk-mobile-active-filters { display: none; }

.psk-product-overview {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
}

.psk-product-overview > .wp-block-group {
	margin-block: 0;
	min-width: 0;
}

.psk-product-identity > * {
	margin-block: 0 12px;
}

.psk-product-identity .wp-block-post-title {
	line-height: 1.2;
}

.psk-product-identity .wc-block-components-product-price {
	font-size: 24px;
}

.psk-product-identity [class~="woocommerce-Price-amount"] {
	font-size: inherit;
}

.psk-product-identity .woocommerce-price-suffix {
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
}

.psk-single-product .psk-product-identity .wc-block-components-product-price del {
	font-size: 14px;
}

.psk-product-purchase {
	scroll-margin-top: 80px;
}

.psk-product-purchase > * + * {
	margin-block-start: 16px;
}

.psk-single-product [class~="taxonomy-product_brand"] {
	margin-block-start: 12px;
}

.psk-single-product .wp-block-woocommerce-product-details.is-style-minimal .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
	padding: 4px;
	margin: 0 0 24px;
	border: 0;
	border-radius: 8px;
	background: #f0f1f2;
}

.psk-single-product .wp-block-woocommerce-product-details.is-style-minimal .woocommerce-tabs ul.tabs::before,
.psk-single-product .wp-block-woocommerce-product-details.is-style-minimal .woocommerce-tabs ul.tabs li::before,
.psk-single-product .wp-block-woocommerce-product-details.is-style-minimal .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.psk-single-product .wp-block-woocommerce-product-details.is-style-minimal .woocommerce-tabs ul.tabs li {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
}

.psk-single-product .wp-block-woocommerce-product-details.is-style-minimal .woocommerce-tabs ul.tabs li a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	color: #4b4b4b;
}

.psk-single-product .wp-block-woocommerce-product-details.is-style-minimal .woocommerce-tabs ul.tabs li.active a {
	background: #242424;
	color: #fff;
}

.psk-single-product .wp-block-woocommerce-product-details.is-style-minimal .woocommerce-tabs ul.tabs li a:focus-visible {
	outline: 2px solid #242424;
	outline-offset: 3px;
}

@media (min-width: 782px) {
	.psk-catalogue .psk-catalogue-sort .woocommerce-ordering { align-items: center; float: none; margin: 0; }
	.psk-catalogue-sort { align-self: center; }
}

.psk-mobile-purchase-bar,
.psk-mobile-account-links,
.wp-block-buttons.psk-mobile-entry {
	display: none;
}

.psk-site-footer__consents[hidden] {
	display: none;
}

@media (min-width: 782px) {
	.psk-product-overview {
		column-gap: var(--wp--preset--spacing--60);
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}

	.psk-product-identity {
		grid-column: 2;
		grid-row: 1;
	}

	.psk-product-visual {
		grid-column: 1;
		grid-row: 1 / 3;
	}

	.psk-product-purchase {
		grid-column: 2;
		grid-row: 2;
	}

}

@media (max-width: 781px) {
	.psk-catalogue .psk-product-grid .wc-block-product {
		column-gap: 6px;
	}

	.psk-catalogue .psk-product-grid .wp-block-post-title {
		min-height: 2lh;
		margin-bottom: 0;
	}

	.psk-catalogue .psk-product-grid .wc-block-product > .psk-product-actions {
		align-self: start;
		margin-bottom: 0;
	}

	.psk-catalogue .psk-product-grid .wc-block-components-product-price {
		font-size: clamp(12px, 3.2vw, 13px) !important;
		flex-wrap: nowrap;
		justify-content: flex-start;
		text-align: left;
		gap: 3px;
	}

	.psk-catalogue .psk-product-grid .wc-block-components-product-price:has(del) {
		grid-template-columns: max-content max-content;
		justify-content: start;
	}

	.psk-catalogue .psk-product-grid .woocommerce-price-suffix {
		font-size: 9px;
		font-weight: 400;
		white-space: nowrap;
	}

	.psk-brands__repair {
		display: flex;
		grid-column: 1 / -1;
		justify-content: center;
		flex-wrap: wrap;
		gap: 12px;
		margin-top: 6px;
	}

	.psk-site-footer .psk-site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.psk-footer-disclosure {
		border-bottom: 1px solid var(--wp--preset--color--border, #ddd);
	}

	.psk-footer-disclosure > summary {
		display: flex;
		box-sizing: border-box;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		min-height: 52px;
		padding-block: 12px;
		list-style: none;
		cursor: pointer;
	}

	.psk-footer-disclosure > summary::-webkit-details-marker {
		display: none;
	}

	.psk-footer-disclosure > summary::after {
		content: "";
		flex: 0 0 8px;
		height: 8px;
		margin-right: 4px;
		border-right: 1.5px solid currentcolor;
		border-bottom: 1.5px solid currentcolor;
		transform: rotate(45deg);
	}

	.psk-footer-disclosure[open] > summary::after {
		transform: rotate(225deg);
	}

	.psk-footer-disclosure > summary h2 {
		margin: 0;
		font-size: 18px;
		line-height: 1.3;
	}

	.psk-footer-disclosure > summary:focus-visible {
		outline: 2px solid currentcolor;
		outline-offset: 3px;
	}

	.psk-footer-disclosure__content {
		display: grid;
		gap: 16px;
		padding-bottom: 20px;
	}

	.psk-footer-newsletter-preview {
		color: var(--wp--preset--color--action-danger);
		display: block;
		margin-top: 10px;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.4;
	}

	.psk-footer-newsletter-preview small {
		color: var(--wp--preset--color--text-muted);
		display: block;
		margin-top: 6px;
		font-size: 12px;
		font-weight: 400;
		line-height: 1.4;
	}

	.psk-footer-disclosure[open] .psk-footer-newsletter-preview {
		display: none;
	}

	/* Stable first paint while the same account links are moved into the menu. */
	.psk-header-enhancing .psk-header-tools > .psk-observed-link {
		display: none;
	}

	:is(.psk-mobile-enhanced, .psk-header-enhancing .psk-shop-header) .psk-header-main {
		display: grid;
		grid-template-columns: 1fr auto;
		min-height: 80px;
		padding-block: 8px;
	}

	:is(.psk-shop-header.psk-mobile-enhanced, .psk-header-enhancing .psk-shop-header) .psk-header-logo {
		grid-column: 1;
		grid-row: 1;
		width: 94px;
	}

	:is(.psk-shop-header.psk-mobile-enhanced, .psk-header-enhancing .psk-shop-header) .psk-header-logo img {
		height: 64px;
		width: 94px;
	}

	:is(.psk-mobile-enhanced, .psk-header-enhancing .psk-shop-header) .psk-header-utilities {
		grid-column: 2;
		grid-row: 1;
	}

	:is(.psk-mobile-enhanced, .psk-header-enhancing .psk-shop-header) .psk-header-tools {
		gap: 4px;
		margin: 0 48px 0 0;
		width: auto;
	}

	:is(.psk-mobile-enhanced, .psk-header-enhancing .psk-shop-header) .psk-menu-shell > summary {
		top: 18px;
	}

	:is(.psk-mobile-enhanced, .psk-header-enhancing .psk-shop-header) .psk-menu-pinned .psk-menu-shell > summary {
		top: 6px;
	}

	:is(.psk-mobile-enhanced, .psk-header-enhancing .psk-shop-header) .psk-search-panel {
		left: 12px;
		right: 12px;
	}

	.psk-header-search input {
		font-size: 16px;
	}

	.psk-mobile-account-links:not([hidden]) {
		display: flex;
		flex-wrap: wrap;
		gap: 8px 20px;
		padding-bottom: 12px;
	}

	.psk-mobile-account-links > p {
		margin: 0;
	}

	.psk-mobile-account-links a {
		align-items: center;
		display: inline-flex;
		font-size: 15px;
		gap: 8px;
		min-height: 44px;
		width: auto;
	}

	.psk-mobile-account-links .psk-observed-count {
		position: static;
	}

	.psk-mobile-account-links .psk-observed-count[hidden] {
		display: none;
	}

	/* Start browsing before the first swipe; keep the full expandable description. */
	.psk-catalogue .psk-page-header {
		padding-block: 20px !important;
	}

	.psk-catalogue .psk-page-header h1 {
		font-size: clamp(26px, 7vw, 32px);
		margin-block: 8px 12px;
	}

	.psk-catalogue .psk-page-header p {
		font-size: 15px;
		line-height: 1.5;
	}

	.psk-catalogue .psk-catalogue-tools {
		background: transparent;
		gap: 8px;
		margin-block: 16px;
		padding: 0;
	}

	.psk-catalogue-tools .woocommerce-result-count {
		font-size: 14px;
		margin: 0;
	}

	.psk-catalogue-tools .wp-block-search {
		flex-basis: 100%;
		width: 100%;
	}

	.psk-catalogue-tools .wp-block-search__inside-wrapper {
		padding: 0;
	}

	.psk-catalogue-tools input {
		font-size: 16px;
		min-width: 0;
	}

	.psk-catalogue-tools .wp-block-search__button {
		min-height: 44px;
		padding-block: 8px;
	}

	.psk-catalogue .psk-catalogue-layout {
		gap: 12px;
		margin-block-start: 12px;
		position: relative;
	}

	.psk-catalogue .psk-catalogue-sidebar { padding-top: 70px; }
	.psk-catalogue .psk-shop-filters { display: block; }
	.psk-catalogue .psk-catalogue-results > .psk-product-grid { margin-block-start: 0; }
	.psk-catalogue .psk-shop-filters .wc-block-product-filters__open-overlay {
		position: absolute;
		box-sizing: border-box;
		width: 80px;
		top: 14px;
		left: 0;
		font-size: 13px;
		gap: 2px;
		padding: 8px 6px;
	}
	.psk-catalogue .psk-catalogue-toolbar {
		align-items: end;
		display: grid;
		grid-template-columns: minmax(92px, 1fr) minmax(0, clamp(94px, 30vw, 124px));
		gap: 0;
		margin: 0;
		position: absolute;
		top: 0;
		right: 0;
		width: calc(100% - 80px);
	}
	.psk-catalogue .psk-catalogue-toolbar .psk-catalogue-sort { width: 100%; min-width: 0; transform: translateY(14px); }
	.psk-catalogue .psk-catalogue-sort .woocommerce-ordering { margin: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
	.psk-catalogue .psk-catalogue-sort select { font-size: 13px; height: 44px; box-sizing: border-box; padding-inline: 2px; text-overflow: ellipsis; white-space: nowrap; }
	.psk-catalogue .psk-mobile-active-filters:not([hidden]) { display: block; margin: 0 0 8px; }
	.psk-catalogue .psk-mobile-active-filters > h2 { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
	.psk-mobile-active-filters .wc-block-product-filter-removable-chips { gap: 6px; }
	.psk-mobile-active-filters .wc-block-product-filter-removable-chips__label { font-size: 12px; }
	.psk-mobile-active-filters .wp-block-button__link { font-size: 12px; padding: 6px 0; background: transparent; color: #555; border: 0; text-decoration: underline; min-height: 32px; }

	.psk-catalogue-toolbar .psk-view-switch {
		flex: 0 0 auto;
		justify-self: center;
	}

	.psk-view-switch > p {
		display: none;
	}

	.psk-catalogue-toolbar .psk-catalogue-sort {
		flex: 1;
		min-width: 0;
	}

	.psk-catalogue-sort select {
		font-size: 16px;
		max-width: 100%;
		min-height: 44px;
		width: 100%;
	}

	.psk-catalogue .psk-catalogue-sort .woocommerce-ordering label {
		position: relative;
		top: 0;
		color: #666;
		font-size: 11px;
		font-weight: 400;
		height: 14px;
		line-height: 14px;
		padding-inline: 2px;
		white-space: nowrap;
	}

	.psk-single-product .psk-product-header {
		font-size: 12px;
		line-height: 1.5;
		padding-block: 12px;
	}

	.psk-single-product .psk-product-identity h1 {
		font-size: clamp(22px, 5.8vw, 28px);
	}

	.psk-product-identity .wc-block-components-product-price {
		font-size: 22px;
	}

	.psk-product-visual {
		justify-self: center;
		width: min(100%, 290px);
	}

	.psk-product-visual .psk-product-gallery {
		gap: 8px;
	}

	.psk-product-visual .wc-block-product-gallery-thumbnails {
		min-height: 52px;
	}

	.psk-product-visual .wc-block-product-gallery-thumbnails__thumbnail {
		min-width: 48px;
	}

	.psk-product-identity .wp-block-post-excerpt {
		font-size: 16px;
		line-height: 1.6;
	}

	.psk-product-purchase .qty {
		font-size: 16px;
		min-height: 48px;
	}

	.psk-product-purchase [class~="single_add_to_cart_button"] {
		min-height: 48px;
	}

	.psk-mobile-purchase-bar:not([hidden]) {
		align-items: center;
		background: var(--wp--preset--color--surface, #fff);
		border-top: 1px solid var(--wp--preset--color--border, #ddd);
		bottom: 0;
		box-shadow: 0 -4px 20px rgb(0 0 0 / 6%);
		display: flex;
		gap: 12px;
		justify-content: space-between;
		left: 0;
		padding: 10px 16px max(10px, env(safe-area-inset-bottom));
		position: fixed;
		right: 0;
		z-index: 80;
	}

	.psk-mobile-purchase-bar__price {
		font-size: 16px;
		font-weight: 700;
		line-height: 1.3;
	}

	.psk-mobile-purchase-bar a {
		align-content: center;
		background: var(--wp--preset--color--brand-primary, #c9202a);
		border-radius: 6px;
		color: #fff;
		flex-shrink: 0;
		font-size: 14px;
		font-weight: 600;
		min-height: 48px;
		padding-inline: 14px;
		text-decoration: none;
	}

	body:has(.psk-mobile-purchase-bar) {
		padding-bottom: calc(80px + env(safe-area-inset-bottom));
	}

	body:has(.c-aws-consent:not([hidden]), dialog[open], [aria-modal="true"]:not(dialog):not([hidden]):not([aria-hidden="true"]), .psk-header-search[open], input:focus, select:focus, textarea:focus) .psk-mobile-purchase-bar,
	.psk-mobile-menu-open .psk-mobile-purchase-bar {
		display: none;
	}

	.wp-block-buttons.psk-mobile-entry {
		display: flex;
		gap: 12px;
		justify-content: center;
		margin-block: 0 !important;
		padding-block: 4px;
	}

	.psk-mobile-entry .wp-block-button {
		width: auto;
	}

	.psk-mobile-entry .wp-block-button .wp-block-button__link,
	.psk-brands__repair .wp-element-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		align-content: center;
		background: #f2f3f4;
		border: 0;
		border-radius: 6px;
		box-sizing: border-box;
		color: #333;
		font-size: 13px;
		font-weight: 500;
		min-height: 40px;
		line-height: 1.35;
		padding: 6px 10px;
		text-decoration: underline;
		text-underline-offset: 4px;
	}

	.psk-mobile-entry .wp-block-button .wp-block-button__link:hover,
	.psk-brands__repair .wp-element-button:hover {
		background: #e8eaec;
		color: #171717;
	}

	.psk-brands__repair .wp-element-button {
		background: #edf5ee;
		color: #2f6f35;
		font-weight: 500;
		text-decoration: none;
	}

	.psk-brands__repair .wp-element-button:last-child {
		background: #fbeeee;
		color: #b3262e;
	}

	.psk-brands__repair .wp-element-button:hover {
		background: #dfeee1;
		color: #2f6f35;
	}

	.psk-brands__repair .wp-element-button:last-child:hover {
		background: #f7dfe0;
		color: #b3262e;
	}

	body {
		line-height: 1.5;
	}

	.psk-mobile-entry + .psk-slider {
		margin-block-start: 0;
	}

}

/* Keep regular and discounted amounts on the same bottom baseline. */
.psk-product-grid .wp-block-woocommerce-product-price {
	align-self: end;
}

.psk-product-grid .wc-block-components-product-price {
	display: grid;
	grid-template-columns: max-content max-content;
	line-height: 1.4;
}

.psk-product-grid .wc-block-components-product-price > :is(.amount, ins, .woocommerce-price-suffix) {
	grid-row: 2;
}

.psk-product-grid .wc-block-components-product-price > del {
	grid-row: 1;
}

.psk-catalogue .psk-product-grid .wc-block-components-product-price:has(del) {
	grid-template-columns: max-content max-content;
}

.psk-search-panel .wp-block-search__inside-wrapper,
.psk-catalogue-tools .wp-block-search__inside-wrapper {
	border: 0;
	box-shadow: none;
	padding: 0;
}

.psk-search-panel .wp-block-search__input,
.psk-catalogue-tools .wp-block-search__input {
	background: #f7f8fa;
	border: 1px solid #d8dde2;
	border-radius: 8px;
	box-shadow: none;
	padding: 10px 12px;
}

.psk-search-panel .wp-block-search__input:focus,
.psk-catalogue-tools .wp-block-search__input:focus {
	border-color: #737c85;
	outline: 1px solid #737c85;
	outline-offset: 2px;
	box-shadow: none;
}

/* The whole menu card is the link target, including its icon and caption. */
.psk-menu-card {
	position: relative;
}

.psk-menu-card__text a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.psk-menu-card:has(a[href*="/zglos-naprawe/"]) {
	background: var(--wp--preset--color--action-danger);
	border-radius: 10px;
	color: #fff;
	padding: 12px;
}

.psk-menu-card:has(a[href*="/zglos-naprawe/"]) :is(a, .psk-menu-description) {
	color: #fff;
}

.psk-menu-card:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--text);
	outline-offset: 3px;
}

.psk-location-fact-link {
	color: inherit;
	display: block;
	text-decoration: none;
}

.psk-location-fact-link .psk-home-fact-label {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.psk-map__directions a,
.psk-partners__actions .psk-partners__directions {
	align-items: center;
	background: #edf6ee;
	border: 0;
	border-radius: 8px;
	color: #245b32;
	display: inline-flex;
	font-weight: 600;
	gap: 8px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 14px;
	text-decoration: none;
}

.psk-map__directions a::before,
.psk-partners__actions .psk-partners__directions::before {
	background: currentcolor;
	content: "";
	flex: 0 0 20px;
	height: 20px;
	mask: url("../images/icons/route.svg") center / contain no-repeat;
	width: 20px;
}

@media (max-width: 781px) {
	.psk-catalogue .psk-page-header {
		padding-block: 8px !important;
	}

	.psk-catalogue .psk-page-header h1 {
		font-size: 25px !important;
		margin-block: 6px;
	}

	.psk-catalogue .psk-page-intro {
		margin-top: 6px;
	}

	.psk-catalogue .psk-page-intro__preview:not([hidden]) {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		margin-block: 0;
		font-size: 14px;
		line-height: 1.4;
	}

	.psk-catalogue .psk-page-intro__toggle {
		margin-top: 0;
		min-height: 36px;
		padding-block: 4px;
	}

	.c-aws-consent-reopen {
		display: flex;
		margin-inline: auto;
		width: fit-content;
	}
}
