/* NELVAYA – koszyk w stylu kasy */
body.nvkz {
	--nvk-ink: #18181b;
	--nvk-muted: #52525b;
	--nvk-line: #e4e4e7;
	--nvk-cream: #f6f1e7;
	--nvk-green: #2f6b45;
}

/* Układ: lista produktów + podsumowanie */
body.nvkz .cart-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}
body.nvkz .cart-wrapper > .woocommerce-cart-form {
	flex: 1 1 520px;
	min-width: 0;
	width: auto;
	max-width: 100%;
}
body.nvkz .cart-wrapper > .cart-collaterals {
	flex: 1 1 340px;
	max-width: 100%;
	min-width: 0;
	width: auto;
	margin: 0;
}
@media (min-width: 1100px) {
	body.nvkz .cart-wrapper > .cart-collaterals {
		flex: 0 0 400px;
	}
}

/* ---------- produkty ---------- */
body.nvkz table.cart,
body.nvkz table.cart > tbody {
	display: block;
	width: 100%;
	border: 0;
	margin: 0;
}
body.nvkz table.cart > thead {
	display: none;
}
body.nvkz table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	grid-template-areas:
		"img name rem"
		"img price price"
		"img qty sub";
	column-gap: 14px;
	row-gap: 6px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--nvk-line);
	position: static;
}
body.nvkz table.cart tr.cart_item > td {
	display: block !important;
	padding: 0 !important;
	border: 0 !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	height: auto !important;
	text-align: left;
	background: none;
}
body.nvkz table.cart tr.cart_item > td::before {
	display: none !important;
	content: none !important;
}
body.nvkz table.cart td.product-thumbnail {
	grid-area: img;
	align-self: start;
}
body.nvkz table.cart td.product-thumbnail img {
	display: block;
	width: 72px;
	height: 72px;
	max-width: none;
	object-fit: cover;
	border-radius: 12px;
}
body.nvkz table.cart td.product-name {
	grid-area: name;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}
body.nvkz table.cart td.product-name a {
	color: var(--nvk-ink);
	text-decoration: none;
}
body.nvkz table.cart td.product-price {
	grid-area: price;
	font-size: 13px;
	color: var(--nvk-muted);
}
body.nvkz table.cart td.product-price del {
	margin-right: 6px;
}
body.nvkz table.cart td.product-price ins {
	text-decoration: none;
	color: var(--nvk-green);
	font-weight: 600;
}
body.nvkz table.cart td.product-quantity {
	grid-area: qty;
}
body.nvkz table.cart td.product-subtotal {
	grid-area: sub;
	justify-self: end;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--nvk-ink);
}
body.nvkz table.cart td.product-remove {
	grid-area: rem;
	justify-self: end;
	align-self: start;
}
body.nvkz.woocommerce-cart table.cart tr.cart_item td.product-remove a.remove {
	position: static !important;
	top: auto !important;
	right: auto !important;
	margin: 0 !important;
	transform: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--nvk-line);
	border-radius: 50%;
	background: #fff;
	color: var(--nvk-ink);
}
@media (min-width: 1280px) {
	body.nvkz table.cart tr.cart_item {
		grid-template-columns: 72px minmax(0, 1fr) auto auto 90px 32px;
		grid-template-areas: "img name price qty sub rem";
		column-gap: 20px;
	}
	body.nvkz table.cart td.product-price {
		display: flex !important;
		flex-direction: column;
		text-align: right;
	}
	body.nvkz table.cart td.product-price del {
		margin: 0;
	}
	body.nvkz table.cart td.product-thumbnail,
	body.nvkz table.cart td.product-remove {
		align-self: center;
	}
}

/* ---------- kupon i wyczyść koszyk ---------- */
body.nvkz table.cart tr:not(.cart_item),
body.nvkz table.cart td.actions {
	display: block;
	padding: 0;
	border: 0;
}
body.nvkz .actions-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	padding: 12px 0 0;
}
body.nvkz .nvkz-link,
body.nvkz .actions-wrapper .empty-cart-button {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 6px 0 !important;
	min-height: 44px;
	height: auto;
	width: auto;
	font: inherit;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: var(--nvk-ink) !important;
	text-decoration: underline;
	cursor: pointer;
}
body.nvkz .actions-wrapper .empty-cart-button {
	margin: 0 !important;
	justify-content: flex-end;
	color: var(--nvk-muted) !important;
}
body.nvkz .actions-wrapper .coupon {
	display: none !important;
	flex: 1 1 100%;
	order: 5;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
	margin: 0;
}
body.nvkz .actions-wrapper.nvkz-coupon-open .coupon {
	display: flex !important;
}
body.nvkz .actions-wrapper .coupon label {
	display: none;
}
body.nvkz .actions-wrapper .coupon .input-text {
	flex: 1 1 180px;
	min-width: 0;
	width: auto;
	height: 48px;
	border-radius: 12px;
}
body.nvkz .actions-wrapper .coupon .button {
	flex: 0 0 auto;
	width: auto;
	height: 48px;
	padding: 0 20px;
	border-radius: 12px;
	font-size: 15px;
}

