/*
Theme Name: Craftiva
Theme URI: https://craftiva.pl
Author: Craftiva.pl
Description: Lekki motyw blokowy sklepu Craftiva.pl. Kolory i fonty z logo, ruchomy pasek informacyjny, gotowe szablony WooCommerce i pole personalizacji produktu.
Version: 1.0.14
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: craftiva
*/

/* ---------- podstawy ---------- */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: var(--wp--preset--color--zolty); color: var(--wp--preset--color--grafit); }
:focus-visible { outline: 2px solid var(--wp--preset--color--zloty); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- ruchomy pasek ---------- */
.cv-marquee {
	background: var(--wp--preset--color--grafit);
	color: #fff;
	overflow: hidden;
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .01em;
	line-height: 1;
	position: relative;
	user-select: none;
}
.cv-marquee__track {
	display: flex;
	width: max-content;
	animation: cv-marquee 38s linear infinite;
	will-change: transform;
}
.cv-marquee:hover .cv-marquee__track { animation-play-state: paused; }
.cv-marquee__group { display: flex; flex-shrink: 0; }
.cv-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	padding: .8rem 1.6rem;
	white-space: nowrap;
}
.cv-marquee__item::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 2px;
	background: var(--wp--preset--color--zolty);
	transform: rotate(45deg);
	flex-shrink: 0;
}
.cv-marquee__item strong { color: var(--wp--preset--color--zolty); font-weight: 700; }
@keyframes cv-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) {
	.cv-marquee__track { animation: none; }
	.cv-marquee__group + .cv-marquee__group { display: none; }
	.cv-marquee { overflow-x: auto; }
}

/* ---------- nagłówek ---------- */
.cv-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--wp--preset--color--linia);
}
.admin-bar .cv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cv-header { top: 0; } }
.cv-header .wp-block-site-logo img { width: auto; max-height: 46px; }
@media (max-width: 600px) { .cv-header .wp-block-site-logo img { max-height: 36px; } }
.cv-header .wp-block-navigation__container { gap: clamp(.9rem, 2vw, 2rem); }
.cv-header .wp-block-navigation-item__content { padding: .35rem 0; position: relative; }
.cv-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--wp--preset--color--zolty); transform: scaleX(0); transform-origin: left;
	transition: transform .25s ease;
}
.cv-header .wp-block-navigation-item__content:hover::after,
.cv-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
/* menu na telefonie: pełny ekran, bez przewijania w pasku */
.cv-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed; inset: 0; z-index: 100000; height: 100dvh; overflow-y: auto;
	padding: 1.25rem 1.5rem 2rem; background: #fff !important; color: var(--wp--preset--color--grafit) !important;
}
.admin-bar .cv-header .wp-block-navigation__responsive-container.is-menu-open { top: 46px; height: calc(100dvh - 46px); }
@media (min-width: 783px) { .admin-bar .cv-header .wp-block-navigation__responsive-container.is-menu-open { top: 32px; height: calc(100dvh - 32px); } }
.cv-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem !important; align-items: flex-start !important; }
.cv-header .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: flex-start !important; }
.cv-header .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--linia); }
.cv-header .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; font-size: 1.35rem !important; font-weight: 500; padding: 1rem 0 !important; }
.cv-header .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.cv-header .wp-block-navigation__responsive-container-close { top: 1.25rem !important; right: 1.25rem !important; }
.cv-header .wp-block-navigation__responsive-container-close svg,
.cv-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.cv-header .wc-block-mini-cart__button,
.cv-header .wp-block-woocommerce-customer-account a { color: var(--wp--preset--color--grafit); }
.cv-header .wc-block-mini-cart__badge { background: var(--wp--preset--color--zolty) !important; color: var(--wp--preset--color--grafit) !important; font-weight: 700; }
.cv-icons { gap: .25rem !important; }

