@charset "UTF-8";

@font-face {
	font-family: "Sistema";
	src: url("../_sources/_fonts/_Quicksand/Quicksand-Bold.ttf");
}

@font-face {
	font-family: "Normal";
	src: url("../_sources/_fonts/_Inconsolata/Inconsolata-Regular.ttf");
}

@font-face {
	font-family: "Botao";
	src: url("../_sources/_fonts/_Inconsolata/Inconsolata-Bold.ttf");
}

:root {
	--azul: #2682d0;
	--azul-claro: #00bfff;
	--azul-escuro: #104e8b;
	--escuro: #222;
	--cinza: #e5e5e5;
	--cinza-texto: #626b73;
	--branco: #fff;
	--verde: #15965f;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	background: #e5e5e5 url("../_sources/bgLogin.jpg") center / cover fixed;
	color: var(--escuro);
	font-family: "Normal", Arial, sans-serif;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

.cabecalho-chat,
.cabecalho-portal-chat {
	min-height: 92px;
	padding: 14px 28px;
	background: var(--escuro);
	border-bottom: 2px solid var(--azul);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.cabecalho-portal-chat {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.marca-chat,
.marca-portal {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.marca-chat h1,
.marca-portal h1 {
	margin: 0;
	font-family: "Sistema", Arial, sans-serif;
	font-size: clamp(20px, 2.2vw, 30px);
}

.marca-chat h1 {
	color: #fff;
}

.marca-portal h1 {
	color: var(--azul);
}

.marca-chat p,
.marca-portal p {
	margin: 3px 0 0;
	color: #9fa9b2;
	font-size: 14px;
}

.marca-portal p {
	color: var(--cinza-texto);
}

.botao-voltar-chat {
	min-height: 38px;
	padding: 7px 12px;
	border-radius: 6px;
	background: #333;
	color: #fff;
	font-family: "Botao", Arial, sans-serif;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	white-space: nowrap;
}

.botao-voltar-chat:hover {
	background: #000022;
	color: var(--azul-claro);
}

.estrutura-chat {
	width: min(1450px, calc(100% - 30px));
	height: calc(100vh - 152px);
	min-height: 570px;
	margin: 18px auto;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
	display: grid;
	grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
	overflow: hidden;
}

.painel-conversas {
	background: #f4f6f8;
	border-right: 1px solid #d8dfe5;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.titulo-painel {
	padding: 20px 18px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.titulo-painel h2,
.topo-conversa h2,
.conteudo-resumo-imovel h2 {
	margin: 0;
	font-family: "Sistema", Arial, sans-serif;
}

.titulo-painel h2 {
	color: var(--azul-escuro);
	font-size: 22px;
}

.titulo-painel div > span {
	color: var(--cinza-texto);
	font-size: 13px;
}

.total-nao-lidas {
	min-width: 28px;
	height: 28px;
	padding: 4px;
	border-radius: 50%;
	background: var(--azul);
	color: #fff;
	font-family: "Botao", Arial, sans-serif;
	text-align: center;
	line-height: 20px;
}

.pesquisa-conversa {
	padding: 0 14px 14px;
}

.pesquisa-conversa span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.pesquisa-conversa input {
	width: 100%;
	height: 40px;
	padding: 8px 12px;
	border: 1px solid #c8d2da;
	border-radius: 20px;
	outline: none;
	background: #fff;
	color: #333;
}

.pesquisa-conversa input:focus {
	border-color: var(--azul);
	box-shadow: 0 0 0 2px rgba(38, 130, 208, 0.15);
}

.lista-conversas {
	padding: 0 8px 12px;
	overflow-y: auto;
}

.item-conversa {
	width: 100%;
	min-height: 82px;
	margin: 0 0 6px;
	padding: 10px;
	border: 0;
	border-left: 4px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: #333;
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	text-align: left;
	cursor: pointer;
}

.item-conversa:hover {
	background: #e8edf1;
}

.item-conversa.ativo {
	border-left-color: var(--azul);
	background: #dcecf9;
}

.item-conversa > img,
.pessoa-conversa > img {
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--azul);
	object-fit: cover;
}

.dados-conversa {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.dados-conversa strong {
	font-family: "Sistema", Arial, sans-serif;
	font-size: 14px;
}

.dados-conversa small {
	color: var(--azul-escuro);
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dados-conversa > span {
	color: var(--cinza-texto);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.meta-conversa {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
}

.meta-conversa time {
	color: #75808a;
	font-size: 10px;
}

.meta-conversa small {
	min-width: 20px;
	height: 20px;
	padding: 2px 5px;
	border-radius: 10px;
	background: var(--azul);
	color: #fff;
	text-align: center;
}

.painel-chat {
	min-width: 0;
	background: #eef2f4;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
}

.topo-conversa {
	min-height: 76px;
	padding: 12px 18px;
	background: #fff;
	border-bottom: 1px solid #d6dde3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.acoes-topo-conversa {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-left: auto;
}

.acao-circular-chat {
	width: 46px;
	height: 46px;
	padding: 5px;
	border: 3px solid var(--azul);
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.acao-circular-chat:hover:not(:disabled) {
	transform: translateY(-2px);
}

.acao-circular-chat:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pessoa-conversa {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pessoa-conversa h2 {
	color: #333;
	font-size: 18px;
}

.pessoa-conversa span,
.imovel-conversa span {
	color: var(--cinza-texto);
	font-size: 12px;
}

.imovel-conversa {
	max-width: 46%;
	padding-left: 18px;
	border-left: 2px solid var(--azul);
	display: grid;
	gap: 3px;
}

.modal-chat[hidden] {
	display: none;
}

.modal-chat {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 20px;
}

.fundo-modal-chat {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.conteudo-modal-chat {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.conteudo-modal-chat > header {
	min-height: 76px;
	padding: 16px 22px;
	border-bottom: 2px solid var(--azul);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.conteudo-modal-chat > header h2 {
	margin: 0;
	color: var(--azul);
	font-family: "Sistema", Arial, sans-serif;
	font-size: 27px;
	text-align: center;
}

.fechar-modal-chat {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 38px;
	height: 38px;
	padding: 0 0 4px;
	border: 0;
	border-radius: 6px;
	background: #f10f0f;
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 32px;
	font-weight: bold;
	line-height: 34px;
	cursor: pointer;
}

.conteudo-modal-chat form {
	padding: 22px;
}

.resumo-interessado-modal,
.campos-modal-chat {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.resumo-interessado-modal {
	grid-template-columns: 1.2fr 1.2fr 0.8fr;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #d9dfe4;
}

.resumo-interessado-modal label,
.campos-modal-chat label {
	min-width: 0;
	color: var(--azul);
	font-family: "Sistema", Arial, sans-serif;
	font-size: 12px;
	display: grid;
	gap: 5px;
}

.resumo-interessado-modal input,
.campos-modal-chat input,
.campos-modal-chat select {
	width: 100%;
	height: 42px;
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid var(--azul);
	border-radius: 0;
	outline: none;
	background: #fff;
	color: #4d4d4d;
	font-family: "Normal", Arial, sans-serif;
	font-size: 16px;
}

.resumo-interessado-modal input[readonly] {
	background: #f5f7f8;
	color: #626b73;
}

.campos-modal-chat input:focus,
.campos-modal-chat select:focus {
	border-bottom-width: 2px;
	box-shadow: 0 2px 0 rgba(38, 130, 208, 0.12);
}

.campos-compromisso-chat {
	grid-template-columns: minmax(0, 1fr) 150px 180px;
}

.campos-compromisso-chat label:first-child {
	grid-column: auto;
}

.botoes-modal-chat {
	margin-top: 25px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.botoes-modal-chat button {
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 6px;
	font-family: "Botao", Arial, sans-serif;
	cursor: pointer;
}

.botao-modal-secundario {
	border: 0;
	background: #292929;
	color: #fff;
}

.botao-modal-principal {
	border: 2px solid var(--azul);
	background: #fff;
	color: var(--azul-escuro);
}

.botao-modal-principal:hover {
	background: var(--azul);
	color: #fff;
}

.imovel-conversa strong {
	color: var(--azul-escuro);
	font-family: "Sistema", Arial, sans-serif;
	font-size: 13px;
	text-align: right;
}

.mensagens {
	padding: 22px clamp(18px, 4vw, 60px);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.separador-data {
	margin: 2px 0 8px;
	text-align: center;
}

.separador-data span {
	padding: 5px 11px;
	border-radius: 12px;
	background: #dce3e8;
	color: #59636c;
	font-size: 11px;
}

.mensagem {
	max-width: min(76%, 650px);
	padding: 9px 12px 6px;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
}

.mensagem p {
	margin: 0 0 3px;
	font-size: 14px;
	line-height: 1.35;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.mensagem time {
	display: block;
	font-size: 10px;
	text-align: right;
	opacity: 0.68;
}

.mensagem.recebida {
	align-self: flex-start;
	border-bottom-left-radius: 3px;
	background: #fff;
	color: #333;
}

.mensagem.enviada {
	align-self: flex-end;
	border-bottom-right-radius: 3px;
	background: #77c2f8;
	color: #07375e;
}

.estado-vazio-chat {
	margin: auto;
	padding: 14px 18px;
	border: 1px dashed #b8c6d1;
	border-radius: 10px;
	color: #59636c;
	background: rgba(255, 255, 255, 0.65);
	text-align: center;
}

.compositor-mensagem {
	padding: 12px 16px 16px;
	background: #fff;
	border-top: 1px solid #d6dde3;
}

.compositor-mensagem > label {
	display: block;
	margin-bottom: 5px;
	color: var(--cinza-texto);
	font-size: 11px;
}

.compositor-mensagem > div {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.compositor-mensagem textarea {
	flex: 1;
	min-height: 46px;
	max-height: 120px;
	padding: 10px 12px;
	border: 1px solid #bec9d1;
	border-radius: 9px;
	outline: none;
	resize: vertical;
	color: #333;
}

.compositor-mensagem textarea:focus {
	border-color: var(--azul);
	box-shadow: 0 0 0 2px rgba(38, 130, 208, 0.15);
}

.compositor-mensagem button {
	min-width: 104px;
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: var(--azul);
	color: #fff;
	font-family: "Botao", Arial, sans-serif;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	cursor: pointer;
}

.compositor-mensagem button:hover {
	background: var(--azul-escuro);
}

.rodape-chat {
	min-height: 42px;
	padding: 8px 20px;
	background: var(--escuro);
	border-top: 2px solid var(--azul);
	color: #fff;
	font-family: "Sistema", Arial, sans-serif;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* Chat público */

.estrutura-chat-publico {
	width: min(1180px, calc(100% - 30px));
	min-height: calc(100vh - 132px);
	margin: 20px auto;
	display: grid;
	grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
	align-items: start;
	gap: 18px;
}

.resumo-imovel-chat,
.painel-chat-publico {
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.17);
	overflow: hidden;
}

.foto-imovel-chat {
	width: 100%;
	height: 210px;
	object-fit: cover;
	background: #dbe2e7;
}

.conteudo-resumo-imovel {
	padding: 18px;
}

.codigo-imovel {
	color: var(--azul);
	font-family: "Botao", Arial, sans-serif;
	font-size: 12px;
}

.conteudo-resumo-imovel h2 {
	margin-top: 6px;
	color: #333;
	font-size: 21px;
}

.valor-imovel-chat {
	display: block;
	margin-top: 12px;
	color: #c71585;
	font-family: "Sistema", Arial, sans-serif;
	font-size: 23px;
}

.conteudo-resumo-imovel > p {
	margin: 4px 0 17px;
	color: var(--cinza-texto);
}

.anunciante-chat {
	padding-top: 14px;
	border-top: 1px solid #dfe4e8;
	display: flex;
	align-items: center;
	gap: 10px;
}

.anunciante-chat img {
	border-radius: 50%;
	border: 2px solid var(--azul);
}

.anunciante-chat div {
	display: grid;
	gap: 2px;
}

.anunciante-chat span,
.anunciante-chat small {
	color: var(--cinza-texto);
	font-size: 11px;
}

.anunciante-chat strong {
	color: #333;
	font-family: "Sistema", Arial, sans-serif;
	font-size: 13px;
}

.painel-chat-publico {
	min-height: 680px;
	grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
}

.dados-interessado {
	padding: 14px 18px;
	background: #f7f9fa;
	border-bottom: 1px solid #d6dde3;
}

.dados-interessado h3 {
	margin: 0 0 9px;
	color: var(--azul-escuro);
	font-family: "Sistema", Arial, sans-serif;
	font-size: 15px;
}

.campos-interessado {
	display: grid;
	grid-template-columns: 1.2fr 1.2fr 1fr;
	gap: 9px;
}

.campos-interessado label {
	display: grid;
	gap: 3px;
	color: var(--cinza-texto);
	font-size: 11px;
}

.campos-interessado input {
	width: 100%;
	height: 36px;
	padding: 7px 9px;
	border: 1px solid #bec9d1;
	border-radius: 6px;
	outline: none;
	background: #fff;
	color: #333;
}

.campos-interessado select {
	width: 100%;
	height: 36px;
	padding: 7px 9px;
	border: 1px solid #bec9d1;
	border-radius: 6px;
	outline: none;
	background: #fff;
	color: #333;
}

.campos-interessado input:focus {
	border-color: var(--azul);
	box-shadow: 0 0 0 2px rgba(38, 130, 208, 0.13);
}

.campos-interessado select:focus {
	border-color: var(--azul);
	box-shadow: 0 0 0 2px rgba(38, 130, 208, 0.13);
}

.campos-interessado-geral {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-geral .foto-imovel-chat {
	padding: 58px;
	object-fit: contain;
	background: linear-gradient(135deg, #eef7ff, #fff);
}

.mensagens-publico {
	min-height: 210px;
}

.aviso-privacidade {
	margin: 0;
	padding: 0 16px 12px;
	background: #fff;
	color: var(--cinza-texto);
	font-size: 10px;
	text-align: center;
}

@media (max-width: 850px) {
	.estrutura-chat {
		height: auto;
		min-height: 0;
		grid-template-columns: 1fr;
	}

	.painel-conversas {
		max-height: 330px;
		border-right: 0;
		border-bottom: 1px solid #d8dfe5;
	}

	.painel-chat {
		min-height: 610px;
	}

	.estrutura-chat-publico {
		grid-template-columns: 1fr;
	}

	.resumo-imovel-chat {
		display: grid;
		grid-template-columns: minmax(180px, 34%) 1fr;
	}

	.foto-imovel-chat {
		height: 100%;
		min-height: 250px;
	}
}

@media (max-width: 600px) {
	.cabecalho-chat,
	.cabecalho-portal-chat {
		padding: 11px 14px;
	}

	.marca-chat p,
	.marca-portal p {
		display: none;
	}

	.marca-chat img,
	.marca-portal img {
		width: 46px;
		height: 46px;
	}

	.botao-voltar-chat {
		font-size: 0;
	}

	.estrutura-chat,
	.estrutura-chat-publico {
		width: 100%;
		margin: 0;
		border-radius: 0;
	}

	.topo-conversa {
		align-items: flex-start;
		flex-direction: column;
	}

	.acoes-topo-conversa {
		width: 100%;
		margin-left: 0;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.imovel-conversa {
		max-width: 100%;
		padding: 7px 0 0;
		border-top: 1px solid #d6dde3;
		border-left: 0;
	}

	.imovel-conversa strong {
		text-align: left;
	}

	.mensagem {
		max-width: 88%;
	}

	.compositor-mensagem button {
		min-width: 52px;
		padding: 8px;
		font-size: 0;
	}

	.resumo-imovel-chat {
		display: block;
		border-radius: 0;
	}

	.foto-imovel-chat {
		height: 190px;
		min-height: 0;
	}

	.painel-chat-publico {
		border-radius: 0;
	}

	.campos-interessado {
		grid-template-columns: 1fr;
	}

	.resumo-interessado-modal,
	.campos-modal-chat,
	.campos-compromisso-chat {
		grid-template-columns: 1fr;
	}

	.conteudo-modal-chat > header {
		justify-content: flex-start;
		padding-right: 64px;
	}

	.conteudo-modal-chat > header h2 {
		font-size: 21px;
		text-align: left;
	}
}
