:root {
	--nobox-bg-color: #f9fafb;
	--nobox-bg-image: none;
	--nobox-header-bg: #25d366;
	--nobox-toggle-bg: #25d366;
	--nobox-accent: #25d366;
	--nobox-radius-sm: 0.625rem;
	--nobox-radius-md: 0.875rem;
	--nobox-radius-lg: 1rem;
	--nobox-shadow-soft: 0 4px 24px rgba(15, 23, 42, 0.08);
	--nobox-shadow-panel: 0 12px 40px rgba(15, 23, 42, 0.12);
	--nobox-border: #e8ecf1;
	--nobox-text: #1f2937;
	--nobox-text-muted: #6b7280;
	--nobox-surface: #ffffff;
}

.nobox-leads-form-wrap {
	max-width: 28rem;
	background-color: var(--nobox-bg-color);
	background-image: var(--nobox-bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: var(--nobox-radius-lg);
	font-family: inherit, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
		sans-serif;
	color: var(--nobox-text);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.nobox-leads-notice {
	padding: 0.65rem 0.9rem;
	margin-bottom: 0.85rem;
	border-radius: var(--nobox-radius-sm);
	font-size: 0.875rem;
	line-height: 1.4;
}

.nobox-leads-notice--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

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

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

.nobox-leads-form label {
	display: block;
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--nobox-text-muted);
	margin-bottom: 0.35rem;
}

.nobox-leads-form input[type="text"],
.nobox-leads-form input[type="email"],
.nobox-leads-form input[type="tel"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--nobox-border);
	border-radius: var(--nobox-radius-sm);
	background: var(--nobox-surface);
	color: var(--nobox-text);
	font-size: 0.9375rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nobox-leads-form input:focus {
	outline: none;
	border-color: #c5cdd8;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.nobox-leads-field--with-icon {
	display: flex;
	align-items: stretch;
	margin: 0 0 0.65rem;
	border: 1px solid var(--nobox-border);
	border-radius: var(--nobox-radius-sm);
	overflow: hidden;
	background: var(--nobox-surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nobox-leads-field--with-icon:focus-within {
	border-color: #c5cdd8;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

.nobox-leads-field__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.65rem;
	background: #f3f4f6;
	color: var(--nobox-text-muted);
}

.nobox-leads-field__icon svg {
	display: block;
}

.nobox-leads-field--with-icon input[type="text"],
.nobox-leads-field--with-icon input[type="email"],
.nobox-leads-field--with-icon input[type="tel"] {
	flex: 1;
	min-width: 0;
	border: none;
	border-radius: 0;
	padding: 0.6rem 0.75rem;
	margin: 0;
	box-shadow: none;
}

.nobox-leads-field--with-icon input:focus {
	box-shadow: none;
}

.nobox-leads-submit {
	background: #374151;
	color: #fff;
	border: none;
	padding: 0.6rem 1.35rem;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.nobox-leads-submit:hover {
	background: #1f2937;
}

.nobox-leads-submit:active {
	transform: scale(0.98);
}

/* --- Modo flutuante (WhatsApp + pop-up) --- */
.nobox-leads-floating {
	position: fixed;
	z-index: 999999;
	bottom: 1.25rem;
	font-family: inherit, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
		sans-serif;
	color: var(--nobox-text);
	-webkit-font-smoothing: antialiased;
}

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

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

.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: var(--nobox-toggle-bg, #25d366) !important;
	background-color: var(--nobox-toggle-bg, #25d366) !important;
	background-image: none !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: var(--nobox-shadow-soft) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s 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.05);
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14) !important;
	filter: brightness(1.03);
	background: var(--nobox-toggle-bg, #25d366) !important;
	background-color: var(--nobox-toggle-bg, #25d366) !important;
	color: #fff !important;
}

.nobox-leads-floating .nobox-leads-floating-toggle:focus {
	outline: none !important;
	box-shadow: var(--nobox-shadow-soft) !important;
}

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

.nobox-leads-floating .nobox-leads-floating-toggle:hover:focus-visible {
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 4px var(--nobox-toggle-bg, #25d366),
		0 8px 28px rgba(15, 23, 42, 0.14) !important;
}

.nobox-leads-floating-toggle__icon {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	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.85rem);
	width: min(22rem, calc(100vw - 2.5rem));
	max-height: min(70vh, 32rem);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--nobox-surface);
	border-radius: var(--nobox-radius-lg);
	box-shadow: var(--nobox-shadow-panel);
	border: 1px solid var(--nobox-border);
}

.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;
}

.nobox-leads-floating-header {
	position: sticky;
	top: 0;
	z-index: 5;
	margin: 0;
	padding: 0.75rem 2.75rem 0.75rem 1rem;
	background: var(--nobox-header-bg) !important;
	background-color: var(--nobox-header-bg) !important;
	border: none !important;
	border-radius: var(--nobox-radius-lg) var(--nobox-radius-lg) 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;
}

.nobox-leads-floating-header__avatar-ring {
	display: block;
	position: relative;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #fff !important;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
	box-sizing: border-box;
	overflow: hidden;
	line-height: 0;
}

.nobox-leads-floating-header__avatar {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none !important;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
	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: 0.9375rem;
	font-weight: 600;
	color: #fff !important;
	line-height: 1.25;
	word-break: break-word;
}

.nobox-leads-floating-header__online {
	font-size: 0.75rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.88) !important;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.nobox-leads-floating-body {
	padding: 1rem 1rem 1.15rem;
	background-color: var(--nobox-bg-color);
	background-image: var(--nobox-bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.nobox-leads-floating-body .nobox-leads-form-wrap {
	background: transparent;
}

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

.nobox-leads-floating .nobox-leads-floating-close:hover {
	background: rgba(0, 0, 0, 0.5) !important;
	background-color: rgba(0, 0, 0, 0.5) !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 rgba(255, 255, 255, 0.9) !important;
}

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

.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.45rem !important;
	padding: 0.5rem 1.35rem !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 9999px !important;
	background: #374151 !important;
	background-color: #374151 !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 !important;
}

.nobox-leads-floating button.nobox-leads-submit:hover,
.nobox-leads-floating .nobox-leads-submit:hover {
	filter: none !important;
	background: #1f2937 !important;
	background-color: #1f2937 !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 #6b7280 !important;
}

.nobox-leads-field--checkbox {
	margin: 0 0 0.85rem;
}

.nobox-leads-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--nobox-text);
	margin-bottom: 0;
	cursor: pointer;
}

.nobox-leads-field--checkbox input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
	accent-color: var(--nobox-accent, #25d366);
}
