/* Fateh WhatsApp Chat */
#fwc-widget {
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#fwc-widget.fwc-right { right: 20px; }
#fwc-widget.fwc-left  { left: 20px; }

/* Floating round button */
.fwc-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background: var(--fwc-color, #25D366);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	margin-left: auto;
}
.fwc-toggle:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.fwc-toggle svg { width: 32px; height: 32px; }

/* Pulse ring */
.fwc-toggle::after {
	content: "";
	position: absolute;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--fwc-color, #25D366);
	opacity: 0.45;
	z-index: -1;
	animation: fwc-pulse 2s infinite;
}
@keyframes fwc-pulse {
	0%   { transform: scale(1);   opacity: 0.45; }
	70%  { transform: scale(1.5); opacity: 0; }
	100% { transform: scale(1.5); opacity: 0; }
}

/* Chat panel */
.fwc-panel {
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	margin-bottom: 14px;
	animation: fwc-pop 0.18s ease;
}
@keyframes fwc-pop {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.fwc-header {
	background: var(--fwc-color, #25D366);
	color: #fff;
	padding: 14px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.fwc-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.fwc-avatar-default svg { width: 26px; height: 26px; }
.fwc-header-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; }
.fwc-header-text strong { font-size: 15px; }
.fwc-header-text span { font-size: 12px; opacity: 0.9; }
.fwc-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	padding: 0 2px;
}
.fwc-close:hover { opacity: 1; }

.fwc-body {
	background: #e5ddd5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d8cfc4'/%3E%3C/svg%3E");
	padding: 18px 14px;
	min-height: 90px;
}
.fwc-bubble {
	background: #fff;
	padding: 10px 12px;
	border-radius: 0 10px 10px 10px;
	font-size: 14px;
	color: #303030;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
	display: inline-block;
	max-width: 85%;
}

.fwc-footer { padding: 12px; background: #fff; }
.fwc-start {
	width: 100%;
	border: none;
	background: var(--fwc-color, #25D366);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 11px 14px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.fwc-start:hover { filter: brightness(0.95); }
.fwc-start svg { width: 22px; height: 22px; }

@media (max-width: 480px) {
	.fwc-panel { width: calc(100vw - 32px); }
}
