.modal-header.modal-has-headericon {
	position: relative;
	min-height: 80px;
	padding-left: 100px;
}

.modal-header.modal-has-headericon.swal-extended-icon {
	padding-left: 120px;
	padding-bottom: 20px;
}

.modal-header.modal-has-headericon>h5 {
	display: flex;
	width: 100%;
	min-height: 60px;
	align-items: center;
}

.modal-header.modal-has-headericon>.modal-header-icon {
	position: absolute;
	top: 0;
	left: 22px;
}

.modal-header.modal-has-headericon>.modal-header-icon .swal2-transform-resize {
	transform: scale(0.75);
}

.modal-header.modal-has-headericon>.modal-header-icon .swal2-transform-resize.swal2-icon,
.modal-header.modal-has-headericon>.modal-header-icon .swal2-transform-resize .swal2-icon {
	margin-top: 10px;
	margin-left: -10px;
}

.modal-header.modal-has-headericon>.modal-header-icon .swal2-transform-resize .success-icon-stub {
	border-color: #b9f0b7;
}

.modal-header.modal-has-headericon>.modal-header-icon .swal2-standard-resize {
	font-size: 40px;
	line-height: 60px;
	text-align: center;
	width: 60px;
	height: 60px;
}

.modal-header.modal-has-headericon>.modal-header-icon>.swal2-icon {
	overflow: hidden;
}

.modal-dialog.modal-fw {
	max-width: calc(100% - 50px);
}

.modal-dialog .modal-body.modal-full-height {
	height: calc(100vh - 190px);
}

.modal-dialog.modal-ntl {
	max-width: 650px;
}

@media (min-width: 768px) {
	.modal-dialog.modal-stn {
		max-width: 400px;
	}
}

.modal-bottom-sheet .modal-dialog {
	position: fixed !important;
	bottom: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100%;
	transition: transform 0.3s ease-out !important;
}

.modal-bottom-sheet .modal-dialog .modal-content {
	border-top-left-radius: 16px;
	border-top-right-radius: 16px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	max-height: calc(100dvh - 10px);
	padding-top: 0;
}

/* Drag handle */
.modal-bottom-sheet .drag-handle {
	width: 100%;
	width: calc(100% - 45px);
	padding-top: 10px;
	padding-bottom: 55px;
	cursor: grab;
	position: absolute;
	z-index: 1;
	margin-right: 40px;
	padding-left: 45px;
	/* The handle drag owns touches that start here — without this, iOS also
	   scrolls/rubber-bands the page behind while the sheet is being dragged. */
	touch-action: none;
}

.modal-bottom-sheet .drag-handle .handle-bar {
	width: 40px;
	height: 4px;
	background-color: #ccc;
	border-radius: 2px;
	margin: 0 auto;
}

.modal-bottom-sheet .modal-header {
	margin-top: 5px;
}

.modal.modal-bottom-sheet.fade .modal-dialog {
	transition:
		transform 0.3s ease-out,
		opacity 0.3s ease-out;
	transform: translateY(100%);
	opacity: 0;
}

.modal.modal-bottom-sheet.fade.show .modal-dialog {
	transform: none;
	opacity: 1;
}

.modal-is-dragging,
.modal-is-dragging * {
	user-select: none;
}

.modal.modal-bottom-sheet.fade.modal-is-dragging .modal-dialog {
	transition: none !important;
}

.modal.modal-bottom-sheet .modal-body {
	overflow: auto;
	/* Keep touch scrolls inside the sheet — iOS otherwise chains the overscroll
	   to the (overflow:hidden-but-still-touch-scrollable) page behind the backdrop. */
	overscroll-behavior: contain;
}

@media (max-width: 767.99px) {
	.modal.fade.modal-mobile-fullscreen .modal-dialog {
		margin: 0;
		max-width: 100%;
		border-radius: 0;
	}

	.modal.fade.modal-mobile-fullscreen .modal-dialog .modal-content,
	.modal.fade.modal-mobile-fullscreen .modal-dialog .modal-header {
		border-radius: 0;
		border-top: 0;
		border-left: 0;
		border-right: 0;
	}

	.modal.fade.modal-mobile-fullscreen .modal-dialog .modal-footer {
		position: sticky;
		bottom: 0;
		z-index: 1;
		background: inherit;
	}
}