/* KI Support Bot – Chat-Widget */
.supportbot-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.supportbot-toggle {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: #2458cc;
	color: #fff;
	border: 2px solid #d8b33f;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.supportbot-toggle:hover {
	background: #164ab5;
}

.supportbot-toggle-label {
	margin-top: 3px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 3px #000;
}

.supportbot-window {
	position: absolute;
	bottom: 76px;
	right: 0;
	width: 320px;
	max-width: calc(100vw - 40px);
	height: 420px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.supportbot-header {
	background: #2196f3;
	color: #fff;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.supportbot-title {
	font-weight: 600;
	font-size: 1em;
}

.supportbot-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	padding: 0 4px;
	opacity: 0.9;
}

.supportbot-close:hover {
	opacity: 1;
}

.supportbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	font-size: 14px;
	line-height: 1.4;
}

.supportbot-msg {
	margin-bottom: 10px;
}

.supportbot-msg-inner {
	display: inline-block;
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 12px;
	white-space: pre-line;
	word-break: break-word;
}

.supportbot-msg-user .supportbot-msg-inner {
	background: #dcecff;
	color: #102a43;
	font-weight: 600;
	margin-left: auto;
	margin-right: 0;
}

.supportbot-msg-user {
	text-align: right;
}

.supportbot-msg-bot .supportbot-msg-inner {
	background: #f5f5f5;
	color: #333;
}

.supportbot-msg-link {
	display: inline-block;
	margin-top: 4px;
	color: #b8860b;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.supportbot-msg-link:hover { text-decoration: underline; }

.supportbot-input-area {
	padding: 10px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	gap: 8px;
}

.supportbot-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
}

.supportbot-input:focus {
	outline: none;
	border-color: #2196f3;
}

.supportbot-send {
	padding: 10px 16px;
	background: #2196f3;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
}

.supportbot-send:hover {
	background: #1976d2;
}

/* Global quick access buttons live in the FTG header. */
.wst-topbar-tools .ftg-topbar-tool.supportbot-container{position:static;right:auto;bottom:auto;z-index:auto;display:block}.wst-topbar-tools .supportbot-toggle{width:36px;height:36px;border-width:1px;border-radius:7px;box-shadow:none}.wst-topbar-tools .supportbot-toggle svg{width:18px;height:18px}.wst-topbar-tools .supportbot-toggle-label{display:none}.wst-topbar-tools .supportbot-window{position:fixed;top:88px;right:20px;bottom:auto}@media(max-width:620px){.wst-topbar-tools .supportbot-window{top:80px;right:8px;max-width:calc(100vw - 16px)}}

/* Centered header tool: dark FTG navy and readable label. */
.wst-topbar-tools .ftg-topbar-tool.supportbot-container{flex-direction:row;padding:0 10px}.wst-topbar-tools .supportbot-toggle{width:28px;height:28px;border:0;border-radius:5px;background:transparent;color:#f3d46a}.wst-topbar-tools .supportbot-toggle svg{width:17px;height:17px}.wst-topbar-tools .supportbot-toggle-label{display:inline-block;color:#e8d183;font-size:11px;font-weight:800;text-shadow:none}.wst-topbar-tools .supportbot-window{top:96px}

/* Header layout must override the legacy floating-widget column layout. */
.wst-home-topbar .wst-topbar-tools .supportbot-container.ftg-topbar-tool{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:126px!important;min-height:38px!important;box-sizing:border-box!important}.wst-home-topbar .wst-topbar-tools .supportbot-container.ftg-topbar-tool .supportbot-toggle-label{display:inline-block!important;margin:0!important;line-height:1!important;white-space:nowrap!important}
