/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.monaco-workbench .panel.integrated-terminal {
	align-content: flex-start;
	align-items: baseline;
	display: flex;
	flex-direction: column;
	background-color: transparent!important;
	user-select: initial;
	position: relative;
}

.monaco-workbench .panel.integrated-terminal .terminal-outer-container {
	height: 100%;
	padding-left: 20px; /*Don't use right padding in case xterm.js misbehaves*/
	padding-bottom: 2px;
	width: 100%;
	box-sizing: border-box;
}

.monaco-workbench .panel.integrated-terminal .terminal-wrapper {
	display: none;
}
.monaco-workbench .panel.integrated-terminal .terminal-wrapper.active {
	display: block;
	position: absolute;
	bottom: 2px; /* Matches padding-bottom on .terminal-outer-container */
	top: 0;
}

.monaco-workbench .panel.integrated-terminal .xterm a:not(.xterm-invalid-link) {
	/* To support message box sizing */
	position: relative;
}

.monaco-workbench .panel.integrated-terminal .terminal-wrapper > div {
	height: 100%;
}

.monaco-workbench .panel.integrated-terminal .xterm-viewport {
	margin-right: -20px;
}

.monaco-workbench .panel.integrated-terminal canvas {
	/* Align the viewport and canvases to the bottom of the panel */
	position: absolute;
	right: -20px;
	bottom: 0;
	left: 0;
	/* Disable upstream's style */
	top: auto;
}

.monaco-workbench .panel.integrated-terminal {
	font-variant-ligatures: none;
}

.monaco-workbench .panel.integrated-terminal.enable-ligatures {
	font-variant-ligatures: normal;
}


.monaco-workbench .panel.integrated-terminal.disable-bold .xterm-bold {
	font-weight: normal !important;
}

.monaco-workbench .panel.integrated-terminal .xterm a.active {
	cursor: pointer;
	text-decoration: underline;
}

.monaco-workbench .panel.integrated-terminal .xterm {
	position: absolute;
	bottom: 0;
	left: 0;
	user-select: none;
}

.monaco-workbench .panel.integrated-terminal .xterm:focus {
	/* Hide outline when focus jumps from xterm to the text area */
	outline: none;
}

.hc-black .monaco-workbench .panel.integrated-terminal .xterm.focus::before,
.hc-black .monaco-workbench .panel.integrated-terminal .xterm:focus::before {
	display: block;
	content: "";
	border: 2px solid #f38518;
	position: absolute;
	left: -5px;
	top: 0;
	right: -5px;
	bottom: 0;
}

.monaco-workbench .panel.integrated-terminal .xterm .xterm-helpers {
	position: absolute;
	top: 0;
}

.monaco-workbench .panel.integrated-terminal .xterm .xterm-helper-textarea:focus {
	/* Override the general vscode style applies `opacity:1!important` to textareas */
	opacity: 0 !important;
}

/* Terminal actions */

/* Light theme */
.monaco-workbench .terminal-action.kill { background: url('kill.svg') center center no-repeat; }
.monaco-workbench .terminal-action.new { background: url('new.svg') center center no-repeat; }
/* Dark theme / HC theme */
.vs-dark .monaco-workbench .terminal-action.kill, .hc-black .monaco-workbench .terminal-action.kill { background: url('kill-inverse.svg') center center no-repeat; }
.vs-dark .monaco-workbench .terminal-action.new, .hc-black .monaco-workbench .terminal-action.new { background: url('new-inverse.svg') center center no-repeat; }

.vs-dark .monaco-workbench.mac .panel.integrated-terminal .terminal:not(.enable-mouse-events),
.hc-black .monaco-workbench.mac .panel.integrated-terminal .terminal:not(.enable-mouse-events) {
	cursor: -webkit-image-set(url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=') 1x, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC') 2x) 5 8, text;
}

.monaco-workbench .quick-open-terminal-configure {
	background-image: url('configure.svg');
}

.vs-dark .monaco-workbench .quick-open-terminal-configure,
.hc-black .monaco-workbench .quick-open-terminal-configure {
	background-image: url('configure-inverse.svg');
}