/* ---------- przyciski ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.wp-block-button__link:active { transform: translateY(1px); }
.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--grafit);
	border: 2px solid var(--wp--preset--color--grafit);
	padding: calc(.9rem - 2px) calc(1.6rem - 2px);
}
.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--grafit); color: #fff; }
.cv-ciemne .is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; }
.cv-ciemne .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--grafit); }

/* ---------- baner ---------- */
.cv-hero { position: relative; overflow: hidden; }
.cv-hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(600px 300px at 85% 20%, rgba(255,196,46,.35), transparent 70%),
		radial-gradient(500px 300px at 10% 100%, rgba(255,196,46,.18), transparent 70%);
	pointer-events: none;
}
.cv-hero > * { position: relative; }
.cv-etykieta {
	display: inline-block;
	background: var(--wp--preset--color--bialy);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: 999px;
	padding: .35rem .9rem;
	font-size: .82rem;
	font-weight: 500;
}
.cv-hero-art { margin: 0 auto !important; max-width: 520px; }
.cv-hero-art img { display: block; width: 100%; height: auto; }

/* ---------- zalety ---------- */
.cv-zalety { gap: 1rem !important; }
.cv-zaleta {
	background: var(--wp--preset--color--bialy);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: 18px;
	padding: 1.25rem 1.35rem !important;
	display: flex; gap: .9rem; align-items: flex-start;
}
.cv-zaleta p { margin: 0; }
.cv-zaleta .cv-ikona { flex: 0 0 44px; margin: 0 !important; }
.cv-zaleta .cv-ikona img { display: block; width: 44px; height: 44px; }

/* ---------- karty produktów (Product Collection) ---------- */
.wc-block-product-template { gap: clamp(.75rem, 2vw, 1.5rem) !important; }
.wc-block-product-template .wc-block-product,
.cv-karta {
	background: var(--wp--preset--color--bialy);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: 18px;
	overflow: hidden;
	padding: 0 0 1rem !important;
	display: flex !important;
	flex-direction: column;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.wc-block-product-template .wc-block-product:hover {
	box-shadow: 0 2px 4px rgba(30,26,43,.05), 0 14px 32px rgba(30,26,43,.09);
	transform: translateY(-3px);
	border-color: transparent;
}
.wc-block-product-template .wc-block-components-product-image { margin: 0 0 .85rem !important; background: var(--wp--preset--color--kremowy); }
.wc-block-product-template .wc-block-components-product-image img { aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.wc-block-product-template .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }
.wc-block-product-template .wp-block-post-title {
	padding-inline: 1rem; margin: 0 0 .35rem !important;
	font-size: .975rem !important; font-weight: 500; line-height: 1.35;
	text-align: left !important;
}
.wc-block-product-template .wp-block-post-title a { text-decoration: none; }
.wc-block-product-template .wp-block-woocommerce-product-price .wc-block-components-product-price { padding: 0 !important; margin: 0 !important; }
.wc-block-product-template .wp-block-woocommerce-product-price {
	padding-inline: 1rem; margin: 0 0 .75rem !important; text-align: left !important;
	font-weight: 700; font-size: 1.05rem !important;
}
.wc-block-components-product-price del { color: var(--wp--preset--color--szary); font-weight: 400; font-size: .9em; }
.wc-block-components-product-price ins { text-decoration: none; }
.wc-block-product-template .wp-block-woocommerce-product-button { margin-top: auto !important; padding: 0 1rem !important; text-align: left !important; box-sizing: border-box; width: 100%; }
.wc-block-product-template .wp-block-woocommerce-product-button > * { width: 100%; box-sizing: border-box; }
.wc-block-product-template .wp-block-woocommerce-product-button .wp-block-button__link,
.wc-block-product-template .wc-block-components-product-button__button {
	width: 100%; font-size: .9rem !important; padding: .7rem 1rem !important;
	background: var(--wp--preset--color--jasny) !important; color: var(--wp--preset--color--grafit) !important;
	border-radius: 999px !important; font-weight: 500;
}
.wc-block-product-template .wc-block-components-product-button__button:hover { background: var(--wp--preset--color--zolty) !important; }
.wc-block-components-product-sale-badge,
.wc-block-components-product-image .wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--zolty) !important; color: var(--wp--preset--color--grafit) !important;
	border: 0 !important; border-radius: 999px !important; font-size: .75rem !important; font-weight: 700 !important;
	padding: .3rem .7rem !important; text-transform: none !important; margin: .6rem !important;
}
.wc-block-product-template .cv-od { padding-inline: 1rem; margin: -.4rem 0 .75rem !important; font-size: .8rem; color: var(--wp--preset--color--szary); }

