/*
 * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
 */

.mini-inspector-editor {
	display: none;
}

.ck-inspector.ck-mini-inspector {
	/* Vertical spacing like around code snippets. */
	margin: 1em 0;

	/* Match the look of the diagrams */
	border-radius: 5px;

	/* Override main styles. */
	box-shadow: none !important;
}

.ck-inspector.ck-mini-inspector .ck-inspector-code {
	font-weight: bold;
	--ck-inspector-code-font-size: 13px;

	/* FYI: This is Umberto's mono stack. */
	--ck-inspector-code-font-family: Monaco, Menlo, Consolas, "Roboto Mono", "Courier New", "Ubuntu Mono", monospace;
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree {
	overflow: hidden;
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree .ck-inspector-tree__position.ck-inspector-tree__position_selection {
	display: none;
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree > .ck-inspector-tree-node > :first-child,
.ck-inspector.ck-mini-inspector .ck-inspector-tree > .ck-inspector-tree-node > :last-child {
	opacity: 0.4;
	filter: grayscale(1);
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree > .ck-inspector-tree-node > :first-child {
	text-overflow: ellipsis;
	overflow: hidden;
	width: 100%;
	white-space: nowrap;
	display: block;
}

/* Match the look of the diagrams */
.ck-inspector.ck-mini-inspector .ck-inspector-tree:first-child,
.ck-inspector.ck-mini-inspector .ck-inspector-tree:last-child {
	border: 2px solid hsl(0, 0%, 0%);
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree:first-child {
	border-radius: 5px 0 0 5px;
	background: hsl(338deg 100% 99%);
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree:first-child::before {
	background: hsl(339, 81%, 85%);
	content: "Model";
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree:last-child {
	border-radius: 0 5px 5px 0;
	background: hsl(187deg 100% 98%);
	border-left: 0;
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree:last-child::before {
	background: hsl(187, 71%, 82%);
	content: "View";
}

.ck-inspector.ck-mini-inspector .ck-inspector-tree:first-child::before,
.ck-inspector.ck-mini-inspector .ck-inspector-tree:last-child::before {
	font-size: 14px;
	text-align: center;

	border-bottom: 2px solid hsl(0, 0%, 0%);

	/* FYI: This is Umberto's sans-serif stack. */
	font-family: "Source Sans Pro", system-ui, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
