/* PCF Chatbot — widget flottant. */
#pcf-chatbot-root {
	--pcf-accent: #22c55e;
	--pcf-ink: #0e1726;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Lanceur */
.pcf-cb-launcher {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	background: var(--pcf-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease;
}
.pcf-cb-launcher:hover { transform: scale( 1.06 ); }
.pcf-cb-launcher.is-open { transform: scale( 0.9 ); opacity: .85; }

/* Panneau */
.pcf-cb-panel {
	position: absolute;
	right: 0;
	bottom: 72px;
	width: 360px;
	max-width: calc( 100vw - 40px );
	height: 520px;
	max-height: calc( 100vh - 120px );
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.pcf-cb-head {
	background: var(--pcf-accent);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
}
.pcf-cb-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.pcf-cb-close {
	margin-left: auto;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	opacity: .9;
	line-height: 1;
}

.pcf-cb-log {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f7f8fa;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.pcf-cb-msg {
	max-width: 82%;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.pcf-cb-bot {
	align-self: flex-start;
	background: #fff;
	color: var(--pcf-ink);
	border: 1px solid #e6e9ef;
	border-bottom-left-radius: 4px;
}
.pcf-cb-user {
	align-self: flex-end;
	background: var(--pcf-accent);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.pcf-cb-typing { color: #8a93a3; letter-spacing: 2px; }

.pcf-cb-handoff {
	align-self: flex-start;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 2px;
}
.pcf-cb-cta {
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 12px;
	border-radius: 20px;
	background: #fff;
	color: var(--pcf-accent);
	border: 1.5px solid var(--pcf-accent);
}
.pcf-cb-cta:hover { background: var(--pcf-accent); color: #fff; }

.pcf-cb-foot {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #eceef2;
	background: #fff;
}
.pcf-cb-input {
	flex: 1;
	resize: none;
	border: 1px solid #d8dce3;
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.3;
	max-height: 96px;
}
.pcf-cb-input:focus { outline: none; border-color: var(--pcf-accent); }
.pcf-cb-send {
	border: 0;
	border-radius: 10px;
	background: var(--pcf-accent);
	color: #fff;
	font-weight: 600;
	padding: 0 14px;
	cursor: pointer;
	font-size: 14px;
}
.pcf-cb-send:disabled { opacity: .5; cursor: default; }

.pcf-cb-note {
	font-size: 10.5px;
	color: #8a93a3;
	padding: 0 12px 10px;
	background: #fff;
	line-height: 1.35;
}

@media (max-width: 480px) {
	#pcf-chatbot-root { right: 12px; bottom: 12px; }
	.pcf-cb-panel { right: 0; bottom: 68px; width: calc( 100vw - 24px ); height: calc( 100vh - 96px ); }
}
