.wegot-chat-page {
	max-width: 1280px;
}

.wegot-chat-page .wegot-panel {
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid #d8dee9;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

body .wegot-chat {
	display: grid;
	gap: 0;
	background: #ffffff;
	color: #111827;
}

body .wegot-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	border-bottom: 1px solid #e4e7ec;
	background: #ffffff;
}

body .wegot-chat-header h1,
body .wegot-chat-header h2 {
	margin: 0 0 4px;
	font-size: 28px;
	line-height: 1.2;
	color: #111827;
}

body .wegot-chat-header p {
	margin: 0;
	color: #52606d;
}

body .wegot-chat-load {
	width: auto !important;
	margin: 14px auto 0 !important;
	padding: 9px 16px !important;
	border: 1px solid #d5dce5 !important;
	border-radius: 999px !important;
	background: #ffffff !important;
	color: #52606d !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
	cursor: pointer;
}

body .wegot-chat-load:hover {
	border-color: #0f766e !important;
	color: #0f766e !important;
}

body .wegot-chat-messages {
	display: grid;
	align-content: start;
	gap: 14px;
	height: min(66vh, 680px);
	min-height: 420px;
	overflow-y: auto;
	padding: 18px 24px 24px;
	background:
		linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.96)),
		radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
		radial-gradient(circle at top right, rgba(225, 29, 72, 0.08), transparent 30%);
}

body .wegot-chat-message {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 12px;
	max-width: 920px;
}

body .wegot-chat-message.is-highlighted > div {
	outline: 2px solid #e11d48;
}

body .wegot-chat-message img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: #e4e7ec;
	box-shadow: 0 8px 18px rgba(17, 24, 39, 0.10);
}

body .wegot-chat-message > div {
	padding: 13px 15px;
	border: 1px solid #dfe5ee;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

body .wegot-chat-message header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 12px;
	color: #52606d;
}

body .wegot-chat-message header a {
	color: #111827;
	font-weight: 900;
	text-decoration: none;
}

body .wegot-chat-message p {
	margin: 0;
	color: #1f2933;
	font-size: 16px;
	line-height: 1.5;
	word-break: break-word;
}

body .wegot-chat-message p a {
	color: #e11d48;
	font-weight: 800;
	text-decoration: none;
}

body .wegot-chat-message footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

body .wegot-chat-message footer button,
body .wegot-chat-message footer a,
body .wegot-chat-quote,
body .wegot-chat-reply button {
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #64748b !important;
	font: inherit !important;
	font-size: 12px !important;
	font-weight: 800;
	line-height: 1.2 !important;
	cursor: pointer;
	text-decoration: none;
}

body .wegot-chat-message footer button:hover,
body .wegot-chat-message footer a:hover,
body .wegot-chat-quote:hover,
body .wegot-chat-reply button:hover {
	color: #e11d48 !important;
}

body .wegot-chat-quote {
	display: block;
	width: 100%;
	margin: 0 0 8px;
	padding: 8px 10px;
	border-left: 3px solid #0f766e !important;
	border-radius: 8px;
	background: #ecfdf5 !important;
	color: #52606d !important;
	text-align: left;
}

body .wegot-chat-badge {
	padding: 2px 6px;
	border-radius: 999px;
	background: #fff7ed;
	color: #9a3412;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

body .wegot-chat-form {
	display: grid;
	gap: 10px;
	padding: 16px 24px 22px;
	border-top: 1px solid #e4e7ec;
	background: #ffffff;
}

body .wegot-chat-form textarea {
	width: 100%;
	min-height: 92px;
	padding: 13px 14px;
	border: 1px solid #cbd5e1 !important;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: inset 0 1px 0 rgba(17, 24, 39, 0.03);
	font: inherit;
	resize: vertical;
}

body .wegot-chat-form textarea:focus {
	border-color: #0f766e !important;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
	outline: none;
}

body .wegot-chat-form .wegot-button {
	min-height: 44px;
	border-color: #e11d48 !important;
	background: #e11d48 !important;
	box-shadow: 0 10px 24px rgba(225, 29, 72, 0.20);
}

body .wegot-chat-form .wegot-button:hover {
	background: #be123c !important;
}

body .wegot-chat-formbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

body .wegot-chat-formbar span {
	color: #52606d;
	font-size: 13px;
	font-weight: 800;
}

body .wegot-chat-formbar span.is-error {
	color: #be123c;
}

body .wegot-chat-formbar span.is-warning {
	color: #9a3412;
}

body .wegot-chat-reply {
	padding: 9px 10px;
	border-radius: 8px;
	background: #eef2ff;
	color: #3730a3;
	font-size: 13px;
}

body .wegot-chat-login,
body .wegot-chat-empty {
	margin: 0;
	color: #52606d;
}

.wegot-private-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	min-height: 620px;
	border-top: 1px solid #e4e7ec;
}

.wegot-conversations {
	border-right: 1px solid #e4e7ec;
	background: #f8fafc;
}

.wegot-new-conversation {
	display: grid;
	gap: 8px;
	padding: 14px;
	border-bottom: 1px solid #e4e7ec;
}

.wegot-new-conversation label {
	display: grid;
	gap: 6px;
	color: #1f2933;
	font-weight: 800;
}

.wegot-new-conversation input {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font: inherit;
}

