/* ===== دکمه دانلود کاتالوگ ===== */
.mkcdv-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	background: #023F88;
	border: 1px solid #023F88;
	border-radius: 0;
	cursor: pointer;
	transition: filter .2s ease, transform .05s ease;
}

.mkcdv-download-btn:hover { filter: brightness(.92); }
.mkcdv-download-btn:active { transform: translateY(1px); }

/* ===== گرید دانلود ===== */
.mkcdv-grid {
	display: grid;
	gap: 16px;
	margin: 16px 0;
}
.mkcdv-grid--cols-1 { grid-template-columns: repeat(1, 1fr); }
.mkcdv-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.mkcdv-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.mkcdv-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.mkcdv-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.mkcdv-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
	.mkcdv-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
	.mkcdv-grid { grid-template-columns: 1fr !important; }
}

.mkcdv-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 18px;
	text-align: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0;
}
.mkcdv-grid__title { font-weight: 700; }
.mkcdv-grid__item .mkcdv-download-btn { width: 100%; }

/* ===== مودال ===== */
.mkcdv-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	direction: rtl;
}
.mkcdv-modal.is-open { display: flex; }

.mkcdv-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 12, 30, .6);
	backdrop-filter: blur(2px);
}

.mkcdv-modal__box {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 16px;
	padding: 28px 24px 24px;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	font-family: inherit;
	color: #0f172a;
	animation: mkcdv-pop .18s ease;
}

@keyframes mkcdv-pop {
	from { transform: translateY(10px) scale(.98); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.mkcdv-modal__close {
	position: absolute;
	top: 12px;
	left: 14px;
	width: 32px;
	height: 32px;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	background: transparent;
	border: none;
	cursor: pointer;
}
.mkcdv-modal__close:hover { color: #0f172a; }

.mkcdv-modal__title {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 800;
	text-align: center;
}

.mkcdv-modal__message {
	display: none;
	margin-bottom: 14px;
	padding: 10px 12px;
	font-size: 14px;
	border-radius: 0;
}
.mkcdv-modal__message.is-info { display: block; color: #023F88; background: #eaf1fb; }
.mkcdv-modal__message.is-error { display: block; color: #991b1b; background: #fef2f2; }
.mkcdv-modal__message.is-success { display: block; color: #166534; background: #f0fdf4; }

.mkcdv-hint {
	margin: 0 0 14px;
	font-size: 14px;
	color: #475569;
	line-height: 1.7;
}
.mkcdv-shown-phone { font-weight: 700; color: #0f172a; }

.mkcdv-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	margin-bottom: 14px;
	font: inherit;
	font-size: 16px;
	text-align: center;
	border: 1px solid #cbd5e1;
	border-radius: 0;
	outline: none;
	transition: border-color .15s ease;
}
.mkcdv-input:focus { border-color: #023F88; }

.mkcdv-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	font: inherit;
	font-weight: 700;
	border: none;
	border-radius: 0;
	cursor: pointer;
}
.mkcdv-btn--primary { color: #fff; background: #023F88; border: 1px solid #023F88; }
.mkcdv-btn--primary:hover { filter: brightness(.92); }
.mkcdv-btn:disabled { opacity: .6; cursor: not-allowed; }

.mkcdv-row { margin-top: 12px; }
.mkcdv-row--between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mkcdv-link {
	padding: 4px 2px;
	font: inherit;
	font-size: 13px;
	color: #023F88;
	background: none;
	border: none;
	cursor: pointer;
}
.mkcdv-link:hover { text-decoration: underline; }
.mkcdv-link:disabled { color: #94a3b8; cursor: default; text-decoration: none; }

/* ===== ورودی کد (تمام‌عرض) ===== */
.mkcdv-otp {
	display: flex;
	gap: 8px;
	justify-content: stretch;
	width: 100%;
	margin-bottom: 6px;
}
.mkcdv-otp__cell {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	height: 54px;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	border: 1px solid #cbd5e1;
	border-radius: 0;
	outline: none;
	transition: border-color .15s ease;
}
.mkcdv-otp__cell:focus { border-color: #023F88; }

.mkcdv-spinner {
	width: 28px;
	height: 28px;
	margin: 14px auto 0;
	border: 3px solid #e2e8f0;
	border-top-color: #023F88;
	border-radius: 50%;
	animation: mkcdv-spin .8s linear infinite;
}
@keyframes mkcdv-spin { to { transform: rotate(360deg); } }

.mkcdv-no-scroll { overflow: hidden; }
