/* =====================================================
   KOSZYK – UKŁAD GŁÓWNY
   ===================================================== */

   body.woocommerce-cart .woocommerce {
	--eb-orange: #ef7d4d;
	--eb-orange-hover: #dc693c;
	--eb-orange-light: #fff2ec;
	--eb-border: #e9e5e1;
	--eb-text: #292522;
	--eb-muted: #827b76;
	--eb-green: #65ad75;
	--eb-white: #ffffff;

	display: flex;
    flex-wrap: wrap;
	align-items: start;
	gap: 18px 24px;
	width: 100%;
	max-width: 1440px;
	margin: 32px auto 80px;
	padding: 0 20px;
	box-sizing: border-box;
}

body.woocommerce-cart .woocommerce::before,
body.woocommerce-cart .woocommerce::after,
body.woocommerce-cart .cart-collaterals::before,
body.woocommerce-cart .cart-collaterals::after {
	display: none !important;
}

body.woocommerce-cart .woocommerce-notices-wrapper {
	width: 100%;
}

body.woocommerce-cart .woocommerce-cart-form {
	width: 65%;
    margin: 0;
}

.wc-empty-cart-message {
    width: 100%;
}

body.woocommerce-cart .cart-collaterals {
	width: 33%;
    margin: 0;
}

@media (max-width: 800px) {
	body.woocommerce-cart .cart-collaterals {
		width: 100%;
	}
	
	body.woocommerce-cart .woocommerce-cart-form {
		width: 100%;
	}
}

body.woocommerce-cart .cart-collaterals .cross-sells {
	display: none !important;
}


/* =====================================================
   LISTA PRODUKTÓW W KOSZYKU
   ===================================================== */

body.woocommerce-cart .woocommerce-cart-form__contents,
body.woocommerce-cart .woocommerce-cart-form__contents tbody {
	display: block;
	width: 100%;
	margin: 0;
	border: 0 !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents thead {
	display: none;
}

body.woocommerce-cart
	.woocommerce-cart-form__contents
	tr.woocommerce-cart-form__cart-item {
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr) auto 26px;
	grid-template-rows: auto auto;
	column-gap: 18px;
	row-gap: 14px;
	position: relative;
	width: 100%;
	margin: 0 0 14px;
	padding: 16px;
	background: var(--eb-white);
	border: 1px solid var(--eb-border);
	border-radius: 14px;
	box-shadow: none;
	box-sizing: border-box;
}

body.woocommerce-cart
	.woocommerce-cart-form__contents
	tr.cart_item
	td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
}

body.woocommerce-cart .product-thumbnail {
	grid-column: 1;
	grid-row: 1 / 3;
}

body.woocommerce-cart .product-thumbnail a {
	display: block;
	width: 90px;
	height: 90px;
}

body.woocommerce-cart .product-thumbnail img {
	display: block;
	width: 90px !important;
	height: 90px !important;
	margin: 0 !important;
	object-fit: cover;
	border-radius: 11px;
}

body.woocommerce-cart .product-name {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
	min-width: 0;
}

