/**
 * استایل مُدال تأیید افزودن به سبد خرید.
 */
.shahrokh-cc {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}

.shahrokh-cc.is-open {
	display: flex;
}

.shahrokh-cc__overlay {
	position: absolute;
	inset: 0;
	background: var( --shahrokh-cc-overlay, rgba( 15, 23, 42, 0.55 ) );
	-webkit-backdrop-filter: blur( 2px );
	backdrop-filter: blur( 2px );
}

.shahrokh-cc__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.25 );
	padding: 24px;
	text-align: center;
	direction: rtl;
	animation: shahrokh-cc-in 0.2s ease;
}

@keyframes shahrokh-cc-in {
	from { transform: translateY( 12px ); opacity: 0; }
	to   { transform: translateY( 0 ); opacity: 1; }
}

@media ( prefers-reduced-motion: reduce ) {
	.shahrokh-cc__card { animation: none; }
}

.shahrokh-cc__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.shahrokh-cc__check,
.shahrokh-cc__spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.shahrokh-cc__check {
	background: #dcfce7;
	color: #15803d;
	font-size: 22px;
}

.shahrokh-cc__spinner {
	display: none;
	border: 3px solid #e2e8f0;
	border-top-color: var( --shahrokh-cc-accent, #15203a );
	animation: shahrokh-cc-spin 0.8s linear infinite;
}

@keyframes shahrokh-cc-spin {
	to { transform: rotate( 360deg ); }
}

.shahrokh-cc__card.is-loading .shahrokh-cc__check {
	display: none;
}

.shahrokh-cc__card.is-loading .shahrokh-cc__spinner {
	display: flex;
}

.shahrokh-cc__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.shahrokh-cc__body {
	display: flex;
	gap: 14px;
	align-items: center;
	text-align: start;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
	margin-bottom: 14px;
	min-height: 88px;
}

.shahrokh-cc__media {
	flex: 0 0 auto;
}

.shahrokh-cc__media img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.shahrokh-cc__info {
	flex: 1 1 auto;
	min-width: 0;
}

.shahrokh-cc__name {
	margin: 0 0 4px;
	font-weight: 600;
	color: #0f172a;
	font-size: 14px;
}

.shahrokh-cc__meta {
	margin: 0 0 4px;
	color: #64748b;
	font-size: 13px;
}

.shahrokh-cc__price {
	margin: 0;
	color: #15203a;
	font-weight: 700;
	font-size: 14px;
}

.shahrokh-cc__cart {
	margin: 0 0 16px;
	min-height: 18px;
	color: #475569;
	font-size: 13px;
}

.shahrokh-cc__cart-count,
.shahrokh-cc__cart-total {
	font-weight: 700;
	color: #0f172a;
}

.shahrokh-cc__sk {
	display: block;
	border-radius: 8px;
	background: linear-gradient( 90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63% );
	background-size: 400% 100%;
	animation: shahrokh-cc-sk 1.2s ease infinite;
}

.shahrokh-cc__sk--img {
	width: 64px;
	height: 64px;
	border-radius: 10px;
}

.shahrokh-cc__sk--line {
	width: 80%;
	height: 12px;
}

.shahrokh-cc__sk--price {
	width: 45%;
	height: 12px;
}

@keyframes shahrokh-cc-sk {
	from { background-position: 100% 0; }
	to   { background-position: 0 0; }
}

@media ( prefers-reduced-motion: reduce ) {
	.shahrokh-cc__sk { animation: none; }
	.shahrokh-cc__spinner { animation-duration: 1.6s; }
}

.shahrokh-cc__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.shahrokh-cc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	min-height: 44px;
}

.shahrokh-cc__btn--ghost {
	background: #fff;
	border-color: #cbd5e1;
	color: #334155;
}

.shahrokh-cc__btn--cart {
	background: #e2e8f0;
	color: #0f172a;
}

.shahrokh-cc__btn--checkout {
	grid-column: 1 / -1;
	background: #fff;
	border-color: var( --shahrokh-cc-accent, #15203a );
	color: var( --shahrokh-cc-accent, #15203a );
	font-weight: 700;
}

body.shahrokh-cc-open {
	overflow: hidden;
}
