.su-trader-chat {
	--su-up: 50%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	/* max-width: 260px; */
	height: 362px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #182230;
	font-family: "IRANYekanXVF", "IRANYekanX", Tahoma, sans-serif;
	font-style: normal;
}

.su-trader-chat *,
.su-trader-chat *::before,
.su-trader-chat *::after { box-sizing: border-box; }
.su-trader-chat p,
.su-trader-chat h2 { margin: 0; }

.su-trader-chat__header {
	display: flex;
	flex: 0 0 31px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border-bottom: 1px solid #f1f5f9;
	flex-direction: row-reverse;
}

.su-trader-chat__header p {
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.su-trader-chat__online {
	display: block;
	width: 8px;
	height: 8px;
	background: #08a45d;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(8, 164, 93, .15);
}

.su-trader-chat__messages {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	background: #fafafa;
}

.su-trader-chat__message-list { width: 100%; }

.su-trader-chat__message {
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	gap: 8px;
	height: 43px;
	padding: 4px 10px;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 1px 1.5px rgba(0, 0, 0, .02);
}

.su-trader-chat__message-content {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.su-trader-chat__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	line-height: 1.25;
}

.su-trader-chat__meta strong {
	min-width: 0;
	overflow: hidden;
	color: #667085;
	font-size: 10px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.su-trader-chat__meta time {
	flex: 0 0 auto;
	color: #94a3b8;
	font-size: 9px;
	font-weight: 400;
	white-space: nowrap;
}

.su-trader-chat__message-content > p {
	overflow: hidden;
	color: #475467;
	font-size: 10px;
	font-weight: 400;
	line-height: 16.5px;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.su-trader-chat__avatar {
	display: block;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
}

.su-trader-chat__message--covered { background: #fafafa; }

.su-trader-chat__new-messages {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	height: 60px;
	align-items: center;
	justify-content: center;
	background: linear-gradient(to bottom, rgba(250, 250, 250, .34), rgba(255, 255, 255, .98) 62%);
	color: #fff;
	font-size: 11px;
	text-decoration: none; 
	backdrop-filter: blur(2px);
}

.su-trader-chat__new-messages-button {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 28px;
	padding: 5px 12px;
	background: #08a45d;
	border: 1px solid #078a4e;
	border-radius: 999px;
	box-shadow: 0 3px 8px rgba(8, 164, 93, .2);
	color: #fff;
	line-height: 1;
	z-index: 1;
	border: 1px solid #fff;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.su-trader-chat__new-messages-button img {
	display: block;
	flex: 0 0 16px;
}

.su-trader-chat__new-messages-button b {
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.su-trader-chat__new-messages:hover { color: #fff; }
.su-trader-chat__new-messages:hover .su-trader-chat__new-messages-button {
	background: #078a4e;
	border-color: #067542;
	box-shadow: 0 4px 10px rgba(8, 164, 93, .26);
	transform: translateY(-1px);
}

.su-trader-chat__new-messages:focus-visible { outline: none; }
.su-trader-chat__new-messages:focus-visible .su-trader-chat__new-messages-button {
	outline: 2px solid #182230;
	outline-offset: 2px;
}

.su-trader-chat__empty {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: #667085;
	font-size: 11px;
}

.su-trader-chat__sentiment {
	display: flex;
	flex: 0 0 74px;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 8px;
	padding: 8px 12px;
	background: #fff;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}

.su-trader-chat__question {
	color: #182230;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
}

.su-trader-chat__vote-buttons {
	display: flex;
	height: 24px;
	gap: 7px;
}

.su-trader-chat__vote {
	display: flex;
	flex: 1 1 0;
	height: 24px;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 4px 8px;
	border: 1px solid;
	border-radius: 999px;
	font: inherit;
	font-size: 10px;
	line-height: 1;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.su-trader-chat__vote img { flex: 0 0 11px; }
.su-trader-chat__vote--down { background: #fef3f2; border-color: #d92d20; color: #d92d20; }
.su-trader-chat__vote--up { background: #f0faf5; border-color: #08a45d; color: #08a45d; }
.su-trader-chat__vote--down:hover { background: #fef3f2; border-color: #d92d20; color: #d92d20; }
.su-trader-chat__vote--up:hover { background: #f0faf5; border-color: #08a45d; color: #08a45d; }
.su-trader-chat__vote--up img { transform: rotate(180deg); }
.su-trader-chat__vote:hover:not(:disabled) { box-shadow: 0 2px 7px rgba(24, 34, 48, .12); transform: translateY(-1px); }
.su-trader-chat__vote:focus-visible { outline: 2px solid #182230; outline-offset: 2px; }
.su-trader-chat__vote:disabled { cursor: default; opacity: .62; }
.su-trader-chat__vote[aria-pressed="true"] { opacity: 1; }
.su-trader-chat__vote--loading { animation: su-trader-chat-pulse .8s ease-in-out infinite alternate; }

.su-trader-chat__gauge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 8px;
}

.su-trader-chat__gauge b {
	flex: 0 0 20px;
	font-size: 8px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.su-trader-chat__down-percent { color: #b42318; text-align: left; }
.su-trader-chat__up-percent { color: #078a4e; text-align: right; }
.su-trader-chat__track {
	position: relative;
	flex: 1 1 auto;
	height: 6px;
	overflow: hidden;
	background: #eaecf0;
	border-radius: 999px;
}

.su-trader-chat__track i {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--su-up);
	background: #d0d5dd;
	border-radius: inherit;
	transition: width .35s ease;
}

.su-trader-chat__feedback {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.su-trader-chat__footer {
	display: flex;
	flex: 0 0 47px;
	align-items: center;
	padding: 8px 12px;
	background: #fff;
}

.su-trader-chat__footer a {
	display: flex;
	flex-direction: row-reverse;
	width: 100%;
	height: 31px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #182230;
	border-radius: 8px;
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease;
}

.su-trader-chat__footer a:hover { background: #29374a; color: #fff; }
.su-trader-chat__footer a:focus-visible { outline: 2px solid #08a45d; outline-offset: 2px; }
.su-trader-chat__new-messages:before { content: ""; position: absolute; top: 5px; right: 16px; left: 16px; height: 50px; border-radius: 8px; background: #011B42A8; }

@keyframes su-trader-chat-pulse { to { opacity: .35; } }

@media (max-width: 767px) {
	.su-trader-chat {
		/* max-width: 328px; */
		height: 427px;
		border-radius: 16px;
	}
	.su-trader-chat__new-messages:before{ height: 77px; }
	.su-trader-chat__message { height: 46px; }
	.su-trader-chat__new-messages { height: 92px; }
	.su-trader-chat__sentiment { flex-basis: 91px; }
	.su-trader-chat__vote-buttons { height: 28px; }
	.su-trader-chat__vote { height: 28px; font-size: 12px; font-weight: 500; }
	.su-trader-chat__gauge { gap: 8px; }
	.su-trader-chat__footer { flex-basis: 59px; }
	.su-trader-chat__footer a { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.su-trader-chat__vote,
	.su-trader-chat__track i,
	.su-trader-chat__footer a { transition: none; }
	.su-trader-chat__vote--loading { animation: none; }
}

img.su-trader-chat__avatar{
	border-radius: 50px;
    border: 1px solid #fff;
    box-shadow: 0px 2px 4px 0px #0000000D;
}