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

.sessions-chat-agent-host-config {
	display: flex;
	align-items: center;
	/* Each config control carries its own surface, so they need a gap. */
	gap: var(--vscode-spacing-size20);
	min-width: 0;
}

.monaco-workbench .sessions-chat-agent-host-config-host[tabindex]:focus {
	outline: none;
}

.sessions-chat-agent-host-config:empty {
	display: none;
}

.sessions-chat-agent-host-config a.action-label {
	touch-action: manipulation;
}

.sessions-chat-agent-host-config .sessions-chat-config-checkbox .action-label {
	cursor: pointer;
}

.sessions-chat-agent-host-config .sessions-chat-config-checkbox .monaco-checkbox {
	margin-right: var(--vscode-spacing-size60);
}

.sessions-chat-agent-host-config .sessions-chat-config-checkbox .sessions-chat-dropdown-label {
	margin-left: 0;
	cursor: pointer;
}

.sessions-chat-agent-host-config-host .sessions-chat-agent-host-config .sessions-chat-picker-slot.sessions-chat-config-checkbox.resolving .action-label {
	pointer-events: auto !important;
}

.sessions-chat-agent-host-config .sessions-chat-config-checkbox.disabled .action-label,
.sessions-chat-agent-host-config .sessions-chat-config-checkbox.disabled .sessions-chat-dropdown-label,
.sessions-chat-agent-host-config .sessions-chat-config-checkbox.resolving .action-label,
.sessions-chat-agent-host-config .sessions-chat-config-checkbox.resolving .sessions-chat-dropdown-label {
	cursor: default;
}

/* The number of uncommitted files after Branch, which the isolation picker lists. */
.sessions-chat-agent-host-config .sessions-chat-uncommitted-count {
	display: none;
	align-items: center;
	flex-shrink: 0;
	gap: var(--vscode-spacing-size40);
	margin-left: var(--vscode-spacing-size20);
	color: var(--vscode-gitDecoration-modifiedResourceForeground);
}

.sessions-chat-agent-host-config .sessions-chat-uncommitted-count.visible {
	display: inline-flex;
}

/* Like the label it follows, an icon-only picker leaves the count out. */
.new-chat-widget-container .compact-picker .sessions-chat-uncommitted-count.visible {
	display: none;
}

/* The dot and the number share the color of modified files. */
.sessions-chat-agent-host-config .sessions-chat-uncommitted-count::before {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: var(--vscode-cornerRadius-circle);
	background-color: currentColor;
}

/* The isolation picker labels its uncommitted files at their left edge rather than indenting the label. */
.action-widget .actionList.sessions-chat-isolation-listed-changes .monaco-list-row.separator,
.action-widget .actionList.sessions-chat-isolation-listed-changes .monaco-list-row.separator > span:not(:empty) {
	padding-left: 0;
}
