.wwg-widget {
	--wwg-color: #25D366;
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wwg-widget.wwg-position-right {
	right: 20px;
}

.wwg-widget.wwg-position-left {
	left: 20px;
}

.wwg-launcher {
	position: relative;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background: var(--wwg-color);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.wwg-launcher:hover {
	transform: scale(1.06);
}

.wwg-launcher-icon {
	position: absolute;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.wwg-launcher-icon svg {
	width: 28px;
	height: 28px;
}

.wwg-launcher .wwg-icon-close {
	opacity: 0;
	transform: scale(0.5) rotate(-45deg);
}

.wwg-launcher[aria-expanded="true"] .wwg-icon-whatsapp {
	opacity: 0;
	transform: scale(0.5) rotate(45deg);
}

.wwg-launcher[aria-expanded="true"] .wwg-icon-close {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}

.wwg-launcher-ping {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--wwg-color);
	opacity: 0.55;
	animation: wwg-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

.wwg-launcher[aria-expanded="true"] .wwg-launcher-ping {
	animation: none;
	opacity: 0;
}

@keyframes wwg-pulse {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	100% {
		transform: scale(1.9);
		opacity: 0;
	}
}

.wwg-panel {
	position: absolute;
	bottom: 76px;
	width: 340px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

.wwg-widget.wwg-position-right .wwg-panel {
	right: 0;
}

.wwg-widget.wwg-position-left .wwg-panel {
	left: 0;
}

.wwg-panel.wwg-panel-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.wwg-panel-header {
	background: var(--wwg-color);
	color: #fff;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.wwg-brand-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.2);
}

.wwg-brand-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.wwg-brand-avatar-fallback svg {
	width: 22px;
	height: 22px;
}

.wwg-brand-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	min-width: 0;
}

.wwg-brand-info strong {
	font-size: 15px;
}

.wwg-brand-info span {
	font-size: 12.5px;
	opacity: 0.9;
}

.wwg-panel-close {
	margin-left: auto;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	opacity: 0.85;
}

.wwg-panel-close:hover {
	opacity: 1;
}

.wwg-panel-body {
	padding: 16px;
	background: #ECE5DD;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wwg-chat-bubble {
	background: #fff;
	border-radius: 10px;
	border-top-left-radius: 2px;
	padding: 10px 12px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #1a1a1a;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	max-width: 92%;
}

.wwg-lead-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wwg-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12.5px;
	color: #3b3b3b;
	font-weight: 600;
}

.wwg-field input {
	font: inherit;
	font-weight: 400;
	font-size: 14px;
	padding: 9px 11px;
	border-radius: 8px;
	border: 1px solid #d7d3ce;
	background: #fff;
	outline: none;
}

.wwg-field input:focus {
	border-color: var(--wwg-color);
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.wwg-hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wwg-consent-field {
	flex-direction: row;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.4;
	color: #4a4a4a;
}

.wwg-consent-field input {
	margin-top: 2px;
	flex-shrink: 0;
}

.wwg-consent-field a {
	color: var(--wwg-color);
	font-weight: 600;
}

.wwg-form-error {
	background: #fdecea;
	color: #b3261e;
	font-size: 12.5px;
	padding: 8px 10px;
	border-radius: 8px;
	margin: 0;
}

.wwg-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--wwg-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.wwg-submit-btn:hover {
	filter: brightness(0.95);
}

.wwg-submit-btn:disabled {
	opacity: 0.7;
	cursor: default;
}

.wwg-submit-btn svg {
	width: 18px;
	height: 18px;
}

.wwg-success-state {
	background: #fff;
	border-radius: 10px;
	padding: 14px;
	text-align: center;
	font-size: 13.5px;
}

.wwg-success-state p {
	margin: 0 0 8px;
}

.wwg-manual-link {
	color: var(--wwg-color);
	font-weight: 600;
	text-decoration: none;
}

.wwg-manual-link:hover {
	text-decoration: underline;
}

.wwg-panel-footer {
	text-align: center;
	font-size: 11px;
	color: #9a9a9a;
	padding: 8px;
	background: #fff;
	border-top: 1px solid #eee;
}

@media (max-width: 420px) {
	.wwg-panel {
		width: calc(100vw - 24px);
	}
}
