/**
 * Cart page — Macorner / Wanderprints style (checkout-simple layout).
 */

body.podxmas-checkout-flow #main.page-checkout-simple {
	background: #fafafa;
}

body.podxmas-checkout-flow #main-content {
	background: #fafafa;
}

body.podxmas-checkout-flow .cart-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 0 1rem;
	border-bottom: 1px solid #e8e8e8;
	margin-bottom: 1.25rem;
}

body.podxmas-checkout-flow .cart-header .logo {
	margin: 0;
}

body.podxmas-checkout-flow .checkout-breadcrumbs {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #888;
}

body.podxmas-checkout-flow .checkout-breadcrumbs a {
	color: #888;
	text-decoration: none;
}

body.podxmas-checkout-flow .checkout-breadcrumbs a.current {
	color: #121212;
	border-bottom: 2px solid #f7921f;
	padding-bottom: 0.15rem;
}

body.podxmas-checkout-flow .checkout-breadcrumbs .divider {
	color: #ccc;
	margin: 0 0.35rem;
}

body.podxmas-checkout-flow .checkout-breadcrumbs .icon-lock {
	color: #f7921f;
	margin-right: 0.35rem;
}

/* Cart header */
.podxmas-cart-page-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.podxmas-cart-page-title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	color: #121212;
	line-height: 1.2;
}

.podxmas-cart-continue {
	font-size: 0.875rem;
	font-weight: 600;
	color: #121212;
	text-decoration: none;
}

.podxmas-cart-continue:hover {
	color: #f7921f;
}

.podxmas-cart-promo {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #7a4a00;
	background: #fff9f4;
	border: 1px solid #ffe8cc;
	border-radius: 8px;
}

.podxmas-cart-promo--active {
	color: #1a5c2e;
	background: #f3fbf6;
	border-color: #cce8d4;
}

/* Cart table → card rows */
body.podxmas-cart-page .woocommerce-cart-form .shop_table.cart {
	border: 0;
	margin: 0;
}

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

body.podxmas-cart-page .woocommerce-cart-form .shop_table.cart tbody tr.cart_item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	gap: 0.35rem 0.85rem;
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}

body.podxmas-cart-page .woocommerce-cart-form .shop_table.cart tbody tr.cart_item td {
	border: 0;
	padding: 0;
	vertical-align: top;
}

body.podxmas-cart-page .woocommerce-cart-form .shop_table .product-remove {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	align-self: start;
	/* Flatsome sets this cell to width:0 and pins the × with position:absolute; left:0, so it draws outside the row. */
	position: static !important;
	width: auto !important;
	min-width: 36px;
	overflow: visible !important;
}

body.podxmas-cart-page .woocommerce-cart-form .shop_table .product-remove a {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-size: 1.25rem;
	line-height: 1;
	color: #999 !important;
	text-decoration: none;
	border-radius: 6px;
}

body.podxmas-cart-page .woocommerce-cart-form .product-remove a:hover {
	color: #121212 !important;
	background: #f3f3f3;
}

body.podxmas-cart-page .woocommerce-cart-form .product-thumbnail {
	grid-column: 1;
	grid-row: 1 / span 2;
}

body.podxmas-cart-page .woocommerce-cart-form .product-thumbnail img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #eee;
}

