/* Parent Communicator — chat widget. Scoped to .pc-chat-card. */

.pc-chat-card {
	max-width: 100%;
	background: #fff;
	border: 1px solid #e3dfd8;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a1a;
	margin: 16px 0;
}
.pc-chat-card * { box-sizing: border-box; }

.pc-chat-header {
	padding: 13px 18px;
	background: var(--pc-brand, #1f6f5c);
	color: #fff;
	font-size: 14.5px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
}
.pc-chat-dot {
	width: 8px;
	height: 8px;
	background: #7dd3a8;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(125,211,168,0.3);
}
.pc-chat-badge {
	margin-left: auto;
	font-size: 10px;
	font-weight: 500;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255,255,255,0.18);
	color: #fff;
}
.pc-chat-badge-stub { background: #fff3cd; color: #8a6d00; }

.pc-chat-messages {
	min-height: 320px;
	max-height: 460px;
	overflow-y: auto;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fafaf8;
}
.pc-msg {
	max-width: 80%;
	padding: 9px 14px;
	border-radius: 12px;
	font-size: 14px;
	white-space: pre-wrap;
	word-wrap: break-word;
	line-height: 1.45;
}
.pc-msg.pc-user {
	align-self: flex-end;
	background: #e8f0ed;
	border-bottom-right-radius: 4px;
}
.pc-msg.pc-bot {
	align-self: flex-start;
	background: #fffaf2;
	border: 1px solid #e3dfd8;
	border-bottom-left-radius: 4px;
}
.pc-msg.pc-thinking {
	color: #5a5a5a;
	font-style: italic;
}

.pc-chat-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 14px 0;
	background: #fafaf8;
}
.pc-chat-suggestion {
	font-size: 12.5px;
	padding: 5px 11px;
	background: #f0ede6;
	border: 1px solid #e3dfd8;
	border-radius: 999px;
	cursor: pointer;
	color: #1a1a1a;
}
.pc-chat-suggestion:hover { background: #e3dfd8; }

.pc-chat-composer {
	display: flex;
	gap: 8px;
	padding: 12px 14px;
	border-top: 1px solid #e3dfd8;
	background: #fafaf8;
}
.pc-chat-composer input {
	flex: 1;
	padding: 9px 14px;
	border: 1px solid #e3dfd8;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}
.pc-chat-composer input:focus {
	outline: 2px solid var(--pc-brand, #1f6f5c);
	outline-offset: -1px;
}
.pc-chat-composer button {
	padding: 9px 17px;
	background: var(--pc-brand, #1f6f5c);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.pc-chat-composer button:hover { background: var(--pc-brand-dark, #154a3e); }
.pc-chat-composer button:disabled { opacity: 0.5; cursor: not-allowed; }
