/* Raw HTML block dialog (see inc/classic-editor-html.php). */

.bs-html-dialog-open {
	overflow: hidden;
}

.bs-html-dialog[hidden] {
	display: none;
}

.bs-html-dialog {
	position: fixed;
	inset: 0;
	z-index: 160000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.bs-html-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.bs-html-dialog__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 860px;
	max-height: 100%;
	background: #fff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.bs-html-dialog__header,
.bs-html-dialog__footer {
	display: flex;
	align-items: center;
	padding: 12px 16px;
}

.bs-html-dialog__header {
	justify-content: space-between;
	border-bottom: 1px solid #dcdcde;
}

.bs-html-dialog__header h2 {
	margin: 0;
	font-size: 18px;
}

.bs-html-dialog__close {
	border: 0;
	background: none;
	color: #50575e;
	cursor: pointer;
	padding: 4px;
}

.bs-html-dialog__close:hover,
.bs-html-dialog__close:focus {
	color: #135e96;
}

.bs-html-dialog__body {
	padding: 16px;
	overflow: auto;
}

.bs-html-dialog__body textarea {
	width: 100%;
	font-family: Menlo, Consolas, monospace;
}

.bs-html-dialog__body .CodeMirror {
	height: 360px;
	border: 1px solid #dcdcde;
}

.bs-html-dialog__footer {
	justify-content: flex-end;
	gap: 8px;
	border-top: 1px solid #dcdcde;
}
