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

.new-session-worktree-suggestion {
	display: flex;
	align-items: center;
	gap: var(--vscode-spacing-size80);
	box-sizing: border-box;
	width: 100%;
	padding: var(--vscode-spacing-size40) var(--vscode-spacing-size40) var(--vscode-spacing-size40) var(--vscode-spacing-size120);
	border: var(--vscode-strokeThickness) solid var(--vscode-contrastBorder, color-mix(in srgb, var(--vscode-foreground) 10%, transparent));
	border-radius: var(--vscode-cornerRadius-medium);
	background-color: color-mix(in srgb, var(--vscode-foreground) 3%, var(--session-view-background, var(--vscode-editor-background)));
	color: var(--vscode-descriptionForeground);
	font-size: var(--vscode-fontSize-label1);
	line-height: normal;
}

.hc-black .new-session-worktree-suggestion,
.hc-light .new-session-worktree-suggestion {
	border-color: var(--vscode-contrastBorder);
	background-color: var(--vscode-editor-background);
}

.new-session-worktree-suggestion > .codicon {
	flex-shrink: 0;
	color: var(--vscode-foreground);
}

.new-session-worktree-suggestion-message {
	flex: 1;
	min-width: 0;
	text-wrap: pretty;
}

/* The number of uncommitted files is a link within the sentence, underlined like links in paragraphs. */
.new-session-worktree-suggestion-message > .monaco-link {
	text-decoration: var(--text-link-decoration);
}

.hc-black .new-session-worktree-suggestion-message > .monaco-link,
.hc-light .new-session-worktree-suggestion-message > .monaco-link {
	text-decoration: underline;
}

.new-session-worktree-suggestion > .monaco-button {
	flex-shrink: 0;
	width: auto;
	white-space: nowrap;
}

.new-session-worktree-suggestion > .monaco-action-bar {
	flex-shrink: 0;
}

/* A changed file shows its name, then the lines added and removed at the end of the row, as in the Changes view. */
.action-widget .monaco-list-row.action.worktree-suggestion-changed-file .action-item-additional-badges {
	order: 1;
	margin-left: auto;
	padding-left: var(--vscode-spacing-size80);
}

.action-widget .monaco-list-row.action.worktree-suggestion-changed-file .action-item-badge:is(.insertions, .deletions) {
	padding: 0;
	background-color: transparent;
	font-size: var(--vscode-fontSize-label2);
}

.action-widget .monaco-list-row.action.worktree-suggestion-changed-file .action-item-badge.insertions {
	color: var(--vscode-chat-linesAddedForeground);
}

.action-widget .monaco-list-row.action.worktree-suggestion-changed-file .action-item-badge.deletions {
	color: var(--vscode-chat-linesRemovedForeground);
}

/* The row that stands for the files a list leaves out keeps an invisible file icon, so its label lines up with the file names. */
.action-widget .monaco-list-row.action.worktree-suggestion-more-files .icon {
	visibility: hidden;
}

.action-widget .monaco-list-row.action.worktree-suggestion-more-files .title {
	font-style: italic;
}
