/* PS Beton – nový košík a pokladna (v1.14.0)
   Vše pod body.psb-kosik. Logika WooCommerce se nemění, jen vzhled a rozložení. */

body.psb-kosik {
	--psbk-blue: #103B87;
	--psbk-blue-dark: #0A2454;
	--psbk-blue-tint: #E8EDF7;
	--psbk-blue-soft: #F5F7FB;
	--psbk-yellow: #F5B400;
	--psbk-ink: #0F1E33;
	--psbk-text: #3A4350;
	--psbk-muted: #55606B;
	--psbk-line: #E2E0DB;
	--psbk-line-soft: #ECEAE5;
	--psbk-field: #C9D3DF;
	--psbk-ground: #F6F5F2;
	--psbk-red: #B42318;
	--psbk-green: #1F6F43;
	--psbk-green-tint: #EAF7EF;
}
body.psb-kosik .woocommerce,
body.psb-kosik .woocommerce button,
body.psb-kosik .woocommerce input,
body.psb-kosik .woocommerce select,
body.psb-kosik .woocommerce textarea,
body.psb-kosik .single-title { font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; }
body.psb-kosik .woocommerce { color: var(--psbk-ink); font-size: 16px; line-height: 1.5; }
body.psb-kosik .single-title,
body.psb-kosik h1.page-title {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--psbk-ink);
	margin: 4px 0 16px;
}

