/* Goti AI Chatbot – matches Goti Broadband brand (green #97c93d, deep teal #032b25) */
.goti-chat {
	--goti-green: #97c93d;
	--goti-green-dark: #7fb02a;
	--goti-ink: #032b25;
	--goti-bg: #ffffff;
	--goti-soft: #f2f7ea;
	--goti-text: #14211d;
	--goti-muted: #5b6b66;
	--goti-line: #e3eadf;
	font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Bengali", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--goti-text);
}
.goti-chat *, .goti-chat *::before, .goti-chat *::after { box-sizing: border-box; }
.goti-chat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Launcher – sits above the site's WhatsApp button (bottom-right) */
.goti-launcher {
	position: fixed; right: 12px; bottom: 74px; z-index: 99998;
	display: flex; align-items: center; gap: 8px;
	height: 50px; padding: 0 18px 0 15px; border: 0; border-radius: 999px;
	background: var(--goti-ink); color: #fff; cursor: pointer;
	font: inherit; font-weight: 600;
	box-shadow: 0 6px 20px rgba(3, 43, 37, .3);
	transition: transform .15s ease, background .15s ease;
}
.goti-launcher:hover { transform: translateY(-2px); }
.goti-launcher:focus-visible { outline: 3px solid var(--goti-green); outline-offset: 2px; }
.goti-launcher svg { color: var(--goti-green); }
.goti-launcher .goti-ic-close { display: none; }
.goti-chat.is-open .goti-launcher { padding: 0; width: 50px; justify-content: center; }
.goti-chat.is-open .goti-ic-open, .goti-chat.is-open .goti-launcher-label { display: none; }
.goti-chat.is-open .goti-ic-close { display: block; }

/* Panel */
.goti-panel {
	position: fixed; right: 12px; bottom: 134px; z-index: 99999;
	width: 370px; max-width: calc(100vw - 24px);
	height: 560px; max-height: calc(100vh - 150px);
	display: flex; flex-direction: column;
	background: var(--goti-bg); border-radius: 18px; overflow: hidden;
	box-shadow: 0 16px 48px rgba(3, 43, 37, .25);
	animation: goti-in .18s ease-out;
}
.goti-panel[hidden] { display: none; }
@keyframes goti-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.goti-head {
	display: flex; align-items: center; gap: 10px;
	padding: 14px 12px 14px 16px; background: var(--goti-ink); color: #fff;
}
.goti-avatar {
	width: 38px; height: 38px; flex: none; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--goti-green); color: var(--goti-ink); font-weight: 800; font-size: 18px;
}
.goti-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.goti-title strong { font-size: 16px; }
.goti-title span { font-size: 12px; opacity: .8; display: flex; align-items: center; gap: 6px; }
.goti-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--goti-green); display: inline-block; }
.goti-head button {
	width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #fff;
	display: grid; place-items: center; cursor: pointer; opacity: .85;
}
.goti-head button:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.goti-head svg { width: 18px; height: 18px; }

.goti-body {
	flex: 1; overflow-y: auto; padding: 16px 14px;
	display: flex; flex-direction: column; gap: 10px; background: #fafcf7;
}
.goti-msg {
	max-width: 86%; padding: 9px 13px; border-radius: 14px;
	word-wrap: break-word; overflow-wrap: anywhere; white-space: normal;
}
.goti-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--goti-line); border-bottom-left-radius: 4px; }
.goti-user { align-self: flex-end; background: var(--goti-green); color: var(--goti-ink); border-bottom-right-radius: 4px; }
.goti-msg a { color: #2f6b0e; text-decoration: underline; }
.goti-user a { color: var(--goti-ink); }

.goti-typing { display: flex; gap: 4px; padding: 13px 14px; }
.goti-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--goti-muted); animation: goti-blink 1.2s infinite both; }
.goti-typing span:nth-child(2) { animation-delay: .2s; }
.goti-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes goti-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.goti-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: #fafcf7; }
.goti-chips[hidden] { display: none; }
.goti-chip {
	border: 1px solid var(--goti-green); background: #fff; color: var(--goti-ink);
	border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer;
}
.goti-chip:hover { background: var(--goti-soft); }

.goti-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--goti-line); background: #fff; }
.goti-form textarea {
	flex: 1; resize: none; border: 1px solid var(--goti-line); border-radius: 12px;
	padding: 9px 12px; font: inherit; color: var(--goti-text); background: #fff; max-height: 110px; outline: none;
}
.goti-form textarea:focus { border-color: var(--goti-green); }
.goti-form button {
	width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px;
	background: var(--goti-green); color: var(--goti-ink); display: grid; place-items: center; cursor: pointer;
}
.goti-form button:hover { background: var(--goti-green-dark); }
.goti-form button:disabled { opacity: .5; cursor: default; }

.goti-foot { font-size: 11px; color: var(--goti-muted); text-align: center; padding: 0 12px 8px; background: #fff; }
.goti-foot a { color: inherit; }

/* Phones: full-width panel */
@media (max-width: 480px) {
	.goti-panel { right: 8px; left: 8px; width: auto; max-width: none; bottom: 132px; height: calc(100vh - 150px); }
	.goti-launcher-label { display: none; }
	.goti-launcher { padding: 0; width: 50px; justify-content: center; }
}