.wc-block-product-template__responsive.columns-4 { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
@media (max-width: 1000px) { .wc-block-product-template__responsive.columns-4 { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
@media (max-width: 600px) {
	.wc-block-product-template.is-flex-container.columns-4 > li,
	.wc-block-product-template.is-flex-container.columns-3 > li,
	.wc-block-product-template__responsive.columns-4,
	.wc-block-product-template__responsive.columns-3 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
	.wc-block-product-template .wp-block-post-title { font-size: .875rem !important; padding-inline: .75rem; }
	.wc-block-product-template .wp-block-woocommerce-product-price,
	.wc-block-product-template .wp-block-woocommerce-product-button { padding-inline: .75rem; }
	.wc-block-product-template .wc-block-components-product-button__button { font-size: .8rem !important; padding: .6rem .5rem !important; }
}

/* ---------- kategorie ---------- */
.cv-kategoria {
	border-radius: 22px; overflow: hidden; position: relative;
	min-height: 220px; transition: transform .25s ease, box-shadow .25s ease;
}
.cv-kategoria:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(30,26,43,.1); }
.cv-kategoria h3 a { text-decoration: none; }
.cv-kategoria h3 a::after { content: ""; position: absolute; inset: 0; }
.cv-kategoria .cv-strzalka {
	position: absolute; right: 1.25rem; bottom: 1.25rem;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--wp--preset--color--grafit); color: #fff;
	display: grid; place-items: center; font-size: 1.1rem; transition: transform .25s ease;
}
.cv-kategoria:hover .cv-strzalka { transform: translateX(4px); }
.cv-kategoria.cv-ciemne .cv-strzalka { background: var(--wp--preset--color--zolty); color: var(--wp--preset--color--grafit); }

/* ---------- kroki ---------- */
.cv-krok { position: relative; padding-top: .25rem; }
.cv-krok .cv-nr {
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--wp--preset--color--zolty); font-weight: 700;
	display: grid; place-items: center; margin-bottom: .75rem !important;
}

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; font-weight: 500; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; background: var(--wp--preset--color--jasny);
	display: grid; place-items: center; font-weight: 700; transition: transform .2s ease;
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > *:not(summary) { margin-top: .6rem; color: var(--wp--preset--color--szary); }

