/* Vision Tech Clean - Orçamento no Chat
   Estética familiar de aplicativo de mensagem, com a marca da empresa. */

.vtc-wrap,
.vtc-wrap * {
	box-sizing: border-box;
}

.vtc-wrap {
	--vtc-cor: #0f7c66;
	--vtc-cor-escura: #0a5c4b;
	--vtc-bolha-cliente: #d6f5c6;
	--vtc-fundo: #e9e2da;
	--vtc-texto: #111b21;
	--vtc-suave: #667781;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

/* ---------- Botão flutuante ---------- */

.vtc-launcher {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--vtc-cor);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px 20px 13px 15px;
	cursor: pointer;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .26);
	font: inherit;
	font-weight: 600;
	transition: transform .18s ease, box-shadow .18s ease;
}

.vtc-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}

.vtc-launcher:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.vtc-launcher svg {
	width: 24px;
	height: 24px;
	flex: none;
}

.vtc-launcher-txt {
	white-space: nowrap;
}

.vtc-ping {
	position: absolute;
	top: -3px;
	right: -3px;
	width: 14px;
	height: 14px;
	background: #ff3b30;
	border: 2px solid #fff;
	border-radius: 50%;
}

.vtc-launcher-box {
	position: relative;
	display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
	.vtc-ping::after {
		content: "";
		position: absolute;
		inset: -2px;
		border-radius: 50%;
		background: #ff3b30;
		opacity: .55;
		animation: vtc-pulse 2.2s ease-out infinite;
	}
}

@keyframes vtc-pulse {
	0%   { transform: scale(1); opacity: .55; }
	70%  { transform: scale(2.4); opacity: 0; }
	100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Janela ---------- */

.vtc-panel {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 372px;
	max-width: calc(100vw - 40px);
	height: 600px;
	max-height: calc(100vh - 40px);
	background: var(--vtc-fundo);
	border-radius: 14px;
	overflow: hidden;
	display: none;
	flex-direction: column;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .34);
}

.vtc-wrap.vtc-aberto .vtc-panel {
	display: flex;
}

.vtc-wrap.vtc-aberto .vtc-launcher-box {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.vtc-wrap.vtc-aberto .vtc-panel {
		animation: vtc-subir .22s ease-out;
	}
}

@keyframes vtc-subir {
	from { transform: translateY(14px) scale(.98); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

/* ---------- Cabeçalho ---------- */

.vtc-head {
	background: var(--vtc-cor-escura);
	color: #fff;
	padding: 11px 12px;
	display: flex;
	align-items: center;
	gap: 11px;
	flex: none;
}

.vtc-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .5px;
	flex: none;
	overflow: hidden;
}

.vtc-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vtc-head-info {
	min-width: 0;
	flex: 1;
}

.vtc-nome {
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
	font-size: 15.5px;
	line-height: 1.2;
}

.vtc-nome span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vtc-selo {
	width: 17px;
	height: 17px;
	flex: none;
}

.vtc-status {
	font-size: 12.5px;
	opacity: .85;
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
}

.vtc-online.vtc-offline {
	background: #b9c2c7;
}

.vtc-online {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #6ee7a8;
	flex: none;
}

.vtc-fechar {
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	line-height: 0;
	opacity: .85;
}

.vtc-fechar:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.vtc-fechar:focus-visible { outline: 2px solid #fff; }
.vtc-fechar svg { width: 20px; height: 20px; }

/* ---------- Conversa ---------- */

.vtc-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 12px 8px;
	background-color: var(--vtc-fundo);
	background-image:
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .45) 0 2px, transparent 2px),
		radial-gradient(circle at 70% 65%, rgba(0, 0, 0, .035) 0 3px, transparent 3px),
		radial-gradient(circle at 45% 88%, rgba(0, 0, 0, .028) 0 2px, transparent 2px);
	background-size: 130px 130px, 170px 170px, 210px 210px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	scroll-behavior: smooth;
}

.vtc-aviso {
	align-self: center;
	background: rgba(255, 245, 200, .95);
	color: #5c5330;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 8px;
	text-align: center;
	max-width: 88%;
	margin-bottom: 4px;
}

.vtc-msg {
	max-width: 82%;
	padding: 7px 10px 6px;
	border-radius: 9px;
	position: relative;
	color: var(--vtc-texto);
	box-shadow: 0 1px 1px rgba(0, 0, 0, .13);
	white-space: pre-line;
	word-wrap: break-word;
}

.vtc-msg.vtc-deles {
	align-self: flex-start;
	background: #fff;
	border-top-left-radius: 2px;
}

.vtc-msg.vtc-meu {
	align-self: flex-end;
	background: var(--vtc-bolha-cliente);
	border-top-right-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.vtc-msg {
		animation: vtc-entra .2s ease-out;
	}
}

