/*
 * Copyright the Collabora Online contributors.
 *
 * SPDX-License-Identifier: MPL-2.0
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

/*
 * An extension is rendered as an overlay deck: its own panel with a title and a close
 * button, built from the same shell as the core overlay decks (Styles, Accessibility
 * check) so it looks like one of them. Clicking close tears the
 * iframe down (Extension_Teardown handshake) and closes the sidebar with it.
 */

#sidebar-panel.extension-deck-shown > #sidebar-container {
	display: none;
}

.extension-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.extension-panel.closing {
	display: none;
}

.extension-panel > .sidebar.ui-panel-content.extension-panel-body {
	width: auto;
	padding-inline: 0;
	flex: 1;
	min-height: 0;
	overflow: auto;
}

.extension-panel-body > iframe {
	border: none;
	width: 100%;
	height: 100%;
	display: block;
}