/* ---------- sekcje ---------- */
.cv-ciemne { color: #fff; }
.cv-ciemne h2, .cv-ciemne h3, .cv-ciemne a:not(.wp-element-button) { color: #fff; }
.cv-zaokr { border-radius: 28px; }
.cv-szary-tekst { color: var(--wp--preset--color--szary); }

/* ---------- stopka ---------- */
.cv-stopka a { color: rgba(255,255,255,.82); text-decoration: none; }
.cv-stopka a:hover { color: var(--wp--preset--color--zolty); }
.cv-stopka .cv-stopka-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .925rem; }
.cv-stopka .cv-maly { color: rgba(255,255,255,.6); font-size: .82rem; }

/* ---------- strona produktu ---------- */
.cv-produkt .wp-block-woocommerce-product-image-gallery,
.cv-produkt .woocommerce-product-gallery { border-radius: 22px; overflow: hidden; background: var(--wp--preset--color--kremowy); }
.cv-produkt .woocommerce-product-gallery__image img,
.cv-produkt .woocommerce-product-gallery .woocommerce-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.cv-produkt .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.cv-produkt .flex-control-thumbs { display: flex; gap: .5rem; padding: .5rem !important; margin: 0 !important; list-style: none; }
.cv-produkt .flex-control-thumbs li { width: 72px !important; }
.cv-produkt .flex-control-thumbs img { border-radius: 10px; opacity: .6; cursor: pointer; }
.cv-produkt .flex-control-thumbs img.flex-active { opacity: 1; }
.cv-produkt .wp-block-post-title { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.cv-produkt .wc-block-components-product-price { font-size: 1.6rem !important; font-weight: 700; }
.cv-produkt .woocommerce-product-details__short-description ul { padding-left: 1.1rem; }
.cv-produkt .woocommerce-product-details__short-description li { margin-bottom: .3rem; }
.cv-produkt form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; margin-top: 1rem; }
.cv-produkt form.cart .cv-pola { flex-basis: 100%; }
.cv-produkt form.cart .quantity { display: flex; }
.cv-produkt form.cart .quantity input.qty {
	width: 5rem; height: 100%; min-height: 52px; text-align: center;
	border: 1px solid var(--wp--preset--color--linia); border-radius: 999px; font: inherit; font-weight: 500;
}
.cv-produkt form.cart .single_add_to_cart_button {
	flex: 1; min-height: 52px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--wp--preset--color--zolty); color: var(--wp--preset--color--grafit);
	font: inherit; font-weight: 700; padding: .9rem 1.6rem;
}
.cv-produkt form.cart .single_add_to_cart_button:hover { background: var(--wp--preset--color--grafit); color: #fff; }
.cv-info-lista { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.cv-info-lista li { display: flex; gap: .6rem; align-items: flex-start; }
.cv-info-lista li::before {
	content: ""; flex: 0 0 18px; height: 18px; margin-top: .2rem; border-radius: 50%;
	background: var(--wp--preset--color--zolty) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231E1A2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.cv-produkt .wp-block-woocommerce-product-details .wc-tabs,
.cv-produkt .woocommerce-tabs ul.tabs { display: flex; gap: .5rem; padding: 0 !important; margin: 0 0 1.5rem !important; list-style: none; border-bottom: 1px solid var(--wp--preset--color--linia); flex-wrap: wrap; }
.cv-produkt .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.cv-produkt .woocommerce-tabs ul.tabs li::before, .cv-produkt .woocommerce-tabs ul.tabs li::after { display: none !important; }
.cv-produkt .woocommerce-tabs ul.tabs li a { display: block; padding: .75rem 1rem !important; text-decoration: none; font-weight: 500; color: var(--wp--preset--color--szary); border-bottom: 2px solid transparent; }
.cv-produkt .woocommerce-tabs ul.tabs li.active a { color: var(--wp--preset--color--grafit); border-color: var(--wp--preset--color--zolty); }
.cv-produkt .woocommerce-Tabs-panel { max-width: 760px; }
.cv-produkt .woocommerce-Tabs-panel h2:first-child { display: none; }
.cv-produkt table.woocommerce-product-attributes { border-collapse: collapse; width: 100%; }
.cv-produkt table.woocommerce-product-attributes th,
.cv-produkt table.woocommerce-product-attributes td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--wp--preset--color--linia); }

/* pola personalizacji */
.cv-pola { display: grid; gap: 1rem; margin: .5rem 0 .25rem; }
.cv-pole label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .4rem; }
.cv-pole label .cv-wym { color: #c0392b; }
.cv-pole input[type=text], .cv-pole textarea, .cv-pole select {
	width: 100%; font: inherit; padding: .8rem 1rem; border-radius: 14px;
	border: 1px solid var(--wp--preset--color--linia); background: #fff; box-sizing: border-box;
}
.cv-pole input:focus, .cv-pole textarea:focus, .cv-pole select:focus { outline: none; border-color: var(--wp--preset--color--zloty); box-shadow: 0 0 0 3px rgba(255,196,46,.3); }
.cv-pole .cv-podpowiedz { font-size: .8rem; color: var(--wp--preset--color--szary); margin: .35rem 0 0; }
.cv-kolory { display: flex; flex-wrap: wrap; gap: .5rem; }
.cv-kolory input { position: absolute; opacity: 0; pointer-events: none; }
.cv-kolory label {
	margin: 0; cursor: pointer; padding: .5rem .95rem; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--linia); font-weight: 400; font-size: .9rem;
	transition: border-color .15s ease, background-color .15s ease;
}
.cv-kolory input:checked + label { border-color: var(--wp--preset--color--grafit); background: var(--wp--preset--color--jasny); font-weight: 500; }
.cv-kolory input:focus-visible + label { outline: 2px solid var(--wp--preset--color--zloty); outline-offset: 2px; }
.cv-uwaga {
	background: var(--wp--preset--color--jasny); border-radius: 14px; padding: .85rem 1rem; font-size: .88rem; margin: 0;
}

