.mfcs-slider,
.mfcs-slider * {
	box-sizing: border-box;
}

.mfcs-slider {
	--mfcs-cols: 5;
	--mfcs-gap: 12px;
	--mfcs-nav-size: 44px;
	--mfcs-nav-offset: -18px;
	--mfcs-pagi-gap: 8px;
	--mfcs-dot-size: 9px;
	--mfcs-dot-active-width: 24px;
	position: relative;
	width: 100%;
	max-width: 100%;
	isolation: isolate;
}

.mfcs-slider template {
	display: none !important;
}

.mfcs-viewport {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	padding: 8px 2px 14px;
	touch-action: pan-y;
	outline: none;
}

.mfcs-viewport:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.mfcs-track {
	display: flex;
	width: 100%;
	gap: var(--mfcs-gap);
	will-change: transform;
	transform: translate3d(0, 0, 0);
	transition-property: transform;
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mfcs-slide-item {
	/* فرمول محاسبه عرض دقیق برای تعداد ستون اعشاری */
	flex: 0 0 calc((100% - (var(--mfcs-cols) - 1) * var(--mfcs-gap)) / var(--mfcs-cols));
	width: calc((100% - (var(--mfcs-cols) - 1) * var(--mfcs-gap)) / var(--mfcs-cols));
	min-width: 0;
	min-height: 0;
	display: flex;
	justify-content: center;
	align-items: stretch;
}

.mfcs-slide-card {
	--mfcs-card-shadow-y: 0px;
	--mfcs-card-shadow-blur: 0px;
	--mfcs-card-shadow-color: rgba(27, 48, 68, 0);
	--mfcs-card-hover-shadow-y: 8px;
	--mfcs-card-hover-shadow-blur: 22px;
	--mfcs-card-hover-shadow-color: rgba(27, 48, 68, 0.12);
	--mfcs-card-hover-y: -2px;
	--mfcs-tooltip-offset: 10px;
	--mfcs-bar-width: 48px;
	--mfcs-bar-hover-width: 68px;
	--mfcs-bar-height: 4px;
	--mfcs-bar-bg: #CBD5E1;
	--mfcs-bar-hover-bg: #65B32E;
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	max-width: 100%;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-style: solid;
	border-width: 1px;
	border-color: #e1e5ea;
	border-radius: 8px;
	box-shadow: 0 var(--mfcs-card-shadow-y) var(--mfcs-card-shadow-blur) var(--mfcs-card-shadow-color);
	text-decoration: none !important;
	color: inherit;
	transition-property: transform, border-color, background-color, box-shadow;
	transition-duration: 250ms;
	transition-timing-function: ease;
	-webkit-tap-highlight-color: transparent;
}

.mfcs-slide-card:hover,
.mfcs-slide-card:focus-visible {
	border-color: #65b32e;
	box-shadow: 0 var(--mfcs-card-hover-shadow-y) var(--mfcs-card-hover-shadow-blur) var(--mfcs-card-hover-shadow-color);
	transform: translateY(var(--mfcs-card-hover-y));
	outline: none;
}

.mfcs-slide-image {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 100%;
	max-width: 100%;
	height: 235px;
	padding: 10px;
	overflow: hidden;
	background: #f0f0f0;
	border-style: solid;
	border-width: 0;
	transition: background-color 250ms ease, border-color 250ms ease;
}

.mfcs-slide-image img,
.mfcs-slide-image .mfcs-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 300ms ease, opacity 250ms ease;
}

.mfcs-image-placeholder {
	display: block;
	width: 52%;
	max-width: 120px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);
}

.mfcs-slide-content {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 13px 12px 14px;
	text-align: center;
	background: inherit;
}

.mfcs-slide-card.has-bottom-bar .mfcs-slide-content {
	padding-bottom: calc(14px + var(--mfcs-bar-height, 4px));
}

.mfcs-slide-title,
.mfcs-slide-subtitle {
	display: block;
	width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	transition: color 250ms ease;
}

.mfcs-slide-title {
	margin: 0 0 4px;
	color: #252d39;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.55;
}

.mfcs-slide-subtitle {
	margin: 0;
	color: #7b8491;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
}

.mfcs-slide-card:hover .mfcs-slide-title,
.mfcs-slide-card:focus-visible .mfcs-slide-title {
	color: #5daa24;
}

