.pjc-root {
	--pjc-color: #004b87;
	--pjc-bg: #ffffff;
	--pjc-soft: #f2f5f8;
	--pjc-text: #1f2933;
	--pjc-muted: #6b7785;
	position: fixed;
	bottom: 20px;
	z-index: 2147483000;
	font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--pjc-text);
}
.pjc-root.pjc-right { right: 20px; }
.pjc-root.pjc-left { left: 20px; }
.pjc-root *, .pjc-root *::before, .pjc-root *::after { box-sizing: border-box; }

/* knop */
.pjc-launcher {
	width: 60px; height: 60px; border-radius: 50%;
	border: 0; padding: 0; cursor: pointer;
	background: var(--pjc-color); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
	transition: transform .15s ease;
}
.pjc-left .pjc-launcher { margin-right: auto; }
.pjc-right .pjc-launcher { margin-left: auto; }
.pjc-launcher:hover { transform: scale(1.06); }
.pjc-launcher:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--pjc-color); }
.pjc-launcher svg { width: 28px; height: 28px; }
.pjc-ico-close { display: none; }
.pjc-open .pjc-ico-chat { display: none; }
.pjc-open .pjc-ico-close { display: block; width: 22px; height: 22px; }

/* teaser */
.pjc-teaser {
	position: absolute; bottom: 72px; width: max-content; max-width: 240px;
	background: var(--pjc-bg); color: var(--pjc-text);
	border: 0; border-radius: 14px; padding: 10px 14px; text-align: left;
	font: inherit; font-size: 14px; cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
	opacity: 0; transform: translateY(8px); pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
.pjc-right .pjc-teaser { right: 0; }
.pjc-left .pjc-teaser { left: 0; }
.pjc-teaser.pjc-show { opacity: 1; transform: none; pointer-events: auto; }

/* paneel */
.pjc-panel {
	position: absolute; bottom: 76px;
	width: 360px; max-width: calc(100vw - 32px);
	height: 540px; max-height: calc(100vh - 120px);
	background: var(--pjc-bg); border-radius: 16px; overflow: hidden;
	display: flex; flex-direction: column;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	animation: pjc-in .2s ease;
}
.pjc-panel[hidden] { display: none; }
.pjc-right .pjc-panel { right: 0; }
.pjc-left .pjc-panel { left: 0; }
@keyframes pjc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pjc-head {
	display: flex; align-items: center; gap: 10px;
	padding: 14px 14px 14px 16px;
	background: var(--pjc-color); color: #fff;
}
.pjc-avatar {
	width: 38px; height: 38px; border-radius: 50%; flex: none;
	background: rgba(255, 255, 255, .2);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700;
}
.pjc-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pjc-head-txt strong { font-size: 16px; }
.pjc-head-txt span { font-size: 13px; opacity: .85; }
.pjc-close {
	background: none; border: 0; color: #fff; cursor: pointer;
	font-size: 28px; line-height: 1; padding: 0 4px; opacity: .85;
}
.pjc-close:hover { opacity: 1; }

.pjc-body {
	flex: 1; overflow-y: auto; padding: 16px;
	background: var(--pjc-soft);
	display: flex; flex-direction: column; gap: 8px;
}

/* berichten */
.pjc-msg {
	max-width: 85%; padding: 9px 13px; border-radius: 14px;
	white-space: pre-line; word-wrap: break-word;
}
.pjc-bot { align-self: flex-start; background: var(--pjc-bg); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.pjc-me { align-self: flex-end; background: var(--pjc-color); color: #fff; border-bottom-right-radius: 4px; }

.pjc-typing { display: flex; gap: 4px; padding: 12px 14px; }
.pjc-typing i {
	width: 7px; height: 7px; border-radius: 50%; background: var(--pjc-muted);
	animation: pjc-dot 1s infinite ease-in-out;
}
.pjc-typing i:nth-child(2) { animation-delay: .15s; }
.pjc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pjc-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* keuzes */
.pjc-choices { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 2px; }
.pjc-chip {
	font: inherit; font-size: 14px; cursor: pointer;
	padding: 7px 13px; border-radius: 18px;
	background: var(--pjc-bg); color: var(--pjc-color);
	border: 1.5px solid var(--pjc-color);
	transition: background .15s, color .15s;
}
.pjc-chip:hover, .pjc-chip-primary { background: var(--pjc-color); color: #fff; }
.pjc-chip-primary:hover { filter: brightness(1.1); }

/* formulier */
.pjc-form {
	background: var(--pjc-bg); border-radius: 12px; padding: 14px;
	display: flex; flex-direction: column; gap: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.pjc-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--pjc-muted); }
.pjc-field input, .pjc-field textarea {
	font: inherit; font-size: 15px; color: var(--pjc-text);
	padding: 9px 11px; border: 1px solid #cfd6de; border-radius: 8px;
	background: #fff; width: 100%; resize: vertical;
}
.pjc-field input:focus, .pjc-field textarea:focus {
	outline: none; border-color: var(--pjc-color);
	box-shadow: 0 0 0 3px rgba(32, 12, 8, .15);
}
.pjc-consent { font-size: 13px; color: var(--pjc-muted); display: flex; align-items: flex-start; gap: 6px; }
.pjc-consent input { margin-top: 3px; }
.pjc-consent a { color: var(--pjc-color); }
.pjc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pjc-error { color: #b42318; font-size: 13px; min-height: 0; }
.pjc-error:empty { display: none; }
.pjc-submit {
	font: inherit; font-weight: 600; cursor: pointer;
	padding: 10px; border: 0; border-radius: 8px;
	background: var(--pjc-color); color: #fff;
}
.pjc-submit:disabled { opacity: .6; cursor: wait; }
.pjc-link {
	font: inherit; font-size: 13px; background: none; border: 0;
	color: var(--pjc-muted); cursor: pointer; align-self: flex-start; padding: 0;
}

@media (max-width: 480px) {
	.pjc-root { bottom: 14px; }
	.pjc-root.pjc-right { right: 14px; }
	.pjc-root.pjc-left { left: 14px; }
	.pjc-panel { height: calc(100vh - 110px); }
}
@media (prefers-reduced-motion: reduce) {
	.pjc-root * { animation: none !important; transition: none !important; }
}