/* ---------- komunikaty WooCommerce ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: 14px !important;
}

/* ---------- formularz kontaktu i drobne ---------- */
.cv-kontakt-kafel {
	background: var(--wp--preset--color--kremowy); border-radius: 18px; padding: 1.25rem 1.4rem !important;
}
.cv-kontakt-kafel a { font-weight: 700; text-decoration: none; }

/* ---------- animacja wejścia ---------- */
@media (prefers-reduced-motion: no-preference) {
	.cv-wjazd { animation: cv-wjazd .7s cubic-bezier(.2,.7,.2,1) both; }
	.cv-wjazd.d1 { animation-delay: .08s; }
	.cv-wjazd.d2 { animation-delay: .16s; }
	@keyframes cv-wjazd { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 781px) {
	.cv-hero-art { max-width: 300px; }
	.cv-hero .wp-block-buttons { gap: .6rem; }
}

/* dane personalizacji w koszyku (klasyczny koszyk) */
dl.variation { margin: .4rem 0 0; font-size: .875rem; display: grid; grid-template-columns: auto 1fr; gap: .15rem .4rem; }
dl.variation dt { font-weight: 500; margin: 0; }
dl.variation dd { margin: 0; color: var(--wp--preset--color--szary); }
dl.variation dd p { margin: 0; }
.woocommerce-cart-form, .cart-collaterals, .woocommerce-checkout { max-width: 1240px; margin-inline: auto; }

/* sortowanie i licznik */
.woocommerce-ordering select, .wc-block-catalog-sorting select, .wp-block-woocommerce-catalog-sorting select {
	font: inherit; font-size: .875rem; padding: .55rem 2.2rem .55rem 1rem; border: 1px solid var(--wp--preset--color--linia);
	border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231E1A2B' stroke-width='2'/%3E%3C/svg%3E") right .8rem center/14px no-repeat;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.woocommerce-ordering { margin: 0; }
.woocommerce-result-count { margin: 0; color: var(--wp--preset--color--szary); }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { color: var(--wp--preset--color--szary); }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a { color: var(--wp--preset--color--szary); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--wp--preset--color--grafit); }
.cv-produkt .wp-block-woocommerce-product-image-gallery { max-width: none !important; width: 100%; }

/* przesyłanie logo */
.cv-plik input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cv-plik__strefa {
	display: flex !important; align-items: center; gap: .9rem; cursor: pointer; margin: 0 !important;
	border: 2px dashed var(--wp--preset--color--linia); border-radius: 14px; padding: 1rem 1.1rem;
	background: #fff; transition: border-color .15s ease, background-color .15s ease; font-weight: 400 !important;
}
.cv-plik__strefa::before {
	content: ""; flex: 0 0 40px; height: 40px; border-radius: 10px;
	background: var(--wp--preset--color--jasny) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1A2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5'/%3E%3Cpath d='M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E") center/20px no-repeat;
}
.cv-plik__strefa:hover, .cv-plik input:focus-visible + .cv-plik__tekst { border-color: var(--wp--preset--color--zloty); }
.cv-plik__strefa.ma-plik { border-style: solid; border-color: var(--wp--preset--color--zolty); background: var(--wp--preset--color--jasny); }
.cv-plik__tekst { display: grid; gap: .1rem; min-width: 0; }
.cv-plik__tekst strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-plik__tekst span { font-size: .8rem; color: var(--wp--preset--color--szary); }
.cv-plik:focus-within .cv-plik__strefa { border-color: var(--wp--preset--color--zloty); box-shadow: 0 0 0 3px rgba(255,196,46,.3); }
.woocommerce-cart main > .wp-block-post-title,
.woocommerce-checkout main > .wp-block-post-title,
.woocommerce-account main > .wp-block-post-title { max-width: 1240px !important; margin-left: auto !important; margin-right: auto !important; }

/* kasa: osoba prywatna / firma */
.cv-fv-pole { display: none; }
.cv-typ-klienta .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.cv-typ-klienta input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.cv-typ-klienta label.radio {
	display: inline-block !important; margin: 0 !important; cursor: pointer; padding: .6rem 1.1rem; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--linia); background: #fff; font-weight: 400;
}
.cv-typ-klienta input[type=radio]:checked + label.radio { border-color: var(--wp--preset--color--grafit); background: var(--wp--preset--color--jasny); font-weight: 500; }
.cv-typ-klienta input[type=radio]:focus-visible + label.radio { outline: 2px solid var(--wp--preset--color--zloty); outline-offset: 2px; }
.cv-typ-klienta .required, .cv-typ-klienta .optional { display: none; }
.cv-typ-klienta > label { font-weight: 500; }

