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

#nmcw-toggle-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--nmcw-color);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	padding: 0;
	overflow: hidden;
	animation: nmcw-pulse 2.2s infinite;
}

#nmcw-toggle-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#nmcw-toggle-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#nmcw-toggle-btn svg {
	width: 28px;
	height: 28px;
	color: #fff;
}

@keyframes nmcw-pulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.25); }
	70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0), 0 4px 16px rgba(0, 0, 0, 0.25); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 4px 16px rgba(0, 0, 0, 0.25); }
}

.nmcw-tooltip {
	position: absolute;
	bottom: 68px;
	right: 0;
	background: #fff;
	color: #222;
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 13px;
	white-space: nowrap;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
	animation: nmcw-fade-in 0.4s ease 1s both;
}

.nmcw-tooltip::after {
	content: "";
	position: absolute;
	bottom: -6px;
	right: 22px;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
}

@keyframes nmcw-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

#nmcw-panel {
	position: absolute;
	bottom: 76px;
	right: 0;
	width: 300px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	transform-origin: bottom right;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

#nmcw-panel.nmcw-hidden {
	opacity: 0;
	transform: scale(0.9);
	pointer-events: none;
}

.nmcw-panel-header {
	background: var(--nmcw-color);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	font-size: 15px;
}

.nmcw-panel-header span {
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#nmcw-close-btn {
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	opacity: 0.85;
}

#nmcw-close-btn:hover {
	opacity: 1;
}

.nmcw-panel-body {
	padding: 16px;
}

.nmcw-call-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: var(--nmcw-color);
	color: #fff;
	text-decoration: none;
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	box-sizing: border-box;
}

.nmcw-call-btn:hover {
	filter: brightness(0.95);
}

.nmcw-call-btn + .nmcw-call-btn {
	margin-top: 8px;
}

.nmcw-whatsapp-btn {
	background: #25D366;
}

.nmcw-viber-btn {
	background: #7360F2;
}

.nmcw-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #999;
	font-size: 12px;
	margin: 14px 0;
}

.nmcw-divider::before,
.nmcw-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #eee;
}

.nmcw-divider span {
	padding: 0 8px;
}

#nmcw-contact-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#nmcw-contact-form input,
#nmcw-contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 11px;
	border: 1px solid #ddd;
	border-radius: 7px;
	font-size: 13px;
	font-family: inherit;
	resize: vertical;
}

#nmcw-contact-form input:focus,
#nmcw-contact-form textarea:focus {
	outline: none;
	border-color: var(--nmcw-color);
}

.nmcw-submit-btn {
	background: var(--nmcw-color);
	color: #fff;
	border: none;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease;
}

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

.nmcw-submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.nmcw-form-status {
	font-size: 12.5px;
	margin-top: 2px;
	min-height: 16px;
}

.nmcw-form-status.nmcw-success { color: #1a7f37; }
.nmcw-form-status.nmcw-error { color: #c0392b; }

@media (max-width: 480px) {
	#nmcw-widget {
		bottom: 14px;
		right: 14px;
	}
	#nmcw-panel {
		width: calc(100vw - 28px);
		right: -6px;
	}
	.nmcw-tooltip {
		display: none;
	}
}
