/* Reset local — nunca globalizamos box-sizing en todo el sitio para no
   pisar el CSS del tema; solo dentro de nuestros propios componentes. */
.whatsgrowth-floating,
.whatsgrowth-floating *,
.whatsgrowth-form,
.whatsgrowth-form *,
.whatsgrowth-confirmation,
.whatsgrowth-confirmation * {
	box-sizing: border-box;
}

/* ============================================================
 * GLOBO FLOTANTE
 * ============================================================ */

.whatsgrowth-floating {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.whatsgrowth-floating--left {
	right: auto;
	left: 20px;
	align-items: flex-start;
}

.whatsgrowth-floating__toggle {
	width: 58px;
	height: 58px;
	background-color: var(--wgw-primary, #25d366) !important;
	background-image: none !important;
	border: none !important;
	border-radius: 50% !important;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
	cursor: pointer;
	padding: 0 !important;
	appearance: none;
	-webkit-appearance: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsgrowth-floating__toggle:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.whatsgrowth-floating__toggle svg {
	width: 28px;
	height: 28px;
	display: block;
	flex-shrink: 0;
}

.whatsgrowth-floating__toggle--pill {
	width: auto;
	height: 50px;
	border-radius: 25px !important;
	padding: 0 20px 0 16px !important;
	gap: 10px;
}

.whatsgrowth-floating__toggle--pill svg {
	width: 24px;
	height: 24px;
}

.whatsgrowth-floating__toggle-label {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.whatsgrowth-floating.is-open .whatsgrowth-floating__toggle,
.whatsgrowth-floating.is-closing .whatsgrowth-floating__toggle {
	display: none;
}

/* ============================================================
 * PANEL (tipo chat)
 * ============================================================ */

.whatsgrowth-floating__panel {
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	animation: whatsgrowth-panel-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes whatsgrowth-panel-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes whatsgrowth-panel-out {
	from { opacity: 1; transform: translateY(0) scale(1); }
	to   { opacity: 0; transform: translateY(16px) scale(0.98); }
}

.whatsgrowth-floating.is-closing .whatsgrowth-floating__panel {
	animation: whatsgrowth-panel-out 0.18s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.whatsgrowth-floating__panel-header {
	background: var(--wgw-primary, #25d366);
	color: #fff;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	font-size: 15px;
}

.whatsgrowth-floating__close {
	background-color: rgba(255, 255, 255, 0.18) !important;
	background-image: none !important;
	border: none !important;
	color: #fff !important;
	font-size: 14px;
	cursor: pointer;
	line-height: 1;
	width: 26px;
	height: 26px;
	border-radius: 50% !important;
	display: flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.15s ease;
}

.whatsgrowth-floating__close:hover {
	background: rgba(255, 255, 255, 0.32);
}

.whatsgrowth-floating__panel .whatsgrowth-form {
	padding: 18px;
	max-width: none;
	margin: 0;
	max-height: 60vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	/* Deja ver un poco del siguiente campo asomando en el borde —
	   es la señal visual de "aquí hay más" sin depender de que el
	   navegador dibuje una barra de scroll visible en móvil. */
	scrollbar-width: thin;
}

.whatsgrowth-floating__panel .whatsgrowth-form::-webkit-scrollbar {
	width: 5px;
}

.whatsgrowth-floating__panel .whatsgrowth-form::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 10px;
}

.whatsgrowth-required-mark {
	color: #dc2626;
}

/* ============================================================
 * FORM (embebido y dentro del panel flotante)
 * ============================================================ */

.whatsgrowth-form {
	max-width: 420px;
	margin: 0 auto;
	font-family: inherit;
}

.whatsgrowth-form__title {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 600;
	color: #111827;
}

.whatsgrowth-form__field {
	margin-bottom: 18px;
}

.whatsgrowth-form__field label {
	display: block !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #4b5563 !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.01em;
}

.whatsgrowth-form__field input,
.whatsgrowth-form__field textarea,
.whatsgrowth-form__field select {
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.whatsgrowth-form__field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	cursor: pointer;
}

.whatsgrowth-form__field input::placeholder,
.whatsgrowth-form__field textarea::placeholder {
	color: #9ca3af;
}

.whatsgrowth-form__field input:focus,
.whatsgrowth-form__field textarea:focus,
.whatsgrowth-form__field select:focus {
	outline: none;
	border-color: var(--wgw-primary, #25d366);
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.whatsgrowth-form__submit {
	background-color: var(--wgw-primary, #25d366) !important;
	background-image: none !important;
	color: #fff !important;
	border: none !important;
	padding: 13px 20px;
	border-radius: 8px !important;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 4px;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.15s ease;
}

.whatsgrowth-form__submit:hover {
	filter: brightness(0.9);
}

.whatsgrowth-form__submit:active {
	transform: translateY(1px);
}

/* ============================================================
 * CONFIRMACIÓN POST-ENVÍO
 * ============================================================ */

.whatsgrowth-confirmation {
	text-align: center;
	padding: 20px 18px 18px;
}

.whatsgrowth-confirmation__emoji {
	font-size: 36px;
	line-height: 1;
	margin-bottom: 10px;
}

.whatsgrowth-confirmation__text {
	font-size: 14px;
	color: #374151;
	margin: 0 0 14px;
	line-height: 1.5;
	font-weight: 500;
}

.whatsgrowth-confirmation__toggle-fallback {
	background: none !important;
	border: none !important;
	color: #6b7280 !important;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	padding: 4px !important;
	appearance: none;
	-webkit-appearance: none;
}

.whatsgrowth-confirmation__toggle-fallback:hover {
	color: #374151 !important;
}

.whatsgrowth-confirmation__fallback {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #f0f1f3;
}

.whatsgrowth-confirmation__retry,
.whatsgrowth-confirmation__resend {
	display: block;
	width: 100%;
	padding: 11px;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	margin-bottom: 8px;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.whatsgrowth-confirmation__retry {
	background-color: #fff !important;
	background-image: none !important;
	color: var(--wgw-primary, #1da851) !important;
	border: 1.5px solid var(--wgw-primary, #25d366) !important;
	font-weight: 600;
	appearance: none;
	-webkit-appearance: none;
}

.whatsgrowth-confirmation__retry:hover {
	background-color: #f0fdf5 !important;
}

.whatsgrowth-confirmation__resend {
	background: none !important;
	background-image: none !important;
	color: #6b7280 !important;
	border: none !important;
	margin-bottom: 0;
	font-size: 13px;
	text-decoration: underline;
	appearance: none;
	-webkit-appearance: none;
}

.whatsgrowth-confirmation__resend:hover {
	color: #374151 !important;
}
