/* modal custom */
.modal-custom {
	max-width: 85%;
	transition: all 0.2s ease;
}

.modal-custom.modal-dialog.center-modal {
	margin-top: 24vh;
}

.modal-custom .modal-content.full-height {
	min-height: calc(100vh - 60px);
}

.modal-custom .modal-content {
	border-radius: 15px;
	position: relative;
	padding: 10px;
	transition: all 0.2s ease;
}

.modal-custom .modal-body {
	max-height: calc(100vh - 164px);
	overflow-y: auto;
}

.modal-custom .modal-close-action {
	position: absolute;
	top: 17.5px;
	right: 20px;
	cursor: pointer;
	z-index: 10;
}

.modal-custom .modal-close-action i {
	font-size: 15px;
	color: var(--text-secondary-gray);
}

.modal-custom .modal-title {
	color: #36459B;
	font-family: IRANSans-Medium;
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	display: flex;
	align-items: center;
	gap: 9px;
}

.modal-custom.modal-dialog:has(>.secondary-size) {
	margin: 12px auto;
}

.modal-custom .modal-title::before {
	content: '';
	width: 14.5px;
	height: 14.5px;
	background: #36459B;
	border-radius: 50%;
}

.modal-custom .modal-title.small-circle::before {
	width: 10px;
	height: 10px;
}

.modal-footer {
	column-gap: 10px;
}

.modal-custom .modal-content.secondary-size {
	max-height: 96vh;
	min-height: 96vh;
	justify-content: flex-start;
}

/* Action headers and their form bodies share the catalog inset at each modal breakpoint. */
.modal-custom .modal-header-with-btn,
.modal-custom .modal-header-with-btn + .modal-body {
	padding-inline: 20px;
}

.modal-title.small-circle {
	font-size: 16px !important;
}

@media (max-width: 576px) {
	.modal-custom .modal-title {
		font-size: 16px;
	}

	.modal-custom .modal-title::before {
		width: 12px;
		height: 12px;
	}

	.modal-title.small-circle {
		font-size: 14px !important;
	}
}

@media (max-width: 768px) {
	.end-txt-in-mobile {
		text-align: end !important;
		display: flex;
		justify-content: flex-end;
	}
}

.modal.no-padding-side {
	padding-left: unset !important;
	padding-right: unset !important;
}

@media (max-width: 992px) {

	.modal-body.change_parent_height_root {
		padding-bottom: 0 !important;
	}

	.modal-content.width-unset-1000 {
		width: unset !important;
	}

	.modal-custom.modal-dialog.center-modal {
		margin-top: 0;
	}

	.modal-custom .modal-header {
		padding: 13px 16px !important;
	}

	.modal-custom .modal-header-with-btn + .modal-body {
		padding-inline: 16px;
	}

	.modal-custom {
		max-width: 100%;
		min-width: 100%;
		margin: 0;
	}

	.modal-custom .modal-content,
	.modal-custom .modal-content.secondary-size,
	.modal-custom .modal-content.full-height,
	.modal-dialog.user__profile-small-model .modal-content {
		border-radius: 0;
		max-height: 100dvh;
		min-height: 100dvh;
		overflow-y: auto;
		padding: 0;
	}

	.modal-custom .modal-content.fit-content-h-in-mobile {
		max-height: fit-content;
		min-height: fit-content;
	}

	.modal-custom .modal-body:not(.fit-content-h-in-mobile) {
		max-height: calc(100vh - 80px);
		/*padding: 0 16px;*/
	}

	.modal-custom .modal-body:is(.fit-content-h-in-mobile) {
		max-height: fit-content;
		padding: 0 16px;
	}

	.modal[data-type=custom-modal] {
		padding: 0 !important;
	}

}

/*modal sizing*/

.modal-custom-30 {
	max-width: 30%;
}

.modal-custom-40 {
	max-width: 40%;
}

.modal-custom-50 {
	max-width: 50%;
}

.modal-custom-60 {
	max-width: 60%;
}


.modal-custom-70 {
	max-width: 70%;
}


.modal-custom-80 {
	max-width: 80%;
}

.modal-custom-90 {
	max-width: 90%;
}

.modal-custom-95 {
	max-width: 95%;
}


@media (max-width: 576px) {
	.modal-body {
		padding: 0;
	}

}

@media (min-width: 576px) {
	.modal-custom-md-30 {
		max-width: 30%;
	}

	.modal-custom-md-40 {
		max-width: 40%;
	}

	.modal-custom-md-50 {
		max-width: 50%;
	}

	.modal-custom-md-60 {
		max-width: 60%;
	}


	.modal-custom-md-70 {
		max-width: 70%;
	}


	.modal-custom-md-80 {
		max-width: 80%;
	}

	.modal-custom-md-90 {
		max-width: 90%;
	}

	.modal-custom-md-95 {
		max-width: 95%;
	}


}

@media (min-width: 992px) {

	.modal-custom-lg-30 {
		max-width: 30%;
	}

	.modal-custom-lg-40 {
		max-width: 40%;
	}

	.modal-custom-lg-50 {
		max-width: 50%;
	}

	.modal-custom-lg-60 {
		max-width: 60%;
	}

	.modal-custom-lg-65 {
		max-width: 65%;
	}

	.modal-custom-lg-70 {
		max-width: 70%;
	}


	.modal-custom-lg-80 {
		max-width: 80%;
	}

	.modal-custom-lg-90 {
		max-width: 90%;
	}

	.modal-custom-lg-95 {
		max-width: 95%;
	}


	.modal-custom-lg-85 {
		max-width: 85%;
	}
}

@media (min-width: 1200px) {
	.modal-custom-xl-30 {
		max-width: 30%;
	}

	.modal-custom-xl-40 {
		max-width: 40%;
	}

	.modal-custom-xl-50 {
		max-width: 50%;
	}

	.modal-custom-xl-60 {
		max-width: 60%;
	}


	.modal-custom-xl-70 {
		max-width: 70%;
	}


	.modal-custom-xl-80 {
		max-width: 80%;
	}

	.modal-custom-xl-90 {
		max-width: 90%;
	}

	.modal-custom-xl-95 {
		max-width: 95%;
	}


}
