.tec-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	font-family: var(--wp--preset--font-family--mono, monospace);
}

.tec-chat__bubble {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	background: linear-gradient(180deg, #e8c879, #c49a40);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.25s;
}

.tec-chat__bubble:hover {
	box-shadow: 0 0 30px rgba(201, 162, 74, 0.55);
}

.tec-chat__panel[hidden] {
	display: none;
}

.tec-chat__panel {
	position: absolute;
	right: 0;
	bottom: 70px;
	width: min(360px, 88vw);
	max-height: 480px;
	display: flex;
	flex-direction: column;
	background: #0a0a10;
	border: 1px solid rgba(201, 162, 74, 0.35);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

.tec-chat__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: rgba(201, 162, 74, 0.08);
	border-bottom: 1px solid rgba(201, 162, 74, 0.25);
	color: #e8c879;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.tec-chat__close {
	background: none;
	border: none;
	color: #a99f86;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.tec-chat__messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 160px;
	max-height: 320px;
}

.tec-chat__msg {
	font-size: 13px;
	line-height: 1.5;
	padding: 9px 12px;
	border-radius: 8px;
	max-width: 88%;
}

.tec-chat__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px 12px;
}

.tec-chat__quick:empty {
	display: none;
}

.tec-chat__quick-btn {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(201, 162, 74, 0.4);
	background: rgba(201, 162, 74, 0.08);
	color: #e8c879;
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.tec-chat__quick-btn:hover {
	background: rgba(201, 162, 74, 0.18);
	border-color: rgba(201, 162, 74, 0.6);
}

body.tec-warm .tec-chat__quick-btn {
	border-color: var(--warm-border-mid, rgba(156, 122, 46, 0.38));
	background: rgba(201, 114, 74, 0.08);
	color: var(--gold-deep, #9c7a2e);
}

body.tec-warm .tec-chat__quick-btn:hover {
	background: rgba(201, 114, 74, 0.16);
	border-color: var(--warm-accent, #c9724a);
}

.tec-chat__msg--assistant {
	align-self: flex-start;
	background: rgba(201, 162, 74, 0.1);
	color: #e9e2cf;
	border: 1px solid rgba(201, 162, 74, 0.2);
}

.tec-chat__msg--user {
	align-self: flex-end;
	background: rgba(70, 224, 160, 0.12);
	color: #e9e2cf;
	border: 1px solid rgba(70, 224, 160, 0.25);
}

.tec-chat__form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid rgba(201, 162, 74, 0.2);
}

.tec-chat__input {
	flex: 1;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(201, 162, 74, 0.35);
	background: rgba(8, 8, 12, 0.6);
	color: #e9e2cf;
	font-family: inherit;
	font-size: 13px;
	outline: none;
}

.tec-chat__input:focus {
	border-color: #46e0a0;
}

.tec-chat__send {
	width: 40px;
	border-radius: 8px;
	border: none;
	background: linear-gradient(180deg, #e8c879, #c49a40);
	color: #1a1404;
	cursor: pointer;
	font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.tec-chat__bubble {
		transition: none;
	}
}
