/* =====================================
   MODAL
===================================== */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	padding: calc(var(--header-h) + 20px) 10px 10px 10px;
	overflow-y: auto;
	background: rgba(15, 23, 42, .45);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 2000;
	animation: modalOverlay .2s ease;
}

/* =====================================
   CONTAINER
===================================== */
.modal-container {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 20px 40px rgba(15, 23, 42, .15), 0 2px 8px
		rgba(15, 23, 42, .08);
	animation: modalShow .22s ease;
}

/* =====================================
   HEADER
===================================== */
.modal-h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid #e2e8f0;
}

.modal-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
}

.modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	color: #64748b;
	font-size: 18px;
	cursor: pointer;
	transition: .2s;
}

.modal-close:hover {
	background: #f1f5f9;
	color: #2563eb;
	text-decoration: none;
}

/* =====================================
   BODY
===================================== */
.modal-b {
	padding-top: 30px;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 20px;
}

.modal-description-0, .modal-description-1 {
	font-size: 14px;
	line-height: 1.7;
	color: #475569;
}

.modal-description-1 {
}

.modal-con {
	margin-top: 0px;
}

/* =====================================
   BUTTONS
===================================== */
.modal-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 18px 22px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
	border-radius: 0 0 16px 16px;
	margin-top: 40px;
}

/* =====================================
   LOADER
===================================== */
.modal-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	text-align: center;
}

.modal-loader img {
	width: 48px;
	height: 48px;
}

/* =====================================
   ERROR
===================================== */
.modal-err {
	color: #dc2626;
	font-size: 14px;
	font-weight: 500;
}

/* =====================================
   ANIMATION
===================================== */
@keyframes modalOverlay {from { opacity:0;
	
}

to {
	opacity: 1;
}

}
@keyframes modalShow {from { opacity:0;
	transform: translateY(-18px) scale(.98);
}

to {
	opacity: 1;
	transform: translateY(0) scale(1);
}

}

/* =====================================
   MOBILE
===================================== */
@media ( max-width :768px) {
	.modal {
		padding: 10px;
	}
	.modal-container {
		max-width: 100%;
		border-radius: 14px;
	}
	.modal-h {
		padding: 16px 18px;
	}
	.modal-b {
		padding: 18px;
	}
	.modal-buttons {
		flex-direction: column-reverse;
		padding: 18px;
	}
	.modal-buttons .btn {
		width: 100%;
	}
}