.nobox-leads-form-wrap {
	max-width: 28rem;
}

.nobox-leads-notice {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: 0.375rem;
	font-size: 0.9375rem;
}

.nobox-leads-notice--success {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	color: #065f46;
}

.nobox-leads-notice--error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

.nobox-leads-form .nobox-leads-field {
	margin: 0 0 1rem;
}

.nobox-leads-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.nobox-leads-form input[type="text"],
.nobox-leads-form input[type="email"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.65rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
}

.nobox-leads-submit {
	background: #ea580c;
	color: #fff;
	border: none;
	padding: 0.55rem 1.25rem;
	border-radius: 0.375rem;
	font-weight: 600;
	cursor: pointer;
}

.nobox-leads-submit:hover {
	filter: brightness(1.05);
}

/* --- Modo flutuante (WhatsApp + pop-up) --- */
.nobox-leads-floating {
	position: fixed;
	z-index: 999999;
	bottom: 1.25rem;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.nobox-leads-floating--right {
	right: 1.25rem;
	left: auto;
}

.nobox-leads-floating--left {
	left: 1.25rem;
	right: auto;
}

/*
 * Botão flutuante: temas WP costumam sobrescrever `button` (borda, fundo branco, radius pequeno).
 * Seletores específicos + !important garantem círculo verde WhatsApp e ícone branco.
 */
.nobox-leads-floating[data-nobox-floating] > .nobox-leads-floating-toggle,
.nobox-leads-floating .nobox-leads-floating-toggle {
	-webkit-appearance: none;
	appearance: none;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 3.5rem !important;
	height: 3.5rem !important;
	min-width: 3.5rem !important;
	min-height: 3.5rem !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: #25d366 !important;
	background-color: #25d366 !important;
	background-image: none !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	line-height: 0 !important;
	vertical-align: middle;
	-webkit-user-select: none;
	user-select: none;
}

.nobox-leads-floating .nobox-leads-floating-toggle:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
	background: #25d366 !important;
	background-color: #25d366 !important;
	color: #fff !important;
}

/* outline retangular do navegador/tema — remover; foco circular via box-shadow */
.nobox-leads-floating .nobox-leads-floating-toggle:focus {
	outline: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.nobox-leads-floating .nobox-leads-floating-toggle:focus-visible {
	outline: none !important;
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 4px #25d366,
		0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.nobox-leads-floating .nobox-leads-floating-toggle:hover:focus-visible {
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 4px #25d366,
		0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

.nobox-leads-floating-toggle__icon {
	display: block;
	width: 1.85rem;
	height: 1.85rem;
	flex-shrink: 0;
}

.nobox-leads-floating-toggle__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.nobox-leads-floating-toggle__icon svg,
.nobox-leads-floating-toggle__icon svg path {
	fill: #ffffff !important;
	stroke: none !important;
	color: #ffffff !important;
}

.nobox-leads-floating-panel {
	position: absolute;
	bottom: calc(3.5rem + 0.75rem);
	width: min(22rem, calc(100vw - 2.5rem));
	max-height: min(70vh, 32rem);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	border: 1px solid #e5e7eb;
}

.nobox-leads-floating--right .nobox-leads-floating-panel {
	right: 0;
	left: auto;
}

.nobox-leads-floating--left .nobox-leads-floating-panel {
	left: 0;
	right: auto;
}

.nobox-leads-floating-panel[hidden] {
	display: none !important;
}

.nobox-leads-floating-panel__inner {
	position: relative;
	padding: 0;
}

/* Cabeçalho: permanece visível ao rolar o conteúdo do painel */
.nobox-leads-floating-header {
	position: sticky;
	top: 0;
	z-index: 5;
	margin: 0;
	padding: 0.7rem 2.75rem 0.7rem 1rem;
	background: #25d366 !important;
	background-color: #25d366 !important;
	border: none !important;
	border-radius: 0.75rem 0.75rem 0 0;
	min-height: 2.5rem;
	box-sizing: border-box;
}

.nobox-leads-floating-header__content {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 2.25rem;
	padding-right: 0.25rem;
}

/* Círculo branco atrás do avatar (PNG sem fundo) */
.nobox-leads-floating-header__avatar-ring {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
}

.nobox-leads-floating-header__avatar {
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.nobox-leads-floating-header__texts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	min-width: 0;
	flex: 1;
}

.nobox-leads-floating-header__name {
	font-size: 1rem;
	font-weight: 600;
	color: #111 !important;
	line-height: 1.25;
	word-break: break-word;
}

.nobox-leads-floating-header__online {
	font-size: 0.8125rem;
	font-weight: 400;
	color: #000 !important;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.nobox-leads-floating-body {
	padding: 1rem 1rem 1.25rem;
}

.nobox-leads-floating .nobox-leads-floating-close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 2rem !important;
	min-height: 2rem !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: #000 !important;
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	border-radius: 50% !important;
	transition: background 0.15s ease, box-shadow 0.15s ease;
	-webkit-user-select: none;
	user-select: none;
}

.nobox-leads-floating .nobox-leads-floating-close:hover {
	background: #1a1a1a !important;
	background-color: #1a1a1a !important;
	color: #fff !important;
}

.nobox-leads-floating .nobox-leads-floating-close:focus {
	outline: none !important;
}

.nobox-leads-floating .nobox-leads-floating-close:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000 !important;
}

.nobox-leads-floating .nobox-leads-form-wrap {
	max-width: none;
	margin: 0;
	padding-right: 0;
}

/* Enviar no pop-up: mesmo padrão visual do fechar (preto, texto branco, formato arredondado) */
.nobox-leads-floating .nobox-leads-submit-wrap {
	text-align: left;
	margin-top: 0.25rem;
}

.nobox-leads-floating button.nobox-leads-submit,
.nobox-leads-floating .nobox-leads-submit {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box !important;
	min-width: 5.5rem !important;
	min-height: 2.5rem !important;
	padding: 0.5rem 1.35rem !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 9999px !important;
	background: #000 !important;
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.nobox-leads-floating button.nobox-leads-submit:hover,
.nobox-leads-floating .nobox-leads-submit:hover {
	filter: none !important;
	background: #1a1a1a !important;
	background-color: #1a1a1a !important;
	color: #fff !important;
}

.nobox-leads-floating button.nobox-leads-submit:focus,
.nobox-leads-floating .nobox-leads-submit:focus {
	outline: none !important;
}

.nobox-leads-floating button.nobox-leads-submit:focus-visible,
.nobox-leads-floating .nobox-leads-submit:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000 !important;
}
