/* صفحه سبد خرید — وسط‌چین، فونت یکان‌بخ، کارت‌های جدا */

:root {
	--paezan-cart-green: #20b651;
	--paezan-cart-green-dark: #1a9a45;
	--paezan-cart-bg: #f3f4f6;
	--paezan-cart-card: #ffffff;
	--paezan-cart-border: #e8ecf3;
	--paezan-cart-muted: #94a3b8;
	--paezan-cart-text: #1e293b;
	--paezan-cart-radius: 16px;
	--paezan-cart-max: 680px;
	--byno-var-color-light-dark-opacity-bg: #f3f4f6;
	--byno-var-color-light-dark-bg: #eceff3;
	--byno-var-color-light-dark-text: #64748b;
	--wc-red: #ff3b3b;
}

body.woocommerce-cart,
body.paezanshop-cart-page {
	background: var(--paezan-cart-bg) !important;
	font-family: YekanBakh, Tahoma, sans-serif;
	overflow-x: hidden;
}

/* شکستن محدودیت ستون المنتور — وسط صفحه */
body.woocommerce-cart .paezanshop-cart-viewport-center,
body.paezanshop-cart-page .paezanshop-cart-viewport-center {
	width: 100%;
	max-width: var(--paezan-cart-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	box-sizing: border-box;
	float: none !important;
}

body.woocommerce-cart .elementor-widget-woocommerce-cart,
body.paezanshop-cart-page .elementor-widget-woocommerce-cart {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	float: none !important;
}

body.woocommerce-cart .elementor-widget-woocommerce-cart .elementor-widget-container,
body.paezanshop-cart-page .elementor-widget-woocommerce-cart .elementor-widget-container {
	width: 100% !important;
	max-width: var(--paezan-cart-max) !important;
	margin: 0 auto !important;
	float: none !important;
}

/* Elementor Pro Cart Widget — تک‌ستونه: محصول بالا، خلاصه سفارش پایین */
.elementor-widget-woocommerce-cart .e-cart__container,
.elementor-widget-woocommerce-cart .e-cart,
.paezanshop-elementor-cart-one-col .e-cart__container {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	grid-template-columns: 1fr !important;
	align-items: stretch !important;
	gap: 10px !important;
	width: 100% !important;
	max-width: 100% !important;
}

.elementor-widget-woocommerce-cart .e-cart__column,
.elementor-widget-woocommerce-cart .e-cart__column-start,
.elementor-widget-woocommerce-cart .e-cart__column-end,
.paezanshop-elementor-cart-one-col .e-cart__column {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	flex-basis: auto !important;
	grid-column: 1 / -1 !important;
	float: none !important;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	margin: 0 !important;
}

.elementor-widget-woocommerce-cart .e-cart__column-start {
	order: 1 !important;
}

.elementor-widget-woocommerce-cart .e-cart__column-end {
	order: 2 !important;
}

.elementor-widget-woocommerce-cart .e-cart__column-inner,
.elementor-widget-woocommerce-cart .e-sticky-right-column,
.elementor-widget-woocommerce-cart .e-sticky-right-column--active {
	position: static !important;
	top: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	transform: none !important;
}

.elementor-widget-woocommerce-cart .e-cart-totals,
.elementor-widget-woocommerce-cart .e-cart-section {
	width: 100% !important;
	max-width: 100% !important;
}

/* جلوگیری از تکرار خلاصه در ستون محصولات */
.elementor-widget-woocommerce-cart .e-cart__column-start .cart-collaterals,
.elementor-widget-woocommerce-cart .e-cart__column-start .e-cart-totals {
	display: none !important;
}

/* خلاصه فقط در ستون پایین / انتهای فرم */
.elementor-widget-woocommerce-cart .e-cart__column-end .cart-collaterals,
.elementor-widget-woocommerce-cart .e-cart__column-end .cart_totals.paezanshop-cart-summary {
	display: block !important;
	width: 100% !important;
}

body.woocommerce-cart .elementor-widget-woocommerce-cart ~ .elementor-element,
body.paezanshop-cart-page .elementor-widget-woocommerce-cart ~ .elementor-element {
	display: none !important;
}

body.woocommerce-cart .paezanshop-cart-shell,
body.paezanshop-cart-page .paezanshop-cart-shell {
	width: 100%;
	max-width: var(--paezan-cart-max);
	margin: 0 auto;
	padding: 0 16px 130px;
	box-sizing: border-box;
}

/* عنوان اضافی صفحه */
body.woocommerce-cart .paezanshop-cart-hide,
body.paezanshop-cart-page .paezanshop-cart-hide,
body.woocommerce-cart .page-header,
body.woocommerce-cart .entry-header,
body.paezanshop-cart-page .page-header,
body.paezanshop-cart-page .entry-header,
body.woocommerce-cart .woocommerce-products-header,
body.woocommerce-cart h1.page-title,
body.woocommerce-cart .site-main > h1.entry-title,
body.paezanshop-cart-page h1.entry-title,
body.woocommerce-cart .elementor-widget-theme-post-title,
body.woocommerce-cart .elementor-widget-post-title,
body.paezanshop-cart-page .elementor-widget-theme-post-title,
body.paezanshop-cart-page .elementor-widget-post-title,
body.woocommerce-cart .site-main > .elementor-element.elementor-widget-heading,
body.paezanshop-cart-page .site-main > .elementor-element.elementor-widget-heading,
.elementor-widget-woocommerce-cart .e-cart-title,
.elementor-widget-woocommerce-cart > .elementor-widget-container > h2:first-child,
.elementor-widget-woocommerce-cart .woocommerce > h2:first-child,
body.woocommerce-cart #ajax-cart-popup .cart-popup-header,
body.paezanshop-cart-page #ajax-cart-popup .cart-popup-header,
body.woocommerce-cart #ajax-cart-popup .cart-popup-header h3,
body.paezanshop-cart-page #ajax-cart-popup .cart-popup-header h3 {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* پاپ‌آپ ajax-cart فقط برای افزودن به سبد — روی صفحه سبد کامل مخفی شود */
body.woocommerce-cart #ajax-cart-popup,
body.paezanshop-cart-page #ajax-cart-popup {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	position: fixed !important;
	inset: auto !important;
	width: 0 !important;
	height: 0 !important;
	max-width: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	z-index: -1 !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

body.woocommerce-cart #ajax-cart-popup .cart-popup-content,
body.woocommerce-cart #ajax-cart-popup .cart-popup-body,
body.woocommerce-cart #ajax-cart-popup .cart-popup-footer,
body.paezanshop-cart-page #ajax-cart-popup .cart-popup-content,
body.paezanshop-cart-page #ajax-cart-popup .cart-popup-body,
body.paezanshop-cart-page #ajax-cart-popup .cart-popup-footer {
	display: none !important;
}

