/* Cart mobile list polish and mockup heading - 2026-07-10 */
.jt-cart-mobile-heading {
	display: none;
}

@media (max-width: 767px) {
	.woocommerce-cart:not(.jt-cart-empty) .jt-cart-table-col { gap: 0 !important; }

	.woocommerce-cart:not(.jt-cart-empty) .jt-cart-mobile-heading {
		display: grid;
		width: calc(100vw - 32px);
		margin: 0 0 3px 1px;
		padding: 13px 2px 10px;
		background: transparent;
	}

	.woocommerce-cart:not(.jt-cart-empty) .jt-cart-mobile-heading > p {
		margin: 0 0 3px;
		color: #b8dc19;
		font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 10px;
		font-weight: 900;
		line-height: 1.3;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.woocommerce-cart:not(.jt-cart-empty) .jt-cart-mobile-heading > div {
		display: flex;
		align-items: end;
		justify-content: space-between;
		gap: 16px;
	}

	.woocommerce-cart:not(.jt-cart-empty) .jt-cart-mobile-heading h2 {
		margin: 0;
		color: #f5f6ed;
		font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 28px;
		font-weight: 850;
		line-height: 1.05;
		letter-spacing: -0.04em;
	}

	.woocommerce-cart:not(.jt-cart-empty) .jt-cart-mobile-heading span {
		padding-bottom: 3px;
		color: #c8d0bd;
		font-size: 12px;
		font-weight: 500;
		line-height: 1.2;
		white-space: nowrap;
	}

	.woocommerce-cart:not(.jt-cart-empty) :is(.woocommerce-cart-form, .woocommerce-cart-form__contents, .shop_table) {
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		background-image: none !important;
		box-shadow: none !important;
		overflow: visible !important;
	}

	body.woocommerce-cart:not(.jt-cart-empty) table.woocommerce-cart-form__contents > tbody > tr.cart_item,
	body.woocommerce-cart:not(.jt-cart-empty) table.woocommerce-cart-form__contents > tbody > tr.wd-cart-action-row {
		width: calc(100vw - 32px) !important;
		margin: 0 0 10px 1px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart_item .wd-product-sku > .wd-label {
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart_item .product-remove a {
		display: grid !important;
		place-items: center !important;
		font-size: 0 !important;
		line-height: 1 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart_item .product-remove a::before {
		content: "×" !important;
		position: static !important;
		display: block !important;
		width: 22px !important;
		height: 22px !important;
		color: #a8aea1 !important;
		font-family: Arial, Helvetica, sans-serif !important;
		font-size: 22px !important;
		font-weight: 400 !important;
		line-height: 20px !important;
		text-align: center !important;
		transform: none !important;
	}
}

/* Cart mobile summary compaction - 2026-07-10 */
@media (max-width: 767px) {
	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner {
		overflow: hidden !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .shop_table {
		display: block !important;
		height: auto !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .shop_table tbody {
		display: block !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner :is(.cart-subtotal, .shipping-summary-only) {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center !important;
		min-height: 34px !important;
		height: 34px !important;
		gap: 10px !important;
		margin: 0 !important;
		padding: 6px 12px !important;
		border-bottom: 1px solid rgba(241, 244, 232, 0.1) !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner :is(.cart-subtotal, .shipping-summary-only) :is(th, td) {
		display: block !important;
		width: auto !important;
		padding: 0 !important;
		border: 0 !important;
		font-size: 12px !important;
		line-height: 1.2 !important;
		white-space: nowrap !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .shop_table td::before {
		display: none !important;
		content: none !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner :is(.cart-subtotal, .shipping-summary-only) > th {
		grid-column: 1 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner :is(.cart-subtotal, .shipping-summary-only) > td {
		grid-column: 2 !important;
		text-align: right !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .order-total {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center !important;
		min-height: 54px !important;
		height: 54px !important;
		gap: 10px !important;
		margin: 0 !important;
		padding: 7px 12px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .order-total :is(th, td) {
		display: block !important;
		width: auto !important;
		padding: 0 !important;
		border: 0 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .order-total > th {
		grid-column: 1 !important;
		display: flex !important;
		align-items: center !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .order-total > td {
		grid-column: 2 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-end !important;
		justify-content: center !important;
	}

	body.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner table.shop_table > tbody > tr.order-total > :is(th, td) {
		min-height: 0 !important;
		height: auto !important;
		padding: 0 !important;
		line-height: 1.1 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .order-total th {
		font-size: 17px !important;
		line-height: 1.1 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .order-total td {
		text-align: right !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .order-total .amount {
		font-size: 25px !important;
		line-height: 1 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .order-total small {
		display: block !important;
		position: static !important;
		margin-top: 2px !important;
		font-size: 9px !important;
		line-height: 1.1 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wc-proceed-to-checkout {
		display: block !important;
		min-height: 52px !important;
		height: 52px !important;
		margin: 0 !important;
		padding: 4px 12px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-main {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-height: 44px !important;
		height: 44px !important;
		margin: 0 !important;
		padding: 0 18px !important;
		font-size: 15px !important;
		line-height: 1 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-note {
		display: none !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-payment-strip {
		display: grid !important;
		min-height: 52px !important;
		height: 52px !important;
		gap: 3px !important;
		margin: 0 !important;
		padding: 5px 12px 6px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-payment-strip p {
		height: 14px !important;
		font-size: 10px !important;
		line-height: 14px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-payment-strip ul {
		height: 24px !important;
		gap: 6px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-payment-strip li {
		min-height: 22px !important;
		height: 22px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-payment-strip img {
		width: 38px !important;
		height: 18px !important;
		max-height: 18px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-extras {
		display: grid !important;
		gap: 5px !important;
		margin: 0 !important;
		padding: 5px 12px 8px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-extra-delivery {
		display: grid !important;

		min-height: 64px !important;
		height: auto !important;
		margin: 0 !important;
		padding: 6px 8px !important;
		border-radius: 6px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-delivery-head {

		align-items: center !important;
		gap: 5px !important;
		min-height: 26px !important;
		height: auto !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-extra-delivery .wd-info-icon {
		width: 18px !important;
		height: 16px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-info-msg {
		font-size: 10px !important;

		line-height: 12px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-info-msg strong {
		display: none !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-info-msg::before {
		content: "Szacowana dostawa: ";
		color: #b8dc19;
		font: inherit;
		font-weight: 850;
	}


	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-shipping-meter {
		grid-template-columns: minmax(0, 1fr) auto !important;
		gap: 3px 7px !important;

		height: auto !important;
		margin: 0 !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-shipping-meter p {
		grid-column: 1 / -1 !important;
		margin: 0 !important;
		font-size: 10px !important;
		line-height: 10px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-shipping-meter div {
		height: 5px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-shipping-meter small {
		font-size: 9.5px !important;
		line-height: 9px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-extra-points {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		min-height: 38px !important;
		height: 38px !important;
		gap: 8px !important;
		margin: 0 !important;

	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-extra-points > span:first-child {
		font-size: 10px !important;
		line-height: 12px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-points-value {
		font-size: 20px !important;

		white-space: nowrap !important;
	}
}

/* Cart mobile sticky CTA: let checkout fill all space after the total. */
@media (max-width: 767px) {
	.woocommerce-cart:not(.jt-cart-empty) .wd-cart-sticky-checkout__total {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.woocommerce-cart:not(.jt-cart-empty) .wd-cart-sticky-checkout__button {
		flex: 1 1 auto;
		min-width: 0;
		justify-content: center;
	}
}

/* Cart mobile summary readability: delivery hierarchy and restrained loyalty value. */
@media (max-width: 767px) {
	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-extra-delivery {
		min-height: 70px !important;
		padding: 7px 8px !important;
		gap: 3px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-delivery-head {
		grid-template-columns: 18px minmax(0, 1fr) auto !important;
		align-items: start !important;
		gap: 7px !important;
		min-height: 32px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-extra-delivery .wd-info-icon {
		margin-top: 3px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-info-msg {
		min-width: 0 !important;
		color: rgba(241, 244, 232, 0.78) !important;
		font-size: 11px !important;
		font-weight: 650 !important;
		line-height: 13px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-info-msg::before {
		content: "Szacowana dostawa" !important;
		display: block !important;
		margin: 0 0 1px !important;
		color: #b8dc19 !important;
		font-size: 10px !important;
		font-weight: 850 !important;
		line-height: 11px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-delivery-head > strong {
		align-self: start !important;
		margin-top: 2px !important;
		padding: 3px 5px !important;
		font-size: 9px !important;
		line-height: 10px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-shipping-meter {
		min-height: 22px !important;
		gap: 4px 7px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .jt-cart-shipping-meter p {
		font-size: 10.5px !important;
		line-height: 12px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-cta-extra-points {
		min-height: 34px !important;
		height: 34px !important;
		padding: 5px 9px !important;
	}

	.woocommerce-cart:not(.jt-cart-empty) .cart-totals-inner .wd-cart-points-value {
		font-size: 16px !important;
		font-weight: 850 !important;
		line-height: 1 !important;
	}
}
