/* Kiboni support chat — follows the theme: Inter, ink #1b1b1d, cream/oat neutrals, pill buttons. */
.kc {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1400;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: "Inter", Arial, sans-serif;
	color: #1b1e19;
}
.kc svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.kc-launcher {
	position: relative;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 0;
	border-radius: 50%;
	background: #1b1b1d;
	color: #fff;
	box-shadow: 0 10px 28px rgba(27, 27, 29, .22);
	cursor: pointer;
	transition: transform .2s ease, background-color .2s;
}
.kc-launcher:hover {
	background: #000;
	transform: translateY(-2px);
}
.kc-launcher svg {
	width: 24px;
	height: 24px;
}
.kc-launcher:focus-visible,
.kc button:focus-visible,
.kc a:focus-visible,
.kc input:focus-visible,
.kc textarea:focus-visible {
	outline: 2px solid #1b1b1d;
	outline-offset: 2px;
}
.kc-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #c2410c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.kc-panel {
	display: none;
	flex-direction: column;
	width: 360px;
	height: min(560px, calc(100vh - 120px));
	overflow: hidden;
	border: 1px solid #e3ddd3;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(27, 27, 29, .18);
}
.kc.is-open .kc-panel {
	display: flex;
}
.kc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 14px 20px;
	background: #1b1b1d;
	color: #fff;
}
.kc-head strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
}
.kc-head span {
	display: block;
	margin-top: 2px;
	color: rgba(255, 255, 255, .72);
	font-size: 12px;
}
.kc-close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.kc-close:hover {
	background: rgba(255, 255, 255, .12);
}
.kc-close svg {
	width: 18px;
	height: 18px;
}
.kc-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	background: #faf8f5;
}
.kc-intro {
	padding: 18px 20px 6px;
}
.kc-intro p {
	margin: 0 0 12px;
	color: #4c5048;
	font-size: 14px;
	line-height: 1.55;
}
.kc-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.kc-links a {
	padding: 6px 12px;
	border: 1px solid #dcd6cc;
	border-radius: 999px;
	background: #fff;
	color: #1b1e19;
	font-size: 12.5px;
	text-decoration: none;
}
.kc-links a:hover {
	border-color: #1b1b1d;
}
.kc-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 20px 18px;
	overflow-y: auto;
}
.kc-form label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: #1b1e19;
	font-size: 12.5px;
	font-weight: 600;
}
.kc-form input,
.kc-form textarea,
.kc-compose textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #dcd6cc;
	border-radius: 10px;
	background: #fff;
	color: #1b1e19;
	font: 400 15px/1.45 "Inter", Arial, sans-serif;
	resize: none;
}
.kc-form input:focus,
.kc-form textarea:focus,
.kc-compose textarea:focus {
	border-color: #1b1b1d;
	outline: 0;
}
.kc-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.kc-submit {
	min-height: 46px;
	margin-top: 4px;
	border: 0;
	border-radius: 999px;
	background: #1b1b1d;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
}
.kc-submit:hover {
	background: #000;
}
.kc-submit:disabled {
	opacity: .6;
	cursor: default;
}
.kc-error {
	margin: 0;
	color: #b42318;
	font-size: 13px;
}
.kc-note {
	margin: 0;
	color: #8a8d86;
	font-size: 11.5px;
	text-align: center;
}
.kc-list {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	padding: 18px 16px 8px;
	overflow-y: auto;
}
.kc-msg {
	max-width: 84%;
}
.kc-msg p {
	margin: 0;
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.kc-msg--you {
	align-self: flex-end;
}
.kc-msg--you p {
	border-bottom-right-radius: 4px;
	background: #1b1b1d;
	color: #fff;
}
.kc-msg--kiboni {
	align-self: flex-start;
}
.kc-msg--kiboni p {
	border: 1px solid #e3ddd3;
	border-bottom-left-radius: 4px;
	background: #fff;
}
.kc-msg--system {
	align-self: center;
}
.kc-msg--system p {
	padding: 6px 10px;
	background: transparent;
	color: #b42318;
	font-size: 12.5px;
}
.kc-msg.is-pending p {
	opacity: .55;
}
.kc-status {
	display: block;
	margin: 3px 4px 0;
	color: #8a8d86;
	font-size: 11px;
	text-align: right;
}
.kc-who {
	display: block;
	margin: 0 0 3px 4px;
	color: #70756b;
	font-size: 11px;
	font-weight: 600;
}
.kc-meta {
	margin: 0;
	padding: 4px 16px 8px;
	color: #8a8d86;
	font-size: 11.5px;
}
.kc-link-btn {
	margin-left: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: #1b1e19;
	font-size: 11.5px;
	text-decoration: underline;
	cursor: pointer;
}
.kc-compose {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px 12px;
	border-top: 1px solid #ebe6de;
	background: #fff;
}
.kc-compose textarea {
	max-height: 110px;
	border-radius: 20px;
	padding: 10px 14px;
}
.kc-send {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #1b1b1d;
	color: #fff;
	cursor: pointer;
}
.kc-send svg {
	width: 18px;
	height: 18px;
}

@media (max-width: 768px) {
	.kc {
		right: 16px;
		bottom: 16px;
	}
	.kc.is-open {
		left: 0;
		right: 0;
		bottom: 0;
		align-items: stretch;
	}
	.kc.is-open .kc-launcher {
		display: none;
	}
	.kc-panel {
		width: 100%;
		height: min(82vh, 640px);
		border-radius: 16px 16px 0 0;
		border-bottom: 0;
	}
	.kc-launcher {
		width: 50px;
		height: 50px;
	}
}

/* Launcher: pill with status dot + label on desktop, plain circle on phones. */
.kc-dot,
.kc-label {
	display: none;
}
@media (min-width: 769px) {
	.kc-launcher {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		width: auto;
		height: 50px;
		padding: 0 24px 0 20px;
		border-radius: 999px;
	}
	.kc-launcher svg {
		width: 21px;
		height: 21px;
	}
	.kc-dot {
		display: block;
		width: 9px;
		height: 9px;
		border-radius: 50%;
		background: #22c55e;
		box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
	}
	.kc-label {
		display: block;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: .01em;
		white-space: nowrap;
	}
}