body.woocommerce-cart .product-name > a {
	display: block;
	color: var(--eb-text);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

body.woocommerce-cart .product-name > a:hover {
	color: var(--eb-orange);
}

body.woocommerce-cart .eb-cart-item-type {
	display: block;
	margin-bottom: 5px;
	color: var(--eb-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
}

body.woocommerce-cart .product-price {
	display: none !important;
}

body.woocommerce-cart .product-quantity {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	width: max-content;
}

body.woocommerce-cart .product-quantity .quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 4px;
	background: var(--eb-orange-light);
	border-radius: 9px;
}

body.woocommerce-cart .product-quantity input.qty {
	width: 35px !important;
	height: 34px;
	padding: 0 !important;
	color: var(--eb-text);
	background: transparent;
	border: 0 !important;
	box-shadow: none !important;
	font-size: 14px;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

body.woocommerce-cart
	.product-quantity
	input.qty::-webkit-inner-spin-button,
body.woocommerce-cart
	.product-quantity
	input.qty::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
}

body.woocommerce-cart .eb-qty-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 30px;
	padding: 0;
	color: #746c67;
	background: transparent;
	border: 0;
	border-radius: 6px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

body.woocommerce-cart .eb-qty-button:hover {
	color: var(--eb-orange);
	background: rgba(255, 255, 255, 0.7);
}

body.woocommerce-cart .product-subtotal {
	grid-column: 3;
	grid-row: 1 / 3;
	align-self: center;
	min-width: 80px;
	color: var(--eb-text);
	text-align: right;
	white-space: nowrap;
}

body.woocommerce-cart .product-subtotal .amount {
	color: var(--eb-text);
	font-size: 16px;
	font-weight: 500;
}

body.woocommerce-cart .product-subtotal del {
	display: block;
	margin-top: 3px;
	color: #99918b;
	font-size: 14px;
	font-weight: 400;
}

body.woocommerce-cart .product-remove {
	grid-column: 4;
	grid-row: 1;
	align-self: start;
	justify-self: end;
}

body.woocommerce-cart .product-remove a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	color: #817a75 !important;
	background: transparent !important;
	border-radius: 6px;
	font-size: 21px;
	font-weight: 300;
	line-height: 1;
	text-decoration: none;
}

body.woocommerce-cart .product-remove a.remove:hover {
	color: var(--eb-orange) !important;
	background: var(--eb-orange-light) !important;
}

/*
 * Ukrywamy standardową sekcję kuponu oraz przycisk aktualizacji.
 * Aktualizacja odbywa się automatycznie po kliknięciu +/-.
 */
body.woocommerce-cart
	.woocommerce-cart-form__contents
	td.actions {
	display: none !important;
}


/* =====================================================
   KOD PROMOCYJNY
   ===================================================== */

body.woocommerce-cart .eb-coupon-card {
	width: 100%;
	margin: 0 0 14px;
	padding: 18px;
	background: var(--eb-white);
	border: 1px solid var(--eb-border);
	border-radius: 14px;
	box-sizing: border-box;
}