/* ---------- podsumowanie ---------- */
body.nvkz .cart_totals {
	border: 1px solid var(--nvk-line);
	border-radius: 16px;
	padding: 20px;
	background: #fff;
	width: auto;
	float: none;
}
body.nvkz .cart_totals > h2 {
	font-size: 18px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	margin: 0 0 16px;
	color: var(--nvk-ink);
}
body.nvkz .cart_totals .izi-widget-placeholder {
	margin: 0 0 16px;
}
body.nvkz .cart_totals table.shop_table,
body.nvkz .cart_totals table.shop_table > tbody {
	display: block;
	width: 100%;
	border: 0;
	margin: 0;
}
body.nvkz .cart_totals table.shop_table tr {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--nvk-line);
}
body.nvkz .cart_totals table.shop_table tr > th,
body.nvkz .cart_totals table.shop_table tr > td {
	display: block !important;
	padding: 0 !important;
	border: 0 !important;
	width: auto !important;
	font-size: 14px;
	font-weight: 400;
	text-align: left;
	background: none;
	color: var(--nvk-ink);
}
body.nvkz .cart_totals table.shop_table tr > td {
	text-align: right;
}
body.nvkz .cart_totals table.shop_table tr > td::before {
	display: none !important;
	content: none !important;
}
body.nvkz .cart_totals table.shop_table tr.order-total > th,
body.nvkz .cart_totals table.shop_table tr.order-total > td {
	font-size: 17px;
	font-weight: 700;
}

/* dostawa: kafelki jak w kasie */
body.nvkz .cart_totals table.shop_table tr.shipping {
	display: block;
	padding: 14px 0;
}
body.nvkz .cart_totals table.shop_table tr.shipping > th {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px;
}
body.nvkz .cart_totals table.shop_table tr.shipping > td {
	text-align: left;
}
body.nvkz .cart_totals #shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
}
body.nvkz .cart_totals #shipping_method > li {
	position: relative;
	margin: 0;
	padding: 0;
	display: block;
}
body.nvkz .cart_totals #shipping_method > li.nvkz-cod {
	display: none;
}
body.nvkz .cart_totals.nvkz-show-cod #shipping_method > li.nvkz-cod {
	display: block;
}
body.nvkz .cart_totals #shipping_method input.shipping_method {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	float: none;
}
body.nvkz .cart_totals #shipping_method label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	min-height: 64px;
	border: 1px solid var(--nvk-line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.3;
	text-align: left;
	color: var(--nvk-ink);
}
body.nvkz .cart_totals #shipping_method label::before,
body.nvkz .cart_totals #shipping_method label::after {
	display: none !important;
}
body.nvkz .cart_totals #shipping_method input:checked + label {
	border: 2px solid var(--nvk-ink);
	padding: 11px 13px;
}
body.nvkz .cart_totals #shipping_method input:focus-visible + label {
	outline: 2px solid var(--nvk-green);
	outline-offset: 2px;
}
body.nvkz .nvkz-tile__name {
	font-weight: 600;
}
body.nvkz .nvkz-tile__price {
	color: var(--nvk-muted);
}
body.nvkz .nvkz-cod-toggle {
	display: block;
	min-height: 0;
	margin-top: 4px;
	font-size: 13px !important;
	color: var(--nvk-muted) !important;
}
body.nvkz .nvkz-cod-toggle[hidden] {
	display: none;
}
body.nvkz .cart_totals .woocommerce-shipping-destination {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
	color: var(--nvk-muted);
}
body.nvkz .cart_totals .woocommerce-shipping-destination strong {
	font-weight: 600;
}
body.nvkz .cart_totals .woocommerce-shipping-calculator {
	margin-top: 6px;
	font-size: 13px;
	text-align: left;
}

/* przycisk */
body.nvkz .wc-proceed-to-checkout {
	padding: 6px 0 0;
	margin: 0;
}
body.nvkz .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 0 16px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
}
