/* root container */
.crm-copilot-textbox {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	padding: 0 24px 28px;
	/* 100vh - header height - slider-content padding */
	max-height: calc(100vh - 83px - 20px);
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	border-radius: var(--ui-border-radius-md);
	font-family: var(--ui-font-family-open-sans);
	background: white;

	--crm-copilot-font-color: #333333;
}

/* header */
.crm-copilot-textbox__header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	padding: 11px 0 14px 0;
	margin-inline: 0;
	min-height: 35px;
	color: var(--crm-copilot-font-color);
	-webkit-transition: background-color .3s;
	-o-transition: background-color .3s;
	transition: background-color .3s;
}

.crm-copilot-textbox__title {
	font-style: normal;
	line-height: normal;
	font-family: var(--ui-font-family-open-sans);
	font-size: var(--ui-font-size-2xl);
	font-weight: var(--ui-font-weight-regular);
	-o-text-overflow: ellipsis;
	   text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	color: var(--crm-copilot-font-color);
}

.crm-copilot-textbox__title::first-letter {
	text-transform: capitalize;
}

.crm-copilot-textbox__title-icon-container{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}

/* search */
.crm-copilot-textbox__search {
	border-radius: 18px;
	height: 35px;
	width: 224px;

	--ui-field-size: 35px;
}

.crm-copilot-textbox__search.--hidden {
	display: none;
}

.crm-copilot-textbox__search-input {
	color: black;
	font-size: var(--ui-font-size-md);
	font-weight: var(--ui-font-weight-normal);
	font-style: normal;
	line-height: normal;
	-o-text-overflow: ellipsis;
	   text-overflow: ellipsis;
	white-space: nowrap;
}

.crm-copilot-textbox__search-input::-webkit-input-placeholder {
	color: #C4C4C4;
	font-size: var(--ui-font-size-md);
	font-weight: var(--ui-font-weight-normal);
	font-style: normal;
	line-height: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.5;
}

.crm-copilot-textbox__search-input::-moz-placeholder {
	color: #C4C4C4;
	font-size: var(--ui-font-size-md);
	font-weight: var(--ui-font-weight-normal);
	font-style: normal;
	line-height: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.5;
}

.crm-copilot-textbox__search-input:-ms-input-placeholder {
	color: #C4C4C4;
	font-size: var(--ui-font-size-md);
	font-weight: var(--ui-font-weight-normal);
	font-style: normal;
	line-height: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.5;
}

.crm-copilot-textbox__search-input::-ms-input-placeholder {
	color: #C4C4C4;
	font-size: var(--ui-font-size-md);
	font-weight: var(--ui-font-weight-normal);
	font-style: normal;
	line-height: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.5;
}

.crm-copilot-textbox__search-input::placeholder {
	color: #C4C4C4;
	font-size: var(--ui-font-size-md);
	font-weight: var(--ui-font-weight-normal);
	font-style: normal;
	line-height: normal;
	-o-text-overflow: ellipsis;
	   text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.5;
}

.with-input-node {
	background: #F3F3F3;
}

.crm-copilot-textbox__search-btn {
	right: 6px;
	opacity: 0.5;
}

/* todo: maybe this should be removed*/
.ui-ctl-icon-search, .ui-ctl-icon-clear {
	-webkit-transition: 0.2s ease !important;
	-o-transition: 0.2s ease !important;
	transition: 0.2s ease !important;
}

/* text container */
.crm-copilot-textbox__content {
	width: 100%;
	margin: 24px 0 20px 0;
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: #EDEEF0 transparent;
}

.crm-copilot-textbox__content::-webkit-scrollbar {
	width: 6px;
}

.crm-copilot-textbox__content::-webkit-scrollbar-track {
	background: transparent;
}

.crm-copilot-textbox__content::-webkit-scrollbar-thumb {
	background: #EDEEF0;
	border-radius: 22px;
}

.crm-copilot-textbox__text-container {
	padding: 0 10px;
	border-left: 1px solid #DED0F4;
	color: var(--crm-copilot-font-color);
	-webkit-font-feature-settings: 'clig' off, 'liga' off;
	        font-feature-settings: 'clig' off, 'liga' off;
	font-size: var(--ui-font-size-lg);
	font-style: normal;
	font-weight: var(--ui-font-weight-normal);
	line-height: 22px;
	caret-color: transparent;
}

