/*
 * Cart and checkout long-content layout.
 * Loaded only on cart/checkout screens so product metadata cannot squeeze into
 * unreadable one-character columns and the rest of the storefront stays lean.
 */

/* Cart — reserve the flexible part of the row for the product and its options. */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .woocommerce-cart-form table.cart,
.woocommerce-cart table.cart td.product-name {
	min-width: 0;
}

.woocommerce-cart .woocommerce-cart-form table.cart {
	width: 100% !important;
	table-layout: auto !important;
}

.woocommerce-cart table.cart :where(th.product-remove, td.product-remove) {
	width: 52px !important;
}

.woocommerce-cart table.cart :where(th.product-thumbnail, td.product-thumbnail) {
	width: 104px !important;
}

.woocommerce-cart table.cart :where(th.product-name, td.product-name) {
	width: auto !important;
	min-width: 280px;
}

.woocommerce-cart table.cart :where(th.product-price, td.product-price) {
	width: 112px !important;
}

.woocommerce-cart table.cart :where(th.product-quantity, td.product-quantity) {
	width: 118px !important;
}

.woocommerce-cart table.cart :where(th.product-subtotal, td.product-subtotal) {
	width: 126px !important;
}

.woocommerce-cart table.cart td.product-name > a {
	display: block;
	max-width: 52ch;
	line-height: 1.75;
	text-wrap: pretty;
}

.woocommerce-cart table.cart td.product-name :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) {
	width: 100% !important;
	max-width: 52rem;
	box-sizing: border-box;
	word-break: normal !important;
}

.woocommerce-cart table.cart td.product-name dl.variation {
	display: grid !important;
	grid-template-columns: minmax(9rem, 38%) minmax(12rem, 1fr) !important;
	gap: 6px 12px !important;
	align-items: start;
}

.woocommerce-cart table.cart td.product-name dl.variation :where(dt, dd) {
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word;
}

.woocommerce-cart table.cart td.product-name dl.variation dt {
	color: var(--zc-muted, #64748b);
	font-weight: 650;
}

.woocommerce-cart table.cart td.product-name dl.variation dd {
	color: var(--zc-ink-soft, #334155);
	font-weight: 550;
}

.woocommerce-cart table.cart td.product-name dl.variation :where(p, a) {
	display: inline;
	margin: 0 !important;
	white-space: normal !important;
	word-break: normal !important;
}

/* Common add-on plugins output list metadata rather than a definition list. */
.woocommerce-cart table.cart td.product-name :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) {
	display: grid;
	gap: 6px;
	margin-block: 10px 0 !important;
	padding: 0 !important;
	list-style: none;
}

.woocommerce-cart table.cart td.product-name :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) > li {
	display: grid;
	grid-template-columns: minmax(9rem, 38%) minmax(12rem, 1fr);
	gap: 12px;
	min-width: 0;
}

.woocommerce-cart table.cart td.product-name :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) > li > * {
	min-width: 0;
	margin: 0 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word;
}

/* Checkout — a roomier summary and full-width, balanced option rows. */
.woocommerce-checkout form.checkout {
	grid-template-columns: minmax(0, 1.25fr) minmax(420px, .85fr) !important;
}

.woocommerce-checkout :where(#order_review, .zc-checkout-products-section, .zc-checkout-order-scroll, .woocommerce-checkout-review-order-table),
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name {
	min-width: 0 !important;
	width: 100% !important;
	box-sizing: border-box;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
	table-layout: auto !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
	width: 72% !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
	width: 28% !important;
}

.woocommerce-checkout .zc-checkout-item-details {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}

.woocommerce-checkout .zc-checkout-item-details :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) {
	width: 100% !important;
	box-sizing: border-box;
	word-break: normal !important;
}

.woocommerce-checkout .zc-checkout-item-details dl.variation {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 3px !important;
}

.woocommerce-checkout .zc-checkout-item-details dl.variation :where(dt, dd, p, a) {
	min-width: 0;
	margin: 0 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word;
}

.woocommerce-checkout .zc-checkout-item-details dl.variation dt {
	margin-top: 8px !important;
	color: var(--zc-muted, #64748b);
	font-size: .66rem;
	font-weight: 700;
}

.woocommerce-checkout .zc-checkout-item-details dl.variation dt:first-child {
	margin-top: 0 !important;
}

.woocommerce-checkout .zc-checkout-item-details dl.variation dd {
	padding-bottom: 5px !important;
	color: var(--zc-ink-soft, #334155);
	font-size: .71rem;
	line-height: 1.85;
}

.woocommerce-checkout .zc-checkout-item-details :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) {
	display: grid;
	gap: 6px;
	padding-inline: 10px !important;
	list-style: none;
}

.woocommerce-checkout .zc-checkout-item-details :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3px;
	min-width: 0;
	padding-block: 6px;
}

