.dialog-theme-default .modal-dialog {
	pointer-events: auto;
}

.modal-dialog-content {
	pointer-events: auto;
	position: relative;
	padding: 0;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.calix-dialog {
	padding: 0;
	border: none;
	max-width: 90vw;
	max-height: 90vh;
	overflow: hidden;
	background: white;
	box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.7);
	position: fixed;
	inset: 0;
	margin: auto;
	width: fit-content;
	height: fit-content;
}

.calix-dialog[open] {
	display: flex;
	flex-direction: column;
}

.calix-dialog::backdrop {
	background: rgba(0, 0, 0, 0.4);
}

.calix-modal-header {
	position: relative;
	flex: 0 0 auto;
	background: #e9e9e9;
	border-bottom: 1px solid #d3d3d3;
	padding: 10px 40px 10px 16px;
	min-height: 24px;
}

.calix-modal-title {
	font-weight: bold;
	font-size: 16px;
	color: #222;
	line-height: 1.3;
	display: inline-block;
	padding-top: 2px;
}

.calix-modal-body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 16px 24px 20px;
}

.calix-modal-content > h1:first-child,
.calix-modal-content > h2:first-child,
.calix-modal-body > div > h1:first-child,
.calix-modal-body > div > h2:first-child {
	display: none;
}

.calix-modal-close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	font-size: 22px;
	line-height: 1;
	color: #666;
	text-decoration: none;
	cursor: pointer;
	padding: 2px 8px;
}

.calix-modal-close:hover,
.calix-modal-close:focus {
	color: #000;
}