/* نوتیس‌های ووکامرس (حذف محصول، بازگردانی و …) */
body.woocommerce-cart .woocommerce-notices-wrapper,
body.paezanshop-cart-page .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce-message,
body.paezanshop-cart-page .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.paezanshop-cart-page .woocommerce-info,
.elementor-widget-woocommerce-cart .woocommerce-notices-wrapper {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

/* والدها تمام‌عرض */
body.woocommerce-cart #page,
body.woocommerce-cart .site,
body.woocommerce-cart #content,
body.woocommerce-cart .site-main,
body.woocommerce-cart #primary,
body.woocommerce-cart .content-area,
body.woocommerce-cart .entry-content,
body.paezanshop-cart-page #page,
body.paezanshop-cart-page .site-main,
body.paezanshop-cart-page .entry-content {
	width: 100% !important;
	max-width: 100% !important;
	margin-inline: auto !important;
	float: none !important;
}

body.woocommerce-cart .woocommerce,
body.paezanshop-cart-page .woocommerce {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	box-sizing: border-box;
	font-family: YekanBakh, Tahoma, sans-serif;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	float: none !important;
}

body.woocommerce-cart .woocommerce > .cross-sells,
body.paezanshop-cart-page .woocommerce > .cross-sells {
	width: 100%;
	max-width: var(--paezan-cart-max);
	margin: 20px auto 0;
	padding: 0 16px;
	box-sizing: border-box;
}

/* حذف باکس یکپارچهٔ المنتور/قالب */
body.woocommerce-cart .entry-content,
body.woocommerce-cart .page-content,
body.woocommerce-cart .elementor-widget-woocommerce-cart,
body.woocommerce-cart .elementor-widget-woocommerce-cart .elementor-widget-container,
body.woocommerce-cart .elementor-widget-container,
body.woocommerce-cart .site-main article {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	max-width: 100% !important;
	width: 100% !important;
}

body.woocommerce-cart .elementor-section .elementor-container,
body.paezanshop-cart-page .elementor-section .elementor-container {
	justify-content: center !important;
	flex-wrap: wrap !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.woocommerce-cart .elementor-section .elementor-column,
body.paezanshop-cart-page .elementor-section .elementor-column {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	margin: 0 !important;
}

body.woocommerce-cart .e-con,
body.woocommerce-cart .e-con-inner,
body.paezanshop-cart-page .e-con,
body.paezanshop-cart-page .e-con-inner {
	width: 100% !important;
	max-width: 100% !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	--flex-direction: column !important;
	--content-width: 100% !important;
	--width: 100% !important;
}

body.woocommerce-cart .byno-grid-cart-page,
body.woocommerce-cart .paezanshop-cart-layout,
body.woocommerce-cart .paezanshop-cart-items,
body.woocommerce-cart .paezanshop-cart-summary-wrap,
body.paezanshop-cart-page .paezanshop-cart-summary-wrap {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

/* چیدمان عمودی — grid تک‌ستونه مطابق مرجع */
body.woocommerce-cart .paezanshop-cart-page-stack,
body.paezanshop-cart-page .paezanshop-cart-page-stack {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 10px !important;
	width: 100% !important;
}

body.woocommerce-cart .woocommerce,
body.paezanshop-cart-page .woocommerce {
	display: block !important;
	width: 100% !important;
	float: none !important;
}

body.woocommerce-cart form.woocommerce-cart-form.byno-grid-cart-page,
body.woocommerce-cart #paezanshop-cart-form.byno-grid-cart-page,
body.paezanshop-cart-page form.woocommerce-cart-form.byno-grid-cart-page,
body.paezanshop-cart-page #paezanshop-cart-form.byno-grid-cart-page {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 10px !important;
	padding: 12px !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce-cart-item-byno,
body.paezanshop-cart-page .woocommerce-cart-item-byno,
.elementor-widget-woocommerce-cart .woocommerce-cart-item-byno {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

body.woocommerce-cart .woocommerce-cart-item-byno,
body.paezanshop-cart-page .woocommerce-cart-item-byno,
body.woocommerce-cart .byno-grid-cart-page .cart-collaterals,
body.paezanshop-cart-page .byno-grid-cart-page .cart-collaterals,
body.woocommerce-cart .byno-grid-cart-page .paezanshop-cart-summary-wrap,
body.paezanshop-cart-page .byno-grid-cart-page .paezanshop-cart-summary-wrap {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	grid-column: 1 / -1 !important;
}

body.woocommerce-cart .byno-grid-cart-page .cart_totals.paezanshop-cart-summary,
body.paezanshop-cart-page .byno-grid-cart-page .cart_totals.paezanshop-cart-summary {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

/* مرحله‌نما — order-roadmap-woo-byno */
.paezanshop-cart-roadmap-section {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 10px;
	font-family: YekanBakh, Tahoma, sans-serif;
	direction: rtl;
}

.paezanshop-cart-roadmap-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	align-self: flex-start;
	gap: 8px;
	direction: rtl;
}

.paezanshop-cart-back-link,
.paezanshop-cart-home-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 14px;
	background: #fff !important;
	color: #555 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	flex-shrink: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.paezanshop-cart-back-link:hover,
.paezanshop-cart-back-link:focus-visible,
.paezanshop-cart-home-link:hover,
.paezanshop-cart-home-link:focus-visible {
	background: #f5f5f5 !important;
	color: #333 !important;
}

.paezanshop-cart-back-link__icon,
.paezanshop-cart-home-link__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	line-height: 1;
}

.paezanshop-cart-back-link__icon svg,
.paezanshop-cart-home-link__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.order-roadmap-woo-byno-wrapper {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 18px 20px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(226, 232, 240, 0.9);
	font-family: YekanBakh, Tahoma, sans-serif;
	direction: rtl;
}

.item-order-roadmap-byno {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	flex: 0 0 auto;
	min-width: 72px;
	text-align: center;
}

.step-num-byno {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	font-style: normal;
	background: #f3f4f6;
	color: #cbd5e1;
	font-family: YekanBakh, Tahoma, sans-serif;
}

.item-order-roadmap-byno.completed .step-num-byno {
	background: var(--paezan-cart-green);
	color: #fff;
	box-shadow: 0 4px 12px rgba(32, 182, 81, 0.28);
}

.item-order-roadmap-byno.completed .title-step-woo-byno {
	color: var(--paezan-cart-green);
}

.step-connector-byno.completed {
	background: var(--paezan-cart-green);
}

.item-order-roadmap-byno.active .step-num-byno {
	background: var(--paezan-cart-green);
	color: #fff;
	box-shadow: 0 4px 12px rgba(32, 182, 81, 0.28);
}

.title-step-woo-byno {
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: #cbd5e1;
	white-space: nowrap;
	font-family: YekanBakh, Tahoma, sans-serif;
}

.item-order-roadmap-byno.active .title-step-woo-byno {
	color: var(--paezan-cart-green);
}

.step-connector-byno {
	flex: 1;
	min-width: 24px;
	max-width: 56px;
	height: 2px;
	margin-top: 20px;
	background: #e2e8f0;
	border-radius: 1px;
}

/* فرم سبد — byno grid */
.byno-grid-cart-page {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 10px !important;
	padding: 12px !important;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	float: none !important;
	clear: both !important;
	box-sizing: border-box;
	font-family: YekanBakh, Tahoma, sans-serif;
}

.byno-grid-cart-page .woocommerce-cart-item-byno,
.byno-grid-cart-page .cart-collaterals,
.byno-grid-cart-page .paezanshop-cart-summary-wrap {
	grid-column: 1 / -1;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	margin: 0 !important;
	padding: 0 !important;
}

.paezanshop-cart-update-hidden {
	display: none !important;
	visibility: hidden;
	height: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
	clip: rect(0, 0, 0, 0);
}

/* کارت محصول — مطابق byno / تصویر مرجع */
.woocommerce-cart-item-byno,
.elementor-widget-woocommerce-cart .woocommerce-cart-item-byno {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
	direction: rtl;
	background: transparent;
	border-radius: 0;
	padding: 18px 0;
	box-shadow: none;
	border: none;
	font-family: YekanBakh, Tahoma, sans-serif;
	box-sizing: border-box;
}

/* جداکننده بین محصولات در لیست سبد (موبایل و دسکتاپ) */
body.woocommerce-cart form.woocommerce-cart-form.byno-grid-cart-page .woocommerce-cart-item-byno + .woocommerce-cart-item-byno,
body.paezanshop-cart-page form.woocommerce-cart-form.byno-grid-cart-page .woocommerce-cart-item-byno + .woocommerce-cart-item-byno,
.elementor-widget-woocommerce-cart .woocommerce-cart-item-byno + .woocommerce-cart-item-byno {
	position: relative;
	margin-top: 10px !important;
	padding-top: 18px !important;
}

body.woocommerce-cart form.woocommerce-cart-form.byno-grid-cart-page .woocommerce-cart-item-byno + .woocommerce-cart-item-byno::before,
body.paezanshop-cart-page form.woocommerce-cart-form.byno-grid-cart-page .woocommerce-cart-item-byno + .woocommerce-cart-item-byno::before,
.elementor-widget-woocommerce-cart .woocommerce-cart-item-byno + .woocommerce-cart-item-byno::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 1px;
	background: #dfe3e8;
	pointer-events: none;
}

.inner-image-cart-item-woo-byno {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	background: var(--byno-var-color-light-dark-opacity-bg);
	border-radius: 20px;
	padding: 8px;
	height: fit-content;
	width: 100%;
	margin: auto;
	max-width: 110px;
	min-width: 88px;
	border: none;
	overflow: hidden;
	box-sizing: border-box;
}

.inner-image-cart-item-woo-byno a {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
}

.inner-image-cart-item-woo-byno img {
	width: 100%;
	height: auto;
	max-height: 94px;
	object-fit: contain;
	display: block;
	border-radius: 17px;
}

.title-quantity-item-cart-woo-byno {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	text-align: right;
}

.paezanshop-cart-item__title,
.title-quantity-item-cart-woo-byno > a.paezanshop-cart-item__title,
.title-quantity-item-cart-woo-byno > span.paezanshop-cart-item__title {
	font-size: 14px;
	font-weight: 600;
	color: #333 !important;
	line-height: 1.7;
	text-decoration: none;
	font-family: YekanBakh, Tahoma, sans-serif;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 6px;
	text-align: right;
}

.paezanshop-cart-item__title:hover,
.title-quantity-item-cart-woo-byno > a.paezanshop-cart-item__title:hover {
	color: var(--paezan-cart-green) !important;
}

.paezanshop-cart-item__pricing {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	margin-bottom: 2px;
	text-align: right;
	width: 100%;
}

.price-item-cart-woo-byno {
	font-size: 17px;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.35;
	font-family: YekanBakh, Tahoma, sans-serif;
}

.price-item-cart-woo-byno .woocommerce-Price-amount,
.price-item-cart-woo-byno .amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	font-family: YekanBakh, Tahoma, sans-serif;
}

.price-item-cart-old-byno {
	display: block;
	font-size: 12px;
	color: #999;
	text-decoration: line-through;
	font-family: YekanBakh, Tahoma, sans-serif;
	line-height: 1.4;
}

.price-item-cart-old-byno .woocommerce-Price-amount,
.price-item-cart-old-byno .amount {
	color: inherit;
	text-decoration: line-through;
	font-weight: 500;
}

.price-item-cart-discount-byno {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--paezan-cart-green);
	font-family: YekanBakh, Tahoma, sans-serif;
	line-height: 1.5;
}