.woocommerce-checkout .zc-checkout-item-details :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) > li > * {
	min-width: 0;
	margin: 0 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word;
}

/* At tablet widths both commerce flows need the whole row, not squeezed columns. */
@media (max-width: 1100px) {
	.woocommerce-cart .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.woocommerce-cart .woocommerce-cart-form,
	.woocommerce-cart .cart-collaterals {
		grid-column: 1 !important;
		grid-row: auto !important;
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		position: static;
	}

	.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.woocommerce-checkout :where(#customer_details, #order_review_heading, #order_review) {
		grid-column: 1 !important;
		grid-row: auto !important;
	}

	.woocommerce-checkout #order_review {
		position: static !important;
	}
}

@media (max-width: 700px) {
	.woocommerce-cart table.cart :where(th.product-name, td.product-name) {
		min-width: 0;
	}

	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options),
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) > li {
		grid-template-columns: minmax(7.25rem, 40%) minmax(0, 1fr) !important;
	}
}

@media (max-width: 440px) {
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item {
		grid-template-columns: 78px minmax(0, 1fr) !important;
		gap: 0 10px !important;
		padding: 12px !important;
	}

	.woocommerce-cart table.cart td.product-thumbnail > a,
	.woocommerce-cart table.cart td.product-thumbnail > a > img,
	.woocommerce-cart table.cart td.product-thumbnail > img {
		width: 72px !important;
		max-width: 72px !important;
		height: 72px !important;
		max-height: 72px !important;
	}

	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name {
		padding-left: 42px !important;
	}

	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options),
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) > li,
	.woocommerce-checkout .zc-checkout-item-details dl.variation,
	.woocommerce-checkout .zc-checkout-item-details :where(ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) > li {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 2px !important;
	}

	.woocommerce-cart table.cart td.product-name dl.variation dt,
	.woocommerce-checkout .zc-checkout-item-details dl.variation dt {
		margin-top: 5px !important;
	}
}

/* 1.75 — cart rebuilt as resilient product cards instead of a squeezed table. */
.woocommerce-cart .woocommerce-shell {
	padding-top: clamp(16px, 2vw, 28px) !important;
}

.woocommerce-cart .woocommerce-shell > .woocommerce > h1,
.woocommerce-cart .entry-title {
	grid-column: 1 / -1;
	margin: 0 0 clamp(22px, 2.5vw, 34px) !important;
	font-size: clamp(2rem, 3.8vw, 3.65rem) !important;
	line-height: 1.25 !important;
	text-wrap: balance;
}

.woocommerce-cart .woocommerce {
	grid-template-columns: minmax(0, 1fr) minmax(290px, 330px) !important;
	gap: clamp(20px, 2.4vw, 32px) !important;
}

.woocommerce-cart .woocommerce-cart-form table.cart,
.woocommerce-cart .woocommerce-cart-form table.cart > tbody {
	display: block !important;
	width: 100% !important;
	border-spacing: 0 !important;
}

