.ideas-chatbot-widget {
	--ideas-chatbot-bg: #ffffff;
	--ideas-chatbot-ink: #15171a;
	--ideas-chatbot-muted: #636b74;
	--ideas-chatbot-line: #d8dde3;
	--ideas-chatbot-soft: #f4f6f8;
	--ideas-chatbot-accent: #136f63;
	--ideas-chatbot-accent-ink: #ffffff;
	--ideas-chatbot-error: #9f1d2a;
	font-family: inherit;
	color: var(--ideas-chatbot-ink);
}

.ideas-chatbot-widget--floating {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 80;
}

.ideas-chatbot-widget--inline {
	position: relative;
	max-width: 420px;
}

.ideas-chatbot-launcher,
.ideas-chatbot-primary-button,
.ideas-chatbot-secondary-button,
.ideas-chatbot-icon-button {
	border: 0;
	cursor: pointer;
	font: inherit;
}

.ideas-chatbot-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 8px 14px 8px 8px;
	border-radius: 999px;
	background: var(--ideas-chatbot-ink);
	color: #ffffff;
	box-shadow: 0 12px 30px rgba(20, 25, 32, 0.18);
}

.ideas-chatbot-widget--inline .ideas-chatbot-launcher {
	margin-bottom: 12px;
}

.ideas-chatbot-launcher__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ideas-chatbot-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
}

.ideas-chatbot-launcher__label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.ideas-chatbot-panel {
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100vw - 32px));
	height: min(620px, calc(100vh - 112px));
	margin-top: 12px;
	overflow: hidden;
	border: 1px solid var(--ideas-chatbot-line);
	border-radius: 8px;
	background: var(--ideas-chatbot-bg);
	box-shadow: 0 18px 50px rgba(20, 25, 32, 0.18);
}

.ideas-chatbot-widget--floating .ideas-chatbot-panel {
	position: absolute;
	right: 0;
	bottom: 64px;
	margin-top: 0;
}

.ideas-chatbot-widget.is-closed .ideas-chatbot-panel {
	display: none;
}

.ideas-chatbot-widget.is-open .ideas-chatbot-panel {
	display: flex;
}

.ideas-chatbot-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	border-bottom: 1px solid var(--ideas-chatbot-line);
	background: #f8faf9;
}

.ideas-chatbot-header h2,
.ideas-chatbot-header p {
	margin: 0;
}

.ideas-chatbot-header h2 {
	font-size: 17px;
	line-height: 1.2;
}

.ideas-chatbot-header p {
	margin-top: 3px;
	color: var(--ideas-chatbot-muted);
	font-size: 13px;
	line-height: 1.3;
}

