:root {
	--cart-border: #e3e3e3;
	--cart-surface: rgba(255, 255, 255, 0.96);
}

/* Cart Blocks UX refresh */
.page-cart-template {
	--cart-muted: #6b7280;
	--cart-accent: #efa92f;
	--cart-accent-hover: #f9c816;
}

.page-cart-template .wp-block-woocommerce-cart {
	max-width: 100%;
}

.page-cart-template .wc-block-cart {
	gap: 20px;
}

.page-cart-template .wc-block-components-sidebar-layout {
	align-items: flex-start;
}

.page-cart-template .wc-block-cart__main,
.page-cart-template .wc-block-cart__sidebar > * {
	border: 1px solid var(--cart-border);
	border-radius: 20px;
	background: var(--cart-surface);
	box-shadow: 0 16px 38px rgba(14, 20, 28, 0.07);
}

.page-cart-template .wc-block-cart__main {
	padding: 8px 16px;
}

.page-cart-template .wc-block-cart__sidebar {
	position: sticky;
	top: 110px;
}

.page-cart-template .wc-block-cart__sidebar > * {
	padding: 16px;
}

.page-cart-template .wc-block-components-product-name {
	color: var(--text);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.page-cart-template .wc-block-cart-items th {
	color: var(--cart-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.page-cart-template .wc-block-cart-items__row td {
	padding-top: 16px;
	padding-bottom: 16px;
}

.page-cart-template .wc-block-cart-item__image img {
	width: 92px;
	height: 92px;
	border-radius: 10px;
	background: #fff;
	object-fit: contain;
}

.page-cart-template .wc-block-cart-item__prices .wc-block-components-product-price__value,
.page-cart-template .wc-block-cart-item__total .wc-block-components-product-price__value {
	font-weight: 700;
}

.page-cart-template .wc-block-components-quantity-selector {
	border: 1px solid var(--cart-border);
	border-radius: 12px;
	overflow: hidden;
	width: auto !important;
}

.page-cart-template .wc-block-components-quantity-selector__input {
	min-height: 42px;
	border: 0;
}

.page-cart-template .wc-block-components-quantity-selector__button {
	min-width: 38px;
}

.page-cart-template .wc-block-cart-item__remove-link {
	color: #6d727c;
	font-size: 13px;
	text-decoration: none;
}

.page-cart-template .wc-block-components-button.wc-block-cart__submit-button {
	min-height: 48px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	background: var(--cart-accent);
	border-color: var(--cart-accent);
	color: #1d1d1d;
}

.page-cart-template .wc-block-components-button.wc-block-cart__submit-button:hover {
	background: var(--cart-accent-hover);
	border-color: var(--cart-accent-hover);
	color: #1d1d1d;
}

.page-cart-template .wc-block-components-totals-item__label {
	color: var(--cart-muted);
}

.page-cart-template .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.page-cart-template .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
}

@media (max-width: 767px) {
	.page-cart-template .wc-block-cart__main {
		padding: 6px 12px;
	}

	.page-cart-template .wc-block-components-sidebar-layout {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.page-cart-template .wc-block-cart__sidebar {
		position: static;
		top: auto;
		width: 100%;
	}

	.page-cart-template .wc-block-cart__sidebar > * {
		padding: 12px;
		border-radius: 14px;
	}

	.page-cart-template .wc-block-cart-items__header {
		display: none;
	}

	.page-cart-template .wc-block-cart-items tbody,
	.page-cart-template .wc-block-cart-items__row {
		display: block;
	}

	.page-cart-template .wc-block-cart-items__row {
		border-bottom: 1px solid rgba(15, 23, 42, 0.08);
		padding: 12px 0;
	}

	.page-cart-template .wc-block-cart-items__row td {
		display: block;
		width: 100%;
		padding: 4px 0;
	}

	.page-cart-template .wc-block-cart-item__image img {
		width: 72px;
		height: 72px;
	}

	.page-cart-template .wc-block-components-product-name {
		font-size: 14px;
		line-height: 1.3;
	}

	.page-cart-template .wc-block-cart-item__quantity {
		margin-top: 8px;
	}
}

.page-cart-template .container {
	width: 100% !important;
	max-width: 1440px !important;
}

.page-cart-template .hero {
	padding: 36px 0 14px;
}

.page-cart-template .single-content {
	padding: 0 0 50px;
}

.page-cart-template .entry-content > .woocommerce {
	display: grid;
	gap: 18px;
}

.page-cart-template .woocommerce-notices-wrapper {
	margin-bottom: 0;
}

.page-cart-template .woocommerce-message,
.page-cart-template .woocommerce-error,
.page-cart-template .woocommerce-info {
	border: 1px solid var(--cart-border);
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(14, 20, 28, 0.06);
}

.page-cart-template .woocommerce-cart-form,
.page-cart-template .cart-collaterals {
	border: 1px solid var(--cart-border);
	border-radius: 20px;
	background: var(--cart-surface);
	box-shadow: 0 16px 38px rgba(14, 20, 28, 0.07);
	padding: 18px;
}

.page-cart-template .shop_table {
	border-collapse: collapse;
	margin: 0;
	border: 0;
	width: 100%;
}

.page-cart-template .shop_table th,
.page-cart-template .shop_table td {
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	padding: 14px 10px;
	vertical-align: middle;
}

.page-cart-template .shop_table thead th {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.page-cart-template .shop_table tbody tr:last-child td {
	border-bottom: 0;
}

.page-cart-template .shop_table .product-thumbnail img {
	width: 86px;
	height: 86px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}

.page-cart-template .shop_table .product-name a {
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.page-cart-template .shop_table .product-price,
.page-cart-template .shop_table .product-subtotal {
	font-weight: 700;
}

.page-cart-template .shop_table .product-remove a {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #f1f2f5;
	color: #6d727c !important;
	line-height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.page-cart-template .quantity .qty {
	min-height: 42px;
	border: 1px solid var(--cart-border);
	border-radius: 10px;
	padding: 0 10px;
	font-size: 14px;
}

.page-cart-template .actions {
	padding-top: 14px !important;
}

.page-cart-template .actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.page-cart-template .actions .coupon input.input-text {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--cart-border);
	border-radius: 12px;
	font-size: 14px;
}

.page-cart-template .actions button,
.page-cart-template .actions .button,
.page-cart-template .wc-proceed-to-checkout .checkout-button,
.page-cart-template .return-to-shop .button {
	min-height: 44px;
	border-radius: 12px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
}

.page-cart-template .cart-collaterals {
	display: block;
}

.page-cart-template .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
}

.page-cart-template .cart_totals h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.page-cart-template .cart_totals .shop_table td,
.page-cart-template .cart_totals .shop_table th {
	padding: 12px 8px;
}

.page-cart-template .wc-proceed-to-checkout {
	margin-bottom: 0;
	padding-bottom: 0;
}

.page-cart-template .wc-proceed-to-checkout .checkout-button {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.page-cart-template .hero {
		padding: 20px 0 8px;
	}

	.page-cart-template .hero .section-title {
		margin: 0 0 8px;
		font-size: clamp(24px, 6.3vw, 32px);
		line-height: 1.18;
	}

	.page-cart-template .single-content > .container {
		padding: 0 16px 24px !important;
	}

	.page-cart-template .single-content {
		padding-bottom: 24px;
	}

	.page-cart-template .woocommerce-cart-form,
	.page-cart-template .cart-collaterals {
		padding: 12px;
		border-radius: 14px;
	}

	.page-cart-template .shop_table thead {
		display: none;
	}

	.page-cart-template .shop_table,
	.page-cart-template .shop_table tbody,
	.page-cart-template .shop_table tr,
	.page-cart-template .shop_table td {
		display: block;
		width: 100%;
	}

	.page-cart-template .shop_table tr {
		position: relative;
		padding: 12px 0;
		border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	}

	.page-cart-template .shop_table tr:last-child {
		border-bottom: 0;
	}

	.page-cart-template .shop_table td {
		padding: 4px 0;
		border-bottom: 0;
	}

	.page-cart-template .shop_table td::before {
		content: attr(data-title);
		display: inline-block;
		min-width: 78px;
		margin-right: 8px;
		color: var(--muted);
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
	}

	.page-cart-template .shop_table .product-remove {
		position: absolute;
		top: 10px;
		right: 0;
		width: auto;
	}

	.page-cart-template .shop_table .product-remove::before,
	.page-cart-template .shop_table .product-thumbnail::before,
	.page-cart-template .shop_table .actions::before {
		display: none !important;
		content: none !important;
	}

	.page-cart-template .shop_table .product-thumbnail img {
		width: 68px;
		height: 68px;
	}

	.page-cart-template .shop_table .product-name a {
		font-size: 14px;
		line-height: 1.28;
		padding-right: 30px;
		display: block;
	}

	.page-cart-template .shop_table .product-price,
	.page-cart-template .shop_table .product-subtotal,
	.page-cart-template .shop_table .product-quantity {
		display: inline-grid;
		grid-template-columns: auto auto;
		gap: 6px;
		width: auto;
		margin-right: 10px;
		padding: 0;
		vertical-align: top;
	}

	.page-cart-template .shop_table .product-price::before,
	.page-cart-template .shop_table .product-subtotal::before,
	.page-cart-template .shop_table .product-quantity::before {
		min-width: 0;
		margin-right: 0;
		font-size: 9px;
	}

	.page-cart-template .shop_table .product-price .amount,
	.page-cart-template .shop_table .product-subtotal .amount {
		font-size: 14px;
	}

	.page-cart-template .quantity .qty {
		width: 92px;
		min-height: 36px;
		font-size: 13px;
	}

	.page-cart-template .actions {
		padding-top: 10px !important;
	}

	.page-cart-template .actions .coupon {
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.page-cart-template .actions .coupon input.input-text,
	.page-cart-template .actions .coupon .button,
	.page-cart-template .actions > .button,
	.page-cart-template .wc-proceed-to-checkout .checkout-button {
		width: 100% !important;
	}

	.page-cart-template .actions .coupon input.input-text {
		min-height: 42px;
	}

	.page-cart-template .actions button,
	.page-cart-template .actions .button,
	.page-cart-template .wc-proceed-to-checkout .checkout-button {
		min-height: 42px;
		font-size: 13px;
	}

	.page-cart-template .cart_totals h2 {
		font-size: 20px;
		margin-bottom: 8px;
	}

	.page-cart-template .cart_totals .shop_table td,
	.page-cart-template .cart_totals .shop_table th {
		padding: 10px 6px;
		font-size: 13px;
	}

	.page-cart-template .cart_totals .shop_table td::before {
		display: none;
	}
}
