#kbc-widget-root {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	font-family: 'Syne', 'Montserrat', sans-serif;
}

#kbc-toggle-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #bfa391;
	color: #fff;
	border: none;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

#kbc-toggle-btn img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	pointer-events: none;
}

#kbc-toggle-btn:hover {
	opacity: 0.9;
}

#kbc-modal {
	position: fixed;
	bottom: 90px;
	right: 20px;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 480px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#kbc-modal.kbc-hidden {
	display: none;
}

.kbc-modal-header {
	background: #bfa391;
	color: #fff;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
}

.kbc-modal-title-sub {
    display: block;
    font-size: 14px;
}

#kbc-close-btn {
	background: none;
	border: none;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

#kbc-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f7f7f8;
}

.kbc-bubble {
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
}

.kbc-bubble a {
	color: inherit;
	text-decoration: underline;
}

.kbc-bubble-user {
	align-self: flex-end;
	background: #bfa391;
	color: #fff;
	border-bottom-right-radius: 2px;
}

.kbc-bubble-assistant {
	align-self: flex-start;
	background: #fff;
	color: #222;
	border: 1px solid #e5e5e5;
	border-bottom-left-radius: 2px;
}

.kbc-input-row {
	display: flex;
	border-top: 1px solid #e5e5e5;
	padding: 8px;
	gap: 8px;
}

#kbc-input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 16px;
}

#kbc-send-btn {
	background: #bfa391;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 14px;
	cursor: pointer;
}

#kbc-send-btn:disabled,
#kbc-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Fixed welcome card with room to the left of the chat button */
.kbc-onboarding-card {
	position: fixed;
	bottom: 20px;
	right: 120px;
	width: 240px;
	max-width: calc(100vw - 40px);
	box-sizing: border-box;
	background: #fff;
	border-radius: 12px;
	padding: 12px 28px 12px 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
	font-family: 'Syne', 'Montserrat', sans-serif;
}

.kbc-onboarding-arrow {
	position: fixed;
	bottom: 30px;
	right: 74px;
	width: 40px;
	height: 40px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
	pointer-events: none;
}

.kbc-onboarding-arrow svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.kbc-onboarding-close {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 4px;
}

.kbc-onboarding-text {
	font-size: 12px;
	line-height: 1.45;
	color: #222;
	white-space: pre-line;
	overflow-wrap: break-word;
	margin: 0;
}