body.woocommerce-cart .eb-coupon-card h3 {
	margin: 0 0 13px;
	color: var(--eb-text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

body.woocommerce-cart .eb-coupon-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

body.woocommerce-cart .eb-coupon-row input {
	flex: 1;
	min-width: 0;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	color: var(--eb-text);
	background: #fbfaf9;
	border: 1px solid var(--eb-border);
	border-radius: 10px;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	text-align: center;
	box-sizing: border-box;
}

body.woocommerce-cart .eb-coupon-row input::placeholder {
	color: #aaa39e;
}

body.woocommerce-cart .eb-coupon-row input:focus {
	outline: none;
	border-color: var(--eb-orange);
	box-shadow: 0 0 0 2px rgba(239, 125, 77, 0.12);
}

body.woocommerce-cart .eb-coupon-row .button {
	flex: 0 0 auto;
	height: 42px;
	margin: 0 !important;
	padding: 0 15px !important;
	color: var(--eb-text) !important;
	background: var(--eb-orange-light) !important;
	border: 0 !important;
	border-radius: 10px !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 42px !important;
	box-shadow: none !important;
}

body.woocommerce-cart .eb-coupon-row .button:hover {
	color: #ffffff !important;
	background: var(--eb-orange) !important;
}


/* =====================================================
   PODSUMOWANIE
   ===================================================== */

body.woocommerce-cart .cart_totals {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 20px 18px 16px;
	background: var(--eb-white);
	border: 1px solid var(--eb-border);
	border-radius: 14px;
	box-sizing: border-box;
}

body.woocommerce-cart .cart_totals h2 {
	margin: 0 0 12px;
	padding: 0;
	color: var(--eb-text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

body.woocommerce-cart .cart_totals table {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
}

body.woocommerce-cart .cart_totals table tbody {
	display: table-row-group;
}

body.woocommerce-cart .cart_totals table tr {
	border: 0;
	border-bottom: 1px solid #f0ece9;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
	padding: 9px 0 !important;
	color: var(--eb-muted);
	background: transparent !important;
	border: 0 !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

body.woocommerce-cart .cart_totals table th {
	width: 55%;
	text-align: left;
}

body.woocommerce-cart .cart_totals table td {
	text-align: right;
}

body.woocommerce-cart .cart_totals .cart-discount th,
body.woocommerce-cart .cart_totals .cart-discount td,
body.woocommerce-cart .cart_totals .cart-discount .amount {
	color: var(--eb-green);
}

body.woocommerce-cart .cart_totals .woocommerce-remove-coupon {
	display: block;
	margin-top: 2px;
	color: var(--eb-muted);
	font-size: 14px;
	text-decoration: none;
}

/*
 * Na screenie produkty są cyfrowe, dlatego wiersz wysyłki jest ukryty.
 * Usuń poniższą regułę, gdy sklep sprzedaje produkty fizyczne.
 */
body.woocommerce-cart
	.cart_totals
	.woocommerce-shipping-totals {
	display: none;
}

body.woocommerce-cart .cart_totals .order-total {
	border-bottom: 0;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
	padding-top: 13px !important;
	color: var(--eb-text);
	font-size: 14px;
	font-weight: 500;
}

body.woocommerce-cart .cart_totals .order-total .amount {
	color: var(--eb-text);
	font-size: 18px;
	font-weight: 500;
}

body.woocommerce-cart .cart_totals .includes_tax {
	display: none;
}

body.woocommerce-cart .wc-proceed-to-checkout {
	margin: 8px 0 0;
	padding: 0;
}

body.woocommerce-cart
	.wc-proceed-to-checkout
	.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0 !important;
	padding: 10px 18px !important;
	color: #ffffff !important;
	background: var(--eb-orange) !important;
	border: 0 !important;
	border-radius: 11px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	text-align: center;
	box-shadow: none !important;
}

body.woocommerce-cart
	.wc-proceed-to-checkout
	.checkout-button::after {
	content: "";
	margin-left: 10px;
	font-size: 18px;
	font-weight: 300;
    width: 18px;
    height: 18px;
    background-position: center;
    background-size: cover;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.16675 10H15.8334' stroke='white' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 4.16669L15.8333 10L10 15.8334' stroke='white' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

body.woocommerce-cart
	.wc-proceed-to-checkout
	.checkout-button:hover {
	background: var(--eb-orange-hover) !important;
}

body.woocommerce-cart .eb-continue-shopping {
	display: block;
	margin: 14px auto 12px;
	color: var(--eb-muted);
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

body.woocommerce-cart .eb-continue-shopping:hover {
	color: var(--eb-orange);
}

body.woocommerce-cart .eb-cart-benefits {
	margin: 0;
	padding: 13px 0 0;
	border-top: 1px solid #f0ece9;
	list-style: none;
}

body.woocommerce-cart .eb-cart-benefits li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 18px;
	color: var(--eb-muted);
	font-size: 14px;
	line-height: 1.4;
    background-size: 12px;
}

body.woocommerce-cart .eb-cart-benefits li:last-child {
	margin-bottom: 0;
}

body.woocommerce-cart .eb-cart-benefits li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--eb-green);
	font-size: 14px;
	font-weight: 600;
}


/* =====================================================
   BESTSELLERY
   ===================================================== */

body.woocommerce-cart .eb-cart-bestsellers {
	grid-column: 1;
	width: 100%;
	margin-top: 36px;
}

body.woocommerce-cart .eb-cart-bestsellers > h2 {
	margin: 0 0 20px;
	color: var(--eb-text);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
}

body.woocommerce-cart .eb-bestsellers-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

body.woocommerce-cart .eb-product-card {
	overflow: hidden;
	min-width: 0;
	background: var(--eb-white);
	border: 1px solid var(--eb-border);
	border-radius: 12px;
}

body.woocommerce-cart .eb-product-image {
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1.35 / 1;
	background: #f4f1ef;
}

body.woocommerce-cart .eb-product-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transition: transform 0.35s ease;
}

body.woocommerce-cart .eb-product-card:hover .eb-product-image img {
	transform: scale(1.025);
}

body.woocommerce-cart .eb-product-content {
	padding: 14px 15px 15px;
}

body.woocommerce-cart .eb-product-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 9px;
}

body.woocommerce-cart .eb-product-categories span {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 3px 8px;
	color: #a17b69;
	background: #fff5ef;
	border-radius: 999px;
	font-size: 14px;
	line-height: 1;
}

body.woocommerce-cart .eb-product-card h3 {
	margin: 0 0 7px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

body.woocommerce-cart .eb-product-card h3 a {
	color: var(--eb-text);
	text-decoration: none;
}

body.woocommerce-cart .eb-product-card h3 a:hover {
	color: var(--eb-orange);
}

body.woocommerce-cart .eb-product-description {
	min-height: 34px;
	margin: 0 0 9px;
	color: var(--eb-muted);
	font-size: 14px;
	line-height: 1.45;
}

body.woocommerce-cart .eb-product-rating {
	display: flex;
	align-items: center;
	gap: 3px;
	margin: 0 0 12px;
	color: #6e6762;
	font-size: 14px;
}

body.woocommerce-cart .eb-product-rating > span:first-child {
	color: var(--eb-orange);
	font-size: 14px;
}

body.woocommerce-cart .eb-product-rating > span:last-child {
	color: #98918c;
}

body.woocommerce-cart .eb-product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0ece9;
}

body.woocommerce-cart .eb-product-price {
	color: var(--eb-orange);
	font-size: 16px;
	font-weight: 500;
}

body.woocommerce-cart .eb-product-price del {
	color: #9d9691;
	font-size: 14px;
	font-weight: 400;
}

body.woocommerce-cart .eb-product-price ins {
	text-decoration: none;
}

body.woocommerce-cart .eb-product-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 7px 12px;
	color: #ffffff;
	background: var(--eb-orange);
	border-radius: 9px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

body.woocommerce-cart .eb-product-button:hover {
	color: #ffffff;
	background: var(--eb-orange-hover);
}


/* =====================================================
   RESPONSYWNOŚĆ
   ===================================================== */

@media (max-width: 900px) {
	body.woocommerce-cart .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		max-width: 760px;
	}

	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .cart-collaterals,
	body.woocommerce-cart .eb-cart-bestsellers {
		grid-column: 1;
	}

	body.woocommerce-cart .eb-cart-bestsellers {
		margin-top: 22px;
	}
}

