/* Turkeuro conversations — one row per person, chat in the reading pane.
   Display only. Stored mail is not moved or rewritten. */

.messageListItem.te-chat-hidden {
	display: none !important;
}

.messageListItem.te-chat-row > div + div {
	flex-wrap: wrap;
	row-gap: 1px;
}

.messageListItem.te-chat-row .te-line {
	flex: 1 0 100%;
	order: 8;
	margin: 0 8px 4px 0;
	color: #5e584e;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.messageListItem.te-chat-row .te-count {
	display: inline-block;
	margin-right: 6px;
	padding: 0 6px;
	border-radius: 999px;
	background: #f0b22e;
	color: #1c1c1c;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
}

.messageListItem.te-chat-row.te-has-unseen {
	border-left-color: #f0b22e !important;
	background: #fffdf8;
}

.messageListItem.te-chat-row.te-chat-active {
	background: #f6f3ee;
	border-left-color: #f0b22e !important;
}

#V-MailMessageView {
	position: relative;
}

#V-MailMessageView .te-chat {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 30;
	flex-direction: column;
	background: #fff;
	color: #1c1c1c;
	min-height: 0;
}

#V-MailMessageView.te-chat-mode .te-chat {
	display: flex;
}

#V-MailMessageView.te-yield .te-chat,
#V-MailMessageView.turkeuro-composing .te-chat {
	display: none !important;
}

.te-log-view,
.te-full-view {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.te-chat-head,
.te-full-head {
	flex: 0 0 auto;
	padding: 14px 18px 12px;
	border-bottom: 1px solid #ece7de;
	background: #fff;
}

.te-chat-name,
.te-full-who {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.te-chat-address,
.te-full-when {
	display: block;
	margin-top: 2px;
	color: #5e584e;
	font-size: 13px;
	line-height: 1.35;
}

.te-chat-log {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.te-bubble {
	display: block;
	width: fit-content;
	max-width: min(78%, 640px);
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #ece7de;
	border-radius: 12px;
	background: #f6f3ee;
	color: #1c1c1c;
	font: 14px/1.45 Manrope, ui-sans-serif, system-ui, sans-serif;
	text-align: left;
	cursor: pointer;
}

.te-bubble.theirs {
	align-self: flex-start;
}

.te-bubble.mine {
	align-self: flex-end;
	background: #1c1c1c;
	border-color: #1c1c1c;
	color: #fff;
}

.te-bubble-meta {
	margin-bottom: 4px;
	color: #5e584e;
	font-size: 12px;
	font-weight: 600;
}

.te-bubble.mine .te-bubble-meta,
.te-bubble.mine .te-bubble-open {
	color: #f0b22e;
}

.te-bubble-subject {
	margin-bottom: 4px;
	font-weight: 700;
}

.te-bubble-body {
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 7.6em;
	overflow: hidden;
}

.te-bubble-open {
	margin-top: 8px;
	color: #1c1c1c;
	font-size: 12px;
	font-weight: 700;
}

.te-bubble:hover {
	border-color: #f0b22e;
}

.te-bubble.mine:hover {
	border-color: #f0b22e;
}

.te-backbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid #ece7de;
	background: #fff;
}

.te-back {
	margin: 0;
	padding: 7px 12px;
	border: 1px solid #ece7de;
	border-radius: 8px;
	background: #fff;
	color: #1c1c1c;
	font: 600 13px/1.2 Manrope, ui-sans-serif, system-ui, sans-serif;
	cursor: pointer;
}

.te-back:hover,
.te-back:focus-visible {
	border-color: #f0b22e;
	outline: none;
}

.te-full-subject {
	font-size: 15px;
	font-weight: 700;
}

.te-full-files {
	padding: 8px 18px;
	border-bottom: 1px solid #ece7de;
	color: #5e584e;
	font-size: 13px;
	background: #f6f3ee;
}

.te-full-frame {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	border: 0;
	background: #fff;
}

.te-full-plain {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 16px 18px 24px;
	overflow: auto;
	background: #fff;
	color: #1c1c1c;
	white-space: pre-wrap;
	word-break: break-word;
	font: 15px/1.5 Manrope, ui-sans-serif, system-ui, sans-serif;
}