/* ---------- Kroky ---------- */
.psb-k-steps {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--psbk-muted);
}
.psb-k-steps li { display: flex; align-items: center; gap: 8px; margin: 0; }
.psb-k-steps__n {
	width: 28px;
	height: 28px;
	flex: none;
	border: 2px solid #C4CAD3;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	box-sizing: border-box;
}
.psb-k-steps li.is-current { color: var(--psbk-blue); }
.psb-k-steps li.is-current .psb-k-steps__n { background: var(--psbk-blue); border-color: var(--psbk-blue); color: #FFFFFF; }
.psb-k-steps li.is-done { color: var(--psbk-green); }
.psb-k-steps li.is-done .psb-k-steps__n { background: var(--psbk-green-tint); border-color: #2E9E5B; }
.psb-k-steps li.is-done a { color: inherit; }

/* ---------- Doprava zdarma ---------- */
body.psb-kosik--free .wpify-woo-free-shipping-notice__wrapper { display: none !important; }
.psb-k-free {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 20px;
	padding: 16px 20px;
	border: 1px solid var(--psbk-line);
	border-radius: 14px;
	background: #FFFFFF;
}
.psb-k-free__ico {
	width: 48px;
	height: 48px;
	flex: none;
	border-radius: 12px;
	background: var(--psbk-blue-tint);
	color: var(--psbk-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}
.psb-k-free__body { flex: 1 1 280px; min-width: 0; }
.psb-k-free__miss { color: var(--psbk-blue-dark); }
.psb-k-free__bar { height: 10px; margin-top: 8px; border-radius: 6px; background: #ECEAE5; overflow: hidden; }
.psb-k-free__bar span { display: block; height: 100%; border-radius: 6px; background: var(--psbk-blue); }
.psb-k-free__num { font-size: 14px; color: var(--psbk-muted); white-space: nowrap; }
.psb-k-free.is-done { background: var(--psbk-green-tint); border-color: #A8D9BA; color: #14532D; }
.psb-k-free.is-done .psb-k-free__ico { background: #FFFFFF; color: var(--psbk-green); }
.psb-k-free.is-done strong { display: block; font-size: 17px; }

/* =========================================================
   KOŠÍK
   ========================================================= */
@media (min-width: 992px) {
	body.psb-kosik--cart .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 360px;
		grid-auto-flow: row dense;
		gap: 0 24px;
		align-items: start;
	}
	body.psb-kosik--cart .woocommerce > * { grid-column: 1 / -1; }
	body.psb-kosik--cart .woocommerce > form.woocommerce-cart-form { grid-column: 1; }
	body.psb-kosik--cart .woocommerce > .cart-collaterals { display: contents; }
	body.psb-kosik--cart .cart-collaterals .cart_totals { grid-column: 2; position: sticky; top: 16px; }
	body.psb-kosik--cart .cart-collaterals .cross-sells { grid-column: 1 / -1; order: 10; }
	/* Clearfix pseudo-prvky šablony by v mřížce zabraly vlastní řádek. */
	body.psb-kosik--cart .woocommerce::before,
	body.psb-kosik--cart .woocommerce::after,
	body.psb-kosik--cart .cart-collaterals::before,
	body.psb-kosik--cart .cart-collaterals::after { display: none !important; }
}
body.psb-kosik--cart .cart-collaterals .cart_totals,
body.psb-kosik--cart .cart-collaterals .cross-sells { float: none !important; width: auto !important; }

/* tabulka položek → karty */
body.psb-kosik--cart form.woocommerce-cart-form {
	background: #FFFFFF;
	border: 1px solid var(--psbk-line);
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 24px;
}
body.psb-kosik--cart table.shop_table.cart {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0;
	border-collapse: collapse;
}
body.psb-kosik--cart table.shop_table.cart thead { display: none; }
body.psb-kosik--cart table.shop_table.cart tbody { display: block; }
body.psb-kosik--cart table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto 120px 44px;
	grid-template-areas:
		"thumb name qty subtotal remove"
		"thumb name qty price remove";
	align-items: center;
	gap: 0 20px;
	padding: 18px 20px;
	border-top: 1px solid var(--psbk-line-soft);
}
body.psb-kosik--cart table.shop_table.cart tr.cart_item:first-child { border-top: 0; }
body.psb-kosik--cart table.shop_table.cart tr.cart_item td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	text-align: left !important;
}
body.psb-kosik--cart table.shop_table.cart tr.cart_item td::before { display: none !important; }
body.psb-kosik--cart td.product-thumbnail { grid-area: thumb; }
body.psb-kosik--cart td.product-thumbnail a {
	display: flex;
	width: 96px;
	height: 96px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--psbk-line-soft);
	border-radius: 12px;
	background: #FFFFFF;
	overflow: hidden;
}
body.psb-kosik--cart td.product-thumbnail img {
	width: 90% !important;
	height: 90% !important;
	max-width: none;
	object-fit: contain;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
body.psb-kosik--cart td.product-name { grid-area: name; min-width: 0; }
body.psb-kosik--cart td.product-name > br { display: none; }
body.psb-kosik--cart td.product-name > a {
	display: block;
	margin-bottom: 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--psbk-ink);
	text-decoration: none;
}
body.psb-kosik--cart td.product-name > a:hover { color: var(--psbk-blue-dark); }

/* skladovost (Woo Custom Stock Status) */
body.psb-kosik .woocommerce td.product-name p.stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0 !important;
	font-family: Roboto, system-ui, sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.35;
}
body.psb-kosik .woocommerce td.product-name p.stock::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* varianty jako štítky */
body.psb-kosik .woocommerce td.product-name dl.variation {
	display: flex;
	flex-wrap: wrap;
	margin: 6px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.6;
}
body.psb-kosik .woocommerce td.product-name dl.variation dt {
	float: none;
	margin: 0 0 6px;
	padding: 1px 0 1px 10px;
	border: 1px solid var(--psbk-line);
	border-right: 0;
	border-radius: 6px 0 0 6px;
	background: var(--psbk-ground);
	font-weight: 500;
	color: var(--psbk-muted);
}
body.psb-kosik .woocommerce td.product-name dl.variation dd {
	float: none;
	margin: 0 6px 6px 0;
	padding: 1px 10px 1px 4px;
	border: 1px solid var(--psbk-line);
	border-left: 0;
	border-radius: 0 6px 6px 0;
	background: var(--psbk-ground);
	font-weight: 700;
	color: var(--psbk-ink);
}
body.psb-kosik .woocommerce td.product-name dl.variation dd p { margin: 0; display: inline; }

body.psb-kosik--cart td.product-quantity { grid-area: qty; }
body.psb-kosik--cart td.product-subtotal { grid-area: subtotal; text-align: right !important; font-size: 18px; font-weight: 800; }
body.psb-kosik--cart td.product-price { grid-area: price; text-align: right !important; font-size: 12px; color: #6F737A; }
body.psb-kosik--cart td.product-price .amount::after { content: " / ks"; }
body.psb-kosik--cart td.product-remove { grid-area: remove; }
body.psb-kosik--cart td.product-remove a.remove {
	display: flex !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 10px !important;
	font-size: 0 !important;
	color: transparent !important;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236F737A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M6 6l1 14h10l1-14'/%3E%3C/svg%3E") center / 20px no-repeat !important;
}
body.psb-kosik--cart td.product-remove a.remove:hover {
	background-color: #FEF3F2 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M6 6l1 14h10l1-14'/%3E%3C/svg%3E") !important;
}

/* množství − / + */
body.psb-kosik .woocommerce .quantity.psb-k-qty {
	display: inline-flex;
	align-items: stretch;
	height: 44px;
	margin: 0;
	border: 1px solid var(--psbk-line);
	border-radius: 10px;
	overflow: hidden;
	background: #FFFFFF;
}
body.psb-kosik .woocommerce .quantity .qty {
	width: 52px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #FFFFFF;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	color: var(--psbk-ink);
	box-shadow: none !important;
	-moz-appearance: textfield;
}
body.psb-kosik .woocommerce .quantity.psb-k-qty .qty { border-left: 1px solid var(--psbk-line-soft) !important; border-right: 1px solid var(--psbk-line-soft) !important; }
body.psb-kosik .woocommerce .quantity .qty::-webkit-outer-spin-button,
body.psb-kosik .woocommerce .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.psb-kosik .woocommerce .psb-k-qty__btn {
	width: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #FFFFFF;
	color: var(--psbk-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
body.psb-kosik .woocommerce .psb-k-qty__btn:hover { background: var(--psbk-ground); }

/* spodní řádek tabulky: pokračovat, kupon, aktualizovat */
body.psb-kosik--cart table.shop_table.cart tr:not(.cart_item) { display: block; border-top: 1px solid var(--psbk-line-soft); }
body.psb-kosik--cart table.shop_table.cart td.actions {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px !important;
	border: 0 !important;
	background: none !important;
	text-align: left !important;
}
body.psb-kosik--cart td.actions .psb-k-continue { font-weight: 600; color: var(--psbk-blue-dark); text-decoration: none; }
body.psb-kosik--cart td.actions .psb-k-continue:hover { color: var(--psbk-blue); }
body.psb-kosik--cart td.actions .coupon { display: flex !important; gap: 8px; margin: 0 0 0 auto; float: none !important; }
body.psb-kosik--cart td.actions .coupon.is-hidden,
body.psb-kosik--cart td.actions .psb-k-coupon-toggle.is-hidden { display: none !important; }
body.psb-kosik--cart td.actions .coupon input.input-text {
	width: 180px !important;
	height: 44px;
	padding: 0 12px !important;
	border: 1px solid var(--psbk-field) !important;
	border-radius: 10px !important;
	font-size: 15px;
}
body.psb-kosik--cart td.actions .coupon .button {
	height: 44px;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--psbk-ink) !important;
	color: #FFFFFF !important;
	font-weight: 700 !important;
	text-transform: none !important;
}
body.psb-kosik--cart td.actions .psb-k-coupon-toggle {
	margin-left: auto;
	padding: 8px 0;
	border: 0;
	background: none;
	font-weight: 600;
	color: var(--psbk-blue-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
/* tlačítko Aktualizovat košík – skryté, klikne na něj skript po změně množství */
body.psb-kosik--cart td.actions > button[name="update_cart"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	border: 0 !important;
}

/* souhrn */
body.psb-kosik--cart .cart_totals {
	padding: 24px;
	border: 1px solid var(--psbk-line);
	border-radius: 16px;
	background: #FFFFFF;
	margin-bottom: 24px;
}
body.psb-kosik--cart .cart_totals > h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--psbk-ink); text-transform: none; }
body.psb-kosik .woocommerce .cart_totals table.shop_table { margin: 0; border: 0 !important; border-radius: 0; }
body.psb-kosik .woocommerce .cart_totals table.shop_table tr { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--psbk-line-soft); }
body.psb-kosik .woocommerce .cart_totals table.shop_table tr:first-child { border-top: 0; }
body.psb-kosik .woocommerce .cart_totals table.shop_table th,
body.psb-kosik .woocommerce .cart_totals table.shop_table td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-size: 15px;
	font-weight: 400;
	color: var(--psbk-text);
}
body.psb-kosik .woocommerce .cart_totals table.shop_table td { text-align: right; font-weight: 700; color: var(--psbk-ink); }
body.psb-kosik .woocommerce .cart_totals table.shop_table td::before { display: none !important; }
body.psb-kosik .woocommerce .cart_totals table.shop_table th { text-align: left !important; }
body.psb-kosik .woocommerce .cart_totals tr.order-total { align-items: baseline; padding-top: 12px; }
body.psb-kosik .woocommerce .cart_totals tr.order-total th { font-size: 17px; font-weight: 700; color: var(--psbk-ink); }
body.psb-kosik .woocommerce .cart_totals tr.order-total td strong { font-size: 26px; font-weight: 800; }
body.psb-kosik .woocommerce .cart_totals tr.order-total td small { display: block; font-size: 12px; font-weight: 400; color: #6F737A; }
body.psb-kosik .woocommerce .cart_totals ul#shipping_method { margin: 0; padding: 0; list-style: none; text-align: right; }
body.psb-kosik .woocommerce .cart_totals ul#shipping_method li { margin: 0 0 4px; font-weight: 500; }
body.psb-kosik .woocommerce .cart_totals .woocommerce-shipping-destination,
body.psb-kosik .woocommerce .cart_totals .woocommerce-shipping-calculator { font-size: 13px; font-weight: 400; color: var(--psbk-muted); }
body.psb-kosik--cart .wc-proceed-to-checkout { padding: 16px 0 0 !important; }
body.psb-kosik--cart .wc-proceed-to-checkout a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	margin: 0 0 12px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--psbk-blue) !important;
	color: #FFFFFF !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	text-transform: none !important;
	box-shadow: none !important;
}
body.psb-kosik--cart .wc-proceed-to-checkout a.checkout-button::after { content: "→"; font-size: 20px; line-height: 1; }
body.psb-kosik--cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--psbk-blue-dark) !important; }

