	/* Estilos base */
	body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', sans-serif;
	background-color: #f5f5f5;
	height: 100%;
	overflow: hidden;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	}
	#chat-container {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
	height: 100vh;
	max-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #f0f0f0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	border-radius: 8px;
	overflow: hidden;
	z-index: 1000;
	}
	/* Header */
	#header {
	background-color: #075E54;
	color: white;
	padding: 10px 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	}
	.user-profile {
	display: flex;
	align-items: center;
	}
	.user-profile img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 10px;
	object-fit: cover;
	}
	.user-info .name {
	font-weight: 600;
	font-size: 17px;
	}
	.user-info .status {
	font-size: 13px;
	font-weight: 400;
	}
	/* Indicador de digitação na área de mensagens */
	.typing-message {
	display: flex;
	margin-bottom: 10px;
	justify-content: flex-start;
	}
	.typing-message .message {
	background-color: #FFFFFF;
	box-shadow: 0 1px 1px rgba(0,0,0,0.05);
	}
	.typing-message .message-content-wrapper {
	display: flex;
	flex-direction: column;
	}
	.typing-message .message-content {
	display: flex;
	align-items: center;
	font-style: italic;
	color: #888;
	padding: 8px 12px;
	}
	.typing-dots {
	display: inline-flex;
	align-items: center;
	}
	.typing-dot {
	width: 6px;
	height: 6px;
	margin: 0 2px;
	border-radius: 50%;
	background-color: #888;
	animation: typing 1.1s infinite;
	}
	.typing-dot:nth-child(2) {
	animation-delay: 0.2s;
	}
	.typing-dot:nth-child(3) {
	animation-delay: 0.4s;
	}
	@keyframes typing {
	0%, 60%, 100% {
	transform: translateY(0);
	opacity: 0.7;
	}
	30% {
	transform: translateY(-5px);
	opacity: 1;
	}
	}
	#header-icons {
	display: flex;
	align-items: center;
	gap: 20px;
	}
	#header-icons .mdi {
	font-size: 24px;
	color: white;
	cursor: pointer;
	}
	/* Área de mensagens */
	#messages {
	flex: 1;
	padding: 10px 20px 150px;
	overflow-y: auto;
	background-size: contain;
	display: flex;
	flex-direction: column;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	}
	.message-group {
	display: flex;
	margin-bottom: 2px;
	align-items: flex-end;
	position: relative;
	}
	.user-message-group {
	justify-content: flex-end;
	}
	.bot-message-group {
	justify-content: flex-start;
	}
	.avatar {
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	object-fit: cover;
	margin-right: 8px;
	flex-shrink: 0;
	}
	.avatar-spacer {
	width: 38px;
	flex-shrink: 0;
	}
	.message {
	max-width: 85%;
	word-wrap: break-word;
	box-shadow: 0 1px 1px rgba(0,0,0,0.05);
	padding: 7px 10px;
	border-radius: 8px;
	position: relative;
	margin-bottom: 2px;
	}
	.bot-message {
	background-color: #FFFFFF;
	}
	.user-message {
	background-color: #DCF8C6;
	}
	.with-tail::before {
	content: '';
	position: absolute;
	bottom: 5px;
	left: -6px;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-right: 6px solid #FFFFFF;
	}
	.user-message-group .with-tail::before {
	left: auto;
	right: -6px;
	border-left: 6px solid #DCF8C6;
	border-right: none;
	}
	.message-content-wrapper {
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	}
	.message-content {
	line-height: 1.4;
	font-size:16px;
	padding-right: 15px;
	}
	/* Timestamp dentro do box da mensagem */
	.message-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-top: 3px;
	user-select: none;
	}
	.timestamp {
	font-size: 11px;
	color: #888;
	}
	.read-receipt {
	font-size: 16px;
	color: #53bdeb;
	margin-left: 4px;
	}
	.message-media {
	padding: 0;
	background-color: white;
	box-shadow: none;
	padding: 5px;
	position: relative;
	}
	.message-media video, .message-media img {
	max-width: 100%;
	border-radius: 8px;
	display: block;
	}
	/* Otimização para imagens e vídeos */
	.message-media img {
	object-fit: cover;
	height: auto;
	width: 100%;
	}
	.message-media video {
	object-fit: cover;
	background-color: #000;
	width: 100%;
	height: auto;
	}
	.media-meta-container {
	position: absolute;
	bottom: 5px;
	right: 8px;
	background-color: rgba(0, 0, 0, 0.4);
	border-radius: 10px;
	padding: 2px 6px;
	}
	/* Player de áudio otimizado com barra de progresso */
	.audio-player {
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: #f0f0f0;
	padding: 8px 10px;
	border-radius: 20px;
	max-width: none;
	min-width: 0;
	flex: 1;
	overflow: hidden;
	}
	.audio-message {
	width: 100% !important;
	max-width: 85% !important;
	padding: 5px 8px !important;
	}
	.play-button {
	background-color: #128C7E;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	cursor: pointer;
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	transition: background-color 0.2s;
	}
	.play-button:hover {
	background-color: #0e7a69;
	}
	.play-button .mdi {
	font-size: 20px;
	}
	.time-display {
	font-size: 14px;
	color: #333;
	font-weight: 500;
	min-width: 45px;
	text-align: center;
	flex-shrink: 0;
	}
	/* Barra de progresso do áudio */
	.audio-progress-container {
	flex-grow: 1;
	min-width: 60px;
	height: 4px;
	background-color: #e0e0e0;
	border-radius: 2px;
	position: relative;
	cursor: pointer;
	}
	.audio-progress {
	height: 100%;
	background-color: #128C7E;
	border-radius: 2px;
	width: 0%;
	position: relative;
	}
	.audio-scrubber {
	position: absolute;
	top: 50%;
	right: -6px;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #128C7E;
	cursor: pointer;
	}
	/* Botões de escolha com estilo de botão */
	.choice-button-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 15px;
	align-items:center;
	margin-bottom: 15px;
	width: 90%;
	padding: 0 10px;
	}
	.choice-button {
	background-color: #128C7E;
	color: white;
	border: none;
	padding: 14px 20px;
	border-radius: 25px;
	font-weight: 600;
	font-size: 15px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(18, 140, 126, 0.2);
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	}
	.choice-button:hover {
	background-color: #0e7a69;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(18, 140, 126, 0.3);
	}
	.choice-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(18, 140, 126, 0.2);
	}
	.choice-button.secondary {
	background-color: #f0f0f0;
	color: #333;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	}
	.choice-button.secondary:hover {
	background-color: #e0e0e0;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
	}
	/* Botões de foto - Melhorados para mobile */
	.photo-choice-button-container {
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-top: 15px;
	align-items: center;
	margin-bottom: 15px;
	width: 90%;
	padding: 0 10px;
	}
	.photo-choice-button {
	background-color: #128C7E;
	color: white;
	border: none;
	padding: 12px 16px;
	border-radius: 25px;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(18, 140, 126, 0.2);
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 70px;
	}
	.photo-choice-button:hover {
	background-color: #0e7a69;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(18, 140, 126, 0.3);
	}
	.photo-choice-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(18, 140, 126, 0.2);
	}
	.photo-choice-button.secondary {
	background-color: #f0f0f0;
	color: #333;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	}
	.photo-choice-button.secondary:hover {
	background-color: #e0e0e0;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
	}
	.photo-choice-button .mdi {
	font-size: 24px;
	margin-bottom: 5px;
	}
	.photo-choice-button .button-text {
	font-size: 13px;
	}
	.pix-container {
	background-color: #f0f0f0;
	border-radius: 8px;
	padding: 10px;
	margin-top: 5px;
	}
	.pix-code {
	font-family: 'Courier New', Courier, monospace;
	font-size: 14px;
	word-break: break-all;
	margin-bottom: 10px;
	background-color: #fff;
	padding: 8px;
	border-radius: 4px;
	border: 1px solid #ddd;
	}
	.copy-pix-button {
	display: block;
	width: 100%;
	background-color: #25D366;
	color: white !important;
	text-align: center;
	padding: 10px;
	border-radius: 8px;
	font-weight: bold;
	text-decoration: none;
	font-size: 15px;
	cursor: pointer;
	border: none;
	}
	/* Botão de link */
	.link-button {
	display: inline-block;
	background-color: #128C7E;
	color: white;
	padding: 10px 16px;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 500;
	margin-top: 8px;
	text-align: center;
	width: fit-content;
	}
	.link-button:hover {
	background-color: #0e7a69;
	}
	#input-container {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
	padding: 10px;
	background-color: #f0f0f0;
	border-top: 1px solid #ddd;
	flex-shrink: 0;
	display: none;
	flex-direction: column;
	z-index: 1001;
	}
	#input-area {
	display: flex;
	flex-direction: row;
	background-color: #fff;
	padding: 5px 10px;
	border-radius: 25px;
	align-items: center;
	}
	#message-input {
	flex-grow: 1;
	border: none;
	font-size: 15px;
	background: transparent;
	outline: none;
	min-width: 0;
	}
	#send-button {
	background-color: #128C7E;
	color: white;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 22px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 10px;
	flex-shrink: 0;
	}
	.loading-indicator {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255,255,255,.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
	}
	@keyframes spin {
	to { transform: rotate(360deg); }
	}
	/* Mensagem de erro de áudio */
	.audio-error-message {
	background-color: #ffebee;
	color: #c62828;
	padding: 8px 12px;
	border-radius: 8px;
	margin-top: 5px;
	font-size: 13px;
	display: none;
	}
	/* Melhorar botão de play com estado de loading */
	.play-button.loading {
	background-color: #666;
	}
	/* Aviso de expiração do PIX */
	.pix-expiration-warning {
	background-color: #fff3cd;
	color: #856404;
	padding: 8px;
	border-radius: 4px;
	margin-top: 8px;
	font-size: 12px;
	text-align: center;
	}
	/* Responsividade */
	@media (max-width: 480px) {
	#chat-container {
	width: 100%;
	height: 100vh;
	max-height: 100vh;
	border-radius: 0;
	box-shadow: none;
	}
	#header {
	padding: 8px 12px;
	}
	.user-profile img {
	width: 35px;
	height: 35px;
	margin-right: 8px;
	}
	.user-info .name {
	font-size: 16px;
	}
	.user-info .status {
	font-size: 12px;
	}
	#header-icons .mdi {
	font-size: 22px;
	}
	#messages {
	padding: 8px 15px 150px;
	}
	.message {
	max-width: 75%;
	padding: 6px 8px;
	border-radius: 6px;
	}
	.message-content {
	font-size: 17px;
	padding-right: 10px;
	}
	.timestamp {
	font-size: 10px;
	}
	.choice-button {
	padding: 12px 16px;
	font-size: 14px;
	border-radius: 20px;
	}
	#input-container {
	width: 100%;
	max-width: 100%;
	padding: 8px;
	border-radius: 0;
	}
	#input-area {
	padding: 4px 8px;
	}
	#message-input {
	font-size: 14px;
	}
	#send-button {
	width: 40px;
	height: 40px;
	font-size: 20px;
	margin-left: 8px;
	}
	.pix-code {
	font-size: 12px;
	}
	.copy-pix-button {
	padding: 8px;
	font-size: 14px;
	}
	.play-button {
	width: 32px;
	height: 32px;
	font-size: 18px;
	}
	.time-display {
	font-size: 13px;
	min-width: 40px;
	}
	/* Melhorias para botões de foto em mobile */
	.photo-choice-button-container {
	gap: 8px;
	padding: 0 5px;
	}
	.photo-choice-button {
	padding: 10px 8px;
	min-height: 60px;
	border-radius: 20px;
	}
	.photo-choice-button .mdi {
	font-size: 20px;
	margin-bottom: 3px;
	}
	.photo-choice-button .button-text {
	font-size: 12px;
	}
	}
	/* Prevenir seleção acidental */
	* {
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	}
	/* Permitir seleção em inputs e mensagens */
	#message-input, .message-content, .choice-button, .pix-code {
	-webkit-user-select: text;
	-khtml-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
	}