/* نوار چسبان پایین (وسط) */
.mfcs-bottom-bar {
	position: absolute;
	bottom: 0;
	left: 50%;
	z-index: 3;
	display: block;
	width: var(--mfcs-bar-width, 48px);
	height: var(--mfcs-bar-height, 4px);
	background-color: var(--mfcs-bar-bg, #CBD5E1);
	border-radius: 4px 4px 0 0;
	transform: translateX(-50%);
	pointer-events: none;
	transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms ease;
}

.mfcs-slide-card:hover .mfcs-bottom-bar,
.mfcs-slide-card:focus-visible .mfcs-bottom-bar {
	width: var(--mfcs-bar-hover-width, 68px);
	background-color: var(--mfcs-bar-hover-bg, #65B32E);
}

.mfcs-tooltip {
	position: absolute;
	top: var(--mfcs-tooltip-offset);
	left: 50%;
	z-index: 5;
	max-width: calc(100% - 20px);
	padding: 7px 10px;
	border-radius: 6px;
	background: #252d39;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	text-align: center;
	white-space: normal;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -7px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.mfcs-tooltip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 0;
	height: 0;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	border-top: 5px solid #252d39;
	transform: translateX(-50%);
}

.mfcs-slide-card:hover .mfcs-tooltip,
.mfcs-slide-card:focus-visible .mfcs-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.mfcs-nav {
	--mfcs-nav-shadow-color: rgba(20, 30, 40, 0.08);
	--mfcs-nav-shadow-blur: 16px;
	position: absolute;
	top: 50%;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--mfcs-nav-size);
	height: var(--mfcs-nav-size);
	margin: 0;
	padding: 0;
	border-style: solid;
	border-width: 1px;
	border-color: #e6e9ed;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px var(--mfcs-nav-shadow-blur) var(--mfcs-nav-shadow-color);
	color: #7f8791;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.mfcs-nav:hover,
.mfcs-nav:focus-visible {
	border-color: #65b32e;
	background: #65b32e;
	color: #fff;
	outline: none;
}

.mfcs-nav:disabled {
	cursor: default;
	opacity: 0.35;
}

.mfcs-nav[hidden] {
	display: none !important;
}

.mfcs-nav svg {
	display: block;
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.mfcs-nav-prev {
	left: var(--mfcs-nav-offset);
}

.mfcs-nav-next {
	right: var(--mfcs-nav-offset);
}

/* Pagination Base */
.mfcs-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--mfcs-pagi-gap);
	width: 100%;
	margin-top: 16px;
	z-index: 5;
}

.mfcs-pagination[hidden] {
	display: none !important;
}

/* Dots Style */
.mfcs-pagi-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	background-color: #d3d8df;
	color: #626b76;
	cursor: pointer;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: all 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mfcs-pagi-type-dots .mfcs-pagi-item {
	width: var(--mfcs-dot-size);
	height: var(--mfcs-dot-size);
	border-radius: 10px;
}

.mfcs-pagi-type-dots .mfcs-pagi-item.is-active {
	width: var(--mfcs-dot-active-width);
	background-color: #65b32e;
}

/* Numbers Style */
.mfcs-pagi-type-numbers .mfcs-pagi-item {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}

.mfcs-pagi-type-numbers .mfcs-pagi-item.is-active,
.mfcs-pagi-type-numbers .mfcs-pagi-item:hover,
.mfcs-pagi-type-numbers .mfcs-pagi-item:focus-visible {
	background-color: #65b32e;
	color: #fff;
}

/* Fraction Style */
.mfcs-pagi-fraction {
	font-size: 14px;
	font-weight: 600;
	color: #7b8491;
	direction: ltr;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.mfcs-pagi-fraction .mfcs-pagi-current {
	color: #65b32e;
	font-weight: 700;
}

.mfcs-pagi-non-clickable .mfcs-pagi-item {
	cursor: default;
	pointer-events: none;
}

.mfcs-live {
	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;
}

.mfcs-editor-empty {
	padding: 18px;
	border: 1px dashed #c8cdd3;
	border-radius: 8px;
	color: #626b76;
	text-align: center;
}

@media (max-width: 1024px) {
	.mfcs-slider {
		--mfcs-cols: 3;
	}
}

@media (max-width: 767px) {
	.mfcs-slider {
		--mfcs-cols: 1.3;
		--mfcs-nav-size: 38px;
		--mfcs-nav-offset: -6px;
	}

	.mfcs-slide-image {
		height: 160px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mfcs-track,
	.mfcs-slide-card,
	.mfcs-bottom-bar,
	.mfcs-slide-image,
	.mfcs-slide-image img,
	.mfcs-slide-title,
	.mfcs-slide-subtitle,
	.mfcs-tooltip,
	.mfcs-nav,
	.mfcs-pagi-item {
		transition-duration: 0ms !important;
	}
}