.hki-homepage-inject {
	width: 100%;
	padding: 2.5rem 1rem;
	background: #f7f8f7;
}

.hki-agent-widget {
	max-width: 860px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-size: 1.1rem;
}

.hki-header {
	padding: 1.4rem 1.75rem;
	background: linear-gradient(135deg, #2d7a4b, #4a9e6a);
	color: #fff;
	font-weight: 600;
	font-size: 1.35rem;
}

.hki-messages {
	padding: 1.5rem 1.75rem;
	max-height: 480px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 160px;
}

.hki-msg {
	padding: 0.85rem 1.15rem;
	border-radius: 12px;
	max-width: 85%;
	line-height: 1.55;
	font-size: 1.05rem;
	word-wrap: break-word;
}

.hki-msg.user {
	align-self: flex-end;
	background: #2d7a4b;
	color: #fff;
}

.hki-msg.assistant {
	align-self: flex-start;
	background: #f2f4f3;
	color: #1a1a1a;
}

.hki-msg.system {
	align-self: center;
	background: #fff4e5;
	color: #7a4a00;
	font-size: 0.85rem;
	font-style: italic;
}

.hki-msg.loading::after {
	content: "…";
	animation: hki-dots 1.2s steps(3) infinite;
}

@keyframes hki-dots {
	0% { content: "."; }
	33% { content: ".."; }
	66% { content: "..."; }
}

.hki-products-container {
	display: flex;
	flex-direction: row;
	gap: 0.75rem;
	padding: 0 1.25rem 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.hki-products-container:empty {
	padding: 0;
}

.hki-product-card {
	min-width: 180px;
	max-width: 200px;
	flex: 0 0 auto;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	scroll-snap-align: start;
	background: #fff;
}

.hki-product-card img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 6px;
	background: #f5f5f5;
}

.hki-product-card .name {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
	text-decoration: none;
}

.hki-product-card .price {
	font-size: 0.9rem;
	color: #2d7a4b;
	font-weight: 700;
}

.hki-product-card button.add {
	margin-top: auto;
	padding: 0.5rem;
	border: none;
	background: #2d7a4b;
	color: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.85rem;
}

.hki-product-card button.add:hover {
	background: #225e39;
}

.hki-product-card button.add:disabled {
	background: #888;
	cursor: not-allowed;
}

.hki-form {
	display: flex;
	gap: 0.75rem;
	padding: 1rem 1.75rem;
	border-top: 1px solid #eee;
	background: #fafafa;
}

.hki-input {
	flex: 1;
	padding: 0.95rem 1.25rem;
	border: 1px solid #ddd;
	border-radius: 28px;
	font-size: 1.1rem;
	outline: none;
}

.hki-input:focus {
	border-color: #2d7a4b;
}

.hki-send {
	padding: 0.85rem 1.75rem;
	background: #2d7a4b;
	color: #fff;
	border: none;
	border-radius: 28px;
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
}

.hki-send:hover {
	background: #225e39;
}

.hki-send:disabled {
	background: #888;
	cursor: not-allowed;
}

.hki-disclaimer {
	padding: 0.5rem 1.25rem 0.75rem;
	font-size: 0.75rem;
	color: #888;
	text-align: center;
	background: #fafafa;
}

.hki-product-card.hki-freebie {
	border: 2px dashed #2d7a4b;
	background: linear-gradient(135deg, #f5fbf6 0%, #ecfae9 100%);
}

.hki-product-card .freebie-badge {
	display: inline-block;
	background: #2d7a4b;
	color: #fff;
	padding: 0.25rem 0.55rem;
	border-radius: 12px;
	font-size: 0.78rem;
	font-weight: 600;
}

.hki-product-card .freebie-price {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	align-items: flex-start;
}

.hki-product-card .freebie-regular {
	color: #777;
	font-size: 0.75rem;
	text-decoration: line-through;
}

.hki-product-card button.add[disabled][title*="Automatisch"] {
	background: #f5fbf6;
	color: #2d7a4b;
	border: 1px solid #2d7a4b;
	cursor: default;
	font-weight: 600;
	opacity: 1;
}

.hki-lead-form {
	align-self: flex-start;
	background: #f7f8f7;
	border: 1px solid #dfe2df;
	border-radius: 12px;
	padding: 1rem 1.15rem;
	max-width: 90%;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.hki-lead-title {
	font-weight: 600;
	font-size: 1rem;
	color: #1a1a1a;
	margin-bottom: 0.2rem;
}

.hki-lead-form input[type="text"],
.hki-lead-form input[type="email"] {
	padding: 0.6rem 0.85rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 1rem;
}

.hki-lead-consent {
	display: flex;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: #555;
	align-items: flex-start;
	line-height: 1.35;
}

.hki-lead-consent input[type="checkbox"] {
	margin-top: 0.25rem;
}

.hki-lead-consent a {
	color: #2d7a4b;
	text-decoration: underline;
}

.hki-lead-form .hki-lead-submit {
	padding: 0.6rem 1rem;
	background: #2d7a4b;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

.hki-lead-form .hki-lead-skip {
	padding: 0.4rem 0.8rem;
	background: transparent;
	color: #888;
	border: none;
	font-size: 0.85rem;
	cursor: pointer;
	align-self: flex-start;
}

.hki-lead-msg {
	color: #b04020;
	font-size: 0.85rem;
}

.hki-lead-ok {
	color: #2d7a4b;
	font-weight: 600;
	font-size: 1rem;
}

.hki-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	background: #1a1a1a;
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	font-size: 0.9rem;
	animation: hki-toast-in 0.3s ease;
}

@keyframes hki-toast-in {
	from { opacity: 0; transform: translate(-50%, 20px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

/* Mobile optimizations */
@media (max-width: 768px) {
	.hki-homepage-inject {
		padding: 1.25rem 0.75rem;
	}
	.hki-agent-widget {
		font-size: 1rem;
		border-radius: 10px;
	}
	.hki-header {
		padding: 1rem 1.15rem;
		font-size: 1.15rem;
	}
	.hki-messages {
		padding: 1rem 1.15rem;
		max-height: 60vh;
		min-height: 140px;
		gap: 0.75rem;
	}
	.hki-msg {
		padding: 0.7rem 0.95rem;
		font-size: 0.98rem;
		max-width: 92%;
	}
	.hki-products-container {
		padding: 0 1rem 0.75rem;
		gap: 0.6rem;
	}
	.hki-product-card {
		min-width: 150px;
		max-width: 170px;
		padding: 0.6rem;
	}
	.hki-product-card img {
		height: 120px;
	}
	.hki-product-card .name {
		font-size: 0.85rem;
	}
	.hki-product-card button.add {
		font-size: 0.78rem;
		padding: 0.45rem;
	}
	.hki-form {
		padding: 0.85rem 1.15rem;
		gap: 0.5rem;
	}
	.hki-input {
		padding: 0.8rem 1.1rem;
		font-size: 1rem;
	}
	.hki-send {
		padding: 0.7rem 1.25rem;
		font-size: 0.95rem;
	}
	.hki-disclaimer {
		padding: 0.5rem 1rem 0.85rem;
		font-size: 0.72rem;
	}
	.hki-lead-form {
		padding: 0.85rem 1rem;
		max-width: 95%;
	}
	.hki-lead-title {
		font-size: 0.95rem;
	}
}
