.fdcd-app {
	max-width: 750px;
	margin: 20px auto 40px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	height: 72vh;
	min-height: 480px;
	overflow: hidden;
}

.fdcd-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
.fdcd-header-icone { font-size: 26px; }
.fdcd-header h2 { font-size: 16px; margin: 0; font-weight: 800; }
.fdcd-header p { font-size: 12.5px; margin: 2px 0 0; color: #64748b; }

.fdcd-mensagens {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: #fafafa;
}

.fdcd-msg { max-width: 82%; display: flex; flex-direction: column; gap: 8px; }
.fdcd-msg--assistente { align-self: flex-start; }
.fdcd-msg--usuario { align-self: flex-end; align-items: flex-end; }

.fdcd-bolha {
	padding: 12px 15px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.55;
	white-space: pre-wrap;
}
.fdcd-msg--assistente .fdcd-bolha {
	background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; color: #1e293b;
}
.fdcd-msg--usuario .fdcd-bolha {
	background: #4f46e5; color: #fff; border-bottom-right-radius: 4px;
}
.fdcd-bolha a { color: inherit; text-decoration: underline; }
.fdcd-msg--assistente .fdcd-bolha a { color: #4f46e5; font-weight: 700; }

.fdcd-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }

.fdcd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fdcd-link-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: #4f46e5; color: #fff; text-decoration: none;
	font-weight: 700; font-size: 13px; border-radius: 8px;
	padding: 11px 18px; transition: background .15s;
}
.fdcd-link-btn:hover { background: #4338ca; color: #fff; }

.fdcd-opcao-btn {
	background: #fff; border: 1.5px solid #4f46e5; color: #4f46e5;
	font-weight: 700; font-size: 12.5px; border-radius: 999px;
	padding: 7px 16px; cursor: pointer; transition: all .15s;
}
.fdcd-opcao-btn:hover { background: #4f46e5; color: #fff; }
.fdcd-opcao-btn:disabled { opacity: .4; cursor: not-allowed; }

.fdcd-msg--sucesso .fdcd-bolha {
	background: #f0fdf4; border-color: #bbf7d0; color: #14532d;
}

.fdcd-digitando { display: flex; gap: 4px; padding: 4px 0; }
.fdcd-digitando span {
	width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
	animation: fdcd-pulsa 1.2s infinite ease-in-out;
}
.fdcd-digitando span:nth-child(2) { animation-delay: .15s; }
.fdcd-digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes fdcd-pulsa { 0%,60%,100% { opacity: .3; transform: scale(.8); } 30% { opacity: 1; transform: scale(1); } }

.fdcd-input-wrap {
	display: flex; align-items: flex-end; gap: 10px;
	padding: 14px 16px; border-top: 1px solid #e2e8f0; background: #fff;
}
.fdcd-input {
	flex: 1; resize: none; border: 1.5px solid #e2e8f0; border-radius: 10px;
	padding: 10px 14px; font-size: 13.5px; font-family: inherit; max-height: 120px;
	outline: none;
}
.fdcd-input:focus { border-color: #4f46e5; }
.fdcd-btn-enviar {
	background: #4f46e5; color: #fff; border: none; border-radius: 10px;
	width: 40px; height: 40px; flex-shrink: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.fdcd-btn-enviar:hover { background: #4338ca; }
.fdcd-btn-enviar:disabled { opacity: .5; cursor: not-allowed; }

/* Mobile: chat ocupa a tela quase toda, sem as margens de "cartão flutuante" */
@media (max-width: 600px) {
	.fdcd-app { margin: 0; border-radius: 0; height: 100vh; min-height: 100vh; border: none; }
}