.wegot-conversation {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid #e4e7ec;
	background: transparent;
	color: #111827;
	text-align: left;
	font: inherit;
	font-weight: 900;
	cursor: pointer;
}

.wegot-conversation:hover {
	background: #ffffff;
}

.wegot-conversation img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
}

.wegot-private-thread {
	display: grid;
	grid-template-rows: 1fr auto;
	min-width: 0;
}

.wegot-private-thread .wegot-chat-messages {
	height: auto;
	min-height: 420px;
}

body.wegot-ms-dark .wegot-chat-page .wegot-panel {
	background: #101010;
	border-color: #2a2a2a;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

body.wegot-ms-dark .wegot-chat {
	background: #101010;
	color: #f8fafc;
}

body.wegot-ms-dark .wegot-chat-header,
body.wegot-ms-dark .wegot-chat-form {
	background: #101010;
	border-color: #2a2a2a;
}

body.wegot-ms-dark .wegot-chat-header h1,
body.wegot-ms-dark .wegot-chat-header h2,
body.wegot-ms-dark .wegot-chat-message header a,
body.wegot-ms-dark .wegot-chat-message p,
body.wegot-ms-dark .wegot-new-conversation label,
body.wegot-ms-dark .wegot-conversation {
	color: #ffffff;
}

body.wegot-ms-dark .wegot-chat-header p,
body.wegot-ms-dark .wegot-chat-message header,
body.wegot-ms-dark .wegot-chat-load,
body.wegot-ms-dark .wegot-chat-login,
body.wegot-ms-dark .wegot-chat-empty,
body.wegot-ms-dark .wegot-chat-formbar span {
	color: #b8c0cc !important;
}

body.wegot-ms-dark .wegot-chat-messages {
	background:
		linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.96)),
		radial-gradient(circle at top left, rgba(254, 195, 149, 0.12), transparent 26%),
		radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 28%);
}

body.wegot-ms-dark .wegot-chat-message > div {
	background: #161616;
	border-color: #303030;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

body.wegot-ms-dark .wegot-chat-message img,
body.wegot-ms-dark .wegot-conversation img {
	background: #242424;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body.wegot-ms-dark .wegot-chat-load {
	background: #161616 !important;
	border-color: #303030 !important;
	box-shadow: none;
}

body.wegot-ms-dark .wegot-chat-load:hover,
body.wegot-ms-dark .wegot-chat-message p a,
body.wegot-ms-dark .wegot-chat-message footer button:hover,
body.wegot-ms-dark .wegot-chat-message footer a:hover,
body.wegot-ms-dark .wegot-chat-quote:hover,
body.wegot-ms-dark .wegot-chat-reply button:hover {
	color: #fec395 !important;
}

body.wegot-ms-dark .wegot-chat-message.is-highlighted > div {
	outline-color: #fec395;
}

body.wegot-ms-dark .wegot-chat-message footer button,
body.wegot-ms-dark .wegot-chat-message footer a,
body.wegot-ms-dark .wegot-chat-quote,
body.wegot-ms-dark .wegot-chat-reply button {
	color: #b8c0cc !important;
}

body.wegot-ms-dark .wegot-chat-quote {
	background: rgba(254, 195, 149, 0.11) !important;
	border-left-color: #fec395 !important;
	color: #ffd8bd !important;
}

body.wegot-ms-dark .wegot-chat-badge {
	background: rgba(254, 195, 149, 0.14);
	color: #fec395;
}

body.wegot-ms-dark .wegot-chat-form textarea,
body.wegot-ms-dark .wegot-new-conversation input {
	background: #090909;
	border-color: #343434 !important;
	color: #ffffff;
}

body.wegot-ms-dark .wegot-chat-form textarea:focus,
body.wegot-ms-dark .wegot-new-conversation input:focus {
	border-color: #fec395 !important;
	box-shadow: 0 0 0 3px rgba(254, 195, 149, 0.15);
	outline: none;
}

body.wegot-ms-dark .wegot-chat-form .wegot-button {
	background: #fec395 !important;
	border-color: #fec395 !important;
	color: #111111 !important;
	box-shadow: 0 10px 24px rgba(254, 195, 149, 0.18);
}

body.wegot-ms-dark .wegot-chat-form .wegot-button:hover {
	background: #ffd8bd !important;
	border-color: #ffd8bd !important;
}

body.wegot-ms-dark .wegot-chat-reply {
	background: rgba(254, 195, 149, 0.12);
	color: #ffd8bd;
}

body.wegot-ms-dark .wegot-private-layout,
body.wegot-ms-dark .wegot-conversations,
body.wegot-ms-dark .wegot-new-conversation,
body.wegot-ms-dark .wegot-conversation {
	border-color: #2a2a2a;
}

body.wegot-ms-dark .wegot-conversations {
	background: #111111;
}

body.wegot-ms-dark .wegot-conversation:hover {
	background: #1d1d1d;
	color: #fec395;
}

@media (max-width: 760px) {
	.wegot-chat-header,
	.wegot-chat-formbar {
		align-items: stretch;
		flex-direction: column;
	}

	.wegot-chat-messages {
		height: 62vh;
		min-height: 360px;
		padding: 12px;
	}

	.wegot-private-layout {
		grid-template-columns: 1fr;
	}

	.wegot-conversations {
		border-right: 0;
		border-bottom: 1px solid #e4e7ec;
	}
}