.quantity-remove-btn-byno {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-top: 10px;
	padding-top: 0;
	direction: ltr;
	width: 100%;
}

.byno-quantity {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--byno-var-color-light-dark-opacity-bg);
	border-radius: 12px;
	padding: 4px 6px;
	direction: ltr;
}

.byno-quantity button,
.byno-quantity .quantity-minus,
.byno-quantity .quantity-plus,
.byno-quantity button.minus,
.byno-quantity button.plus {
	width: 28px;
	height: 28px;
	min-width: 28px;
	border-radius: 8px;
	border: none;
	background: var(--byno-var-color-light-dark-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--byno-var-color-light-dark-text);
	transition: all 0.2s;
	padding: 0;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	box-shadow: none;
	pointer-events: auto;
	position: relative;
	z-index: 2;
}

.byno-quantity button:hover,
.byno-quantity .quantity-minus:hover,
.byno-quantity .quantity-plus:hover {
	background: #e2e8f0;
}

.byno-quantity .quantity-minus svg,
.byno-quantity .quantity-plus svg {
	display: block;
	width: 18px;
	height: 18px;
	stroke: var(--byno-var-color-light-dark-text);
	pointer-events: none;
}

.byno-quantity .quantity-input,
.byno-quantity .qty {
	width: 32px;
	height: 28px;
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	color: #333;
	text-align: center;
	padding: 0;
	outline: none;
	font-family: YekanBakh, Tahoma, sans-serif;
	-moz-appearance: textfield;
	line-height: 28px;
}