@keyframes vtc-entra {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

.vtc-hora {
	display: block;
	text-align: right;
	font-size: 10.5px;
	color: var(--vtc-suave);
	margin-top: 2px;
	font-variant-numeric: tabular-nums;
}

.vtc-hora svg {
	width: 15px;
	height: 15px;
	vertical-align: -3px;
	margin-left: 2px;
	color: #34b7f1;
}

/* Digitando */

.vtc-digitando {
	align-self: flex-start;
	background: #fff;
	border-radius: 9px;
	border-top-left-radius: 2px;
	padding: 11px 13px;
	display: flex;
	gap: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .13);
}

.vtc-digitando i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9aa5ab;
	display: block;
}

@media (prefers-reduced-motion: no-preference) {
	.vtc-digitando i { animation: vtc-bounce 1.25s infinite; }
	.vtc-digitando i:nth-child(2) { animation-delay: .18s; }
	.vtc-digitando i:nth-child(3) { animation-delay: .36s; }
}

@keyframes vtc-bounce {
	0%, 60%, 100% { transform: none; opacity: .5; }
	30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- Rodapé ---------- */

.vtc-foot {
	flex: none;
	background: #f2efe9;
	border-top: 1px solid rgba(0, 0, 0, .08);
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	max-height: 46%;
	overflow-y: auto;
}

.vtc-op {
	background: #fff;
	border: 1.5px solid var(--vtc-cor);
	color: var(--vtc-cor-escura);
	border-radius: 999px;
	padding: 9px 15px;
	cursor: pointer;
	font: inherit;
	font-size: 14.5px;
	font-weight: 500;
	text-align: left;
	transition: background .15s ease, color .15s ease;
}

.vtc-op:hover { background: var(--vtc-cor); color: #fff; }
.vtc-op:focus-visible { outline: 3px solid var(--vtc-cor); outline-offset: 2px; }

.vtc-linha {
	display: flex;
	gap: 8px;
	align-items: center;
}

.vtc-input {
	flex: 1;
	border: 1px solid rgba(0, 0, 0, .16);
	border-radius: 999px;
	padding: 11px 16px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	color: var(--vtc-texto);
	min-width: 0;
}

.vtc-input:focus {
	outline: none;
	border-color: var(--vtc-cor);
	box-shadow: 0 0 0 3px rgba(15, 124, 102, .16);
}

.vtc-enviar {
	background: var(--vtc-cor);
	border: 0;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: grid;
	place-items: center;
	flex: none;
}

.vtc-enviar:hover { background: var(--vtc-cor-escura); }
.vtc-enviar:focus-visible { outline: 3px solid var(--vtc-cor); outline-offset: 2px; }
.vtc-enviar svg { width: 21px; height: 21px; }

/* Anexar foto */

.vtc-clipe {
	background: none;
	border: 0;
	color: var(--vtc-suave);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
	display: grid;
	place-items: center;
	flex: none;
	padding: 0;
}

.vtc-clipe:hover { background: rgba(0, 0, 0, .07); color: var(--vtc-cor-escura); }
.vtc-clipe:focus-visible { outline: 3px solid var(--vtc-cor); outline-offset: 2px; }
.vtc-clipe svg { width: 21px; height: 21px; }

.vtc-op-foto {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
}

.vtc-op-foto svg { width: 18px; height: 18px; flex: none; }

.vtc-msg-foto {
	padding: 4px 4px 2px;
	max-width: 68%;
}

.vtc-msg-foto img {
	display: block;
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	border-radius: 6px;
}

.vtc-msg-foto .vtc-hora {
	padding: 0 4px 2px;
}

/* Botão de fechamento no WhatsApp */

.vtc-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: #22b357;
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 14px 16px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(34, 179, 87, .38);
}

.vtc-cta:hover { background: #1c9c4a; color: #fff; }
.vtc-cta:focus-visible { outline: 3px solid #0a5c4b; outline-offset: 2px; }
.vtc-cta svg { width: 22px; height: 22px; flex: none; }

.vtc-secundario {
	background: none;
	border: 0;
	color: var(--vtc-suave);
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	padding: 4px;
}

.vtc-rodape-nota {
	font-size: 11.5px;
	color: var(--vtc-suave);
	text-align: center;
}

/* ---------- Celular ---------- */

@media (max-width: 520px) {
	.vtc-wrap { right: 14px; bottom: 14px; }

	.vtc-panel {
		right: 0;
		bottom: 0;
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
	}

	.vtc-launcher-txt { display: none; }
	.vtc-launcher { padding: 15px; }
	.vtc-msg { max-width: 88%; }
}