body.podxmas-cart-page .woocommerce-cart-form .product-name {
	grid-column: 2;
	grid-row: 1;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

body.podxmas-cart-page .woocommerce-cart-form .product-name a {
	color: #121212;
	text-decoration: none;
}

body.podxmas-cart-page .woocommerce-cart-form .product-name a:hover {
	color: #f7921f;
}

body.podxmas-cart-page .woocommerce-cart-form .product-name dl.variation {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	color: #666;
}

body.podxmas-cart-page .woocommerce-cart-form .product-price,
body.podxmas-cart-page .woocommerce-cart-form .product-subtotal {
	display: none;
}

body.podxmas-cart-page .woocommerce-cart-form .product-quantity {
	grid-column: 2;
	grid-row: 2;
}

body.podxmas-cart-page .woocommerce-cart-form .product-quantity .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

body.podxmas-cart-page .woocommerce-cart-form .product-quantity .qty {
	width: 48px;
	min-height: 36px;
	margin: 0;
	padding: 0;
	text-align: center;
	border: 0;
	background: transparent;
	font-weight: 600;
}

body.podxmas-cart-page .woocommerce-cart-form .mobile-product-price {
	display: inline-block !important;
	margin-left: 0.65rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #121212;
	vertical-align: middle;
}

body.podxmas-cart-page .woocommerce-cart-form tr td.actions {
	display: none;
}

body.podxmas-cart-page .cart-wrapper {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 0 1rem;
}

/* Sidebar / order summary */
body.podxmas-cart-page .cart-collaterals .cart-sidebar.col-inner {
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

@media (min-width: 850px) {
	body.podxmas-cart-page .cart-collaterals .cart-sidebar.col-inner {
		position: sticky;
		top: 1.25rem;
		align-self: flex-start;
	}
}

body.podxmas-cart-page .cart_totals h2 {
	margin: 0 0 1rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #121212;
	border: 0;
}

body.podxmas-cart-page .cart_totals table {
	border: 0;
	margin: 0 0 1rem;
}

body.podxmas-cart-page .cart_totals th,
body.podxmas-cart-page .cart_totals td {
	padding: 0.45rem 0;
	border: 0;
	font-size: 0.875rem;
	color: #444;
}

body.podxmas-cart-page .cart_totals .order-total th,
body.podxmas-cart-page .cart_totals .order-total td {
	padding-top: 0.75rem;
	border-top: 1px solid #eee;
	font-size: 1rem;
	font-weight: 800;
	color: #121212;
}

body.podxmas-cart-page .wc-proceed-to-checkout {
	margin: 0;
	padding: 0;
}

body.podxmas-cart-page .wc-proceed-to-checkout .checkout-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	min-height: 48px;
	margin: 0 !important;
	padding: 0.85rem 1rem !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px !important;
	background: #121212 !important;
	border-color: #121212 !important;
	color: #fff !important;
}

body.podxmas-cart-page .wc-proceed-to-checkout .checkout-button:hover {
	background: #333 !important;
	border-color: #333 !important;
}

body.podxmas-cart-page .checkout_coupon .coupon {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

body.podxmas-cart-page .checkout_coupon .widget-title {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #666;
}

body.podxmas-cart-page .checkout_coupon .input-text {
	min-height: 42px;
	border-radius: 8px;
	border: 1px solid #e8e8e8;
	margin-bottom: 0.5rem;
}

body.podxmas-cart-page .checkout_coupon .is-form.expand {
	width: 100%;
	min-height: 42px;
	border-radius: 8px;
	font-weight: 700;
	background: #fff;
	border: 1.5px solid #121212;
	color: #121212;
}

body.podxmas-cart-page .cross-sells {
	margin-top: 2rem;
}

body.podxmas-cart-page .cross-sells > h2 {
	font-size: 1.125rem;
	font-weight: 800;
	margin-bottom: 1rem;
}

/* Trust strip */
.podxmas-checkout-trust {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	text-align: center;
}

.podxmas-checkout-trust-label {
	margin: 0 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
}

.podxmas-checkout-trust-pay {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	margin-bottom: 0.45rem;
}

.podxmas-checkout-trust-pay .podxmas-pay-ico {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.podxmas-checkout-trust-pay .podxmas-pay-ico svg {
	display: block;
	height: 24px;
	width: auto;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	border-radius: 4px;
}

.podxmas-pay-badge-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 0.45rem;
	font-size: 0.625rem;
	font-weight: 700;
	color: #555;
	background: #f3f3f3;
	border-radius: 4px;
}

.podxmas-checkout-trust-note {
	margin: 0;
	font-size: 0.75rem;
	color: #888;
}

.podxmas-cart-buyer-protection {
	margin-top: 1rem;
	padding: 0.85rem;
	text-align: left;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
}

.podxmas-cart-buyer-protection-title {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #121212;
}

.podxmas-cart-buyer-protection-list {
	margin: 0;
	padding: 0 0 0 1rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #555;
}

.podxmas-cart-buyer-protection-list li + li {
	margin-top: 0.35rem;
}

/* Empty cart */
body.podxmas-cart-page .wc-empty-cart-message {
	display: none;
}

.podxmas-cart-empty {
	text-align: center;
	padding: 2rem 1rem 1.25rem;
}

.podxmas-cart-empty-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #f7921f;
}

.podxmas-cart-empty-title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	color: #121212;
}

.podxmas-cart-empty-lead {
	margin: 0 auto 1.25rem;
	max-width: 480px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #555;
}