.byno-quantity .quantity-input::-webkit-outer-spin-button,
.byno-quantity .quantity-input::-webkit-inner-spin-button,
.byno-quantity .qty::-webkit-outer-spin-button,
.byno-quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.elementor-widget-woocommerce-cart .woocommerce .input-text.qty,
#paezanshop-cart-form .woocommerce .input-text.qty,
.byno-quantity .input-text.qty {
	background-color: transparent;
	border-color: #d5d8dc00;
	border-radius: 3px;
	border-style: solid;
	border-width: var(--order-summary-quantity-border-weight, 1px);
	color: var(--order-summary-color, #000);
	font-size: 14px;
	max-height: 28px;
	min-height: 28px;
	padding: 1px 2px;
	text-align: center;
}

/* دکمه حذف — باکس صورتی + آیکن (مطابق تصویر مرجع) */
.woocommerce-cart-item-byno .woocommerce a.remove,
.woocommerce-cart-item-byno a.remove,
.elementor-widget-woocommerce-cart .woocommerce-cart-item-byno a.remove {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px;
	font-size: 1em !important;
	line-height: 1 !important;
	border-radius: 12px !important;
	color: var(--wc-red) !important;
	text-decoration: none !important;
	font-weight: 700;
	border: 0;
	background: #ffebee !important;
	flex-shrink: 0;
	transition: background 0.2s ease;
	padding: 0;
}

.woocommerce-cart-item-byno .woocommerce a.remove:hover,
.woocommerce-cart-item-byno a.remove:hover {
	background: #ffe0e3 !important;
	color: var(--wc-red) !important;
}

.woocommerce-cart-item-byno a.remove svg {
	display: block;
	width: 20px;
	height: 20px;
}

.woocommerce-cart-item-byno.updating-cart {
	opacity: 0.85;
}

.woocommerce-cart-item-byno.updating-cart .byno-quantity button,
.woocommerce-cart-item-byno.updating-cart a.remove {
	pointer-events: none;
	opacity: 0.6;
}

body.woocommerce-cart .blockUI.blockOverlay,
body.paezanshop-cart-page .blockUI.blockOverlay {
	display: none !important;
}

.elementor-widget-woocommerce-cart.e-cart--is-loading::after,
.elementor-widget-woocommerce-cart .e-cart--is-loading::after {
	display: none !important;
}

/* خلاصه سفارش — بدون پس‌زمینه کارت سفید */
.paezanshop-cart-summary.cart_totals,
.elementor-widget-woocommerce-cart .paezanshop-cart-summary.cart_totals,
body.woocommerce-cart .paezanshop-cart-summary.cart_totals,
body.paezanshop-cart-page .paezanshop-cart-summary.cart_totals,
.elementor-widget-woocommerce-cart .woocommerce-cart-form + .cart-collaterals .cart_totals,
.elementor-widget-woocommerce-cart .cart-collaterals .cart_totals.paezanshop-cart-summary {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: transparent !important;
	background-color: transparent !important;
	border-radius: 0;
	padding: 20px 0;
	margin: 0;
	border: none !important;
	box-shadow: none !important;
	font-family: YekanBakh, Tahoma, sans-serif;
	direction: rtl;
	text-align: right;
}

.paezanshop-cart-summary-wrap,
.byno-grid-cart-page .cart-collaterals,
.byno-grid-cart-page .paezanshop-cart-summary-wrap {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.paezanshop-cart-summary__header {
	margin-bottom: 14px;
}

.paezanshop-cart-summary__title {
	margin: 0 0 4px;
	padding: 0;
	font-size: 17px;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.5;
	font-family: YekanBakh, Tahoma, sans-serif;
	text-align: right;
}

.paezanshop-cart-summary__count {
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
	line-height: 1.6;
	font-family: YekanBakh, Tahoma, sans-serif;
	text-align: right;
}

.paezanshop-cart-summary__shipping-note {
	background: #f2f2f2;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
	text-align: right;
	margin: 0 0 10px;
	line-height: 1.7;
	font-family: YekanBakh, Tahoma, sans-serif;
}

.paezanshop-cart-summary__rows {
	margin-bottom: 10px;
}

.paezanshop-cart-summary__rows--after-coupon {
	margin-top: 0;
	margin-bottom: 0;
}

.paezanshop-cart-summary .shop_table {
	border: none;
	margin: 0;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 10px;
}

.paezanshop-cart-summary .shop_table tbody {
	display: block;
	width: 100%;
}

.paezanshop-cart-summary .shop_table tr {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #f2f2f2;
	border-radius: 12px;
	padding: 12px 14px;
	margin: 0;
	direction: rtl;
	width: 100%;
	box-sizing: border-box;
}

.paezanshop-cart-summary .shop_table.shop_table_responsive tr th {
	display: block !important;
}

.paezanshop-cart-summary .shop_table.shop_table_responsive tr td {
	display: block !important;
}

.paezanshop-cart-summary .shop_table.shop_table_responsive tr td::before {
	display: none !important;
	content: none !important;
}

.paezanshop-cart-summary .shop_table th,
.paezanshop-cart-summary .shop_table td {
	border: none;
	padding: 0;
	font-size: 13px;
	font-family: YekanBakh, Tahoma, sans-serif;
	background: transparent;
	line-height: 1.5;
}

.paezanshop-cart-summary .shop_table th {
	font-weight: 600;
	color: #334155;
	text-align: right;
	flex: 1;
}

.paezanshop-cart-summary .shop_table td {
	font-weight: 800;
	color: #1e293b;
	text-align: left !important;
	flex-shrink: 0;
	margin-inline-start: auto;
}

.paezanshop-cart-summary .shop_table tr.cart-subtotal td,
.elementor-widget-woocommerce-cart .paezanshop-cart-summary .shop_table tr.cart-subtotal td,
.elementor-widget-woocommerce-cart .cart_totals .shop_table tr.cart-subtotal td {
	text-align: left !important;
	margin-inline-start: auto !important;
	margin-inline-end: 0 !important;
	flex: 0 0 auto !important;
}

.paezanshop-cart-summary .shop_table td .woocommerce-Price-amount,
.paezanshop-cart-summary .shop_table td .amount {
	font-weight: 800;
	color: inherit;
}

.paezanshop-cart-summary .shop_table tr.paezanshop-cart-savings-total {
	background: #f7faf7;
	border: 1px solid rgba(32, 182, 81, 0.28);
}

.paezanshop-cart-summary .shop_table tr.paezanshop-cart-savings-total th {
	color: #334155;
}

.paezanshop-cart-summary .shop_table tr.paezanshop-cart-savings-total td,
.paezanshop-cart-summary .shop_table tr.cart-discount td {
	color: var(--paezan-cart-green) !important;
	font-weight: 800;
}

.paezanshop-cart-summary__order-total {
	background: #f2f2f2 !important;
	border: none !important;
}

.paezanshop-cart-summary__order-total th {
	font-weight: 700;
}

.paezanshop-cart-summary__order-total td,
.paezanshop-cart-summary__order-total .paezanshop-cart-order-total {
	color: var(--paezan-cart-green) !important;
	font-size: 16px !important;
	font-weight: 800 !important;
}

/* کد تخفیف — ردیف خاکستری + باکس سبز */
.paezanshop-cart-coupon {
	margin: 0 0 10px;
	padding: 10px;
	background: #f2f2f2;
	border-radius: 12px;
}

.paezanshop-cart-coupon__inner {
	display: flex;
	align-items: stretch;
	flex-direction: row;
	direction: rtl;
	border: 1.5px solid var(--paezan-cart-green);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.paezanshop-cart-coupon__inner input[type="text"] {
	flex: 1;
	border: none;
	padding: 11px 12px;
	font-size: 13px;
	font-weight: 500;
	text-align: right;
	outline: none;
	background: #fff;
	min-width: 0;
	color: #64748b;
	font-family: YekanBakh, Tahoma, sans-serif;
}

.paezanshop-cart-coupon__inner input[type="text"]::placeholder {
	color: #94a3b8;
	opacity: 1;
}

body.woocommerce-cart .paezanshop-cart-coupon__btn,
body.woocommerce-cart .paezanshop-cart-coupon__inner button[name="apply_coupon"],
body.paezanshop-cart-page .paezanshop-cart-coupon__btn,
body.paezanshop-cart-page .paezanshop-cart-coupon__inner button[name="apply_coupon"],
.elementor-widget-woocommerce-cart .paezanshop-cart-coupon__btn {
	flex-shrink: 0;
	border: none !important;
	background: var(--paezan-cart-green) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	padding: 11px 16px !important;
	cursor: pointer;
	white-space: nowrap;
	font-family: YekanBakh, Tahoma, sans-serif !important;
	border-radius: 8px !important;
	margin: 4px !important;
	box-shadow: none !important;
	line-height: 1.4 !important;
}

body.woocommerce-cart .paezanshop-cart-coupon__btn:hover,
body.woocommerce-cart .paezanshop-cart-coupon__inner button[name="apply_coupon"]:hover,
body.paezanshop-cart-page .paezanshop-cart-coupon__btn:hover {
	background: var(--paezan-cart-green-dark) !important;
	color: #fff !important;
}

/* دکمه تسویه داخل کارت خلاصه */
.paezanshop-cart-summary__checkout {
	margin-top: 14px;
}

.paezanshop-cart-summary__checkout .wc-proceed-to-checkout {
	margin: 0;
	padding: 0;
}

body.woocommerce-cart .paezanshop-cart-summary__checkout .checkout-button,
body.woocommerce-cart .paezanshop-cart-summary__checkout a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	padding: 14px 16px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #fff !important;
	background: var(--paezan-cart-green) !important;
	border: none !important;
	border-radius: 12px !important;
	text-decoration: none !important;
	font-family: YekanBakh, Tahoma, sans-serif !important;
	box-shadow: none !important;
	margin: 0 !important;
}

body.woocommerce-cart .paezanshop-cart-summary__checkout .checkout-button:hover {
	background: var(--paezan-cart-green-dark) !important;
	color: #fff !important;
}

/* فوتر چسبان موبایل */
.paezanshop-cart-sticky-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	background: #fff;
	border-top: 1px solid var(--paezan-cart-border);
	border-radius: 20px 20px 0 0;
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
	font-family: YekanBakh, Tahoma, sans-serif;
}

.paezanshop-cart-sticky-footer__inner {
	max-width: var(--paezan-cart-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.paezanshop-cart-sticky-footer__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.paezanshop-cart-sticky-footer__total-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--paezan-cart-muted);
	font-family: YekanBakh, Tahoma, sans-serif;
}

.paezanshop-cart-sticky-footer__amount {
	font-size: 17px;
	font-weight: 800;
	color: var(--paezan-cart-green);
	font-family: YekanBakh, Tahoma, sans-serif;
}

.paezanshop-cart-sticky-footer__amount .woocommerce-Price-amount,
.paezanshop-cart-sticky-footer__amount .amount {
	color: inherit;
	font-weight: inherit;
	font-family: YekanBakh, Tahoma, sans-serif;
}

body.woocommerce-cart .paezanshop-cart-sticky-footer .checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	padding: 13px 16px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #fff !important;
	background: var(--paezan-cart-green) !important;
	border: none !important;
	border-radius: 12px !important;
	text-decoration: none !important;
	font-family: YekanBakh, Tahoma, sans-serif !important;
	box-shadow: none !important;
}

