.parul-chatbot-root {
	--pc-brown: #9D6342;
	--pc-gold: #B27A01;
	--pc-bg: #F6F1EA;
	--pc-dark: #1A1A1A;
	--pc-body: #6B6158;
	--pc-white: #FFFFFF;
	position: fixed;
	bottom: var(--pc-offset-bottom, 22px);
	right: var(--pc-offset-right, 22px);
	z-index: 999999;
}

.parul-chatbot-toggle {
	position: relative;
	width: var(--pc-icon-size, 60px);
	height: var(--pc-icon-size, 60px);
	border-radius: 50%;
	background: var(--pc-brown);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(26, 26, 26, 0.25);
	padding: 0;
	overflow: visible;
	transition: transform 0.2s ease;
}
.parul-chatbot-toggle:hover {
	transform: scale(1.06);
}
.parul-chatbot-toggle img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.parul-chatbot-toggle svg {
	color: var(--pc-white);
}

.parul-chatbot-badge {
	display: none;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: -4px;
	right: -4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #E14B4B;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border: 2px solid #fff;
	animation: parul-bounce 1.4s ease infinite;
}
@keyframes parul-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

.parul-chatbot-window {
	position: fixed;
	bottom: calc(var(--pc-icon-size, 60px) + var(--pc-offset-bottom, 22px) + 14px);
	right: var(--pc-offset-right, 22px);
	width: 360px;
	max-width: calc(100vw - 32px);
	height: auto;
	max-height: min(600px, calc(100vh - 110px));
	max-height: min(600px, calc(100dvh - 110px));
	background: var(--pc-bg);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(26, 26, 26, 0.22);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.parul-chatbot-window.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.parul-chatbot-header {
	background: var(--pc-brown);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}
.parul-chatbot-header-info {
	display: flex;
	align-items: center;
	gap: 10px;
}
.parul-chatbot-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}
.parul-chatbot-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}
.parul-chatbot-status {
	font-size: 11px;
	opacity: 0.85;
}
.parul-chatbot-status::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	margin-right: 5px;
}
.parul-chatbot-status.parul-status-online::before {
	background: #4ADE80;
}
.parul-chatbot-status.parul-status-offline::before {
	background: #9CA3AF;
}
.parul-chatbot-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.parul-chatbot-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.parul-chatbot-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}
.parul-chatbot-row-user {
	justify-content: flex-end;
}

.parul-chatbot-msg-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.parul-chatbot-msg-avatar-fallback {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--pc-brown);
	flex-shrink: 0;
}

.parul-chatbot-bubble {
	max-width: 78%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.5;
}
.parul-chatbot-bubble-bot {
	background: var(--pc-white);
	color: var(--pc-dark);
	border-bottom-left-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.parul-chatbot-bubble-user {
	background: var(--pc-gold);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.parul-chatbot-typing span {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 3px;
	border-radius: 50%;
	background: var(--pc-body);
	opacity: 0.5;
	animation: parul-typing 1s infinite ease-in-out;
}
.parul-chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.parul-chatbot-typing span:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }
@keyframes parul-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.parul-chatbot-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 2px;
}
.parul-chatbot-option-btn {
	background: var(--pc-white);
	border: 1.5px solid var(--pc-brown);
	color: var(--pc-brown);
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.parul-chatbot-option-btn:hover {
	background: var(--pc-gold);
	border-color: var(--pc-gold);
	color: #fff;
}

@media (max-width: 480px) {
	.parul-chatbot-window {
		right: 12px;
		left: 12px;
		width: auto;
		bottom: calc(var(--pc-icon-size, 60px) + 28px);
		max-height: calc(100vh - 90px);
		max-height: calc(100dvh - 90px);
	}
}