.psb-k-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 4px; font-size: 13px; color: var(--psbk-muted); text-align: center; }
.psb-k-secure .psb-icon { color: var(--psbk-green); }
.psb-k-trust { margin: 12px 0 0; padding: 14px 0 0; border-top: 1px solid var(--psbk-line-soft); list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--psbk-text); }
.psb-k-trust li { display: flex; align-items: center; gap: 10px; margin: 0; }
.psb-k-trust li > span:first-child { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--psbk-blue-tint); color: var(--psbk-blue); display: flex; align-items: center; justify-content: center; }
.psb-k-trust a { font-weight: 600; color: var(--psbk-blue-dark); text-decoration: none; }

/* doporučení */
body.psb-kosik--cart .cross-sells > h2 { margin: 8px 0 12px; font-size: 20px; font-weight: 800; color: var(--psbk-ink); text-transform: none; text-align: left; }
body.psb-kosik--cart .cross-sells ul.products {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
	gap: 12px !important;
	margin: 0 0 24px !important;
	padding: 0 !important;
}
body.psb-kosik--cart .cross-sells ul.products::before,
body.psb-kosik--cart .cross-sells ul.products::after { display: none !important; }
/* Karta má vnitřní odsazení z psb-cards.css – tady se jen zmenšuje. */
body.psb-kosik--cart .cross-sells ul.products > li.product {
	width: auto !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	min-width: 0;
}
body.psb-kosik--cart .cross-sells ul.products > li.product img {
	height: 140px !important;
	object-fit: contain;
}
body.psb-kosik--cart .cross-sells ul.products > li.product .woocommerce-loop-product__title { font-size: 14px !important; line-height: 1.3 !important; }
body.psb-kosik--cart .cross-sells ul.products > li.product .price { font-size: 16px !important; }
body.psb-kosik--cart .cross-sells ul.products > li.product .variable-items-wrapper,
body.psb-kosik--cart .cross-sells ul.products > li.product .wvs-archive-variations-wrapper { display: none !important; }
body.psb-kosik--cart .cross-sells ul.products > li.product a.button,
body.psb-kosik--cart .cross-sells ul.products > li.product .button {
	width: auto !important;
	min-height: 38px !important;
	margin: 10px 12px 12px !important;
	padding: 6px 8px !important;
	font-size: 13px !important;
}
@media (max-width: 1199px) {
	body.psb-kosik--cart .cross-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* prázdný košík */
body.psb-kosik--cart .cart-empty.woocommerce-info {
	padding: 20px 24px !important;
	border: 1px solid var(--psbk-line) !important;
	border-radius: 14px;
	background: #FFFFFF !important;
	color: var(--psbk-ink) !important;
	font-size: 18px;
	font-weight: 700;
}
body.psb-kosik--cart .cart-empty.woocommerce-info::before { display: none; }
body.psb-kosik--cart .return-to-shop .button {
	display: inline-flex !important;
	align-items: center;
	min-height: 48px;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--psbk-blue) !important;
	color: #FFFFFF !important;
	font-weight: 700 !important;
	text-transform: none !important;
}
.psb-k-empty-cart .psb-home { background: transparent; }
.psb-k-empty-cart .psb-wrap { padding: 0; }

