#rbc-chatbot-root {
	--rbc-primary: #e6a400;
	--rbc-primary-dark: #b88200;
	--rbc-bottom-offset: 90px;
	--rbc-side-offset: 20px;
	position: fixed;
	z-index: 999999;
	right: var(--rbc-side-offset);
	bottom: var(--rbc-bottom-offset);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: normal;
}

/* Interactieve elementen resetten voordat de eigen stijl wordt toegepast,
   zodat thema-brede button/input-stijlen (bijv. van Elementor) niet doorlekken. */
#rbc-chatbot-root button,
#rbc-chatbot-root input,
#rbc-chatbot-root textarea,
#rbc-chatbot-root a {
	all: revert;
	box-sizing: border-box;
	font-family: inherit;
	margin: 0;
}

#rbc-chatbot-root .rbc-launcher {
	width: 58px !important;
	height: 58px !important;
	border-radius: 50% !important;
	background: var(--rbc-primary) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
#rbc-chatbot-root .rbc-launcher:hover {
	transform: scale(1.06);
	background: var(--rbc-primary) !important;
	color: #fff !important;
}
#rbc-chatbot-root .rbc-launcher svg {
	stroke: #fff !important;
	fill: none !important;
}
#rbc-chatbot-root .rbc-launcher.rbc-hidden-launcher {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.8);
}

#rbc-chatbot-root .rbc-panel {
	position: absolute;
	right: 0;
	bottom: 72px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 500px;
	max-height: calc(100vh - 120px);
	background: #fff !important;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}
#rbc-chatbot-root .rbc-panel.rbc-open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

#rbc-chatbot-root .rbc-header {
	background: var(--rbc-primary) !important;
	color: #fff !important;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
}
#rbc-chatbot-root .rbc-header-title {
	font-weight: 600;
	font-size: 15px;
	color: #fff !important;
}
#rbc-chatbot-root .rbc-close {
	background: transparent !important;
	border: 1.5px solid rgba(0, 0, 0, 0.3) !important;
	border-radius: 6px !important;
	color: #fff !important;
	width: 26px !important;
	height: 26px !important;
	font-size: 18px !important;
	line-height: 1;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}
#rbc-chatbot-root .rbc-close:hover {
	border-color: rgba(0, 0, 0, 0.5) !important;
	color: #fff !important;
}

#rbc-chatbot-root .rbc-messages {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #faf9fb !important;
}

#rbc-chatbot-root .rbc-msg {
	display: flex;
}
#rbc-chatbot-root .rbc-msg-user {
	justify-content: flex-end;
}
#rbc-chatbot-root .rbc-msg-bot {
	justify-content: flex-start;
	flex-direction: column;
	align-items: flex-start;
}

#rbc-chatbot-root .rbc-bubble {
	max-width: 85%;
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}
#rbc-chatbot-root .rbc-msg-user .rbc-bubble {
	background: var(--rbc-primary) !important;
	color: #fff !important;
	border-bottom-right-radius: 4px;
}
#rbc-chatbot-root .rbc-msg-bot .rbc-bubble {
	background: #fff !important;
	color: #222 !important;
	border: 1px solid #e2e2e2 !important;
	border-bottom-left-radius: 4px;
}
#rbc-chatbot-root .rbc-msg-bot .rbc-bubble a {
	color: var(--rbc-primary-dark) !important;
	text-decoration: underline !important;
	font-weight: 600;
	word-break: break-word;
}
#rbc-chatbot-root .rbc-msg-bot .rbc-bubble a:hover {
	color: #222 !important;
}

#rbc-chatbot-root .rbc-typing .rbc-bubble {
	display: flex;
	gap: 4px;
	align-items: center;
	padding: 12px 14px;
}
#rbc-chatbot-root .rbc-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #b0b0b0 !important;
	animation: rbc-bounce 1.2s infinite ease-in-out;
}
#rbc-chatbot-root .rbc-dot:nth-child(2) { animation-delay: 0.15s; }
#rbc-chatbot-root .rbc-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes rbc-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
	30% { transform: translateY(-4px); opacity: 1; }
}

#rbc-chatbot-root .rbc-suggestions {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
#rbc-chatbot-root .rbc-suggestions li {
	background: #fff !important;
	border: 1px solid #e2e2e2 !important;
	border-radius: 10px;
	padding: 8px 10px;
	list-style: none;
}
#rbc-chatbot-root .rbc-suggestions a,
#rbc-chatbot-root .rbc-suggestion-btn {
	font-size: 13.5px;
	font-weight: 600;
	color: #1a1a1a !important;
	text-decoration: none !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	cursor: pointer;
	text-align: left;
	display: block;
}
#rbc-chatbot-root .rbc-suggestions a:hover,
#rbc-chatbot-root .rbc-suggestion-btn:hover {
	color: var(--rbc-primary-dark) !important;
}
#rbc-chatbot-root .rbc-suggestion-snippet {
	font-size: 12.5px;
	color: #666 !important;
	margin-top: 3px;
	line-height: 1.4;
}

#rbc-chatbot-root .rbc-contact-form {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
}
#rbc-chatbot-root .rbc-contact-input {
	width: 100% !important;
	box-sizing: border-box;
	padding: 8px 10px !important;
	border: 1px solid #ccc !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #222 !important;
	font-size: 13.5px;
	font-family: inherit;
	resize: vertical;
}
#rbc-chatbot-root .rbc-contact-input:focus {
	border-color: #333 !important;
	outline: none !important;
}
#rbc-chatbot-root .rbc-contact-submit {
	background: var(--rbc-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 9px 12px !important;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}
#rbc-chatbot-root .rbc-contact-submit:hover {
	background: var(--rbc-primary-dark) !important;
	color: #fff !important;
}
#rbc-chatbot-root .rbc-contact-submit:disabled {
	opacity: 0.6;
	cursor: default;
}
#rbc-chatbot-root .rbc-contact-status {
	font-size: 12.5px;
	color: #555 !important;
	min-height: 14px;
}
#rbc-chatbot-root .rbc-contact-success {
	font-size: 13.5px;
	color: #1e7a34 !important;
	font-weight: 600;
}
#rbc-chatbot-root .rbc-contact-prompt {
	background: none !important;
	border: none !important;
	border-bottom: 1px solid #999 !important;
	color: #444 !important;
	font-size: 12.5px;
	padding: 0 0 1px !important;
	cursor: pointer;
	text-align: left;
}
#rbc-chatbot-root .rbc-contact-prompt:hover {
	color: #000 !important;
	border-bottom-color: #000 !important;
}

#rbc-chatbot-root .rbc-input-form {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #ececec;
	background: #fff !important;
}
#rbc-chatbot-root .rbc-input {
	flex: 1 1 auto;
	border: 1px solid #ccc !important;
	border-radius: 20px !important;
	padding: 9px 14px !important;
	font-size: 14px;
	font-family: inherit;
	outline: none !important;
	background: #fff !important;
	color: #222 !important;
}
#rbc-chatbot-root .rbc-input:focus {
	border-color: #333 !important;
}
#rbc-chatbot-root .rbc-send {
	flex: 0 0 auto;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: var(--rbc-primary) !important;
	color: #fff !important;
	border: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0 !important;
}
#rbc-chatbot-root .rbc-send:hover {
	background: var(--rbc-primary-dark) !important;
	color: #fff !important;
}
#rbc-chatbot-root .rbc-send svg {
	stroke: #fff !important;
	fill: none !important;
}

@media (max-width: 480px) {
	#rbc-chatbot-root .rbc-panel {
		width: calc(100vw - 24px);
		right: -8px;
		height: calc(100vh - 140px);
	}
}