/* pasek darmowej dostawy */
.cv-dostawa { background: var(--wp--preset--color--jasny); border-radius: 14px; padding: .85rem 1rem; margin: 0 0 1.25rem; }
.cv-dostawa__tekst { margin: 0 0 .5rem; font-size: .92rem; }
.cv-dostawa__pasek { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.cv-dostawa__pasek span { display: block; height: 100%; border-radius: 999px; background: var(--wp--preset--color--zolty); transition: width .4s ease; }
.cv-dostawa.jest-darmowa .cv-dostawa__pasek span { background: var(--wp--preset--color--zloty); }
.cv-dostawa-wiersz td { padding: .75rem 0 !important; border: 0 !important; }
.cv-dostawa-wiersz .cv-dostawa { margin: 0; }
.cv-dostawa-slot { max-width: 1240px; margin-inline: auto; }

/* ---------- kasa: płatności ---------- */
.woocommerce-checkout #payment { background: transparent !important; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods {
	list-style: none; margin: 0 0 1.25rem !important; padding: 0 !important; border: 0 !important; display: grid; gap: .75rem;
}
.woocommerce-checkout #payment ul.payment_methods::before, .woocommerce-checkout #payment ul.payment_methods::after { display: none !important; }
.woocommerce-checkout #payment li.wc_payment_method {
	position: relative; margin: 0 !important; padding: 0 !important; background: #fff;
	border: 1.5px solid var(--wp--preset--color--linia); border-radius: 16px; overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce-checkout #payment li.wc_payment_method:has(> input:checked) {
	border-color: var(--wp--preset--color--grafit); box-shadow: 0 0 0 3px rgba(255,196,46,.45);
}
.woocommerce-checkout #payment li.wc_payment_method > input.input-radio {
	position: absolute; left: 1.15rem; top: 1.35rem; margin: 0 !important; width: 20px; height: 20px; accent-color: var(--wp--preset--color--grafit);
}
.woocommerce-checkout #payment li.wc_payment_method > label {
	display: flex !important; align-items: center; gap: .6rem; flex-wrap: wrap; cursor: pointer; margin: 0 !important;
	padding: 1.1rem 1.15rem 1.1rem 3.2rem !important; font-weight: 500; font-size: 1.05rem; line-height: 1.3;
}
.woocommerce-checkout #payment li.wc_payment_method > label img { max-height: 26px; width: auto; margin: 0 !important; float: none !important; }
.woocommerce-checkout #payment li.wc_payment_method > label .wc-stripe-payment-method-icons,
.woocommerce-checkout #payment li.wc_payment_method > label .payment-method-icons { margin-left: auto; }
.woocommerce-checkout #payment div.payment_box {
	margin: 0 !important; padding: 0 1.15rem 1.15rem !important; background: transparent !important; color: inherit; font-size: .92rem;
}
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
.woocommerce-checkout #payment div.payment_box fieldset { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.woocommerce-checkout #payment div.payment_box p:last-child { margin-bottom: 0; color: var(--wp--preset--color--szary); }

