/*
|--------------------------------------------------------------------------
| Bargchi Side Cart
| نسخه یکپارچه، پاک‌سازی‌شده و منطبق با HTML واقعی WoodMart
|--------------------------------------------------------------------------
*/

:root {
	--bsc-navy: #102a46;
	--bsc-orange: #ff5a00;
	--bsc-green: #17824d;
	--bsc-red: #c43d3d;
	--bsc-text: #152334;
	--bsc-muted: #6f7e8d;
	--bsc-border: #e2e8ed;
	--bsc-soft: #f7f9fa;
	--bsc-white: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Panel and backdrop
|--------------------------------------------------------------------------
*/

body .cart-widget-side {
	width: 420px;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;

	background: #ffffff;
	box-shadow: 10px 0 36px rgba(16, 42, 70, 0.13);

	overflow: hidden;
}

body .wd-close-side {
	background-color: rgba(16, 30, 45, 0.20);
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

body .cart-widget-side .widget-heading {
	display: flex;
	flex: 0 0 72px;
	align-items: center;
	justify-content: space-between;
	gap: 14px;

	min-height: 72px;
	padding: 0 20px;

	background: #ffffff;
	border-bottom: 1px solid var(--bsc-border);
}

body .cart-widget-side .widget-title {
	margin: 0;

	color: var(--bsc-navy);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: -0.2px;
}

body .cart-widget-side .close-side-widget {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;

	width: auto;
	min-width: 0;
	min-height: 40px;

	margin: 0;
	padding: 5px 0;

	color: #536273;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.5;
	text-decoration: none;

	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;

	cursor: pointer;
}

body .cart-widget-side .close-side-widget:hover {
	color: var(--bsc-orange);
	background: transparent;
}


/*
|--------------------------------------------------------------------------
| Main structure
|--------------------------------------------------------------------------
*/

body .cart-widget-side .widget_shopping_cart {
	display: flex;
	flex-direction: column;

	height: calc(100vh - 72px);
	height: calc(100dvh - 72px);
	min-height: 0;

	overflow: hidden;
}

body .cart-widget-side .widget_shopping_cart_content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;

	height: 100%;
	min-height: 0;

	background:
		radial-gradient(
			circle at 100% 0%,
			rgba(255, 90, 0, 0.02),
			transparent 230px
		),
		radial-gradient(
			circle at 0% 100%,
			rgba(16, 42, 70, 0.02),
			transparent 260px
		);

	overflow: hidden;
}

body .cart-widget-side .shopping-cart-widget-body {
	display: block;
	flex: 1 1 auto;

	height: auto;
	min-height: 0;

	overflow: hidden;
}

body .cart-widget-side .shopping-cart-widget-body.wd-scroll,
body .cart-widget-side .shopping-cart-widget-body .wd-scroll {
	height: 100%;
	min-height: 0;

	overflow: hidden;
}

body .cart-widget-side
.shopping-cart-widget-body .wd-scroll-content {
	height: 100%;
	min-height: 0;

	padding: 8px 16px 18px;

	overflow-x: hidden;
	overflow-y: auto;

	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #cbd4dc transparent;
}

body .cart-widget-side
.shopping-cart-widget-body .wd-scroll-content::-webkit-scrollbar {
	width: 4px;
}

body .cart-widget-side
.shopping-cart-widget-body .wd-scroll-content::-webkit-scrollbar-track {
	background: transparent;
}

body .cart-widget-side
.shopping-cart-widget-body .wd-scroll-content::-webkit-scrollbar-thumb {
	background: #cbd4dc;
	border-radius: 10px;
}


/*
|--------------------------------------------------------------------------
| Empty cart
|--------------------------------------------------------------------------
*/

body .cart-widget-side .wd-empty-mini-cart::before,
body .cart-widget-side .wd-empty-mini-cart::after {
	display: none;
	content: none;
}

body .cart-widget-side
.widget_shopping_cart_content:has(
	.woocommerce-mini-cart__empty-message
) {
	justify-content: center;
}

body .cart-widget-side
.widget_shopping_cart_content:has(
	.woocommerce-mini-cart__empty-message
)
.shopping-cart-widget-body,
body .cart-widget-side
.widget_shopping_cart_content:has(
	.woocommerce-mini-cart__empty-message
)
.wd-scroll,
body .cart-widget-side
.widget_shopping_cart_content:has(
	.woocommerce-mini-cart__empty-message
)
.wd-scroll-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;

	width: 100%;
	height: auto;
	min-height: 0;

	overflow: hidden;
}