.crm-copilot-textbox__text-container::-moz-selection,
.search-item::-moz-selection,
.crm-copilot-textbox__text-container br::-moz-selection {
	background: #B4D7FF;
	caret-color: transparent;
}

.crm-copilot-textbox__text-container::selection,
.search-item::selection,
.crm-copilot-textbox__text-container br::selection {
	background: #B4D7FF;
	caret-color: transparent;
}

.search-item {
	background: #FFEC91;
	caret-color: transparent;
}

.crm-copilot-textbox__text-container:active,
.crm-copilot-textbox__text-container:focus {
	border: none;
	border-left: 1px solid #DED0F4;
	outline: none;
	caret-color: transparent;
}

.crm-copilot-textbox__attentions .crm-textbox-attention:not(:last-child) {
	margin-bottom: 6px;
}

.crm-textbox-attention {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 3px;
}

.crm-textbox-attention__icon {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

.crm-textbox-attention__content {
	font-family: var(--ui-font-family-open-sans);
	font-weight: var(--ui-font-weight-regular);
	font-size: var(--ui-font-size-xs);
}

.crm-textbox-attention__content a,
.crm-textbox-attention__content a:hover {
	text-decoration: underline;
	color: inherit;
}

/** default attention preset */
.crm-textbox-attention.--crm-textbox-attention-default .crm-textbox-attention__content {
	color: var(--ui-color-palette-gray-60);
}

.crm-textbox-attention.--crm-textbox-attention-default .crm-textbox-attention__content a {
	color: inherit;
}

.crm-textbox-attention.--crm-textbox-attention-default .crm-textbox-attention__content a:hover,
.crm-textbox-attention.--crm-textbox-attention-default .crm-textbox-attention__content a:active {
	color: var(--ui-color-palette-gray-90);
}

/** copilot attention preset */
.crm-textbox-attention.--crm-textbox-attention-copilot .crm-textbox-attention__content {
	color: #B6AAC8;
}

.crm-textbox-attention.--crm-textbox-attention-copilot .crm-textbox-attention__content a {
	color: #B095DC;
}

.crm-textbox-attention.--crm-textbox-attention-copilot .crm-textbox-attention__content a:hover,
.crm-textbox-attention.--crm-textbox-attention-copilot .crm-textbox-attention__content a:active {
	color: #8E52EC;
}

.crm-copilot-textbox__wrapper {
	background-color: var(--ui-color-background-primary);
	max-height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	padding: 0;
}

.crm-copilot-textbox__body {
	min-height: 0;
	display: grid;
	grid-template-rows: 0fr;
}

.crm-copilot-textbox__body-container {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}

.crm-copilot-textbox__body.body-toggle-animation {
	-webkit-transition: grid-template-rows 0.4s ease-out;
	-o-transition: grid-template-rows 0.4s ease-out;
	transition: grid-template-rows 0.4s ease-out;
	transition: grid-template-rows 0.4s ease-out, -ms-grid-rows 0.4s ease-out;
}

.crm-copilot-textbox__body > * {
	overflow: hidden;
}

.crm-copilot-textbox__wrapper.--body-expanded > .crm-copilot-textbox__body {
	grid-template-rows: 1fr;
	overflow: unset;
}

.crm-copilot-textbox__wrapper.--body-expanded {
	padding-bottom: 0;
}

.crm-copilot-textbox__header .crm-copilot-textbox__collapse-icon {
	margin-left: auto;
	cursor: pointer;
}

.crm-copilot-textbox__collapse-icon.clickable.ui-icon-set.--chevron-up,
.crm-copilot-textbox__collapse-icon.clickable.ui-icon-set.--chevron-down,
.crm-copilot-textbox__collapse-icon.clickable.ui-icon-set.--search-1,
.crm-copilot-textbox__collapse-icon.clickable.ui-icon-set.--cross-30 {
	--ui-icon-set__icon-size: 18px;
	--ui-icon-set__icon-color: var(--ui-color-base-60);
}

.crm-copilot-textbox__header .crm-copilot-textbox__collapse-icon {
	margin-left: 15px;
	cursor: pointer;
}