/* =========================================================
   POKLADNA
   ========================================================= */

/* zjednodušená hlavička */
body.psb-kosik--simple .main-menu,
body.psb-kosik--simple .site-header .search-heading,
body.psb-kosik--simple .site-header .header-right,
body.psb-kosik--simple .middle-cart { display: none !important; }
.psb-k-co-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-left: auto; font-family: Roboto, system-ui, sans-serif; font-size: 14px; color: var(--psbk-text, #3A4350); }
.psb-k-co-head a { font-weight: 700; color: var(--psbk-blue-dark, #0A2454); text-decoration: none; }
.psb-k-co-head__lock { display: inline-flex; align-items: center; gap: 6px; }
.psb-k-co-head__lock .psb-icon { color: var(--psbk-green, #1F6F43); }

/* upozornění a kupon nad formulářem */
body.psb-kosik--checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.psb-kosik--checkout .woocommerce > .woocommerce-info {
	margin: 0 0 12px;
	padding: 12px 16px !important;
	border: 1px solid var(--psbk-line) !important;
	border-radius: 12px;
	background: #FFFFFF !important;
	color: var(--psbk-text) !important;
	font-size: 15px;
}
body.psb-kosik--checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
body.psb-kosik--checkout .woocommerce-form-coupon-toggle a { font-weight: 600; color: var(--psbk-blue-dark); }
body.psb-kosik--checkout form.checkout_coupon {
	margin: 0 0 16px !important;
	padding: 16px !important;
	border: 1px solid var(--psbk-line) !important;
	border-radius: 12px !important;
	background: #FFFFFF;
}

/* rozložení */
@media (min-width: 992px) {
	body.psb-kosik--checkout form.checkout.psb-k-co-form {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: 0 24px;
		align-items: start;
	}
	body.psb-kosik--checkout form.checkout.psb-k-co-form > * { grid-column: 1; }
	body.psb-kosik--checkout form.checkout.psb-k-co-form > #order_review {
		grid-column: 2;
		grid-row: 1 / span 3;
		position: sticky;
		top: 16px;
	}
}
body.psb-kosik--checkout form.checkout::before,
body.psb-kosik--checkout form.checkout::after,
body.psb-kosik--checkout #customer_details::before,
body.psb-kosik--checkout #customer_details::after { display: none !important; }
body.psb-kosik--checkout #customer_details {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: auto !important;
	float: none !important;
	margin-bottom: 24px;
}
body.psb-kosik--checkout #customer_details > .col-1,
body.psb-kosik--checkout #customer_details > .col-2 { float: none !important; width: auto !important; max-width: none !important; }
body.psb-kosik--checkout #order_review_heading { display: none; }

/* bloky */
body.psb-kosik--checkout .psb-k-co-box,
body.psb-kosik--checkout #customer_details > .col-1,
body.psb-kosik--checkout #customer_details > .col-2 {
	padding: 22px 24px;
	border: 1px solid var(--psbk-line);
	border-radius: 16px;
	background: #FFFFFF;
}
body.psb-kosik--checkout .psb-k-co-box.is-empty { display: none; }
body.psb-kosik--checkout .psb-k-co-title,
body.psb-kosik--checkout .woocommerce-billing-fields > h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px !important;
	font-family: Roboto, system-ui, sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: var(--psbk-ink);
	text-transform: none;
	letter-spacing: 0;
}
.psb-k-co-num {
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 8px;
	background: var(--psbk-blue-tint);
	color: var(--psbk-blue);
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* doprava a platba jako dlaždice */
body.psb-kosik--checkout .psb-k-co-slot ul#shipping_method,
body.psb-kosik--checkout .psb-k-co-slot ul.wc_payment_methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none;
	text-align: left;
}
body.psb-kosik--checkout .psb-k-co-slot ul#shipping_method li,
body.psb-kosik--checkout .psb-k-co-slot ul.wc_payment_methods li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 12px;
	margin: 0 !important;
	padding: 12px 16px !important;
	min-height: 60px;
	border: 1px solid var(--psbk-line);
	border-radius: 12px;
	background: #FFFFFF;
	line-height: 1.4 !important;
	box-sizing: border-box;
	cursor: pointer;
}
body.psb-kosik--checkout .psb-k-co-slot ul#shipping_method li.is-on,
body.psb-kosik--checkout .psb-k-co-slot ul.wc_payment_methods li.is-on {
	border: 2px solid var(--psbk-blue);
	padding: 11px 15px !important;
	background: var(--psbk-blue-soft);
}
body.psb-kosik--checkout .psb-k-co-slot input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0 !important;
	flex: none;
	accent-color: var(--psbk-blue);
}
body.psb-kosik--checkout .psb-k-co-slot ul#shipping_method li label,
body.psb-kosik--checkout .psb-k-co-slot ul.wc_payment_methods li > label {
	display: flex !important;
	flex: 1 1 200px;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 !important;
	padding: 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--psbk-ink);
	cursor: pointer;
}
body.psb-kosik--checkout .psb-k-co-slot ul#shipping_method li label .amount { margin-left: auto; font-weight: 700; }
body.psb-kosik--checkout .psb-k-co-slot ul#shipping_method li label img,
body.psb-kosik--checkout .psb-k-co-slot ul.wc_payment_methods li > label img {
	max-height: 26px;
	width: auto;
	margin: 0 !important;
	float: none !important;
	vertical-align: middle;
}
body.psb-kosik--checkout .psb-k-co-slot ul.wc_payment_methods li .payment_box {
	flex: 1 1 100%;
	margin: 8px 0 4px !important;
	padding: 12px 14px !important;
	border-radius: 10px;
	background: var(--psbk-ground) !important;
	color: var(--psbk-text) !important;
	font-size: 14px;
}
body.psb-kosik--checkout .psb-k-co-slot ul.wc_payment_methods li .payment_box::before { display: none !important; }
body.psb-kosik--checkout .psb-k-co-slot ul.wc_payment_methods li .payment_box p:last-child { margin-bottom: 0; }