.woocommerce-cart .woocommerce-cart-form table.cart > thead {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
	position: relative;
	display: grid !important;
	grid-template-columns: 96px repeat(3, minmax(0, 1fr));
	grid-template-areas:
		"thumb name name name"
		"price quantity subtotal subtotal";
	align-items: center;
	gap: 18px 14px;
	width: 100% !important;
	min-width: 0;
	margin: 0 0 14px;
	padding: 18px 52px 18px 16px;
	box-sizing: border-box;
	border: 1px solid var(--zc-line-soft, #e2e8f0) !important;
	border-radius: 18px !important;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item > td {
	display: block !important;
	width: auto !important;
	min-width: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.woocommerce-cart table.cart tr.cart_item td.product-thumbnail {
	grid-area: thumb;
	display: grid !important;
	place-items: center;
}

.woocommerce-cart table.cart tr.cart_item td.product-name {
	grid-area: name;
	min-width: 0 !important;
}

.woocommerce-cart table.cart tr.cart_item td.product-price {
	grid-area: price;
}

.woocommerce-cart table.cart tr.cart_item td.product-quantity {
	grid-area: quantity;
}

.woocommerce-cart table.cart tr.cart_item td.product-subtotal {
	grid-area: subtotal;
}

.woocommerce-cart table.cart tr.cart_item td.product-remove {
	position: absolute;
	inset-block-start: 18px;
	inset-inline-end: 14px;
	z-index: 2;
}

.woocommerce-cart table.cart tr.cart_item td.product-name > a {
	font-size: .9rem;
	font-weight: 850 !important;
	line-height: 1.8;
}

.woocommerce-cart table.cart tr.cart_item td.product-name :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) {
	margin-top: 12px !important;
	padding: 12px !important;
	border-radius: 12px;
	background: var(--zc-paper, #f8fafc);
	font-size: .7rem;
	line-height: 1.75;
}

.woocommerce-cart table.cart tr.cart_item :where(td.product-price, td.product-quantity, td.product-subtotal) {
	display: grid !important;
	justify-items: center;
	gap: 8px;
	min-height: 58px;
	align-content: center;
	padding-top: 12px !important;
	border-top: 1px solid var(--zc-line-soft, #e2e8f0) !important;
	text-align: center !important;
}

.woocommerce-cart table.cart tr.cart_item :where(td.product-price, td.product-quantity, td.product-subtotal)::before {
	display: block !important;
	color: var(--zc-muted, #64748b);
	font-size: .66rem;
	font-weight: 700;
	line-height: 1.5;
}

.woocommerce-cart table.cart tr.cart_item td.product-price::before { content: "قیمت" !important; }
.woocommerce-cart table.cart tr.cart_item td.product-quantity::before { content: "تعداد" !important; }
.woocommerce-cart table.cart tr.cart_item td.product-subtotal::before { content: "جمع جزء" !important; }

.woocommerce-cart table.cart tr.cart_item :where(td.product-price, td.product-subtotal) {
	font-size: .78rem;
}

.woocommerce-cart .woocommerce-cart-form table.cart tr:not(.cart_item) {
	display: block !important;
	width: 100%;
}

.woocommerce-cart .woocommerce-cart-form table.cart tr:not(.cart_item) td.actions {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 14px;
	width: 100% !important;
	box-sizing: border-box;
	padding: 16px !important;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon {
	width: min(100%, 560px) !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
	top: 24px;
	padding: 22px;
	border-radius: 18px;
}

/* Checkout address editor: one unambiguous confirmation action at task end. */
.woocommerce-checkout .zc-address-section.is-editing .zc-address-card {
	padding-bottom: 12px !important;
}

.woocommerce-checkout .zc-address-section.is-editing .zc-address-summary,
.woocommerce-checkout .zc-address-section.is-editing .zc-address-support {
	display: none !important;
}

.woocommerce-checkout .zc-address-toggle[hidden] {
	display: none !important;
}

.woocommerce-checkout .zc-address-save--top {
	display: none !important;
}

.woocommerce-checkout .zc-address-save--bottom {
	width: 100%;
	min-height: 52px;
	margin-top: 16px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--zc-primary, #2563eb) !important;
	color: #fff !important;
	font-size: .82rem;
	font-weight: 850;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.woocommerce-checkout .zc-address-save--bottom:hover {
	background: var(--zc-primary-dark, #1d4ed8) !important;
}

.woocommerce-checkout .zc-address-save--bottom:focus-visible {
	outline: 3px solid #f59e0b;
	outline-offset: 3px;
}

.woocommerce-checkout .zc-address-card.is-just-saved {
	animation: zc-address-saved .85s ease-out;
}

@keyframes zc-address-saved {
	0% { background: #dcfce7; }
	100% { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce-checkout .zc-address-card.is-just-saved { animation: none; }
}

@media (max-width: 1220px) {
	.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
		grid-template-columns: 88px repeat(3, minmax(0, 1fr));
		gap: 16px 12px;
		padding-inline-start: 16px;
	}
}

@media (max-width: 1100px) {
	.woocommerce-cart .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		width: 100% !important;
		box-sizing: border-box;
	}
}

@media (max-width: 760px) {
	.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-areas:
			"thumb thumb thumb"
			"name name name"
			"price quantity subtotal";
		align-items: start;
		gap: 14px 10px;
		padding: 16px 48px 16px 14px;
	}

	.woocommerce-cart table.cart tr.cart_item td.product-thumbnail {
		grid-column: 1 / -1 !important;
		grid-row: auto !important;
		align-self: start;
		justify-self: start;
	}

	.woocommerce-cart table.cart tr.cart_item td.product-name {
		grid-column: 1 / -1 !important;
		grid-row: auto !important;
		padding-inline-start: 0 !important;
	}

	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-price {
		grid-column: 1 !important;
		grid-row: auto !important;
	}

	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-quantity {
		grid-column: 2 !important;
		grid-row: auto !important;
	}

	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-subtotal {
		grid-column: 3 !important;
		grid-row: auto !important;
	}

	.woocommerce-cart table.cart tr.cart_item td.product-name :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) {
		grid-template-columns: minmax(7.5rem, 40%) minmax(0, 1fr) !important;
	}

	.woocommerce-cart .woocommerce-cart-form table.cart tr:not(.cart_item) td.actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.woocommerce-cart .woocommerce-shell > .woocommerce > h1,
	.woocommerce-cart .entry-title {
		font-size: clamp(1.85rem, 10vw, 2.65rem) !important;
	}
}

/* 1.77 — decisive purchase-flow redesign. Kept at the end to retire the old
   table-era geometry without touching WooCommerce templates. */
.woocommerce-cart .woocommerce-shell,
.woocommerce-checkout .woocommerce-shell {
	width: min(calc(100% - 40px), 1280px) !important;
	margin-inline: auto !important;
	padding-top: clamp(22px, 3vw, 40px) !important;
}

.woocommerce-cart .woocommerce-shell > .woocommerce > h1,
.woocommerce-checkout .woocommerce-shell > .woocommerce > h1,
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title {
	margin: 0 0 10px !important;
	font-size: clamp(1.85rem, 2.5vw, 2.65rem) !important;
	line-height: 1.12 !important;
	letter-spacing: -.055em !important;
}

.zc-cart-intro,
.zc-checkout-intro {
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid #c9d8f4;
	border-radius: 20px;
	background: linear-gradient(120deg, #fff 0 68%, #edf4ff 68%);
	box-shadow: 0 14px 38px rgba(15, 23, 42, .055);
}

.zc-cart-intro {
	grid-area: intro;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
	padding: 18px 20px;
}

.zc-cart-intro__mark {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: #195eea;
	color: #fff;
	font-weight: 900;
}

.zc-cart-intro h2,
.zc-checkout-intro h2 { margin: 0 !important; color: #0b1730; font-size: 1rem !important; line-height: 1.7 !important; }
.zc-cart-intro p,
.zc-checkout-intro p { margin: 3px 0 0; color: #64748b; font-size: .74rem; line-height: 1.8; }
.zc-cart-intro > a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #b9cdf8; border-radius: 11px; background: #fff; color: #1649b9; font-size: .76rem; font-weight: 850; white-space: nowrap; }

.woocommerce-cart .woocommerce {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(310px, 360px) !important;
	grid-template-areas:
		"title title"
		"notice notice"
		"intro intro"
		"cart totals" !important;
	align-items: start !important;
	gap: 0 28px !important;
}
.woocommerce-cart .woocommerce > h1,
.woocommerce-cart .entry-title { grid-area: title !important; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-area: notice !important; }
.woocommerce-cart .woocommerce-cart-form { grid-area: cart !important; width: 100% !important; padding: 0 !important; }
.woocommerce-cart .cart-collaterals { grid-area: totals !important; width: 100% !important; margin: 0 !important; }

.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
	grid-template-columns: 44px 104px repeat(3, minmax(0, 1fr)) !important;
	grid-template-areas: "remove thumb name name name" ". . price quantity subtotal" !important;
	align-items: start !important;
	gap: 16px !important;
	margin-bottom: 16px !important;
	padding: 18px !important;
	border-color: #dce4ef !important;
	border-radius: 20px !important;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .045) !important;
}
.woocommerce-cart table.cart tr.cart_item td.product-remove { position: static !important; grid-area: remove; }
.woocommerce-cart table.cart tr.cart_item td.product-remove a { width: 40px !important; height: 40px !important; border-radius: 11px !important; }
.woocommerce-cart table.cart tr.cart_item td.product-thumbnail { grid-area: thumb; }
.woocommerce-cart table.cart td.product-thumbnail > a { width: 96px !important; height: 96px !important; border-radius: 14px !important; }
.woocommerce-cart table.cart td.product-thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.woocommerce-cart table.cart tr.cart_item td.product-name { grid-area: name; padding-inline: 0 !important; }
.woocommerce-cart table.cart tr.cart_item td.product-name > a { max-width: none !important; color: #0b1730 !important; font-size: .92rem !important; line-height: 1.75 !important; }
.woocommerce-cart table.cart tr.cart_item td.product-name :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) {
	display: grid !important;
	grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr) !important;
	gap: 7px 12px !important;
	width: 100% !important;
	max-width: none !important;
	margin-top: 12px !important;
	padding: 13px 14px !important;
	box-sizing: border-box !important;
	border: 1px solid #e2e8f0;
	border-radius: 13px;
	background: #f8fafc !important;
}
.woocommerce-cart table.cart tr.cart_item td.product-price { grid-area: price; }
.woocommerce-cart table.cart tr.cart_item td.product-quantity { grid-area: quantity; }
.woocommerce-cart table.cart tr.cart_item td.product-subtotal { grid-area: subtotal; }
.woocommerce-cart table.cart tr.cart_item :where(td.product-price, td.product-quantity, td.product-subtotal) { min-height: 64px !important; padding-top: 12px !important; border-top: 1px solid #e2e8f0 !important; border-inline-start: 0 !important; }

.woocommerce-cart .woocommerce-cart-form table.cart tr:not(.cart_item) td.actions {
	margin-top: 4px;
	padding: 16px !important;
	border: 1px solid #dce4ef !important;
	border-radius: 16px !important;
	background: #fff !important;
}
.woocommerce-cart .cart-collaterals .cart_totals { position: sticky !important; top: 24px !important; padding: 22px !important; border-color: #c9d8f4 !important; border-radius: 20px !important; box-shadow: 0 18px 44px rgba(15,23,42,.09) !important; }
.woocommerce-cart .cart-collaterals .cart_totals h2 { margin: 0 !important; padding: 0 0 16px !important; font-size: 1.05rem !important; }

.zc-checkout-intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 24px;
	padding: 20px 22px;
}
.zc-checkout-intro > div > span { display: block; margin-bottom: 3px; color: #195eea; font-size: .7rem; font-weight: 900; }
.zc-checkout-intro ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.zc-checkout-intro li { position: relative; padding-inline-start: 17px; color: #334155; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.zc-checkout-intro li:before { position: absolute; inset-inline-start: 0; top: .38em; width: 8px; height: 8px; border-radius: 3px; background: #15803d; content: ""; transform: rotate(16deg); }

.woocommerce-checkout form.checkout { width: 100% !important; max-width: 100% !important; grid-template-columns: minmax(0, 1fr) minmax(480px, 520px) !important; gap: 28px !important; box-sizing: border-box; }
.woocommerce-checkout #customer_details { display: block !important; padding: 20px !important; border-radius: 20px !important; }
.woocommerce-checkout #customer_details > div,
.woocommerce-checkout #customer_details > .col-1,
.woocommerce-checkout #customer_details > .col-2 {
	float: none !important;
	clear: both !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-sizing: border-box !important;
}
.woocommerce-checkout #customer_details > div + div { margin-top: 16px !important; padding-top: 16px !important; border-top: 1px solid #e2e8f0 !important; }
.woocommerce-checkout .zc-address-section { width: 100%; min-width: 0; margin: 0 !important; padding: 16px; border: 1px solid #dce4ef; border-radius: 16px; background: #f8fafc; box-sizing: border-box; }
.woocommerce-checkout .zc-address-card { width: 100%; min-width: 0; box-sizing: border-box; }
.woocommerce-checkout .zc-address-card > header { flex-wrap: wrap; gap: 12px; }
.woocommerce-checkout .zc-address-card__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.woocommerce-checkout .zc-address-close { min-width: 72px; min-height: 44px; padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #475569; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.woocommerce-checkout .zc-address-close:hover { border-color: #94a3b8; background: #f8fafc; color: #0f172a; }
.woocommerce-checkout .zc-address-close:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.woocommerce-checkout .zc-address-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; }
.woocommerce-checkout .zc-address-summary > :first-child { grid-column: 1 / -1; }
.woocommerce-checkout #ship-to-different-address { margin: 20px 0 0 !important; }
.woocommerce-checkout #ship-to-different-address label { display: grid !important; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 14px; width: 100%; min-height: 72px; margin: 0 !important; padding: 12px 14px; border: 1px solid #bfdbfe !important; border-radius: 14px !important; background: linear-gradient(135deg,#fff,#eff6ff) !important; color: #0f172a !important; box-sizing: border-box; cursor: pointer; }
.woocommerce-checkout #ship-to-different-address label::after { content: "برای تحویل سفارش به گیرنده یا نشانی دیگری فعال کنید."; grid-column: 1; color: #64748b; font-size: .66rem; font-weight: 500; line-height: 1.7; }
.woocommerce-checkout #ship-to-different-address-checkbox { appearance: none; -webkit-appearance: none; position: relative; grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 28px; margin: 0 !important; border: 1px solid #cbd5e1; border-radius: 999px; background: #e2e8f0; cursor: pointer; transition: background-color .18s ease,border-color .18s ease; }
.woocommerce-checkout #ship-to-different-address-checkbox::before { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.18); transition: transform .18s ease; }
.woocommerce-checkout #ship-to-different-address-checkbox:checked { border-color: #2563eb; background: #2563eb; }
.woocommerce-checkout #ship-to-different-address-checkbox:checked::before { transform: translateX(-20px); }
.woocommerce-checkout #ship-to-different-address-checkbox:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.woocommerce-checkout #ship-to-different-address label:has(#ship-to-different-address-checkbox:checked) { border-color: #93c5fd !important; box-shadow: 0 8px 24px rgba(37,99,235,.09); }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 16px; }
.woocommerce-checkout .woocommerce-additional-fields > h3 { margin-bottom: 12px !important; }
.woocommerce-checkout #order_comments_field { margin-bottom: 0 !important; }
.woocommerce-checkout #order_review { width: 100% !important; max-width: 100% !important; margin-inline: 0 !important; padding: 16px !important; box-sizing: border-box; border-color: #c9d8f4 !important; border-radius: 20px !important; box-shadow: 0 18px 44px rgba(15,23,42,.09) !important; }
.woocommerce-checkout .zc-checkout-products-section,
.woocommerce-checkout .zc-checkout-shipping-section,
.woocommerce-checkout .zc-checkout-totals-section,
.woocommerce-checkout #payment { border-radius: 14px !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item { padding: 14px !important; border-radius: 12px !important; background: #f8fafc !important; }
.woocommerce-checkout .zc-checkout-item-details :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) { padding: 12px !important; }

@media (max-width: 1180px) {
	.woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "title" "notice" "intro" "cart" "totals" !important; }
	.woocommerce-cart .cart-collaterals { margin-top: 20px !important; }
	.woocommerce-cart .cart-collaterals .cart_totals { position: static !important; }
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr) !important; }
	.woocommerce-checkout #order_review { position: static !important; }
}

@media (max-width: 860px) {
	.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
		grid-template-columns: 44px 88px repeat(3, minmax(0, 1fr)) !important;
		grid-template-areas: "remove thumb name name name" ". . price quantity subtotal" !important;
	}
	.woocommerce-cart table.cart td.product-thumbnail > a { width: 82px !important; height: 82px !important; }
	.woocommerce-cart table.cart tr.cart_item :where(td.product-price, td.product-quantity, td.product-subtotal) { min-height: 64px !important; }
}

@media (max-width: 700px) {
	.woocommerce-cart .woocommerce-shell,.woocommerce-checkout .woocommerce-shell { width: min(calc(100% - 24px), 1280px) !important; padding-top: 18px !important; }
	.woocommerce-cart .woocommerce-shell > .woocommerce > h1,
	.woocommerce-checkout .woocommerce-shell > .woocommerce > h1,
	.woocommerce-cart .entry-title,
	.woocommerce-checkout .entry-title { margin-bottom: 16px !important; font-size: clamp(1.5rem, 7vw, 1.8rem) !important; letter-spacing: -.025em !important; }
	.zc-cart-intro { grid-template-columns: auto minmax(0, 1fr); padding: 15px; }
	.zc-cart-intro > a { grid-column: 1 / -1; justify-content: center; }
	.zc-checkout-intro { display: grid; padding: 16px; background: linear-gradient(145deg,#fff,#edf4ff); }
	.zc-checkout-intro ul { gap: 7px 14px; }
	.woocommerce-checkout #customer_details { padding: 12px !important; }
	.woocommerce-checkout .zc-address-section { padding: 13px; }
	.woocommerce-checkout .zc-address-section.is-editing { padding: 10px 10px calc(104px + env(safe-area-inset-bottom)) !important; scroll-padding-block: 76px calc(112px + env(safe-area-inset-bottom)); }
	.woocommerce-checkout .zc-address-section.is-editing > :where(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) { flex: 0 0 auto; margin-top: 8px !important; padding: 10px !important; }
	.woocommerce-checkout .zc-address-section.is-editing .form-row { grid-template-rows: auto auto auto !important; margin: 0 0 10px !important; }
	.woocommerce-checkout .zc-address-section.is-editing .form-row > label { min-height: 0; align-items: center; margin-bottom: 5px !important; padding: 0 !important; }
	.woocommerce-checkout .zc-address-section.is-editing .form-row :where(.description,.woocommerce-input-wrapper + span):empty { display: none !important; min-height: 0 !important; padding: 0 !important; }
	.woocommerce-checkout .zc-address-section.is-editing .form-row :where(.description,.woocommerce-input-wrapper + span):not(:empty) { min-height: 0 !important; margin: 4px 0 0 !important; padding: 5px 8px !important; border-radius: 7px; background: #f8fafc; line-height: 1.65; }
	.woocommerce-checkout .zc-address-section.is-editing :where(.woocommerce-invalid,.woocommerce-invalid-required-field) > label { display: flex !important; align-items: center !important; gap: 7px; }
	.woocommerce-checkout .zc-address-section.is-editing :where(.woocommerce-invalid,.woocommerce-invalid-required-field) > label::before { position: static !important; inset: auto !important; flex: 0 0 20px; order: 2; }
	.woocommerce-checkout .zc-address-section.is-editing :where(.woocommerce-invalid,.woocommerce-invalid-required-field) :where(input.input-text,select,textarea,.select2-selection) { transition: none !important; animation: none !important; }
	.woocommerce-checkout .zc-address-summary { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-checkout .zc-address-summary > :first-child { grid-column: auto; }
	.woocommerce-checkout #ship-to-different-address { margin-top: 18px !important; }
	.woocommerce-checkout #ship-to-different-address label { min-height: 72px; padding: 10px 12px; font-size: .8rem; line-height: 1.65; }
	.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
		grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
		grid-template-areas: "thumb thumb thumb thumb thumb remove" "name name name name name name" "quantity quantity quantity quantity quantity quantity" "price price price price price price" "subtotal subtotal subtotal subtotal subtotal subtotal" !important;
		grid-auto-rows: auto !important;
		align-items: start !important;
		gap: 12px 10px !important;
		min-height: 0 !important;
		padding: 13px !important;
	}
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item > td { grid-column: auto !important; grid-row: auto !important; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-remove { position: static !important; inset: auto !important; grid-area: remove !important; align-self: start !important; justify-self: end !important; padding: 0 !important; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-remove a { display: grid !important; place-items: center !important; width: 40px !important; height: 40px !important; font-size: 1.15rem !important; text-decoration: none !important; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-thumbnail { grid-area: thumb !important; align-self: start !important; justify-self: start !important; padding: 0 !important; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name { grid-area: name !important; align-self: start !important; padding: 0 !important; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-price { grid-area: price !important; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-quantity { grid-area: quantity !important; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-subtotal { grid-area: subtotal !important; }
	.woocommerce-cart table.cart td.product-thumbnail > a { width: 70px !important; height: 70px !important; }
	.woocommerce-cart table.cart tr.cart_item td.product-name > a { font-size: .84rem !important; line-height: 1.75 !important; }
	.woocommerce-cart table.cart tr.cart_item td.product-name :where(dl.variation, ul.wc-item-meta, .tc-epo-metadata, .tm-cart-edit-options) { grid-template-columns: minmax(0, 1fr) !important; gap: 3px !important; padding: 11px !important; }
	.woocommerce-cart table.cart tr.cart_item :where(td.product-price, td.product-quantity, td.product-subtotal) { display:flex !important; flex-direction:row !important; justify-content:space-between !important; align-items:center !important; min-width:0; min-height:54px !important; text-align:start !important; font-size:.85rem !important; }
	.woocommerce-cart table.cart tr.cart_item td.product-quantity .zc-quantity { margin:0 !important; }
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce-checkout #ship-to-different-address-checkbox,
	.woocommerce-checkout #ship-to-different-address-checkbox::before { transition: none; }
}

@media (max-width: 420px) {
	.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item { grid-template-columns: repeat(6, minmax(0,1fr)) !important; gap-inline: 8px !important; }
	.woocommerce-cart table.cart td.product-thumbnail > a { width: 62px !important; height: 62px !important; }
	.woocommerce-cart table.cart tr.cart_item :where(td.product-price, td.product-quantity, td.product-subtotal) { font-size: .82rem !important; }
}

/* Checkout 1.78.7 — make the semantic product table the primary review
 * surface and remove the redundant outer card. */
@media (min-width: 1101px) {
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr) !important; gap: 32px !important; }
}

.woocommerce-checkout #order_review_heading {
	position: static !important; z-index: auto !important; grid-column: 2 !important; grid-row: 1 !important;
	align-self: end !important; margin: 0 0 12px !important; padding: 0 !important; pointer-events: auto !important;
	font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
}
.woocommerce-checkout #order_review {
	grid-column: 2 !important; grid-row: 2 !important; width: 100% !important; max-width: none !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; box-shadow: none !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table {
	display: table !important; width: 100% !important; min-width: 0 !important; margin: 0 0 18px !important;
	padding: 0 !important; border: 0 !important; border-collapse: separate !important; border-spacing: 0 12px !important;
	table-layout: fixed !important; background: transparent !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead {
	display: table-header-group !important; position: static !important; width: auto !important; height: auto !important;
	margin: 0 !important; padding: 0 !important; overflow: visible !important; clip: auto !important; white-space: normal !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody { display: table-row-group !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot { display: table-footer-group !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tr { display: table-row !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table :where(th, td) { display: table-cell !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
	padding: 0 14px 8px !important; border: 0 !important; background: transparent !important;
	color: var(--zc-muted) !important; font-size: .72rem !important; font-weight: 750 !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table :where(th.product-name, td.product-name) { width: 72% !important; text-align: start !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table :where(th.product-total, td.product-total) { width: 28% !important; text-align: end !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .zc-checkout-product-column { width: 72% !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .zc-checkout-total-column { width: 28% !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > :where(th, td) {
	width: auto !important; padding: 14px !important; vertical-align: middle !important;
	border-block: 1px solid var(--zc-line) !important; background: var(--zc-surface) !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > .product-name {
	border-inline-start: 1px solid var(--zc-line) !important;
	border-radius: 0 var(--zc26-r2, 16px) var(--zc26-r2, 16px) 0 !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > .product-total {
	border-inline-end: 1px solid var(--zc-line) !important;
	border-radius: var(--zc26-r2, 16px) 0 0 var(--zc26-r2, 16px) !important;
	white-space: nowrap !important; font-size: .84rem !important; font-variant-numeric: tabular-nums;
}
.woocommerce-checkout .zc-checkout-product {
	display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0;
}
.woocommerce-checkout .zc-checkout-product__media,
.woocommerce-checkout .zc-checkout-product__media > a { display: block; width: 86px; aspect-ratio: 1; }
.woocommerce-checkout .zc-checkout-product__media img {
	display: block; width: 100% !important; height: 100% !important; margin: 0 !important;
	border: 1px solid var(--zc-line) !important; border-radius: var(--zc26-r1, 10px) !important;
	background: var(--zc26-paper, #f6f8fc); object-fit: cover;
}
.woocommerce-checkout .zc-checkout-product__content {
	display: flex; min-width: 0; align-items: flex-start; flex-direction: column; gap: 7px;
}
.woocommerce-checkout .zc-checkout-product__title {
	min-width: 0; color: var(--zc-ink) !important; font-size: .82rem; font-weight: 800; line-height: 1.8; overflow-wrap: anywhere;
}
.woocommerce-checkout .zc-checkout-item-details {
	margin: 10px 100px 0 0 !important; border-color: var(--zc-line) !important; background: var(--zc26-paper, #f6f8fc) !important;
}
.woocommerce-checkout .zc-checkout-item-details summary {
	min-height: 44px !important;
}

@media (max-width: 1100px) {
	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review { grid-column: 1 !important; grid-row: auto !important; }
	.woocommerce-checkout #order_review_heading { margin: 22px 0 10px !important; }
}
@media (max-width: 640px) {
	.woocommerce-checkout .woocommerce-checkout-review-order-table { border-spacing: 0 10px !important; }
	.woocommerce-checkout .woocommerce-checkout-review-order-table :where(th.product-name, td.product-name),
	.woocommerce-checkout .woocommerce-checkout-review-order-table .zc-checkout-product-column { width: 70% !important; }
	.woocommerce-checkout .woocommerce-checkout-review-order-table :where(th.product-total, td.product-total),
	.woocommerce-checkout .woocommerce-checkout-review-order-table .zc-checkout-total-column { width: 30% !important; }
	.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > :where(th, td) { padding: 11px !important; }
	.woocommerce-checkout .zc-checkout-product { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
	.woocommerce-checkout .zc-checkout-product__media,
	.woocommerce-checkout .zc-checkout-product__media > a { width: 64px; }
	.woocommerce-checkout .zc-checkout-product__title { font-size: .82rem; }
	.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > .product-total { font-size: .8rem !important; }
	.woocommerce-checkout .zc-checkout-item-details { margin-inline-start: 0 !important; margin-inline-end: 74px !important; }
}
@media (max-width: 420px) {
	.woocommerce-checkout .woocommerce-checkout-review-order-table :where(th.product-name, td.product-name),
	.woocommerce-checkout .woocommerce-checkout-review-order-table .zc-checkout-product-column { width: 70% !important; }
	.woocommerce-checkout .woocommerce-checkout-review-order-table :where(th.product-total, td.product-total),
	.woocommerce-checkout .woocommerce-checkout-review-order-table .zc-checkout-total-column { width: 30% !important; }
	.woocommerce-checkout .zc-checkout-product { grid-template-columns: 60px minmax(0, 1fr); }
	.woocommerce-checkout .zc-checkout-product__media,
	.woocommerce-checkout .zc-checkout-product__media > a { width: 60px; }
	.woocommerce-checkout .zc-checkout-item-details { margin-inline-end: 70px !important; }
}
@media (forced-colors: active) {
	.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > :where(th, td),
	.woocommerce-checkout .zc-checkout-product__media img { border-color: CanvasText !important; }
}

/* Purchase-flow heading scale: keep task titles prominent without turning the
   cart, checkout and pay pages into oversized landing-page heroes. */
.woocommerce-cart .zc-commerce-hero,
.woocommerce-checkout .zc-commerce-hero {
	min-height: 0 !important;
	margin-bottom: clamp(18px, 3vw, 28px) !important;
	padding: clamp(22px, 4vw, 42px) !important;
}
.woocommerce-cart .zc-commerce-hero h1,
.woocommerce-checkout .zc-commerce-hero h1,
.woocommerce-cart .woocommerce-shell > .woocommerce > h1,
.woocommerce-checkout .woocommerce-shell > .woocommerce > h1,
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title {
	max-width: 18ch !important;
	font-size: clamp(1.55rem, 3vw, 2.15rem) !important;
	line-height: 1.35 !important;
	letter-spacing: -.025em !important;
}
@media (max-width: 700px) {
	.woocommerce-cart .zc-commerce-hero,
	.woocommerce-checkout .zc-commerce-hero { padding: 20px 16px !important; }
	.woocommerce-cart .zc-commerce-hero h1,
	.woocommerce-checkout .zc-commerce-hero h1,
	.woocommerce-cart .woocommerce-shell > .woocommerce > h1,
	.woocommerce-checkout .woocommerce-shell > .woocommerce > h1,
	.woocommerce-cart .entry-title,
	.woocommerce-checkout .entry-title { font-size: clamp(1.4rem, 7vw, 1.75rem) !important; }
}