body .cart-widget-side
.woocommerce-mini-cart__empty-message {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	min-height: 0;
	margin: 0;
	padding: 24px 30px 18px;

	color: var(--bsc-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 2;
	text-align: center;
}

body .cart-widget-side
.woocommerce-mini-cart__empty-message::before {
	content: "";

	display: block;

	width: 80px;
	height: 80px;
	margin-bottom: 20px;

	background-color: var(--bsc-soft);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23102a46' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 10.3a2 2 0 0 0 2 1.7h7.9a2 2 0 0 0 2-1.6L21 7H6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 42px;

	border: 1px solid var(--bsc-border);
	border-radius: 50%;

	box-shadow: 0 8px 22px rgba(16, 42, 70, 0.045);
}

body .cart-widget-side
.widget_shopping_cart_content:has(
	.woocommerce-mini-cart__empty-message
)
.return-to-shop {
	flex: 0 0 auto;

	margin: 0;
	padding: 0 24px 24px;

	text-align: center;
}

body .cart-widget-side .return-to-shop .button,
body .cart-widget-side
.woocommerce-mini-cart__empty-message + .button {
	position: static;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: auto;
	min-width: 175px;
	min-height: 44px;

	margin: 0;
	padding: 9px 20px;

	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.7;
	text-decoration: none;

	background: var(--bsc-navy);
	border: 1px solid var(--bsc-navy);
	border-radius: 7px;
	box-shadow: none;

	transform: none;
}

body .cart-widget-side .return-to-shop .button:hover,
body .cart-widget-side
.woocommerce-mini-cart__empty-message + .button:hover {
	color: #ffffff;
	background: var(--bsc-orange);
	border-color: var(--bsc-orange);
}


/*
|--------------------------------------------------------------------------
| Product list and rows
|--------------------------------------------------------------------------
*/

body .cart-widget-side .woocommerce-mini-cart {
	margin: 0;
	padding: 0;

	list-style: none;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item {
	position: relative;

	display: grid;
	grid-template-columns: minmax(0, 1fr) 68px;
	align-items: start;
	column-gap: 12px;
	row-gap: 8px;

	margin: 0 16px;
	padding: 14px 14px 14px 34px;

	background: var(--bsc-white);
	border-bottom: 1px solid #edf1f4;
	border-radius: 0;
	box-shadow: none;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item:last-child {
	border-bottom: 0;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item:hover {
	background: var(--bsc-white);
	box-shadow: none;
	transform: none;
}


/*
|--------------------------------------------------------------------------
| Product image
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item > img {
	position: relative !important;

	display: block !important;
	grid-column: 2;
	grid-row: 1 / span 2;

	float: none !important;

	width: 68px !important;
	height: 68px !important;
	min-width: 68px !important;
	max-width: 68px !important;
	max-height: 68px !important;
	box-sizing: border-box !important;
	aspect-ratio: 1 / 1;
	justify-self: end;
	align-self: start;

	margin: 0 !important;
	padding: 5px !important;

	background: #fafbfd !important;
	border: 1px solid #e7edf2 !important;
	border-radius: 10px !important;

	object-fit: contain !important;
	object-position: center !important;

	opacity: 1 !important;
	visibility: visible !important;
	overflow: hidden !important;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
> img.woocommerce-placeholder {
	content:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23718090' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5 12 3l8 4.5v9L12 21l-8-4.5z'/%3E%3Cpath d='M4 7.5 12 12l8-4.5'/%3E%3Cpath d='M12 12v9'/%3E%3C/svg%3E");

	padding: 14px !important;
	background: var(--bsc-soft) !important;
	opacity: 0.82 !important;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item:hover > img {
	background: #fafbfd !important;
	border-color: #e7edf2 !important;
}


/*
|--------------------------------------------------------------------------
| Product information
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info {
	position: relative !important;

	display: flex;
	grid-column: 1;
	grid-row: 1 / span 2;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;

	min-width: 0;
	margin: 0;
	padding: 0 !important;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.wd-entities-title {
	display: -webkit-box;

	width: 100%;
	margin: 0;

	color: #132942;
	font-size: 13.5px;
	font-weight: 760;
	line-height: 1.8;
	letter-spacing: -0.1px;
	text-align: right;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;

	overflow: hidden;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item:hover
.wd-entities-title {
	color: #132942;
}


/*
|--------------------------------------------------------------------------
| Variations
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 7px;

	margin: -1px 0 0;
	padding: 0;

	color: var(--bsc-muted);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.7;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
dl.variation dt,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
dl.variation dd,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
dl.variation p {
	margin: 0;
	padding: 0;
}


/*
|--------------------------------------------------------------------------
| Quantity controls
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > div.quantity {
	display: grid;
	grid-template-columns: 30px 34px 30px;
	align-items: center;

	width: max-content;
	min-width: 0;
	min-height: 32px;
	margin: 1px 0 0;
	padding: 0;

	background: var(--bsc-white);
	border: 1px solid #d9e2e9;
	border-radius: 7px;
	box-shadow: none;

	overflow: hidden;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > div.quantity
.minus,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > div.quantity
.plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 30px;
	height: 32px;
	margin: 0;
	padding: 0;

	color: #17314d;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;

	background: var(--bsc-white);
	border: 0;
	border-radius: 0;
	box-shadow: none;

	cursor: pointer;

	transition:
		color 0.15s ease,
		background-color 0.15s ease;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > div.quantity
.minus {
	border-left: 1px solid #e4e9ed;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > div.quantity
.plus {
	border-right: 1px solid #e4e9ed;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > div.quantity
.minus:hover,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > div.quantity
.plus:hover {
	color: #e9550b;
	background: #fff8f4;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > div.quantity
input.qty {
	width: 34px;
	height: 32px;
	margin: 0;
	padding: 0;

	color: var(--bsc-navy);
	font-size: 12.5px;
	font-weight: 850;
	line-height: 32px;
	text-align: center;

	background: var(--bsc-white);
	border: 0;
	box-shadow: none;
}


/*
|--------------------------------------------------------------------------
| Quantity and unit-price row
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.cart-info > span.quantity {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 3px 7px;

	width: 100%;
	min-height: 22px;
	margin: 0;
	padding: 1px 0 0;

	color: #738190;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.65;

	background: transparent;
	border: 0;
	border-radius: 0;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.bargchi-cart-unit-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 7px;

	min-width: 0;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.bargchi-cart-unit-price__regular {
	display: inline-flex;
	align-items: baseline;

	margin: 0;

	color: #9aa5af;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration-color: #aeb7bf;
	text-decoration-thickness: 1px;

	opacity: 1;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.bargchi-cart-unit-price__regular
.woocommerce-Price-amount,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.bargchi-cart-unit-price__regular
.woocommerce-Price-currencySymbol {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	white-space: nowrap;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.bargchi-cart-unit-price__current {
	display: inline-flex;
	align-items: baseline;

	margin: 0;

	color: var(--bsc-navy);
	text-decoration: none;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.bargchi-cart-unit-price__current
.woocommerce-Price-amount {
	color: var(--bsc-navy);
	font-size: 13.5px;
	font-weight: 850;
	line-height: 1.45;
	white-space: nowrap;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.bargchi-cart-unit-price__current
.woocommerce-Price-currencySymbol {
	color: #43566a;
	font-size: 10.5px;
	font-weight: 650;
}


/*
|--------------------------------------------------------------------------
| Remove button
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.remove,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.remove_from_cart_button {
	position: absolute !important;
	top: 50% !important;
	left: 4px !important;
	right: auto !important;
	z-index: 5;

	display: inline-flex !important;
	align-items: center;
	justify-content: center;

	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	min-height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;

	color: #7f8d99 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-decoration: none !important;

	background: transparent !important;
	border: 0 !important;
	border-radius: 6px !important;
	box-shadow: none !important;

	opacity: 1 !important;
	transform: translateY(-50%) !important;

	transition:
		color 0.15s ease,
		background-color 0.15s ease !important;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.remove::before,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.remove_from_cart_button::before {
	content: "" !important;

	display: block !important;

	width: 15px;
	height: 15px;

	background-color: currentColor;

	-webkit-mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 7h14M9 7V4h6v3M7.5 7l.8 13h7.4l.8-13M10 11v5M14 11v5' fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain
		no-repeat;

	mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 7h14M9 7V4h6v3M7.5 7l.8 13h7.4l.8-13M10 11v5M14 11v5' fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain
		no-repeat;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.remove::after,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.remove_from_cart_button::after {
	display: none !important;
	content: none !important;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.remove:hover,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item
.remove_from_cart_button:hover {
	color: #c94747 !important;
	background: #fff5f5 !important;
	transform: translateY(-50%) !important;
}


/*
|--------------------------------------------------------------------------
| Background synchronization
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.woocommerce-mini-cart-item.bsc-is-updating
.quantity .woocommerce-Price-amount,
body .cart-widget-side
.woocommerce-mini-cart-item.bsc-is-updating
.quantity del,
body .cart-widget-side
.woocommerce-mini-cart-item.bsc-is-updating
.quantity ins {
	opacity: 1 !important;
}

body .cart-widget-side
.woocommerce-mini-cart-item.bsc-is-updating::after {
	display: none !important;
	content: none !important;
	animation: none !important;
}


/*
|--------------------------------------------------------------------------
| Stock limit
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.woocommerce-mini-cart-item
.cart-info > div.quantity
.plus[aria-disabled="true"] {
	color: #9aa5af;
	background: #f7f9fa;
	cursor: not-allowed;
}

body .cart-widget-side
.bsc-quantity-message {
	width: 100%;
	margin-top: 1px;

	color: var(--bsc-red);
	font-size: 10.5px;
	font-weight: 650;
	line-height: 1.8;
	text-align: right;
}

body .cart-widget-side
.bsc-stock-message {
	position: relative;

	width: 100%;
	margin: 2px 0 0;
	padding: 7px 27px 7px 9px;

	color: #a44b14;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.85;
	text-align: right;

	background: #fff8f2;
	border-right: 2px solid #e9651c;
	border-radius: 4px;
}

body .cart-widget-side
.bsc-stock-message::before {
	content: "!";

	position: absolute;
	top: 8px;
	right: 8px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 14px;
	height: 14px;

	color: #c25617;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;

	border: 1px solid currentColor;
	border-radius: 50%;
}


/*
|--------------------------------------------------------------------------
| Hide WoodMart free-shipping block
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.shopping-cart-widget-footer
.wd-free-progress-bar,
body .cart-widget-side
.shopping-cart-widget-footer
.wd-progress-bar,
body .cart-widget-side
.shopping-cart-widget-footer
.progress-msg,
body .cart-widget-side
.shopping-cart-widget-footer
.progress-area {
	display: none !important;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.shopping-cart-widget-footer {
	position: static !important;
	inset: auto !important;

	display: block;
	flex: 0 0 auto;

	width: 100%;
	margin: 0 !important;
	padding:
		12px
		16px
		max(
			14px,
			env(safe-area-inset-bottom)
		) !important;

	background: rgba(255, 255, 255, 0.98);
	border-top: 1px solid #dde5eb;

	box-shadow: 0 -8px 24px rgba(16, 42, 70, 0.055);

	transform: none !important;
}


/*
|--------------------------------------------------------------------------
| Smart footer summary
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.bsc-smart-footer {
	margin: 0 0 10px;
	padding: 10px 11px;

	background: #f8fafb;
	border: 1px solid #e3e9ee;
	border-radius: 8px;
}

body .cart-widget-side
.bsc-smart-meta {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr)
		minmax(0, 1fr);
	align-items: center;
	gap: 7px 12px;

	margin-bottom: 9px;
}

body .cart-widget-side
.bsc-smart-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	min-width: 0;

	color: #5d6e7e;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.65;
}

body .cart-widget-side
.bsc-smart-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;

	width: 16px;
	height: 16px;

	color: #66798b;
}

body .cart-widget-side
.bsc-smart-icon svg {
	display: block;

	width: 100%;
	height: 100%;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body .cart-widget-side
.bsc-items-row .bsc-smart-text {
	color: #283b4e;
	font-weight: 750;
}

body .cart-widget-side
.bsc-saving-row {
	justify-content: flex-end;
	color: var(--bsc-green);
}

body .cart-widget-side
.bsc-saving-row .bsc-smart-icon,
body .cart-widget-side
.bsc-saving-row strong {
	color: var(--bsc-green);
}

body .cart-widget-side
.bsc-saving-row strong {
	font-size: 11.5px;
	font-weight: 800;
	white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Shipping status
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.bsc-shipping-status {
	padding-top: 8px;

	border-top: 1px solid #e7ecef;
}

body .cart-widget-side
.bsc-shipping-heading {
	display: flex;
	align-items: center;
	gap: 6px;

	margin-bottom: 7px;

	color: #5d6e7e;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.7;
}

body .cart-widget-side
.bsc-shipping-status.is-reached
.bsc-shipping-heading,
body .cart-widget-side
.bsc-shipping-status.is-reached
.bsc-smart-icon {
	color: var(--bsc-green);
}

body .cart-widget-side
.bsc-shipping-track {
	position: relative;

	width: 100%;
	height: 4px;

	background: #e6ebef;
	border-radius: 99px;

	overflow: hidden;
}

body .cart-widget-side
.bsc-shipping-track > span {
	display: block;

	width: 0;
	height: 100%;

	background: var(--bsc-orange);
	border-radius: inherit;

	transition: width 0.2s ease;
}

body .cart-widget-side
.bsc-shipping-status.is-reached
.bsc-shipping-track > span {
	background: var(--bsc-green);
}


/*
|--------------------------------------------------------------------------
| Cart total
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;

	min-height: 45px;
	margin: 0 0 10px;
	padding: 9px 2px 10px;

	color: #607080;
	font-size: 12.5px;
	font-weight: 650;
	line-height: 1.6;

	border-top: 1px solid #e5eaee;
	border-bottom: 1px solid #e5eaee;
}

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__total strong {
	color: #596b7b;
	font-size: 12.5px;
	font-weight: 700;
}

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__total
.woocommerce-Price-amount {
	color: var(--bsc-navy);
	font-size: 18px;
	font-weight: 900;
	line-height: 1.35;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__total
.woocommerce-Price-currencySymbol {
	color: #43566a;
	font-size: 11px;
	font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Footer buttons
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns:
		minmax(0, 0.95fr)
		minmax(0, 1.25fr);
	gap: 8px;

	margin: 0;
	padding: 0;
}

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__buttons
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;

	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 8px 11px;

	font-size: 11.5px;
	font-weight: 780;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;

	border-radius: 7px;
	box-shadow: none;

	transform: none;
	transition:
		color 0.15s ease,
		background-color 0.15s ease,
		border-color 0.15s ease;
}

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__buttons
.button:not(.checkout) {
	color: var(--bsc-navy);
	background: var(--bsc-white);
	border: 1px solid #bac7d1;
}

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__buttons
.button:not(.checkout):hover {
	color: #d84d08;
	background: #fffaf7;
	border-color: #f0a47d;
}

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__buttons
.checkout {
	color: var(--bsc-white);
	background: var(--bsc-navy);
	border: 1px solid var(--bsc-navy);

	box-shadow: 0 6px 14px rgba(16, 42, 70, 0.12);
}

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__buttons
.checkout:hover {
	color: var(--bsc-white);
	background: #163b61;
	border-color: #163b61;
}

body .cart-widget-side
.bsc-button-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;

	width: 17px;
	height: 17px;
}

body .cart-widget-side
.bsc-button-icon svg {
	display: block;

	width: 100%;
	height: 100%;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/*
|--------------------------------------------------------------------------
| Undo bar
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.bsc-undo-bar {
	margin: 0 0 12px;

	color: #33465a;
	background: #f7f9fa;
	border: 1px solid #dfe6eb;
	border-radius: 6px;

	overflow: hidden;
}

body .cart-widget-side
.bsc-undo-content {
	display: grid;
	grid-template-columns:
		18px
		minmax(0, 1fr)
		auto;
	align-items: center;
	gap: 8px;

	min-height: 42px;
	padding: 7px 9px;
}

body .cart-widget-side
.bsc-undo-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 18px;
	height: 18px;

	color: #536b80;
}

body .cart-widget-side
.bsc-undo-icon svg {
	display: block;

	width: 100%;
	height: 100%;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body .cart-widget-side
.bsc-undo-message {
	min-width: 0;

	color: #34485b;
	font-size: 11.5px;
	font-weight: 650;
	line-height: 1.7;
}

body .cart-widget-side
.bsc-undo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 29px;
	margin: 0;
	padding: 3px 8px;

	color: var(--bsc-navy);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.5;

	background: transparent;
	border: 0;
	border-radius: 4px;
	box-shadow: none;

	cursor: pointer;
}

body .cart-widget-side
.bsc-undo-button:hover {
	color: #e6530b;
	background: #ffffff;
}

body .cart-widget-side
.bsc-undo-button:disabled {
	color: #8995a0;
	cursor: wait;
}

body .cart-widget-side
.bsc-undo-progress {
	width: 100%;
	height: 2px;

	background: #e5eaee;

	overflow: hidden;
}

body .cart-widget-side
.bsc-undo-progress > span {
	display: block;

	width: 100%;
	height: 100%;

	background: #e65b17;

	transform-origin: right center;
}

@keyframes bscUndoCountdown {

	from {
		transform: scaleX(1);
	}

	to {
		transform: scaleX(0);
	}
}

body .cart-widget-side
.bsc-undo-bar.is-working {
	background: #f8fafb;
}

body .cart-widget-side
.bsc-undo-bar.is-working
.bsc-undo-progress > span {
	animation: none !important;
	background: #8594a2;
}

body .cart-widget-side
.bsc-undo-bar.is-error {
	color: #a53d3d;
	background: #fff7f7;
	border-color: #ebcccc;
}

body .cart-widget-side
.bsc-undo-bar.is-error
.bsc-undo-icon,
body .cart-widget-side
.bsc-undo-bar.is-error
.bsc-undo-message {
	color: #a53d3d;
}

body .cart-widget-side
.bsc-undo-bar.is-error
.bsc-undo-progress {
	display: none;
}

body .cart-widget-side
.bsc-undo-bar.is-floating {
	position: absolute;
	right: 16px;
	bottom: 18px;
	left: 16px;
	z-index: 30;

	margin: 0;

	background: #ffffff;

	box-shadow: 0 8px 24px rgba(16, 42, 70, 0.12);
}


/*
|--------------------------------------------------------------------------
| Hidden utility
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.bsc-smart-footer[hidden],
body .cart-widget-side
.bsc-smart-row[hidden],
body .cart-widget-side
.bsc-shipping-status[hidden] {
	display: none !important;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media screen and (min-width: 768px) and (max-width: 1024px) {

	body .cart-widget-side {
		width: 390px;
	}

	body .cart-widget-side .widget-heading {
		flex-basis: 68px;
		min-height: 68px;
		padding-right: 18px;
		padding-left: 18px;
	}

	body .cart-widget-side .widget_shopping_cart {
		height: calc(100vh - 68px);
		height: calc(100dvh - 68px);
	}

	body .cart-widget-side
	.shopping-cart-widget-body .wd-scroll-content {
		padding-right: 14px;
		padding-left: 14px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer {
		padding-right: 14px !important;
		padding-left: 14px !important;
	}

	body .cart-widget-side
	.bsc-smart-footer {
		padding-right: 10px;
		padding-left: 10px;
	}

	body .cart-widget-side
	.bsc-smart-row,
	body .cart-widget-side
	.bsc-saving-row strong {
		font-size: 11px;
	}
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 767px) {

	body .cart-widget-side {
		width: 100vw;
		max-width: 100vw;

		box-shadow: none;
	}

	body .cart-widget-side .widget-heading {
		flex-basis: 64px;
		min-height: 64px;
		padding-right: 16px;
		padding-left: 16px;
	}

	body .cart-widget-side .widget-title {
		font-size: 18px;
	}

	body .cart-widget-side .close-side-widget {
		font-size: 11px;
	}

	body .cart-widget-side .widget_shopping_cart {
		height: calc(100vh - 64px);
		height: calc(100dvh - 64px);
	}

	body .cart-widget-side
	.shopping-cart-widget-body .wd-scroll-content {
		padding: 5px 12px 15px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item {
		grid-template-columns: minmax(0, 1fr) 60px;
		column-gap: 10px;
		row-gap: 7px;

		margin: 0 12px;
		padding: 12px 12px 12px 30px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item > img {
		width: 60px !important;
		height: 60px !important;
		min-width: 60px !important;
		max-width: 60px !important;
		max-height: 60px !important;
		box-sizing: border-box !important;
		padding: 4px !important;

		border-radius: 9px !important;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	> img.woocommerce-placeholder {
		padding: 10px !important;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.wd-entities-title {
		font-size: 12.8px;
		line-height: 1.8;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info {
		gap: 6px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity {
		grid-template-columns: 28px 32px 28px;

		min-height: 30px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	.plus,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	.minus {
		width: 28px;
		height: 30px;

		font-size: 14px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	input.qty {
		width: 32px;
		height: 30px;

		font-size: 11.5px;
		line-height: 30px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > span.quantity {
		gap: 3px 6px;

		font-size: 10.5px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.bargchi-cart-unit-price {
		gap: 3px 6px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.bargchi-cart-unit-price__regular {
		font-size: 9.8px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.bargchi-cart-unit-price__current
	.woocommerce-Price-amount {
		font-size: 13px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.bargchi-cart-unit-price__current
	.woocommerce-Price-currencySymbol {
		font-size: 10px;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.remove,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.remove_from_cart_button {
		left: 2px !important;

		width: 22px !important;
		height: 22px !important;
		min-width: 22px !important;
		min-height: 22px !important;
	}

	body .cart-widget-side
	.bsc-stock-message {
		padding: 7px 25px 7px 8px;

		font-size: 10.5px;
		line-height: 1.8;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer {
		padding:
			10px
			12px
			max(
				12px,
				env(safe-area-inset-bottom)
			) !important;
	}

	body .cart-widget-side
	.bsc-smart-footer {
		margin-bottom: 9px;
		padding: 9px 10px;
	}

	body .cart-widget-side
	.bsc-smart-meta {
		gap: 6px 9px;
		margin-bottom: 8px;
	}

	body .cart-widget-side
	.bsc-smart-row {
		gap: 5px;

		font-size: 10.8px;
	}

	body .cart-widget-side
	.bsc-smart-icon,
	body .cart-widget-side
	.bsc-button-icon {
		width: 16px;
		height: 16px;
	}

	body .cart-widget-side
	.bsc-saving-row strong {
		font-size: 10.8px;
	}

	body .cart-widget-side
	.bsc-shipping-status {
		padding-top: 7px;
	}

	body .cart-widget-side
	.bsc-shipping-heading {
		margin-bottom: 6px;

		font-size: 10.5px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__total {
		min-height: 43px;
		margin-bottom: 9px;
		padding-top: 8px;
		padding-bottom: 9px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__total,
	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__total strong {
		font-size: 12px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__total
	.woocommerce-Price-amount {
		font-size: 17px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__buttons {
		grid-template-columns:
			minmax(0, 0.95fr)
			minmax(0, 1.25fr);
		gap: 7px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__buttons
	.button {
		min-height: 45px;
		padding-right: 8px;
		padding-left: 8px;

		font-size: 10.8px;
	}

	body .cart-widget-side
	.bsc-undo-bar {
		margin-bottom: 10px;
	}

	body .cart-widget-side
	.bsc-undo-content {
		grid-template-columns:
			17px
			minmax(0, 1fr)
			auto;
		gap: 7px;

		min-height: 40px;
		padding: 6px 8px;
	}

	body .cart-widget-side
	.bsc-undo-icon {
		width: 17px;
		height: 17px;
	}

	body .cart-widget-side
	.bsc-undo-message {
		font-size: 11px;
	}

	body .cart-widget-side
	.bsc-undo-button {
		font-size: 10.5px;
	}

	body .wd-close-side {
		background-color: rgba(16, 30, 45, 0.15);
	}
}


/*
|--------------------------------------------------------------------------
| Very narrow mobile
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 360px) {

	body .cart-widget-side
	.bsc-smart-meta {
		gap: 5px 7px;
	}

	body .cart-widget-side
	.bsc-smart-row,
	body .cart-widget-side
	.bsc-saving-row strong {
		font-size: 10.2px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__buttons {
		grid-template-columns:
			minmax(0, 0.9fr)
			minmax(0, 1.2fr);
		gap: 6px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__buttons
	.button {
		font-size: 10.2px;
	}
}
/*
|--------------------------------------------------------------------------
| Side-cart footer amount typography
|--------------------------------------------------------------------------
*/

/*
 * مبلغ نهایی یکپارچه، بدون فاصله غیرطبیعی و بدون شکستن خط
 */
body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__total
.woocommerce-Price-amount {
	display: inline-block;

	color: #102a46;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.4;

	letter-spacing: -0.3px;
	word-spacing: 0;

	font-family: inherit;
	font-kerning: normal;
	font-variant-numeric: proportional-nums;
	font-feature-settings:
		"kern" 1,
		"tnum" 0;

	white-space: nowrap;
}


/*
 * محتوای داخلی مبلغ
 */
body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__total
.woocommerce-Price-amount
bdi {
	display: inline-block;

	direction: rtl;
	unicode-bidi: isolate;

	letter-spacing: -0.3px;
	word-spacing: 0;

	white-space: nowrap;
}


/*
 * واژه تومان کمی ظریف‌تر از عدد باشد
 */
body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__total
.woocommerce-Price-currencySymbol {
	display: inline-block;

	margin-right: 3px;

	color: #536579;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0;

	white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 767px) {

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__total
	.woocommerce-Price-amount {
		font-size: 16px;
		letter-spacing: -0.2px;
	}

	body .cart-widget-side
	.shopping-cart-widget-footer
	.woocommerce-mini-cart__total
	.woocommerce-Price-currencySymbol {
		margin-right: 2px;

		font-size: 10.5px;
	}
}
/*
|--------------------------------------------------------------------------
| Mobile touch targets
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 767px) {

	/*
	 * کنترل تعداد؛ مناسب لمس با انگشت
	 */
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity {
		grid-template-columns: 38px 36px 38px;

		min-height: 38px;

		border-radius: 8px;
	}


	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	.plus,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	.minus {
		width: 38px;
		height: 38px;

		font-size: 16px;

		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}


	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	input.qty {
		width: 36px;
		height: 38px;

		font-size: 12.5px;
		line-height: 38px;
	}


	/*
	 * بازخورد کوتاه هنگام لمس
	 */
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	.plus:active,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	.minus:active {
		color: #e9550b;

		background: #fff3eb;

		transform: scale(0.96);
	}


	/*
	 * محدوده لمس دکمه حذف بزرگ‌تر می‌شود،
	 * ولی خود آیکن همچنان ظریف باقی می‌ماند.
	 */
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.remove,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.remove_from_cart_button {
		left: 0 !important;

		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		min-height: 34px !important;

		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}


	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.remove::before,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.remove_from_cart_button::before {
		width: 15px;
		height: 15px;
	}


	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.remove:active,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.remove_from_cart_button:active {
		color: #c94747 !important;

		background: #fff0f0 !important;
	}
}


/*
|--------------------------------------------------------------------------
| Very narrow mobile
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 360px) {

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity {
		grid-template-columns: 36px 34px 36px;

		min-height: 36px;
	}


	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	.plus,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	.minus {
		width: 36px;
		height: 36px;
	}


	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item
	.cart-info > div.quantity
	input.qty {
		width: 34px;
		height: 36px;

		line-height: 36px;
	}
}
/*
|--------------------------------------------------------------------------
| Smart product-list scroll hints
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.shopping-cart-widget-body {
	position: relative;
}


/*
 * لایه‌های بالا و پایین فقط نقش راهنمای بصری دارند
 * و مانع کلیک یا اسکرول نمی‌شوند.
 */
body .cart-widget-side
.bsc-scroll-edge {
	position: absolute;
	right: 0;
	left: 0;
	z-index: 15;

	display: block;

	height: 20px;

	pointer-events: none;

	opacity: 0;

	transition: opacity 0.18s ease;
}


/*
|--------------------------------------------------------------------------
| Top edge
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.bsc-scroll-edge--top {
	top: 0;

	background:
		linear-gradient(
			180deg,
			rgba(16, 42, 70, 0.10) 0%,
			rgba(16, 42, 70, 0.035) 45%,
			rgba(16, 42, 70, 0) 100%
		);
}


/*
|--------------------------------------------------------------------------
| Bottom edge
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.bsc-scroll-edge--bottom {
	bottom: 0;

	background:
		linear-gradient(
			0deg,
			rgba(16, 42, 70, 0.10) 0%,
			rgba(16, 42, 70, 0.035) 45%,
			rgba(16, 42, 70, 0) 100%
		);
}


/*
|--------------------------------------------------------------------------
| Visibility states controlled by JavaScript
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.shopping-cart-widget-body.bsc-show-scroll-top
.bsc-scroll-edge--top {
	opacity: 1;
}

body .cart-widget-side
.shopping-cart-widget-body.bsc-show-scroll-bottom
.bsc-scroll-edge--bottom {
	opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 767px) {

	body .cart-widget-side
	.bsc-scroll-edge {
		height: 17px;
	}

	body .cart-widget-side
	.bsc-scroll-edge--top {
		background:
			linear-gradient(
				180deg,
				rgba(16, 42, 70, 0.085) 0%,
				rgba(16, 42, 70, 0.025) 48%,
				rgba(16, 42, 70, 0) 100%
			);
	}

	body .cart-widget-side
	.bsc-scroll-edge--bottom {
		background:
			linear-gradient(
				0deg,
				rgba(16, 42, 70, 0.085) 0%,
				rgba(16, 42, 70, 0.025) 48%,
				rgba(16, 42, 70, 0) 100%
			);
	}
}
/*
|--------------------------------------------------------------------------
| Fast checkout synchronization
|--------------------------------------------------------------------------
*/

body .cart-widget-side
.shopping-cart-widget-footer
.woocommerce-mini-cart__buttons
.checkout.bsc-is-finalizing {
	gap: 8px;

	cursor: wait;
	pointer-events: none;

	opacity: 0.94;
}

body .cart-widget-side
.bsc-checkout-spinner {
	display: inline-block;
	flex: 0 0 auto;

	width: 14px;
	height: 14px;

	border: 1.5px solid rgba(255, 255, 255, 0.38);
	border-top-color: #ffffff;
	border-radius: 50%;

	animation:
		bscCheckoutSpin
		0.55s
		linear
		infinite;
}

@keyframes bscCheckoutSpin {

	to {
		transform: rotate(360deg);
	}
}

body .cart-widget-side
.bsc-checkout-sync-message {
	margin: -2px 0 10px;
	padding: 7px 9px;

	color: #9a4b16;
	font-size: 10.5px;
	font-weight: 650;
	line-height: 1.8;
	text-align: right;

	background: #fff8f2;
	border: 1px solid #f2d8c4;
	border-radius: 6px;
}

@media screen and (max-width: 767px) {

	body .cart-widget-side
	.bsc-checkout-sync-message {
		margin-bottom: 9px;

		font-size: 10px;
	}
}

/* ========================================================================== 
   BARGCHI — MOBILE SIDE CART BELOW FIXED SITE HEADER
   --------------------------------------------------------------------------
   The mobile site header is fixed and its real reserved height is 105px.
   WoodMart's side-cart is also fixed to the viewport, so without this offset
   the header covers the side-cart heading / first product card.

   This rule affects ONLY the mobile side-cart (not the normal cart page,
   desktop, tablet, product layout or bottom navigation).
   ========================================================================== */

@media screen and (max-width: 767px) {

	body .cart-widget-side {
		top: 105px !important;
		bottom: auto !important;

		height: calc(100vh - 105px) !important;
		height: calc(100dvh - 105px) !important;
		max-height: calc(100vh - 105px) !important;
		max-height: calc(100dvh - 105px) !important;
	}

	/*
	 * Mobile side-cart heading = 64px.
	 * Calculate the content area from the already corrected panel height,
	 * so the footer remains fully reachable at the bottom of the viewport.
	 */
	body .cart-widget-side .widget_shopping_cart {
		height: calc(100vh - 169px) !important;
		height: calc(100dvh - 169px) !important;
		max-height: calc(100vh - 169px) !important;
		max-height: calc(100dvh - 169px) !important;
		min-height: 0 !important;
	}
}

/* ========================================================================== 
   BARGCHI — WOODMART MINI CART IMAGE WRAPPER FIX V5
   --------------------------------------------------------------------------
   WoodMart wraps the WooCommerce thumbnail in .cart-item-image. Styling only
   the direct <img> misses that wrapper, whose own dimensions/overflow can crop
   the product. Control BOTH the wrapper and its image so the whole product is
   always visible.
   ========================================================================== */

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item > .cart-item-image {
	display: flex !important;
	grid-column: 2 !important;
	grid-row: 1 / span 2 !important;
	align-self: center !important;
	align-items: center !important;
	justify-content: center !important;

	width: 68px !important;
	height: 68px !important;
	min-width: 68px !important;
	max-width: 68px !important;
	min-height: 68px !important;
	max-height: 68px !important;

	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 3px !important;
	float: none !important;

	background: #fafbfd !important;
	border: 1px solid #e7edf2 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
}

body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item > .cart-item-image > img,
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item > .cart-item-image img.bargchi-mini-cart-product-image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	min-height: 0 !important;
	max-height: 100% !important;

	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;

	object-fit: contain !important;
	object-position: center center !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 6px !important;
	overflow: visible !important;
}

/* Fallback for any WoodMart/WooCommerce variant that renders the image directly. */
body .cart-widget-side
.woocommerce-mini-cart-item.mini_cart_item > img.bargchi-mini-cart-product-image {
	display: block !important;
	grid-column: 2 !important;
	grid-row: 1 / span 2 !important;
	align-self: center !important;

	width: 68px !important;
	height: 68px !important;
	min-width: 68px !important;
	max-width: 68px !important;
	min-height: 68px !important;
	max-height: 68px !important;

	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 3px !important;
	float: none !important;

	object-fit: contain !important;
	object-position: center center !important;
	background: #fafbfd !important;
	border: 1px solid #e7edf2 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
}

@media screen and (max-width: 767px) {
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item {
		grid-template-columns: minmax(0, 1fr) 64px !important;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item > .cart-item-image {
		width: 64px !important;
		height: 64px !important;
		min-width: 64px !important;
		max-width: 64px !important;
		min-height: 64px !important;
		max-height: 64px !important;
		padding: 2px !important;
		border-radius: 9px !important;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item > .cart-item-image > img,
	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item > .cart-item-image img.bargchi-mini-cart-product-image {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		object-position: center center !important;
	}

	body .cart-widget-side
	.woocommerce-mini-cart-item.mini_cart_item > img.bargchi-mini-cart-product-image {
		width: 64px !important;
		height: 64px !important;
		min-width: 64px !important;
		max-width: 64px !important;
		min-height: 64px !important;
		max-height: 64px !important;
		padding: 2px !important;
		border-radius: 9px !important;
	}
}
