.jfs-wa-widget {
	bottom: 82px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	position: fixed;
	right: 18px;
	z-index: 99999;
}

.jfs-wa-panel {
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 16px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
	margin: 0 0 10px auto;
	max-width: calc(100vw - 36px);
	overflow: hidden;
	width: 340px;
}

.jfs-wa-panel[hidden] {
	display: none;
}

.jfs-wa-header {
	align-items: center;
	background: #075e54;
	color: #fff;
	display: flex;
	justify-content: space-between;
	padding: 14px 16px;
}

.jfs-wa-header strong,
.jfs-wa-header small {
	display: block;
}

.jfs-wa-header strong {
	font-size: 16px;
	font-weight: 800;
}

.jfs-wa-header small {
	font-size: 12px;
	font-weight: 600;
	margin-top: 2px;
	opacity: 0.82;
}

.jfs-wa-close {
	align-items: center;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 22px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 36px;
}

.jfs-wa-body {
	padding: 16px;
}

.jfs-wa-body label {
	color: #0f172a;
	display: block;
	font-size: 12px;
	font-weight: 800;
	margin: 12px 0 6px;
}

.jfs-wa-body input,
.jfs-wa-body textarea {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	box-sizing: border-box;
	color: #0f172a;
	font: inherit;
	font-size: 14px;
	padding: 10px 12px;
	width: 100%;
}

.jfs-wa-body textarea {
	min-height: 86px;
	resize: vertical;
}

.jfs-wa-body input:focus,
.jfs-wa-body textarea:focus,
.jfs-wa-close:focus-visible,
.jfs-wa-launcher:focus-visible,
.jfs-wa-send:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
	outline: 2px solid #075e54;
	outline-offset: 2px;
}

.jfs-wa-status,
.jfs-wa-greeting,
.jfs-wa-hint {
	margin: 0;
}

.jfs-wa-status {
	color: #334155;
	font-size: 12px;
	font-weight: 800;
}

.jfs-wa-greeting {
	color: #334155;
	font-size: 14px;
	line-height: 1.45;
	margin-top: 7px;
}

.jfs-wa-send {
	background: #25d366;
	border: 0;
	border-radius: 10px;
	color: #062b16;
	cursor: pointer;
	font-weight: 850;
	margin-top: 12px;
	min-height: 44px;
	padding: 10px 14px;
	width: 100%;
}

.jfs-wa-hint {
	color: #64748b;
	font-size: 11px;
	line-height: 1.4;
	margin-top: 8px;
}

.jfs-wa-launcher {
	align-items: center;
	background: #25d366;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
	color: #062b16;
	cursor: pointer;
	display: flex;
	font-weight: 800;
	gap: 8px;
	margin-left: auto;
	min-height: 48px;
	padding: 12px 17px;
}

.jfs-wa-launcher span {
	align-items: center;
	background: #fff;
	border-radius: 999px;
	color: #0f172a;
	display: inline-flex;
	height: 28px;
	justify-content: center;
	width: 28px;
}

@media (max-width: 480px) {
	.jfs-wa-widget {
		bottom: 76px;
		right: 12px;
	}

	.jfs-wa-panel {
		max-height: calc(100vh - 88px);
		max-width: calc(100vw - 24px);
		overflow-y: auto;
		width: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jfs-wa-widget * {
		scroll-behavior: auto;
	}
}