body.podxmas-cart-page .return-to-shop {
	margin: 0 0 1.5rem;
	text-align: center;
}

body.podxmas-cart-page .return-to-shop .button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px;
	padding: 0.75rem 2rem !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 999px !important;
	background: #121212 !important;
	border-color: #121212 !important;
	color: #fff !important;
}

body.podxmas-cart-page .return-to-shop .button:hover {
	background: #333 !important;
}

.podxmas-cart-empty-cats {
	max-width: 640px;
	margin: 0 auto 2rem;
	text-align: center;
}

.podxmas-cart-empty-cats-label {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
}

.podxmas-cart-empty-cats-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
}

.podxmas-cart-empty-cat {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.5rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #121212;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.podxmas-cart-empty-cat:hover {
	border-color: #f7921f;
	background: #fff9f4;
	color: #c45a00;
}

@media (max-width: 849px) {
	body.podxmas-cart-page .woocommerce.row.row-divided {
		flex-direction: column;
	}

	body.podxmas-cart-page .cart-collaterals {
		margin-top: 1.25rem;
	}

	.podxmas-cart-empty-cats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Old country rate stays in the DOM until the cart AJAX returns. Hide it immediately. */
body.podxmas-cart-page .pdx-ship-pending .woocommerce-shipping-methods,
body.podxmas-cart-page .pdx-ship-pending #shipping_method,
body.podxmas-cart-page tr.pdx-ship-pending td > * {
	visibility: hidden;
}

body.podxmas-cart-page .pdx-ship-pending td,
body.podxmas-cart-page .woocommerce-shipping-totals.pdx-ship-pending {
	position: relative;
}

body.podxmas-cart-page .pdx-ship-pending td::after,
body.podxmas-cart-page .woocommerce-shipping-totals.pdx-ship-pending::after {
	content: "Updating shipping…";
	visibility: visible;
	position: absolute;
	left: 0;
	top: 0.15rem;
	font-size: 0.8125rem;
	color: #666;
}

body.podxmas-cart-page .cart_totals .woocommerce-shipping-totals,
body.podxmas-cart-page .cart_totals .podxmas-shipping-cost,
body.podxmas-cart-page .cart_totals #shipping_method {
	visibility: visible;
}

@media (max-width: 549px) {
	body.podxmas-cart-page .woocommerce-cart-form,
	body.podxmas-cart-page .woocommerce-cart-form .shop_table.cart,
	body.podxmas-cart-page .woocommerce-cart-form .shop_table.cart tbody {
		display: block !important;
		width: 100%;
		max-width: 100%;
		overflow: visible;
	}

	body.podxmas-cart-page .woocommerce-cart-form tbody tr.cart_item {
		display: grid !important;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		grid-template-columns: 64px minmax(0, 1fr) 36px;
		overflow: visible;
	}

	body.podxmas-cart-page .cart-wrapper.sm-touch-scroll {
		overflow: visible !important;
	}

	body.podxmas-cart-page .woocommerce-cart-form tbody tr.cart_item > td {
		display: block !important;
		min-width: 0;
	}

	/* The block rule above beats Flatsome's mobile display:none and paints a second price under the card. */
	body.podxmas-cart-page .woocommerce-cart-form tbody tr.cart_item > td.product-price,
	body.podxmas-cart-page .woocommerce-cart-form tbody tr.cart_item > td.product-subtotal {
		display: none !important;
	}

	body.podxmas-cart-page .woocommerce-cart-form .product-remove {
		grid-column: 3;
		grid-row: 1;
		position: static !important;
		width: auto !important;
	}

	body.podxmas-cart-page .woocommerce-cart-form .product-name,
	body.podxmas-cart-page .woocommerce-cart-form .product-quantity {
		min-width: 0;
		max-width: 100%;
	}

	body.podxmas-cart-page .woocommerce-cart-form .product-name a,
	body.podxmas-cart-page .woocommerce-cart-form .product-name dl.variation,
	body.podxmas-cart-page .woocommerce-cart-form .product-name dl.variation dd {
		overflow-wrap: anywhere;
	}

	body.podxmas-cart-page .woocommerce-cart-form .product-thumbnail img {
		width: 64px;
		height: 64px;
	}

	.podxmas-cart-empty-cats-grid {
		grid-template-columns: 1fr;
	}
}
