.cara-chat-widget {
	max-width: 640px;
	border: 1px solid #d5d5d5;
	border-radius: 12px;
	overflow: hidden;
	font-family: inherit;
	background: #fff;
}

.cara-chat-notice {
	font-size: 12px;
	color: #555;
	background: #f5f5f7;
	padding: 10px 16px;
	border-bottom: 1px solid #e5e5e5;
}

.cara-chat-notice a {
	color: inherit;
	text-decoration: underline;
}

.cara-chat-messages {
	max-height: 360px;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cara-chat-message {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-break: break-word;
}

.cara-chat-message--bot {
	align-self: flex-start;
	background: #eef0fb;
	color: #1a1a2e;
}

.cara-chat-message--user {
	align-self: flex-end;
	background: #4054B2;
	color: #fff;
}

.cara-chat-message--typing {
	font-style: italic;
	opacity: 0.7;
}

.cara-chat-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid #e5e5e5;
}

/* Honeypot — invisible to real visitors, off-screen rather than
   display:none (which some bots skip when deciding what to fill in). */
.cara-chat-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Turnstile widget takes its own full-width row above the
   textarea/button row, instead of squeezing into the flex line. */
.cf-turnstile {
	flex-basis: 100%;
}

.cara-chat-form textarea {
	flex: 1;
	resize: none;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
}

.cara-chat-form textarea:focus {
	outline: 2px solid #4054B2;
	outline-offset: 1px;
}

.cara-chat-form button {
	padding: 0 18px;
	background: #4054B2;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

.cara-chat-form button:disabled {
	opacity: 0.6;
	cursor: default;
}

.cara-chat-ai-disclosure {
	font-size: 12px;
	color: #666;
	padding: 10px 16px 14px;
	margin: 0;
	border-top: 1px solid #f0f0f0;
}

.cara-chat-ai-disclosure a {
	color: #4054B2;
}
