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

/* The New Nested Session composer is styled by the New Session composer (chatWidget.css); only its own parts are here. */

/* --- Sub-session tip banner --- */

/*
 * The frame, the row layout and the dismiss button all come from
 * `.chat-input-notice`; only the two content elements are styled here.
 */
.new-chat-in-session .sub-session-tip-icon {
	flex-shrink: 0;
	color: var(--vscode-descriptionForeground);
	transform: translateY(2px);
}

.new-chat-in-session .sub-session-tip-text {
	flex: 1;
	min-width: 0;
	line-height: 1.4;
}

/* --- Folder, isolation and branch pickers --- */

/* A host that can't give a nested chat its own workspace shows no options row. */
.new-chat-in-session .new-chat-widget-container .new-session-workspace-picker-container[hidden] {
	display: none;
}

/* The only folder the agent allows is shown as text rather than as a picker. */
.new-chat-in-session .nested-chat-folder-picker.disabled .action-label {
	cursor: default;
}

.new-chat-in-session .nested-chat-repository-controls {
	display: flex;
	align-items: center;
	gap: var(--vscode-spacing-size20);
	min-width: 0;
}

/* Like the separator between New Session's isolation and branch pickers. */
.new-chat-in-session .nested-chat-repository-separator {
	flex-shrink: 0;
	width: var(--vscode-strokeThickness);
	height: var(--vscode-spacing-size120);
	background-color: var(--vscode-widget-border, var(--vscode-editorWidget-border, transparent));
}

/* In the options tray, New Session spaces its repository controls apart without a separator. */
.new-chat-in-session .new-chat-session-options .nested-chat-repository-controls {
	gap: var(--vscode-spacing-size80);
}

.new-chat-in-session .new-chat-session-options .nested-chat-repository-separator {
	display: none;
}

.new-chat-in-session :is(.nested-chat-repository-controls, .nested-chat-repository-separator, .nested-chat-branch-picker)[hidden] {
	display: none;
}