.ideas-chatbot-status {
	display: block;
	margin-top: 8px;
	color: var(--ideas-chatbot-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.ideas-chatbot-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: transparent;
	color: var(--ideas-chatbot-muted);
	font-size: 18px;
	line-height: 1;
}

.ideas-chatbot-icon-button:hover,
.ideas-chatbot-icon-button:focus-visible {
	background: var(--ideas-chatbot-soft);
	color: var(--ideas-chatbot-ink);
}

.ideas-chatbot-messages {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	min-height: 180px;
	padding: 16px;
	overflow: auto;
	background: #ffffff;
}

.ideas-chatbot-message {
	max-width: 86%;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.ideas-chatbot-message--assistant {
	align-self: flex-start;
	background: var(--ideas-chatbot-soft);
	color: var(--ideas-chatbot-ink);
}

.ideas-chatbot-message--user {
	align-self: flex-end;
	background: var(--ideas-chatbot-accent);
	color: var(--ideas-chatbot-accent-ink);
}

.ideas-chatbot-message--system {
	align-self: center;
	max-width: 100%;
	background: transparent;
	color: var(--ideas-chatbot-muted);
	font-size: 12px;
	text-align: center;
}

.ideas-chatbot-error {
	margin: 0 16px 12px;
	padding: 10px 12px;
	border: 1px solid rgba(159, 29, 42, 0.24);
	border-radius: 8px;
	background: #fff4f5;
	color: var(--ideas-chatbot-error);
	font-size: 13px;
	line-height: 1.4;
}

.ideas-chatbot-quick-ctas {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 132px;
	padding: 12px 16px;
	overflow: auto;
	border-top: 1px solid var(--ideas-chatbot-line);
	background: #fbfcfc;
}

.ideas-chatbot-quick-ctas[hidden],
.ideas-chatbot-widget.is-loading .ideas-chatbot-quick-ctas {
	display: none;
}

.ideas-chatbot-quick-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	max-width: 100%;
	padding: 8px 11px;
	border: 1px solid var(--ideas-chatbot-line);
	border-radius: 6px;
	background: #ffffff;
	color: var(--ideas-chatbot-ink);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: anywhere;
	white-space: normal;
}

.ideas-chatbot-quick-cta:hover,
.ideas-chatbot-quick-cta:focus-visible {
	border-color: var(--ideas-chatbot-accent);
	outline: 2px solid rgba(19, 111, 99, 0.2);
	outline-offset: 1px;
}

.ideas-chatbot-quick-cta--primary {
	background: var(--ideas-chatbot-accent);
	border-color: var(--ideas-chatbot-accent);
	color: var(--ideas-chatbot-accent-ink);
}

.ideas-chatbot-quick-cta--secondary {
	background: #ffffff;
}

.ideas-chatbot-quick-cta--danger {
	border-color: rgba(159, 29, 42, 0.34);
	color: var(--ideas-chatbot-error);
}

.ideas-chatbot-quick-cta[disabled],
.ideas-chatbot-quick-cta[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.58;
}

.ideas-chatbot-form {
	display: grid;
	gap: 10px;
	padding: 14px 16px 16px;
	border-top: 1px solid var(--ideas-chatbot-line);
	background: #ffffff;
}

.ideas-chatbot-input {
	box-sizing: border-box;
	width: 100%;
	min-height: 64px;
	max-height: 140px;
	resize: vertical;
	padding: 10px 12px;
	border: 1px solid var(--ideas-chatbot-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--ideas-chatbot-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
}

.ideas-chatbot-input:focus {
	border-color: var(--ideas-chatbot-accent);
	outline: 2px solid rgba(19, 111, 99, 0.18);
	outline-offset: 1px;
}

.ideas-chatbot-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ideas-chatbot-primary-button,
.ideas-chatbot-secondary-button {
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.ideas-chatbot-primary-button {
	background: var(--ideas-chatbot-accent);
	color: var(--ideas-chatbot-accent-ink);
}

.ideas-chatbot-secondary-button {
	border: 1px solid var(--ideas-chatbot-line);
	background: #ffffff;
	color: var(--ideas-chatbot-ink);
}

.ideas-chatbot-primary-button:disabled,
.ideas-chatbot-secondary-button:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.ideas-chatbot-widget.is-loading .ideas-chatbot-status {
	color: #8a5a00;
}

@media (max-width: 520px) {
	.ideas-chatbot-widget--floating {
		right: 14px;
		bottom: 14px;
		left: 14px;
	}

	.ideas-chatbot-widget--floating .ideas-chatbot-panel {
		right: 0;
		left: 0;
		bottom: 60px;
		width: auto;
		height: min(560px, calc(100vh - 92px));
	}

	.ideas-chatbot-launcher {
		max-width: 100%;
	}

	.ideas-chatbot-actions {
		align-items: stretch;
	}

	.ideas-chatbot-quick-ctas {
		max-height: 144px;
		padding: 10px 12px;
	}

	.ideas-chatbot-quick-cta {
		flex: 1 1 calc(50% - 8px);
		min-width: 0;
	}

	.ideas-chatbot-primary-button,
	.ideas-chatbot-secondary-button {
		flex: 1 1 0;
	}
}