/* Zásilkovna – výběr výdejního místa */
body.psb-kosik--checkout table.psb-k-co-extra { width: 100%; margin: 12px 0 0; border: 0; border-collapse: collapse; }
body.psb-kosik--checkout table.psb-k-co-extra tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0; border: 0; }
body.psb-kosik--checkout table.psb-k-co-extra tr + tr { margin-top: 8px; }
body.psb-kosik--checkout table.psb-k-co-extra th,
body.psb-kosik--checkout table.psb-k-co-extra td { display: block; padding: 0 !important; border: 0 !important; background: none !important; font-size: 15px; text-align: left; }
body.psb-kosik--checkout table.psb-k-co-extra td::before { display: none !important; }
body.psb-kosik--checkout table.psb-k-co-extra .zas-tlac2,
body.psb-kosik--checkout table.psb-k-co-extra .zas-tlac,
body.psb-kosik--checkout table.psb-k-co-extra .packeta-selector-open {
	align-items: center;
	justify-content: center;
	box-sizing: border-box !important;
	height: 44px !important;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 18px !important;
	line-height: 40px !important;
	vertical-align: middle;
	border: 2px solid var(--psbk-blue) !important;
	border-radius: 10px !important;
	background: #FFFFFF !important;
	color: var(--psbk-blue-dark) !important;
	font-weight: 700 !important;
	text-transform: none !important;
	text-decoration: none !important;
}
body.psb-kosik--checkout table.psb-k-co-extra .zas-tlac2:hover,
body.psb-kosik--checkout table.psb-k-co-extra .zas-tlac:hover { background: var(--psbk-blue-tint) !important; }