body.woocommerce-cart .paezanshop-cart-sticky-footer .checkout-button:hover {
	background: var(--paezan-cart-green-dark) !important;
	color: #fff !important;
}

/* جدول مخفی نونس */
.paezanshop-cart-nonce-wrap {
	display: none !important;
	visibility: hidden;
	height: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
	clip: rect(0, 0, 0, 0);
}

/* کراس‌سل */
body.woocommerce-cart .cross-sells {
	margin: 20px auto 0;
	font-family: YekanBakh, Tahoma, sans-serif;
}

body.woocommerce-cart.paezanshop-cart-is-empty,
body.paezanshop-cart-page.paezanshop-cart-is-empty {
	padding-bottom: 24px !important;
}

/* سبد خالی */
.paezanshop-cart-empty,
.elementor-widget-woocommerce-cart .paezanshop-cart-empty {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	direction: rtl;
	background: #fff;
	border-radius: 24px;
	padding: 22px 24px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
	border: 1px solid #f0f0f0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: YekanBakh, Tahoma, sans-serif;
	margin: 0;
}

.paezanshop-cart-empty__message {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	line-height: 1.7;
	text-align: right;
	flex: 1;
	min-width: 0;
}

body.woocommerce-cart .paezanshop-cart-empty__return,
body.paezanshop-cart-page .paezanshop-cart-empty__return,
.elementor-widget-woocommerce-cart .paezanshop-cart-empty__return {
	flex-shrink: 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 10px 22px !important;
	background: #e8f8ee !important;
	color: var(--paezan-cart-green) !important;
	border: none !important;
	border-radius: 16px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	white-space: nowrap;
	font-family: YekanBakh, Tahoma, sans-serif !important;
	line-height: 1.4 !important;
}