@media (max-width: 620px) {
	body.woocommerce-cart .woocommerce {
		margin-top: 12px;
		padding: 0;
	}

	body.woocommerce-cart
		.woocommerce-cart-form__contents
		tr.woocommerce-cart-form__cart-item {
		grid-template-columns: 72px minmax(0, 1fr) 24px;
		grid-template-rows: auto auto auto;
		column-gap: 13px;
		row-gap: 8px;
		padding: 13px;
	}

	body.woocommerce-cart .product-thumbnail {
		grid-column: 1;
		grid-row: 1 / 4;
	}

	body.woocommerce-cart .product-thumbnail a,
	body.woocommerce-cart .product-thumbnail img {
		width: 72px !important;
		height: 72px !important;
	}

	body.woocommerce-cart .product-name {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
	}

	body.woocommerce-cart .product-name > a {
		font-size: 14px;
	}

	body.woocommerce-cart .product-subtotal {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		min-width: 0;
		text-align: left;
	}

	body.woocommerce-cart .product-subtotal .amount {
		font-size: 14px;
	}

	body.woocommerce-cart .product-quantity {
		grid-column: 2;
		grid-row: 3;
	}

	body.woocommerce-cart .product-remove {
		grid-column: 3;
		grid-row: 1;
	}

	body.woocommerce-cart .eb-coupon-row {
		flex-direction: column;
	}

	body.woocommerce-cart .eb-coupon-row .button {
		width: 100%;
	}

	body.woocommerce-cart .eb-bestsellers-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-cart .eb-product-description {
		min-height: auto;
	}
}


/* =====================================================
   PUSTY KOSZYK
   ===================================================== */

   body.woocommerce-cart .woocommerce-notices-wrapper:empty {
	display: none !important;
}

body.woocommerce-cart .wc-empty-cart-message {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 720px;
	margin: 30px auto 0;
	padding: 0;
	box-sizing: border-box;
}

