/* =========================================================================
   ASSISTENTE GIGANTE - DISTRITO 4521
   PALETA OFICIAL: CRANBERRY (#D91B5C) | ROTARY GOLD (#F7A81B)

   IMPORTANTE: Todo o CSS está isolado dentro de #simba-chat-widget para
   NÃO afetar o restante do site WordPress (tema, plugins, etc).
   ========================================================================= */

/* box-sizing aplicado SOMENTE aos elementos do chat (não vaza pro site) */
#simba-chat-widget,
#simba-chat-widget *,
#simba-chat-widget *::before,
#simba-chat-widget *::after {
	box-sizing: border-box;
}

#simba-chat-widget {
	font-family: 'Montserrat', sans-serif;
	color: #333333;
	line-height: 1.4;
}

/* 1. ÍCONE FLUTUANTE */
#simba-chat-widget #simba-chat-icon {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 65px;
	height: 65px;
	margin: 0;
	background-color: #D91B5C; /* Cranberry */
	border: 3px solid #F7A81B; /* Rotary Gold */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
	z-index: 99999;
}

#simba-chat-widget #simba-chat-icon:hover {
	transform: scale(1.08);
}

/* 2. CAIXA CONTAINER DO CHAT */
#simba-chat-widget #simba-chat-container {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 360px;
	height: 520px;
	max-height: calc(100vh - 50px);
	max-width: calc(100vw - 30px);
	background-color: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	z-index: 99999;
}

/* Cabeçalho */
#simba-chat-widget .simba-chat-header {
	background-color: #D91B5C; /* Cranberry */
	color: #ffffff;
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 3px solid #F7A81B; /* Gold */
}

#simba-chat-widget .simba-chat-header-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

#simba-chat-widget .simba-chat-avatar {
	font-size: 24px;
	line-height: 1;
}

#simba-chat-widget .simba-chat-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	color: #ffffff;
}

#simba-chat-widget .simba-chat-subtitle {
	font-size: 11px;
	opacity: 0.9;
}

#simba-chat-widget #simba-close-chat {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin: 0;
}

/* 3. HISTÓRICO DE MENSAGENS (WHATSAPP STYLE) */
#simba-chat-widget #simba-chat-messages {
	flex: 1;
	padding: 15px;
	overflow-y: auto;
	background-color: #f9f9f9;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Bolhas de texto */
#simba-chat-widget .message {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.4;
	word-wrap: break-word;
	margin: 0;
}

/* Mensagens do Usuário (Direita - Gold) */
#simba-chat-widget .message.user {
	align-self: flex-end;
	background-color: #F7A81B; /* Rotary Gold */
	color: #ffffff;
	border-bottom-right-radius: 2px;
}

/* Mensagens do Gigante (Esquerda - Branca com borda Cranberry) */
#simba-chat-widget .message.assistant {
	align-self: flex-start;
	background-color: #ffffff;
	color: #333333;
	border-bottom-left-radius: 2px;
	border-left: 3px solid #D91B5C; /* Detalhe Cranberry */
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Indicador de Digitação */
#simba-chat-widget .message.typing {
	font-style: italic;
	background-color: transparent;
	color: #777777;
	border: none;
	box-shadow: none;
}

/* 4. BOTÕES DE ATALHO (CHIPS/TAGS) */
#simba-chat-widget .shortcut-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0;
	align-self: flex-start;
	max-width: 90%;
}

#simba-chat-widget .shortcut-btn {
	background-color: #ffffff;
	color: #D91B5C; /* Texto em Cranberry */
	border: 1px solid #D91B5C;
	padding: 6px 12px;
	border-radius: 20px;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 700;
	margin: 0;
	width: auto;
}

#simba-chat-widget .shortcut-btn:hover {
	background-color: #D91B5C;
	color: #ffffff;
}

/* 5. INPUT RODAPÉ */
#simba-chat-widget .simba-chat-input-area {
	padding: 12px;
	background-color: #ffffff;
	border-top: 1px solid #ededed;
	display: flex;
	gap: 8px;
}

#simba-chat-widget #simba-user-input {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid #d1d5db;
	border-radius: 24px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13.5px;
	outline: none;
	margin: 0;
	background: #ffffff;
	color: #333333;
	width: auto;
}

#simba-chat-widget #simba-user-input:focus {
	border-color: #D91B5C;
}

#simba-chat-widget #simba-send-btn {
	background-color: #D91B5C; /* Cranberry */
	color: #ffffff;
	border: none;
	padding: 0 16px;
	border-radius: 24px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	margin: 0;
	width: auto;
}

/* 6. LINKS CLICÁVEIS DENTRO DO CHAT */
#simba-chat-widget .message a {
	color: #D91B5C; /* Cranberry */
	text-decoration: none;
	font-weight: 700;
}

#simba-chat-widget .message a:hover {
	text-decoration: underline;
}

#simba-chat-widget .message.user a {
	color: #ffffff;
}

/* 7. RESPONSIVO (telas pequenas / celular) */
@media (max-width: 420px) {
	#simba-chat-widget #simba-chat-container {
		width: calc(100vw - 20px);
		right: 10px;
		bottom: 10px;
	}
	#simba-chat-widget #simba-chat-icon {
		right: 18px;
		bottom: 18px;
	}
}
