/* NM Poultry Helper: colours follow the NM Poultry Farm green + red theme. */
#nmph-root {
	--nmph-green: #14301f;
	--nmph-green-2: #1f4a30;
	--nmph-red: #b5392b;
	--nmph-red-dark: #962d21;
	--nmph-cream: #faf6ee;
	--nmph-ink: #1d2a22;
	--nmph-line: #e5dfd2;
	position: fixed;
	bottom: 16px;
	z-index: 99999;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--nmph-ink);
}
#nmph-root.nmph-right { right: 16px; }
#nmph-root.nmph-left { left: 16px; }
#nmph-root *,
#nmph-root *::before,
#nmph-root *::after { box-sizing: border-box; }

.nmph-launcher {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background: var(--nmph-red);
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	transition: transform 0.15s ease, background 0.15s ease;
}
.nmph-launcher:hover { background: var(--nmph-red-dark); transform: scale(1.05); }
.nmph-launcher:focus-visible,
.nmph-btn:focus-visible,
.nmph-chip:focus-visible,
.nmph-input:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }

.nmph-panel {
	position: absolute;
	bottom: 70px;
	width: min(370px, calc(100vw - 32px));
	max-height: min(600px, calc(100vh - 110px));
	display: flex;
	flex-direction: column;
	background: var(--nmph-cream);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}
.nmph-panel[hidden] { display: none; }
#nmph-root.nmph-right .nmph-panel { right: 0; }
#nmph-root.nmph-left .nmph-panel { left: 0; }

.nmph-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	background: var(--nmph-green);
	color: #fff;
}
.nmph-title { flex: 1; font-weight: 700; font-size: 16px; }
.nmph-lang { display: flex; gap: 4px; }
.nmph-btn {
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: transparent;
	color: #fff;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 13px;
	cursor: pointer;
}
.nmph-btn[aria-pressed="true"] { background: #fff; color: var(--nmph-green); }
.nmph-close { border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }

.nmph-log {
	flex: 1;
	min-height: 160px;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nmph-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.nmph-bot { align-self: flex-start; background: #fff; border: 1px solid var(--nmph-line); border-bottom-left-radius: 4px; }
.nmph-user { align-self: flex-end; background: var(--nmph-green-2); color: #fff; border-bottom-right-radius: 4px; }
.nmph-typing { align-self: flex-start; color: #6b7a70; font-size: 13px; }

.nmph-cta {
	display: inline-block;
	margin-top: 8px;
	padding: 7px 12px;
	background: #1fa855;
	color: #fff !important;
	text-decoration: none;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
}

.nmph-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; max-height: 108px; overflow-y: auto; }
.nmph-chip {
	border: 1px solid var(--nmph-green-2);
	background: #fff;
	color: var(--nmph-green);
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 13px;
	cursor: pointer;
}
.nmph-chip:hover { background: var(--nmph-green); color: #fff; }

.nmph-form { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--nmph-line); background: #fff; }
.nmph-input { flex: 1; min-width: 0; border: 1px solid var(--nmph-line); border-radius: 999px; padding: 9px 14px; font-size: 15px; font-family: inherit; }
.nmph-send { border: 0; background: var(--nmph-red); color: #fff; border-radius: 999px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.nmph-send:hover { background: var(--nmph-red-dark); }

.nmph-foot { padding: 8px 12px 10px; background: #fff; text-align: center; }
.nmph-wa { display: block; padding: 9px 12px; background: #1fa855; color: #fff !important; text-decoration: none; border-radius: 999px; font-weight: 700; }
.nmph-note { margin: 6px 0 0; font-size: 11.5px; color: #6b7a70; }

/* v2: language picker, related-page links, honeypot */
.nmph-select {
	max-width: 150px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: var(--nmph-green-2);
	color: #fff;
	border-radius: 8px;
	padding: 4px 6px;
	font-size: 13px;
	font-family: inherit;
}
.nmph-links { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--nmph-line); display: flex; flex-direction: column; gap: 6px; }
.nmph-links-title { font-size: 12px; font-weight: 700; color: #6b7a70; text-transform: uppercase; letter-spacing: 0.03em; }
.nmph-link {
	display: block;
	padding: 7px 10px;
	background: var(--nmph-cream);
	border: 1px solid var(--nmph-line);
	border-radius: 10px;
	color: var(--nmph-green) !important;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.nmph-link:hover { background: var(--nmph-green); color: #fff !important; }
.nmph-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nmph-send:disabled { opacity: 0.6; cursor: wait; }
#nmph-panel[dir="rtl"] .nmph-bot { align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
#nmph-panel[dir="rtl"] .nmph-user { align-self: flex-start; border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
	.nmph-launcher { transition: none; }
}
@media (max-width: 480px) {
	#nmph-root { bottom: 12px; }
	#nmph-root.nmph-right { right: 12px; }
	#nmph-root.nmph-left { left: 12px; }
}

/* v3 */
.nmph-chips-label{width:100%;font-size:12px;color:#7a6a55;margin:2px 0 4px}
.nmph-chip-here{background:#8a6a2c!important;color:#fff!important;border-color:#8a6a2c!important}
.nmph-chip-all{opacity:.8}
.nmph-nudge{position:absolute;bottom:72px;right:0;max-width:240px;background:#fff;color:#2b2118;border:1px solid #e3d6bf;border-radius:14px;padding:10px 14px;font-size:14px;line-height:1.35;box-shadow:0 8px 24px rgba(0,0,0,.15);cursor:pointer;text-align:left;animation:nmphIn .3s ease}
.nmph-left .nmph-nudge{right:auto;left:0}
@keyframes nmphIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
