/*
 * نافذة تأكيد مخصّصة (Modal) بهوية Buildzair — ملف مستقل بالكامل، بلا
 * أي اعتماد على wizard.css أو أي ستايل شيت آخر (بما فيه أزرارها الخاصة
 * bz-modal__btn*، بدل الاعتماد على bz-wizard__btn* التي لا تكون معرَّفة
 * على صفحات غير الويزارد كلوحة "مسابقاتي"). يجب تحميله دائمًا مع
 * bz-modal.js أينما استُخدم.
 */

body.bz-modal-open {
	overflow: hidden;
}

.bz-modal-overlay {
	--bz-primary: #06ce77;
	--bz-primary-dark: #049a5a;
	--bz-border: #e5e8eb;
	--bz-text: #1c1f24;
	--bz-text-muted: #8a929c;
	--bz-danger: #e5483a;
	--bz-radius: 12px;
	position: fixed;
	inset: 0;
	background: rgba(16, 24, 40, 0.55);
	display: flex;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	font-family: inherit;
}

.bz-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.bz-modal {
	background: #fff;
	border-radius: var(--bz-radius);
	padding: 24px;
	max-width: 420px;
	width: 100%;
	box-shadow: 0 12px 40px rgba(16, 24, 40, 0.25);
	transform: translateY(8px);
	transition: transform 0.15s ease;
}

.bz-modal-overlay.is-open .bz-modal {
	transform: translateY(0);
}

.bz-modal__message {
	margin: 0 0 20px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--bz-text);
	text-align: center !important;
}

.bz-modal__actions {
	display: flex;
	gap: 10px;
}

.bz-modal__btn {
	flex: 1 1 auto;
	text-align: center !important;
	border: 2px solid transparent;
	border-radius: 24px;
	padding-block: 10px;
	padding-inline: 18px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.15s ease;
}

.bz-modal__btn:hover {
	transform: translateY(-1px);
}

.bz-modal__btn--secondary {
	background: #fff;
	border-color: var(--bz-border);
	color: var(--bz-text);
}

.bz-modal__btn--secondary:hover {
	background: var(--bz-border);
}

.bz-modal__btn--danger {
	background: var(--bz-danger);
	border-color: var(--bz-danger);
	color: #fff;
}

.bz-modal__btn--danger:hover {
	background: #c93a2e;
}

.bz-modal__message--alert {
	text-align: start !important;
}

.bz-modal__checkbox-label {
	display: flex;
	align-items: flex-start !important;
	gap: 8px;
	background: var(--bz-border);
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 18px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--bz-text);
	cursor: pointer;
	text-align: start !important;
}

.bz-modal__checkbox {
	margin-block-start: 2px;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	accent-color: var(--bz-primary);
	cursor: pointer;
}

.bz-modal__checkbox-label a {
	color: var(--bz-primary-dark);
	font-weight: 700;
}

.bz-modal__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

html[dir="rtl"] .bz-modal-overlay,
.rtl .bz-modal-overlay {
	font-family: 'Tahoma', 'Segoe UI', system-ui, sans-serif;
}

@media (max-width: 480px) {
	.bz-modal {
		padding: 20px;
	}
}