/* BLIK: duże pole na 6 cyfr */
.payment_method_stripe_blik #wc-stripe-blik-code_field { margin: 0 0 .6rem !important; padding: 0 !important; }
.payment_method_stripe_blik #wc-stripe-blik-code_field label { font-weight: 500; font-size: .9rem; margin-bottom: .4rem; display: block; }
.payment_method_stripe_blik #wc-stripe-blik-code {
	width: 100%; max-width: 280px; box-sizing: border-box; font: inherit; font-size: 1.6rem; font-weight: 700;
	letter-spacing: .35em; text-align: center; padding: .7rem .8rem; border-radius: 14px;
	border: 1.5px solid var(--wp--preset--color--linia); background: var(--wp--preset--color--kremowy);
}
.payment_method_stripe_blik #wc-stripe-blik-code:focus { outline: none; border-color: var(--wp--preset--color--zloty); box-shadow: 0 0 0 3px rgba(255,196,46,.35); background: #fff; }
.payment_method_stripe_blik #wc-stripe-blik-code::placeholder { color: #c9c3b6; letter-spacing: .35em; }

/* zgody i przycisk */
.woocommerce-checkout #payment .place-order { padding: 0 !important; margin: 0 !important; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { font-size: .85rem; color: var(--wp--preset--color--szary); }
.woocommerce-checkout #place_order {
	width: 100%; float: none !important; min-height: 58px; border-radius: 999px !important; font-size: 1.1rem !important; font-weight: 700 !important;
	background: var(--wp--preset--color--zolty) !important; color: var(--wp--preset--color--grafit) !important; margin-top: .75rem;
}
.woocommerce-checkout #place_order:hover { background: var(--wp--preset--color--grafit) !important; color: #fff !important; }

/* Apple Pay / Google Pay na górze kasy */
#wc-stripe-express-checkout-element { margin-bottom: .5rem; }
#wc-stripe-express-checkout-button-separator { color: var(--wp--preset--color--szary); font-size: .85rem; margin: .5rem 0 1rem !important; }