/* pole formuláře */
body.psb-kosik--checkout .woocommerce-billing-fields__field-wrapper,
body.psb-kosik--checkout .woocommerce-shipping-fields__field-wrapper,
body.psb-kosik--checkout .woocommerce-additional-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 16px;
}
body.psb-kosik--checkout .woocommerce form .form-row,
body.psb-kosik--checkout form.checkout .form-row {
	flex: 1 1 100%;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.psb-kosik--checkout form.checkout .form-row-first,
body.psb-kosik--checkout form.checkout .form-row-last { flex: 1 1 calc(50% - 8px); min-width: 200px; }
body.psb-kosik--checkout #billing_email_field { order: -2; flex: 1 1 calc(50% - 8px); min-width: 200px; }
body.psb-kosik--checkout #billing_phone_field { order: -1; flex: 1 1 calc(50% - 8px); min-width: 200px; }
body.psb-kosik--checkout form.checkout .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--psbk-ink);
}
body.psb-kosik--checkout form.checkout .form-row label.checkbox,
body.psb-kosik--checkout form.checkout .form-row .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500;
	font-size: 15px;
	cursor: pointer;
}
body.psb-kosik--checkout form.checkout .form-row label .required { color: var(--psbk-red); text-decoration: none; border: 0; }
body.psb-kosik--checkout form.checkout input.input-text,
body.psb-kosik--checkout form.checkout textarea,
body.psb-kosik--checkout form.checkout select {
	width: 100%;
	min-height: 48px;
	padding-top: 10px !important;
	padding-right: 14px !important;
	padding-bottom: 10px !important;
	border: 1px solid var(--psbk-field) !important;
	border-radius: 10px !important;
	background: #FFFFFF !important;
	font-size: 16px !important;
	line-height: 1.4;
	color: var(--psbk-ink) !important;
	box-shadow: none !important;
	box-sizing: border-box;
}
body.psb-kosik--checkout form.checkout textarea { min-height: 96px; }
/* Levé odsazení nechat na poli s předvolbou (vlajka + kód státu), jinak se číslo překrývá. */
body.psb-kosik--checkout form.checkout input.input-text:not(.iti input):not([class*="iti__tel"]),
body.psb-kosik--checkout form.checkout textarea,
body.psb-kosik--checkout form.checkout select { padding-left: 14px !important; }
body.psb-kosik--checkout form.checkout .iti { display: block; width: 100%; }
body.psb-kosik--checkout form.checkout .iti input.input-text { padding-left: 96px; }
body.psb-kosik--checkout form.checkout .iti .iti__flag-container,
body.psb-kosik--checkout form.checkout .iti .iti__country-container { border-radius: 10px 0 0 10px; }
body.psb-kosik--checkout form.checkout input.input-text:focus,
body.psb-kosik--checkout form.checkout textarea:focus { border-color: var(--psbk-blue) !important; outline: 3px solid rgba(0, 116, 189, .18); outline-offset: 0; }
body.psb-kosik--checkout form.checkout input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0 !important; flex: none; accent-color: var(--psbk-blue); }
body.psb-kosik--checkout form.checkout .select2-container .select2-selection--single {
	height: 48px;
	border: 1px solid var(--psbk-field);
	border-radius: 10px;
}
body.psb-kosik--checkout form.checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; font-size: 16px; color: var(--psbk-ink); }
body.psb-kosik--checkout form.checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
body.psb-kosik--checkout form.checkout .woocommerce-invalid input.input-text,
body.psb-kosik--checkout form.checkout .woocommerce-invalid select { border-color: var(--psbk-red) !important; }
body.psb-kosik--checkout form.checkout .woocommerce-validated input.input-text { border-color: #7FBF98 !important; }
body.psb-kosik--checkout #ship-to-different-address { margin: 0 !important; font-size: 16px; font-weight: 600; }
body.psb-kosik--checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
body.psb-kosik--checkout .woocommerce-shipping-fields .shipping_address { margin-top: 14px; }
body.psb-kosik--checkout .woocommerce-additional-fields > h3 { margin: 16px 0 10px; font-size: 16px; font-weight: 700; }

/* souhrn objednávky */
body.psb-kosik--checkout #order_review {
	padding: 22px 24px;
	border: 1px solid var(--psbk-line);
	border-radius: 16px;
	background: #FFFFFF;
	float: none !important;
	width: auto !important;
}
body.psb-kosik--checkout #order_review::before {
	content: "Vaše objednávka";
	display: block;
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 800;
	color: var(--psbk-ink);
}
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table { width: 100%; margin: 0 0 8px !important; border: 0 !important; border-radius: 0; border-collapse: collapse; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table thead { display: none; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table tr { border: 0; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table th,
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td {
	padding: 8px 0 !important;
	border: 0 !important;
	border-top: 1px solid var(--psbk-line-soft) !important;
	background: none !important;
	font-size: 15px;
	font-weight: 400;
	vertical-align: middle;
	color: var(--psbk-text);
}
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table tbody tr:first-child td { border-top: 0 !important; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table tfoot th { padding-right: 12px !important; text-align: left; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td:last-child,
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table tfoot td { text-align: right; font-weight: 700; color: var(--psbk-ink); white-space: nowrap; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name { font-size: 14px; line-height: 1.35; color: var(--psbk-ink); padding-right: 10px !important; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name .ts-product-image,
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name > img {
	float: left;
	width: 56px !important;
	height: 56px !important;
	margin: 0 12px 4px 0 !important;
	padding: 3px;
	border: 1px solid var(--psbk-line-soft);
	border-radius: 10px;
	background: #FFFFFF;
	box-sizing: border-box;
	overflow: hidden;
}
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name .ts-product-image img,
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name > img { object-fit: contain; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name .ts-product-image img {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0;
	border: 0;
}
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name .product-quantity { font-weight: 700; color: var(--psbk-muted); }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name p.stock { display: none; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table td.product-name dl.variation { font-size: 12px; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total th { font-size: 17px; font-weight: 700; color: var(--psbk-ink); }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total td strong { font-size: 26px; font-weight: 800; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total td small { display: block; font-size: 12px; font-weight: 400; color: #6F737A; }
body.psb-kosik--checkout table.woocommerce-checkout-review-order-table tr.psb-k-moved td { font-weight: 600; white-space: normal; }

/* platba v souhrnu: zůstávají souhlasy a tlačítko */
body.psb-kosik--checkout #order_review #payment { background: transparent !important; border-radius: 0; }
body.psb-kosik--checkout #order_review #payment .form-row.place-order { margin: 0 !important; padding: 8px 0 0 !important; }
body.psb-kosik--checkout #order_review #payment .form-row.place-order label.checkbox,
body.psb-kosik--checkout #order_review #payment .woocommerce-form__label-for-checkbox { font-size: 14px; font-weight: 500; color: var(--psbk-text); }
body.psb-kosik--checkout #order_review #payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 8px; font-size: 14px; }
body.psb-kosik--checkout #order_review #payment .woocommerce-privacy-policy-text p { font-size: 12px; color: #6F737A; }
body.psb-kosik--checkout #place_order {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 58px;
	margin: 14px 0 0 !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--psbk-blue) !important;
	color: #FFFFFF !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	text-transform: none !important;
	float: none !important;
	box-shadow: none !important;
}
body.psb-kosik--checkout #place_order:hover { background: var(--psbk-blue-dark) !important; }
.psb-k-submit-note { margin: 8px 0 0; font-size: 12px; color: #6F737A; text-align: center; }

/* chybová hlášení */
body.psb-kosik .woocommerce-error,
body.psb-kosik .woocommerce-message {
	border-radius: 12px;
	font-size: 15px;
}

/* =================== Mobil a tablet =================== */
@media (max-width: 991px) {
	body.psb-kosik--checkout #order_review { margin-top: 8px; }
}
@media (max-width: 767px) {
	body.psb-kosik .single-title { font-size: 26px; }
	body.psb-kosik--cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb name remove"
			"thumb qty subtotal"
			"thumb qty price";
		gap: 6px 12px;
		padding: 14px;
	}
	body.psb-kosik--cart td.product-thumbnail a { width: 72px; height: 72px; }
	body.psb-kosik--cart td.product-subtotal { font-size: 16px; }
	body.psb-kosik--cart td.actions .coupon { margin: 0; width: 100%; }
	body.psb-kosik--cart td.actions .coupon input.input-text { flex: 1; width: auto !important; min-width: 0; }
	body.psb-kosik--cart .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.psb-k-free__num { display: none; }
	body.psb-kosik--checkout .psb-k-co-box,
	body.psb-kosik--checkout #customer_details > .col-1,
	body.psb-kosik--checkout #customer_details > .col-2,
	body.psb-kosik--checkout #order_review { padding: 16px; }
	.psb-k-co-head span:first-child { display: none; }
}

/* =========================================================
   PS Beton – doplňky pro šablonu Envo a modrou hlavičku
   ========================================================= */

/* Hlášky šablony („Hmotnost vašeho košíku…“, „Vracející se zákazník?“, „Máte kupon?“) */
body.psb-kosik .woocommerce-info,
body.psb-kosik .woocommerce-message {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 14px !important;
	padding: 12px 16px !important;
	border: 1px solid var(--psbk-line) !important;
	border-radius: 12px !important;
	background: var(--psbk-blue-soft) !important;
	color: var(--psbk-text) !important;
	font-size: 14px !important;
	line-height: 1.45;
	box-shadow: none !important;
}
body.psb-kosik .woocommerce-info::before,
body.psb-kosik .woocommerce-message::before { display: none !important; }
body.psb-kosik .woocommerce-info a,
body.psb-kosik .woocommerce-message a:not(.button) { color: var(--psbk-blue) !important; font-weight: 700; text-decoration: underline; }
body.psb-kosik .woocommerce-message a.button { order: 2; margin-left: auto !important; }
body.psb-kosik .woocommerce-form-login-toggle,
body.psb-kosik .woocommerce-form-coupon-toggle { grid-column: 1 / -1; }
body.psb-kosik--cart .cart-empty.woocommerce-info { font-size: 18px !important; }

/* Zjednodušená hlavička v modré hlavičce */
body.psb-menu--header .psb-k-co-head { color: rgba(255, 255, 255, .85); }
body.psb-menu--header .psb-k-co-head a { color: var(--psbk-yellow, #F5B400); }
body.psb-menu--header .psb-k-co-head__lock .psb-icon { color: var(--psbk-yellow, #F5B400); }
body.psb-kosik--simple .psb-hdr-cta,
body.psb-kosik--simple #mega-menu-wrap-main_menu,
body.psb-kosik--simple .psb-mm-bar { display: none !important; }

/* Doporučené produkty v kartách PS Beton */
body.psb-kosik--cart .cross-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
body.psb-kosik--cart .cross-sells .psb-pcard__media { height: 170px; }
@media (max-width: 767px) {
	body.psb-kosik--cart .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Prázdný košík – dlaždice kategorií */
.psb-k-empty-cart .psb-home.psb-sec { padding-top: 24px; padding-bottom: 8px; }
.psb-k-empty-cart .psb-wrap { padding-left: 0; padding-right: 0; }

/* Odkazy v pokladně: žlutá šablony je na bílé špatně čitelná */
body.psb-kosik--checkout #order_review a,
body.psb-kosik--checkout form.checkout .woocommerce-terms-and-conditions-wrapper a,
body.psb-kosik .woocommerce-breadcrumb a,
body.psb-kosik--cart td.product-name a { color: var(--psbk-blue) !important; }
body.psb-kosik--checkout #order_review .woocommerce-terms-and-conditions-wrapper a { text-decoration: underline; }

/* ComGate – výběr platebního kanálu menší a v řádku */
body.psb-kosik--checkout .payment_box.payment_method_comgate { padding: 12px 14px !important; }
body.psb-kosik--checkout label.comgate_select {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 8px 0 !important;
	border-bottom: 1px solid var(--psbk-line-soft) !important;
	font-size: 14px !important;
	font-weight: 600;
	cursor: pointer;
}
body.psb-kosik--checkout label.comgate_select:last-of-type { border-bottom: 0 !important; }
body.psb-kosik--checkout label.comgate_select img.comgate-channel-img {
	width: auto !important;
	height: 36px !important;
	max-width: 110px !important;
	padding: 4px 8px !important;
	border: 1px solid var(--psbk-line-soft);
	border-radius: 8px;
	background: #FFFFFF;
	object-fit: contain;
}
body.psb-kosik--checkout label.comgate_select * { font-size: 14px !important; }
body.psb-kosik--checkout label.comgate_select br { display: none; }
