/***************************************************************
	Chatbot Style
***************************************************************/

@charset "UTF-8";

/*--------------------------------------------------------------
# Fonts & Colors Variables
--------------------------------------------------------------*/
@font-face {
	font-family: 'Oswald Light';
	src: url('../fonts/Oswald-Light.ttf') format('truetype');
}

@font-face {
	font-family: 'Oswald';
	src: url('../fonts/Oswald-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Roboto Condensed';
	src: url('../fonts/Roboto_Condensed-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Roboto Light';
	src: url('../fonts/Roboto-ExtraLight.ttf') format('truetype');
}

@font-face {
	font-family: 'Roboto';
	src: url('../fonts/Roboto-Regular.ttf') format('truetype');
}

* { 
	font-family: 'Roboto'; 
}

/* 
Chatbot - Estilo do Botao Fixo 
*/
#chatButton {
	position: fixed; 
	background-color: royalblue;
	bottom: 0px;
	right: 20px;
	z-index: 9999;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	color: white;
	padding: 0;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

#chatButton p i {
	display: block;
	float: none;
	font-size: 36px;
	text-align: center;
	margin: 8px 0 0 0;
	padding: 0;
}
        
#chatButton .fa .fa-comments-o {
	color: white;
}
        
#chatButton:hover {
	transform: scale(1.1);
	background-color: rgba(65, 105, 225, .85); /*Cor Royalblue*/
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
        
#chatButton .fa-comments-o:hover {
	color: white;
} 

#chatButton.pulse {
	animation: pulse 2s infinite;
}
        
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
	70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
	100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
} 

#closeChat { display:block; float:right; background-color:transparent; color:white; border:0; margin:5px 15px 0 0; padding:0; }
.fa-close { font-size:30px; font-weight:600; color:#ffffff; border:0; margin:0 0 0 20px; padding:0; }
.fa-comments-o { display:block; float:none; color:white; text-align:center; margin-left:5px; padding:0;}

/* 
Chatbot - Content 
*/
#chatContainer {
	display: none;
	position: fixed;
	width: 400px;
	height: auto; 
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 1em;
	font-weight: 300;	
	line-height: 1.3em;		
	bottom: 20px;
	right: 20px;	
	padding: 0;	
	z-index: 99999;
}

.chat-container {
	display: flex;
	flex-direction: column;
	float: none;	
	background-color: #fff;
	height: 600px; 		
	border: 1.7px solid royalblue;
	border-radius: 10px;
	box-shadow: 0 7px 12px rgba(0, 0, 0, 0.4);  	
	overflow: hidden;	
	margin:0 auto;
	padding: 0;
	z-index: 99999;
}

.chat-header {	
	line-height: 1.2;
	display: inline-block;
	vertical-align: middle;
	background: royalblue; 
	font-size: 1.2em;
	font-weight: 400; 
	color: white;
	text-align: center; 
	padding: 10px 5px 3px 0;
}

.chat-header img {
	position: relative;
	margin-bottom: 7px; 	
	margin-right: 10px; /* Espaço entre a imagem e o texto */	
	padding: 0;
}

.chatbox {
	flex: 1;
	font-family: 'Roboto', Arial, sans-serif;	
	font-size: 1em;	
	font-weight: 400;
	line-height: 1.4;
	padding: 15px;
	overflow-y: auto;
}

.message {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: flex-start;
}

.message br {
  display: block;
  content: ""; /* Limpa a altura padrão (que é mínima) */
  margin: 0px; /* Adiciona margem acima e abaixo do br */
  padding: 0;
}

.user-box {
	display: inline;	
	float: right;
	background: royalblue;		
	width: 75%;
	height: auto;	
	font-size: 1em;
	line-height: 1.6;			
	color: #fff;
	align-self: flex-end;
	margin-bottom: 15px;
	border-radius: 7px;
	padding: 10px;
}

.bot-box {
	display: inline;	
	float: none;
	background: #Fffdd0;
	width: 100%;
	height: auto;	
	font-size: 1em;	
	line-height: 1.6;						
	color: #000;
	align-self: flex-end;
	margin-bottom: 15px;
	border-radius: 7px;	
	padding: 10px;
}

.avatar-bot img {
	display: inline;
	float: left;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
}

.avatar-user img {
	display: inline;
	float: right;
	width: 42px;
	height: 42px;
	margin-left: 7px;
	padding: 0;
}

.circulo-bot img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	float: left;
	margin: 0 10px 0 0;
	padding: 0;
	transition: 0.3s ease;
}

.circulo-user img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	float: right;
	margin: 0 0 0 10px;
	padding: 0;
	transition: 0.3s ease;
}

/* 
Chatbot - Footer/Input 
*/
.chat-input {
	background: #ddd;       	
	display: flex;
	font-family: 'Roboto', Arial, sans-serif;	
	font-size: 1em;			
	font-weight: 400;		
	color: #000;
	line-height: 1.4em; 
	margin: 0;	
	padding: 10px 5px 10px 10px;
}

.chat-input input { 
	display: block; 
	float: left; 
	width: 320px; 
	flex: 1; 
	border: 1px solid #000; 
	border-radius: 7px; 
	margin-right: 10px; 
	padding: 10px; 
	outline: none;
}

.chat-input .submit-btn {
	display: inline-block;
	float: right;
	width: 40px;
	height: 38px;
	background-color: transparent;
	color: royalblue;
	border: none;
	margin: 3.6px 0 0 5px;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.chat-input .submit-btn:hover {
	color: rgba(0, 0, 0, .3);
}

.chat-input .fa-telegram {
	font-size: 38px;
}

/* 
Chatbot - Loading 
*/
.loading {
	text-align: center;
	margin-top: 10px;	
	margin-bottom: -35px;
	padding: 0;
	z-index: 100;	
}

.hidden {
	display: none;
}

.loading .fa-circle {
	display: block;
	font-size: .65em;
	margin-right: 5px;
	color: royalblue;
}

.loading .fa-circle {
	display: inline-block;
	border-radius: 50%;
	animation: bounce 0.6s infinite alternate;
}

.loading .fa-circle:nth-child(2) {
	animation-delay: 0.2s;
}

.loading .fa-circle:nth-child(3) {
            animation-delay: 0.4s;
        }
	@keyframes bounce {
		to {
			transform: translateY(-7px);          
		}
	}
} 


/***************************************************************
	Media Queries - Chatbot
***************************************************************/

@media (max-width:992px) {

}

@media (max-width:420px) {
	
	#chatContainer {
		width: 340px;
		font-size: 16px;
	}	
		
	.chat-container {
		height: 600px; 
		margin: 0;	
	}
	
	.chat-header {	
		font-size: 1em;
  		padding: 10px 0 3px 0;
	}	
	
	.chat-input input { 
		max-width: 260px; 
	}		

}
