:root {
	--brand-700: #26d5f5;
	--brand-600: #26d5f5;
	--brand-500: #26d5f5;
	--brand-100: #eef2ff;
	--accent-400: #ffd24a;
	--surface: #ffffff;
	--bg: #f6f7fb;
	--text: #0f172a;
	--muted: #6b7280;
	--success: #16a34a;
	--radius: 16px;
	--shadow: 0 12px 34px rgba(34, 46, 120, .16);
}

* {
	box-sizing: border-box
}
.disabled {
	opacity: .4;
	cursor: default !important;
	pointer-events: none;
}
.launcher {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999
}

.launcher button {
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 14px 18px;
	background: var(--brand-600);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: var(--shadow)
}

.launcher svg {
	width: 22px;
	height: 22px;
	fill: #fff
}

.chat {
	position: fixed;
	right: 20px;
	bottom: 90px;
	width: 380px;
	max-width: 96vw;
	height: 560px;
	max-height: 80vh;
	background: var(--surface);
	border-radius: 20px;
	box-shadow: var(--shadow);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 19999;
}

.chat.open {
	display: flex
}

.chat__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
	color: #fff
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px
}

.brand img {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, .35);
	object-fit: cover
}

.brand .title {
	font-weight: 800;
	line-height: 1
}

.brand .sub {
	font-size: .82rem;
	opacity: .9
}

.status {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .85rem
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--success);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, .2)
}

.chat__body {
	flex: 1;
	overflow: auto;
	padding: 18px;
	background: linear-gradient(180deg, var(--bg), #fff);
	display:none;
}

.msg {
	display: flex;
	gap: 10px;
	margin: 8px 0;
	max-width: 84%
	
}
#chat-form{

	
}
.msg.bot {
	align-items: flex-start
	
}

.msg.user {
	margin-left: auto;
	flex-direction: row-reverse
}

.avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	flex: 0 0 32px;
	overflow: hidden
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.bubble {
	padding: 12px 14px;
	border-radius: 14px;
	line-height: 1.35;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
	font-size: 13px;
}

.bot .bubble {
	background: var(--brand-100);
	color: #0b1a4a;
	border: 1px solid rgba(50, 67, 197, .14)
}

.user .bubble {
	background: var(--brand-600);
	color: #fff
}

.meta {
	font-size: .76rem;
	color: var(--muted);
	margin-top: 4px
}

.chat__input {
	border-top: 1px solid #e5e7eb;
	background: #fff;
	padding: 10px
}

.inputbox {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #e6e8f2;
	border-radius: 14px;
	padding: 8px 10px;
	display:none;
}

.inputbox textarea {
	flex: 1;
	border: 0;
	resize: none;
	max-height: 120px;
	padding: 6px 8px;
	font: inherit;
	outline: none
	
}
.inputbox ipunt {
	flex: 1;
	border: 0;
	resize: none;
	max-height: 120px;
	padding: 6px 8px;
	font: inherit;
	outline: none
	
}
.icon-btn {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 8px;
	border-radius: 10px
}

.icon-btn:hover {
	background: #f3f4f6
}

.send {
	background: var(--brand-600);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 10px 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px
}

/* Footer brand */
.chat__footerbrand {
	padding: 8px 14px;
	font-size: .78rem;
	color: var(--muted);
	text-align: center;
	border-top: 1px dashed #e5e7eb
}

.chat__footerbrand a {
	color: var(--brand-600);
	text-decoration: none;
	font-weight: 700
}

.chat__body::-webkit-scrollbar {
	width: 10px
}

.chat__body::-webkit-scrollbar-thumb {
	background: #d5d8ff;
	border-radius: 999px
}

@media (max-width:480px) {
	.chat {
		right: 12px;
		left: 12px;
		width: auto;
		height: 70vh;
		bottom: 84px
	}
}
/* Efeito digitando...ADICIONADO */
.typing {
display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px;
background: var(--brand-100); border-radius: 14px; border: 1px solid rgba(50,67,197,.14);
color: var(--muted); font-size: .9rem;
}
.typing span {
width: 6px; height: 6px; background: var(--brand-600); border-radius: 50%;
display: inline-block; animation: blink 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }
.meta-container {
	font-size: 0.8em;
	color: gray;
}
.meta-container button {
	cursor: pointer;
	background: none;
	border: none;
	font-size: 1.5em;
	padding: 0;
}