/* Apple Pay / Google Pay na liście płatności */
.cv-portfel-box { max-height: 0; overflow: hidden; opacity: 0; transition: opacity .2s ease; }
body.cv-portfel-wybrany .cv-portfel-box { max-height: none; overflow: visible; opacity: 1; margin-top: 1rem; }
body.cv-portfel-wybrany #place_order,
body.cv-portfel-wybrany .woocommerce-terms-and-conditions-wrapper { display: none !important; }
.cv-portfel-info { font-size: .85rem; color: var(--wp--preset--color--szary); margin: 0 0 .6rem; }
.cv-portfel-box #wc-stripe-express-checkout-element { margin: 0 !important; }
.cv-portfel-logo {
	display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: .2rem .55rem; border-radius: 6px;
	border: 1px solid #1E1A2B; font-size: .85rem; font-weight: 600; line-height: 1.2;
}
.cv-portfel-logo.cv-apple { background: #000; color: #fff; border-color: #000; }
.cv-portfel-logo svg { width: 12px; height: 14px; margin-right: 1px; }
.woocommerce-checkout #payment li.payment_method_cv_portfel > label { display: flex !important; }
/* bez napisu "LUB" nad formularzem kasy (Apple Pay / Google Pay są na liście płatności) */
.woocommerce-checkout #wc-stripe-express-checkout-button-separator { display: none !important; }

/* polecany zestaw na karcie produktu */
.cv-zestaw {
	display: block; margin-top: 1.25rem; text-decoration: none !important; color: inherit;
	border: 2px solid var(--wp--preset--color--zolty); border-radius: 18px; overflow: hidden; background: #fff;
	transition: box-shadow .2s ease, transform .2s ease;
}
.cv-zestaw:hover { box-shadow: 0 10px 24px rgba(30,26,43,.1); transform: translateY(-2px); }
.cv-zestaw__etykieta {
	display: block; background: var(--wp--preset--color--zolty); color: var(--wp--preset--color--grafit);
	font-weight: 700; font-size: .85rem; padding: .45rem 1rem;
}
.cv-zestaw__wnetrze { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; }
.cv-zestaw__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--wp--preset--color--kremowy); flex: 0 0 64px; }
.cv-zestaw__tekst { display: grid; gap: .15rem; min-width: 0; }
.cv-zestaw__tekst strong { font-weight: 500; line-height: 1.3; }
.cv-zestaw__cena { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.cv-zestaw__cena del { color: var(--wp--preset--color--szary); font-size: .95rem; }
.cv-zestaw__cena ins { text-decoration: none; font-weight: 700; font-size: 1.2rem; color: #C0392B; }
.cv-zestaw__btn {
	margin-left: auto; white-space: nowrap; font-weight: 500; font-size: .9rem; padding: .55rem .95rem;
	border-radius: 999px; background: var(--wp--preset--color--grafit); color: #fff;
}
@media (max-width: 520px) {
	.cv-zestaw__wnetrze { flex-wrap: wrap; }
	.cv-zestaw__btn { margin-left: 0; width: 100%; text-align: center; }
}

/* cena promocyjna: przekreślona stara, nowa wyróżniona */
.cv-produkt .wc-block-components-product-price del, .cv-produkt p.price del { color: var(--wp--preset--color--szary); font-weight: 400; font-size: .7em; margin-right: .4rem; }
.cv-produkt .wc-block-components-product-price ins, .cv-produkt p.price ins { text-decoration: none; color: #C0392B; }
.wc-block-product-template .wc-block-components-product-price ins { color: #C0392B; }
.cv-produkt .wp-block-woocommerce-product-image-gallery { position: relative; }
.cv-produkt span.onsale {
	position: absolute !important; top: 1rem !important; left: 1rem !important; right: auto !important; z-index: 5; margin: 0 !important; min-width: 0 !important; min-height: 0 !important;
	background: #C0392B; color: #fff; border-radius: 999px; padding: .4rem .95rem; font-weight: 700; font-size: .85rem; line-height: 1.2;
}
.wc-block-components-product-sale-badge,
.wc-block-components-product-image .wc-block-components-product-sale-badge { background: #C0392B !important; color: #fff !important; }
.cv-produkt .wp-block-columns > .wp-block-column:first-child { position: relative; }
/* ramka zestawu: żółty pasek od krawędzi do krawędzi */
.cv-produkt a.cv-zestaw { padding: 0 !important; }
.cv-produkt .cv-zestaw__etykieta { margin: 0 !important; width: 100%; box-sizing: border-box; }

/* Znaczek "Promocja" w lewym dolnym rogu zdjęcia, żeby nie zasłaniał napisów na górze grafiki. */
.wc-block-components-product-image .wc-block-components-product-sale-badge,
.wc-block-components-product-image .wc-block-components-product-sale-badge--align-left {
	top: auto !important; bottom: 0 !important; left: 0 !important; right: auto !important;
}
.cv-produkt span.onsale { top: auto !important; bottom: 1rem !important; }
