#wca-chat-root {
	position: fixed;
	z-index: 999998;
	bottom: var(--wca-bottom, 96px);
	right: var(--wca-right, 20px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wca-bubble {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--wca-accent, #8CC63F);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	border: none;
	transition: transform 0.15s ease;
}
.wca-bubble:hover {
	transform: scale(1.06);
}
.wca-bubble svg {
	width: 28px;
	height: 28px;
}

.wca-window {
	position: absolute;
	bottom: 74px;
	right: 0;
	width: 340px;
	max-width: calc(100vw - 32px);
	height: 460px;
	max-height: 70vh;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	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;
}
.wca-window.wca-open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.wca-header {
	background: var(--wca-primary, #091A2B);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.wca-header-title {
	font-weight: 600;
	font-size: 15px;
}
.wca-header-sub {
	font-size: 12px;
	opacity: 0.8;
	margin-top: 2px;
}
.wca-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	padding: 4px;
}
.wca-close:hover {
	opacity: 1;
}

.wca-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f4f6f8;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wca-msg {
	max-width: 85%;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.45;
	word-wrap: break-word;
}
.wca-msg a {
	color: inherit;
	text-decoration: underline;
	font-weight: 600;
}
.wca-msg-bot {
	background: #fff;
	color: #1c1f24;
	border: 1px solid #e5e8eb;
	align-self: flex-start;
	border-bottom-left-radius: 3px;
}
.wca-msg-user {
	background: var(--wca-primary, #091A2B);
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 3px;
}
.wca-msg-typing {
	background: #fff;
	border: 1px solid #e5e8eb;
	align-self: flex-start;
	display: inline-flex;
	gap: 4px;
	padding: 12px 14px;
	border-bottom-left-radius: 3px;
}
.wca-msg-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #9aa2ab;
	display: inline-block;
	animation: wca-blink 1.2s infinite ease-in-out;
}
.wca-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.wca-msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wca-blink {
	0%, 80%, 100% { opacity: 0.25; }
	40% { opacity: 1; }
}

.wca-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e5e8eb;
	background: #fff;
}
.wca-input {
	flex: 1;
	border: 1px solid #dfe3e7;
	border-radius: 20px;
	padding: 10px 14px;
	font-size: 13.5px;
	outline: none;
}
.wca-input:focus {
	border-color: var(--wca-accent, #8CC63F);
}
.wca-send {
	background: var(--wca-accent, #8CC63F);
	border: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.wca-send:disabled {
	opacity: 0.6;
	cursor: default;
}
.wca-send svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 420px) {
	.wca-window {
		width: calc(100vw - 24px);
		right: -8px;
	}
}

/* WhatsApp quick-chat bar */
.wca-whatsapp {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #25D366;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
	transition: background 0.15s ease;
}
.wca-whatsapp:hover {
	background: #1ebe5a;
	color: #fff;
}
.wca-whatsapp svg {
	flex-shrink: 0;
}

/* Footer branding */
.wca-footer {
	text-align: center;
	font-size: 10.5px;
	color: #9aa2ab;
	padding: 6px 10px 10px;
	background: #fff;
	border-top: 1px solid #f0f2f4;
}
.wca-footer a {
	color: var(--wca-primary, #091A2B);
	font-weight: 600;
	text-decoration: none;
}
.wca-footer a:hover {
	text-decoration: underline;
}

/* Slight polish: rounder, softer window + gentle bubble pulse to draw attention */
.wca-window {
	border-radius: 18px;
}
.wca-bubble {
	animation: wca-pulse 2.4s ease-in-out infinite;
}
.wca-bubble:hover {
	animation: none;
}
@keyframes wca-pulse {
	0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(140, 198, 63, 0.5); }
	50% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(140, 198, 63, 0); }
}