body.woocommerce-cart .wc-empty-cart-message .cart-empty {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 330px;
	margin: 0;
	padding: 125px 40px 48px;
	color: #292522;
	background: #ffffff;
	border: 1px solid #e9e5e1;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(61, 45, 36, 0.05);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	box-sizing: border-box;
}

/* Usunięcie standardowego wyglądu komunikatu WooCommerce */
body.woocommerce-cart
	.wc-empty-cart-message
	.cart-empty.woocommerce-info {
	border-top: 0 !important;
}

body.woocommerce-cart
	.wc-empty-cart-message
	.cart-empty.woocommerce-info::before {
	content: "";
	position: absolute;
	top: 46px;
	left: 50%;
	width: 72px;
	height: 72px;
	margin: 0;
	background-color: #fff2ec;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23ef7d4d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 10.2a2 2 0 0 0 2 1.5h7.9a2 2 0 0 0 1.9-1.4L21 8H6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 38px;
	border-radius: 50%;
	transform: translateX(-50%);
}

body.woocommerce-cart
	.wc-empty-cart-message
	.cart-empty::after {
	content: "Wygląda na to, że nie dodałeś jeszcze żadnych produktów. Odkryj nasze kursy, jadłospisy i materiały stworzone dla Twojego zdrowia.";
	display: block;
	max-width: 480px;
	margin-top: 12px;
	color: #827b76;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	text-align: center;
}

/* Przycisk powrotu do sklepu */
body.woocommerce-cart .return-to-shop {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	width: 100%;
	margin: -25px auto 60px;
	position: relative;
	z-index: 2;
}