body.woocommerce-cart .paezanshop-cart-empty__return:hover,
body.paezanshop-cart-page .paezanshop-cart-empty__return:hover,
.elementor-widget-woocommerce-cart .paezanshop-cart-empty__return:hover {
	background: #d4f0e0 !important;
	color: var(--paezan-cart-green-dark) !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents + .woocommerce-info,
body.woocommerce-cart .cart-empty.woocommerce-info,
body.paezanshop-cart-page .cart-empty.woocommerce-info {
	display: none !important;
}

/* دسکتاپ: همان چیدمان وسط‌چین */
@media (min-width: 769px) {
	body.woocommerce-cart .paezanshop-cart-shell,
	body.paezanshop-cart-page .paezanshop-cart-shell {
		padding-bottom: 48px;
	}

	.paezanshop-cart-sticky-footer {
		display: none;
	}

	.paezanshop-cart-summary__checkout {
		display: block;
	}
}

@media (max-width: 768px) {
	body.woocommerce-cart:not(.paezanshop-cart-is-empty),
	body.paezanshop-cart-page:not(.paezanshop-cart-is-empty) {
		padding-bottom: 130px;
	}

	body.woocommerce-cart .paezanshop-cart-empty,
	body.paezanshop-cart-page .paezanshop-cart-empty,
	.elementor-widget-woocommerce-cart .paezanshop-cart-empty {
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		padding: 18px 16px;
		border-radius: 20px;
		gap: 14px;
	}

	body.woocommerce-cart .paezanshop-cart-empty__message,
	body.paezanshop-cart-page .paezanshop-cart-empty__message,
	.elementor-widget-woocommerce-cart .paezanshop-cart-empty__message {
		width: 100%;
		text-align: center;
		font-size: 14px;
		white-space: normal;
		overflow-wrap: normal;
		word-break: normal;
	}

	body.woocommerce-cart .paezanshop-cart-empty__return,
	body.paezanshop-cart-page .paezanshop-cart-empty__return,
	.elementor-widget-woocommerce-cart .paezanshop-cart-empty__return {
		width: 100% !important;
		box-sizing: border-box;
		text-align: center;
	}

	.paezanshop-cart-summary__checkout {
		display: none;
	}

	.paezanshop-cart-summary__rows--after-coupon .order-total,
	.paezanshop-cart-summary__order-total {
		display: none !important;
	}

	.paezanshop-cart-sticky-footer {
		display: block;
	}

	.order-roadmap-woo-byno-wrapper {
		padding: 14px 12px;
		gap: 6px;
	}

	.woocommerce-cart-item-byno {
		padding: 14px 0;
		gap: 10px;
		border-radius: 0;
	}

	.inner-image-cart-item-woo-byno {
		max-width: 96px;
		min-width: 80px;
		border-radius: 16px;
		padding: 6px;
	}

	.inner-image-cart-item-woo-byno img {
		max-height: 82px;
	}

	.paezanshop-cart-item__title,
	.title-quantity-item-cart-woo-byno > a.paezanshop-cart-item__title {
		font-size: 13px;
	}

	.price-item-cart-woo-byno {
		font-size: 16px;
	}

	.woocommerce-cart-item-byno a.remove {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px;
	}

	.byno-quantity button,
	.byno-quantity .quantity-minus,
	.byno-quantity .quantity-plus {
		width: 26px;
		height: 26px;
		min-width: 26px;
	}

	.byno-quantity .quantity-input,
	.byno-quantity .qty {
		width: 28px;
		height: 26px;
		font-size: 13px;
		line-height: 26px;
	}

	.item-order-roadmap-byno {
		min-width: 58px;
	}

	.step-num-byno {
		width: 36px;
		height: 36px;
		font-size: 13px;
	}

	.title-step-woo-byno {
		font-size: 10px;
	}

	.step-connector-byno {
		min-width: 16px;
		max-width: 36px;
		margin-top: 17px;
	}
}
