.ccs-wrap {
	--ccs-ring: #e1306c;
	--ccs-ring-seen: #c7c7c7;
	--ccs-bubble-size: 70px;
	direction: rtl;
	font-family: inherit;
}

.ccs-wrap button,
.ccs-viewer button,
.ccs-viewer a {
	-webkit-tap-highlight-color: transparent;
	tap-highlight-color: transparent;
	outline: none;
	-webkit-touch-callout: none;
	user-select: none;
	-webkit-user-select: none;
}

.ccs-reel-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
}

.ccs-reel {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 6px 2px 14px;
	scrollbar-width: thin;
}
.ccs-wrap.ccs-align-center .ccs-reel { justify-content: center; }
.ccs-wrap.ccs-align-left .ccs-reel { justify-content: flex-start; flex-direction: row-reverse; }
.ccs-wrap.ccs-align-right .ccs-reel { justify-content: flex-start; }

.ccs-bubble {
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: calc(var(--ccs-bubble-size) + 10px);
	flex: 0 0 auto;
}

.ccs-bubble-ring {
	width: var(--ccs-bubble-size);
	height: var(--ccs-bubble-size);
	border-radius: 50%;
	padding: 3px;
	display: block;
	background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
	transition: filter .2s ease;
}
.ccs-wrap.ccs-shape-rectangle .ccs-bubble-ring { border-radius: 14px; }

.ccs-bubble.ccs-seen .ccs-bubble-ring {
	background: var(--ccs-ring-seen, #c7c7c7);
}

.ccs-bubble-img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	border: 2px solid #fff;
}
.ccs-wrap.ccs-shape-rectangle .ccs-bubble-img { border-radius: 11px; }

.ccs-bubble-label {
	font-size: 12px;
	max-width: calc(var(--ccs-bubble-size) + 10px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
}

.ccs-backdrop {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	transform: none !important;
	backdrop-filter: blur(0px);
	background: rgba(0,0,0,0);
	pointer-events: none;
	z-index: 2147483646;
	transition: backdrop-filter .25s ease, background .25s ease;
}
.ccs-backdrop.ccs-open {
	backdrop-filter: blur(var(--ccs-blur, 12px));
	background: rgba(0,0,0,.35);
}

.ccs-viewer {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	transform: none !important;
	z-index: 2147483647;
	display: none;
	background: #000;
	color: #fff;
	overscroll-behavior: contain;
	touch-action: none;
}
.ccs-viewer.ccs-open { display: flex; flex-direction: column; }

.ccs-viewer-progress {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	gap: 4px;
	z-index: 2;
}
.ccs-viewer-progress .ccs-bar {
	flex: 1;
	height: 3px;
	background: rgba(255,255,255,.35);
	border-radius: 3px;
	overflow: hidden;
}
.ccs-viewer-progress .ccs-bar-fill {
	height: 100%;
	width: 0%;
	background: #fff;
}

.ccs-viewer-header {
	position: absolute;
	top: 22px;
	left: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 2;
}
.ccs-viewer-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	border: 1px solid rgba(255,255,255,.6);
}
.ccs-viewer-title { font-size: 13px; font-weight: 600; flex: 1; }
.ccs-viewer-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ccs-viewer-stage {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 480px;
	margin: 0 auto;
	width: 100%;
	overflow: hidden;
}
.ccs-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
}
.ccs-slide.ccs-active { opacity: 1; pointer-events: auto; }
.ccs-slide img, .ccs-slide video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}
.ccs-slide-caption-box {
	position: relative;
	z-index: 1;
	padding: 18px;
	width: 100%;
	background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
}
.ccs-slide-caption-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.ccs-slide-caption-text { font-size: 13px; margin: 0 0 10px; opacity: .9; }
.ccs-slide-price { font-size: 14px; margin-bottom: 8px; }
.ccs-slide-price .ccs-old-price { text-decoration: line-through; opacity: .6; margin-left: 8px; font-size: 12px; }
.ccs-slide-discount { background: #e1306c; padding: 2px 8px; border-radius: 20px; font-size: 11px; margin-right: 6px; }
.ccs-slide-cta {
	display: inline-block;
	background: #fff;
	color: #111;
	padding: 8px 18px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
}

/* دکمه‌های فلش قابل مشاهده برای رفتن به اسلاید/استوری بعدی و قبلی
   عمداً از لبه‌ی مطلق صفحه فاصله دارند تا با ژست بازگشت (سواپ از لبه) گوشی‌های اندرویدی تداخل نکنند */
.ccs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	border: none;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ccs-arrow::before {
	content: '';
	width: 10px;
	height: 10px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	display: block;
}
.ccs-arrow-prev { right: 22px; }
.ccs-arrow-prev::before { transform: rotate(45deg) translate(-1px,-1px); }
.ccs-arrow-next { left: 22px; }
.ccs-arrow-next::before { transform: rotate(-135deg) translate(-1px,-1px); }

.ccs-viewer-footer { height: 20px; }

.ccs-viewer[data-theme="light"] { background: #fff; color: #111; }
.ccs-viewer[data-theme="light"] .ccs-viewer-close { color: #111; }
.ccs-viewer[data-theme="light"] .ccs-arrow { background: rgba(0,0,0,.35); }
.ccs-viewer[data-theme="light"] .ccs-arrow::before { border-color: #fff; }

@media (max-width: 600px) {
	.ccs-viewer-stage { max-width: 100%; }
}

.ccs-slide-overlay{background:linear-gradient(to top,rgba(0,0,0,.75),rgba(0,0,0,.35),transparent)!important;color:#fff}.ccs-slide-overlay *{color:#fff!important}.ccs-slide-cta{color:#fff!important;border:1px solid rgba(255,255,255,.6);background:rgba(255,255,255,.12)}