body.woocommerce-cart
	.return-to-shop
	.button.wc-backward {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 190px;
	min-height: 48px;
	margin: 0;
	padding: 12px 24px;
	color: #ffffff !important;
	background: #ef7d4d !important;
	border: 0 !important;
	border-radius: 11px !important;
	box-shadow: 0 7px 18px rgba(239, 125, 77, 0.2);
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

body.woocommerce-cart
	.return-to-shop
	.button.wc-backward::after {
	content: "";
	margin-left: 10px;
	font-size: 18px;
	font-weight: 300;
	line-height: 1;
	transition: transform 0.2s ease;
	width: 18px;
    height: 18px;
    background-position: center;
    background-size: cover;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.16675 10H15.8334' stroke='white' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 4.16669L15.8333 10L10 15.8334' stroke='white' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

body.woocommerce-cart
	.return-to-shop
	.button.wc-backward:hover {
	color: #ffffff !important;
	background: #dc693c !important;
	box-shadow: 0 9px 22px rgba(239, 125, 77, 0.28);
	transform: translateY(-2px);
}

body.woocommerce-cart
	.return-to-shop
	.button.wc-backward:hover::after {
	transform: translateX(3px);
}

/* Usunięcie pustych elementów WooCommerce */
body.woocommerce-cart
	.wc-empty-cart-message
	.cart-empty
	a {
	color: inherit;
}

/* =====================================================
   PUSTY KOSZYK – TABLET I TELEFON
   ===================================================== */

@media (max-width: 900px) {
	body.woocommerce-cart .wc-empty-cart-message {
		margin-top: 15px;
	}

	body.woocommerce-cart
		.wc-empty-cart-message
		.cart-empty {
		min-height: 310px;
	}
}

@media (max-width: 620px) {
	body.woocommerce-cart .wc-empty-cart-message {
		margin-top: 5px;
	}

	body.woocommerce-cart
		.wc-empty-cart-message
		.cart-empty {
		min-height: 290px;
		padding: 115px 24px 44px;
		border-radius: 14px;
		font-size: 20px;
	}

	body.woocommerce-cart
		.wc-empty-cart-message
		.cart-empty.woocommerce-info::before {
		top: 38px;
		width: 66px;
		height: 66px;
		background-size: 34px;
	}

	body.woocommerce-cart
		.wc-empty-cart-message
		.cart-empty::after {
		max-width: 330px;
		margin-top: 10px;
		font-size: 14px;
		line-height: 1.6;
	}

	body.woocommerce-cart .return-to-shop {
		margin-top: -23px;
		margin-bottom: 45px;
	}

	body.woocommerce-cart
		.return-to-shop
		.button.wc-backward {
		width: calc(100% - 48px);
		max-width: 300px;
		min-height: 48px;
	}
}

body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item td.product-quantity {
    background: #FFF5EF;
    display: inline-flex;
    justify-content: center;
    border-radius: 8px;
}

body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item td.product-name {
	display: flex;
	flex-direction: column;
}

.ebCard ul.ebList {
	padding-left: 0;
}

.ebCard ul.ebList li {
	background: none;
	padding: 0;
}



/* =========================================================
   WOOCOMMERCE CART — MOBILE
   Wklej na samym końcu głównego pliku CSS.
   Dotyczy klasycznego koszyka WooCommerce (shortcode).
   ========================================================= */

   @media (max-width: 767px) {
    body.woocommerce-cart {
        --eb-cart-bg: #faf8f5;
        --eb-cart-card: #ffffff;
        --eb-cart-text: #302c29;
        --eb-cart-muted: #817a74;
        --eb-cart-line: #e8e2dc;
        --eb-cart-accent: #e98a5e;
        --eb-cart-accent-hover: #dc7c51;
    }

    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        width: 100%;
        margin: 0;
    }

    /* Reset tabeli koszyka. */
    body.woocommerce-cart table.shop_table,
    body.woocommerce-cart table.shop_table_responsive {
        width: 100%;
        border: 0;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
        display: none;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
        display: block;
    }

    /* Karta produktu. */
    body.woocommerce-cart .woocommerce-cart-form tr.cart_item {
        position: relative;
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px 14px;
        width: 100%;
        padding: 16px;
        margin: 0 0 16px;
        border: 1px solid var(--eb-cart-line);
        border-radius: 16px;
        background: var(--eb-cart-card);
        box-sizing: border-box;
        box-shadow: 0 6px 20px rgba(48, 44, 41, 0.035);
    }

    body.woocommerce-cart .woocommerce-cart-form tr.cart_item > td {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: left !important;
        box-sizing: border-box;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail {
        display: block !important;
        grid-column: 1;
        grid-row: 1 / span 4;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail::before {
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail a {
        display: block;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img {
        display: block;
        width: 72px !important;
        height: 72px !important;
        margin: 0 !important;
        border-radius: 11px;
        background: #f1ece7;
        object-fit: cover;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-name {
        grid-column: 2;
        padding-right: 30px;
        color: var(--eb-cart-text);
        font-size: 13px;
        line-height: 1.4;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-name::before {
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-name > a {
        display: block;
        color: var(--eb-cart-text);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        text-decoration: none;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-name .variation,
    body.woocommerce-cart .woocommerce-cart-form td.product-name .wc-item-meta {
        margin: 5px 0 0;
        color: var(--eb-cart-muted);
        font-size: 11px;
        line-height: 1.45;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-price {
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form td.product-subtotal {
        grid-column: 2;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 28px;
        color: var(--eb-cart-muted);
        font-size: 11px;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-quantity::before {
        content: "Ilość:" !important;
        float: none !important;
        color: var(--eb-cart-muted);
        font-weight: 500;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-subtotal::before {
        content: "Wartość:" !important;
        float: none !important;
        color: var(--eb-cart-muted);
        font-weight: 500;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-subtotal .amount {
        color: var(--eb-cart-text);
        font-size: 14px;
        font-weight: 600;
    }

    body.woocommerce-cart .woocommerce-cart-form .quantity {
        width: 74px;
        margin: 0;
    }

    body.woocommerce-cart .woocommerce-cart-form .quantity .qty {
        width: 74px;
        height: 32px;
        padding: 0 8px;
        border: 1px solid #e6e0da;
        border-radius: 999px;
        background: #fff7f2;
        color: var(--eb-cart-text);
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        box-shadow: none;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-remove::before {
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-remove a.remove {
        display: inline-flex;
        width: 28px;
        height: 28px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
        background: #f7f2ee;
        color: #8d847d !important;
        font-size: 18px;
        font-weight: 400;
        line-height: 1;
        text-decoration: none;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-remove a.remove:hover {
        background: #fff0e8;
        color: var(--eb-cart-accent) !important;
    }

    /* Kupon i aktualizacja koszyka. */
    body.woocommerce-cart .woocommerce-cart-form tr:not(.cart_item) {
        display: block;
    }

    body.woocommerce-cart .woocommerce-cart-form td.actions {
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        padding: 18px;
        border: 1px solid var(--eb-cart-line);
        border-radius: 16px;
        background: var(--eb-cart-card);
        box-sizing: border-box;
    }

    body.woocommerce-cart .woocommerce-cart-form td.actions .coupon::before {
        display: block;
        margin-bottom: 2px;
        color: var(--eb-cart-text);
        content: "Kod promocyjny";
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        text-transform: uppercase;
    }

    body.woocommerce-cart .woocommerce-cart-form .coupon label {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    body.woocommerce-cart .woocommerce-cart-form .coupon input.input-text {
        float: none;
        width: 100% !important;
        height: 46px;
        padding: 0 14px;
        margin: 0;
        border: 1px solid #e6e0da;
        border-radius: 10px;
        background: #fcfbfa;
        color: var(--eb-cart-text);
        font-size: 13px;
        text-align: left;
        box-sizing: border-box;
        box-shadow: none;
    }

    body.woocommerce-cart .woocommerce-cart-form .coupon input.input-text::placeholder {
        color: #aaa29b;
    }

    body.woocommerce-cart .woocommerce-cart-form .coupon button,
    body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
        float: none;
        width: 100%;
        min-height: 44px;
        padding: 11px 18px;
        margin: 0;
        border: 0;
        border-radius: 999px;
        background: #fff0e8;
        color: #7b5544;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        box-shadow: none;
    }

    body.woocommerce-cart .woocommerce-cart-form .coupon button:hover,
    body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:hover {
        background: #ffe4d6;
        color: #684232;
    }

    body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
        margin-top: 10px;
    }

    /* Kolejność sekcji: najpierw podsumowanie, potem cross-sell. */
    body.woocommerce-cart .cart-collaterals {
        display: flex !important;
        flex-direction: column;
        gap: 22px;
    }

    body.woocommerce-cart .cart-collaterals::before,
    body.woocommerce-cart .cart-collaterals::after {
        display: none !important;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals,
    body.woocommerce-cart .cart-collaterals .cross-sells {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        order: 1;
        padding: 20px;
        border: 1px solid var(--eb-cart-line);
        border-radius: 16px;
        background: var(--eb-cart-card);
        box-sizing: border-box;
        box-shadow: 0 6px 20px rgba(48, 44, 41, 0.035);
    }

    body.woocommerce-cart .cart-collaterals .cross-sells {
        order: 2;
        padding-top: 2px;
    }

    /* Podsumowanie. */
    body.woocommerce-cart .cart_totals > h2 {
        margin: 0 0 12px;
        color: var(--eb-cart-text);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.25;
        text-transform: uppercase;
    }

    body.woocommerce-cart .cart_totals table.shop_table {
        margin: 0;
        border: 0;
        background: transparent;
    }

    body.woocommerce-cart .cart_totals table.shop_table tr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 11px 0;
        border-bottom: 1px solid #f0ebe7;
    }

    body.woocommerce-cart .cart_totals table.shop_table tr:last-child {
        border-bottom: 0;
    }

    body.woocommerce-cart .cart_totals table.shop_table th,
    body.woocommerce-cart .cart_totals table.shop_table td {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--eb-cart-muted);
        font-size: 14px;
        text-align: right;
    }

    body.woocommerce-cart .cart_totals table.shop_table th {
        color: #5e5853;
        font-weight: 600;
        text-align: left;
    }

    body.woocommerce-cart .cart_totals table.shop_table td::before {
        display: none !important;
    }

    body.woocommerce-cart .cart_totals .order-total th,
    body.woocommerce-cart .cart_totals .order-total td,
    body.woocommerce-cart .cart_totals .order-total .amount {
        color: var(--eb-cart-text);
        font-size: 15px;
        font-weight: 700;
    }

    body.woocommerce-cart .wc-proceed-to-checkout {
        padding: 14px 0 0;
    }

    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        display: inline-flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 12px 22px;
        margin: 0;
        border: 0;
        border-radius: 999px;
        background: var(--eb-cart-accent) !important;
        color: #fff !important;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.15;
        text-align: center;
        box-sizing: border-box;
        box-shadow: none;
    }

    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
        background: var(--eb-cart-accent-hover) !important;
        transform: translateY(-1px);
    }

    /* Produkty polecane jako poziomy slider — krótsza strona na telefonie. */
    body.woocommerce-cart .cross-sells > h2 {
        margin: 0 0 14px;
        color: var(--eb-cart-text);
        font-size: 20px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.02em;
        text-transform: uppercase;
    }

    body.woocommerce-cart .cross-sells ul.products {
        display: grid !important;
        grid-auto-columns: min(82vw, 300px);
        grid-auto-flow: column;
        grid-template-columns: none !important;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        width: calc(100% + 16px);
        padding: 0 16px 10px 0 !important;
        margin: 0 !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        overscroll-behavior-inline: contain;
    }

    body.woocommerce-cart .cross-sells ul.products::before,
    body.woocommerce-cart .cross-sells ul.products::after {
        display: none !important;
    }

    body.woocommerce-cart .cross-sells ul.products li.product {
        float: none !important;
        display: flex;
        flex-direction: column;
        width: auto !important;
        min-width: 0;
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid var(--eb-cart-line);
        border-radius: 15px;
        background: var(--eb-cart-card);
        scroll-snap-align: start;
        box-shadow: none;
    }

    body.woocommerce-cart .cross-sells li.product a.woocommerce-LoopProduct-link {
        display: flex;
        flex: 1;
        flex-direction: column;
        color: inherit;
        text-decoration: none;
    }

    body.woocommerce-cart .cross-sells li.product img {
        display: block;
        width: 100% !important;
        height: 170px !important;
        padding: 0;
        margin: 0 0 12px !important;
        border-radius: 0 !important;
        background: #f2ede8;
        object-fit: cover;
    }

    body.woocommerce-cart .cross-sells .woocommerce-loop-product__title {
        padding: 0 14px !important;
        margin: 0 0 8px !important;
        color: var(--eb-cart-text);
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.35;
        text-transform: none !important;
    }

    body.woocommerce-cart .cross-sells li.product .price {
        display: block;
        padding: 0 14px;
        margin: auto 0 12px !important;
        color: var(--eb-cart-accent) !important;
        font-size: 14px !important;
        font-weight: 600;
        text-align: left;
    }

    body.woocommerce-cart .cross-sells li.product a.button,
    body.woocommerce-cart .cross-sells li.product .button {
        align-self: flex-start;
        min-height: 36px;
        padding: 10px 14px;
        margin: 0 14px 14px !important;
        border: 0;
        border-radius: 999px;
        background: var(--eb-cart-accent) !important;
        color: #fff !important;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
    }

    body.woocommerce-cart .cross-sells .eb-related-product-category,
    body.woocommerce-cart .cross-sells .product-category {
        align-self: flex-start;
        padding: 5px 9px;
        margin: 0 14px 8px;
        border-radius: 999px;
        background: #f1ece6;
        color: var(--eb-cart-muted);
        font-size: 10px;
        line-height: 1;
    }

    body.woocommerce-cart .woocommerce-error,
    body.woocommerce-cart .woocommerce-info,
    body.woocommerce-cart .woocommerce-message {
        padding: 14px 16px 14px 42px;
        margin: 0 0 16px;
        border-radius: 12px;
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    body.woocommerce-cart .woocommerce {
        width: min(calc(100% - 24px), 720px);
    }

    body.woocommerce-cart .woocommerce-cart-form tr.cart_item {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 7px 11px;
        padding: 14px;
    }

    body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img {
        width: 62px !important;
        height: 62px !important;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals,
    body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
        padding: 16px;
    }

    body.woocommerce-cart .cross-sells ul.products {
        grid-auto-columns: 86vw;
    }
}

body.woocommerce-checkout .wc-block-components-product-details {
	display: none;
}