/* ── Chatbot container ───────────────────────────────────────────────────── */
.chatbot {
	bottom: 28px;
	font-family: var(--body-font, Inter, sans-serif);
	font-size: 15px;
	position: fixed;
	right: 28px;
	z-index: 900;
}

/* ── Panel ───────────────────────────────────────────────────────────────── */
.chatbot-panel {
	background: #0f1a18;
	border: 1px solid rgba(27, 248, 166, .22);
	border-radius: 16px;
	box-shadow: 0 28px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(27, 248, 166, .06);
	display: flex;
	flex-direction: column;
	margin-bottom: 14px;
	overflow: hidden;
	width: min(380px, calc(100vw - 40px));
	animation: chatbot-slide-in .3s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes chatbot-slide-in {
	from { opacity: 0; transform: translateY(24px) scale(.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.chatbot-header {
	align-items: center;
	background: linear-gradient(135deg, #0b3b24 0%, #0e4a2e 100%);
	border-bottom: 1px solid rgba(27, 248, 166, .15);
	display: flex;
	justify-content: space-between;
	padding: 14px 16px 0;
	flex-direction: column;
	gap: 0;
}

.chatbot-header-info {
	align-items: center;
	display: flex;
	gap: 12px;
	width: 100%;
	padding-bottom: 12px;
}

.chatbot-header-right {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-left: auto;
	flex-shrink: 0;
}

.chatbot-header > .chatbot-header-info {
	justify-content: space-between;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.chatbot-progress {
	background: rgba(255, 255, 255, .12);
	border-radius: 2px;
	height: 3px;
	overflow: hidden;
	width: 100%;
}

.chatbot-progress-bar {
	background: var(--bright, #1bf8a6);
	border-radius: 2px;
	height: 100%;
	transition: width .4s cubic-bezier(.4, 0, .2, 1);
	width: 0%;
}

/* ── Skip button ─────────────────────────────────────────────────────────── */
.chatbot-skip-row {
	padding: 0 14px 10px;
	text-align: right;
}

.chatbot-skip {
	background: none;
	border: 0;
	color: rgba(255, 255, 255, .38);
	cursor: pointer;
	font-size: 12px;
	padding: 4px 0;
	transition: color .2s;
}

.chatbot-skip:hover { color: rgba(255, 255, 255, .7); }


.chatbot-avatar {
	align-items: center;
	background: var(--bright, #1bf8a6);
	border-radius: 50%;
	color: #0b3b24;
	display: flex;
	font-size: 15px;
	font-weight: 800;
	height: 38px;
	justify-content: center;
	min-width: 38px;
	width: 38px;
}

.chatbot-eyebrow {
	color: rgba(27, 248, 166, .75);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	margin: 0 0 2px;
	text-transform: uppercase;
}

.chatbot-header h2 {
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: 0;
}

.chatbot-close {
	background: rgba(255, 255, 255, .07);
	border: 0;
	border-radius: 50%;
	color: rgba(255, 255, 255, .7);
	cursor: pointer;
	font-size: 14px;
	height: 30px;
	line-height: 1;
	padding: 0;
	transition: background .2s, color .2s;
	width: 30px;
}

.chatbot-close:hover {
	background: rgba(255, 255, 255, .15);
	color: #fff;
}

/* ── Messages ────────────────────────────────────────────────────────────── */
.chatbot-messages {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	max-height: 280px;
	overflow-y: auto;
	padding: 16px 16px 8px;
	scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(27, 248, 166, .2); border-radius: 2px; }

.chatbot-message {
	animation: msg-in .25s ease both;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.55;
	max-width: 86%;
	padding: 10px 14px;
}

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

.chatbot-message-bot {
	background: rgba(255, 255, 255, .07);
	border-bottom-left-radius: 4px;
	color: rgba(255, 255, 255, .88);
}

.chatbot-message-user {
	align-self: flex-end;
	background: var(--bright, #1bf8a6);
	border-bottom-right-radius: 4px;
	color: #0b3b24;
	font-weight: 600;
}

/* ── Typing indicator ────────────────────────────────────────────────────── */
.chatbot-typing {
	align-items: center;
	display: flex;
	gap: 5px;
	padding: 14px;
}

.chatbot-typing span {
	animation: typing-dot 1.2s infinite ease-in-out;
	background: rgba(27, 248, 166, .6);
	border-radius: 50%;
	display: block;
	height: 7px;
	width: 7px;
}

.chatbot-typing span:nth-child(2) { animation-delay: .2s; }
.chatbot-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typing-dot {
	0%, 60%, 100% { transform: translateY(0); opacity: .5; }
	30%           { transform: translateY(-5px); opacity: 1; }
}

/* ── Text input row ──────────────────────────────────────────────────────── */
.chatbot-input-row {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, .06);
	display: flex;
	gap: 8px;
	padding: 10px 14px;
}

.chatbot-input {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 8px;
	color: #fff;
	flex: 1;
	font: inherit;
	font-size: 14px;
	min-height: 0;
	outline: 0;
	padding: 9px 12px;
	transition: border-color .2s;
	width: 100%;
}

.chatbot-input::placeholder { color: rgba(255, 255, 255, .35); }

.chatbot-input:focus {
	border-color: rgba(27, 248, 166, .5);
}

.chatbot-input-error {
	animation: shake .3s ease;
	border-color: rgba(255, 80, 80, .6) !important;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25%       { transform: translateX(-5px); }
	75%       { transform: translateX(5px); }
}

[hidden] { display: none !important; }


.chatbot-send {
	align-items: center;
	background: var(--bright, #1bf8a6);
	border: 0;
	border-radius: 8px;
	color: #0b3b24;
	cursor: pointer;
	display: flex;
	height: 38px;
	justify-content: center;
	min-width: 38px;
	transition: background .2s, transform .15s;
	width: 38px;
}

.chatbot-send:hover { background: #fff; transform: scale(1.06); }

/* ── Quick reply options ─────────────────────────────────────────────────── */
.chatbot-options {
	border-top: 1px solid rgba(255, 255, 255, .06);
	display: grid;
	gap: 6px;
	max-height: 220px;
	overflow-y: auto;
	padding: 10px 14px 14px;
}

.chatbot-option,
.chatbot-option-link {
	animation: msg-in .2s ease both;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(27, 248, 166, .25);
	border-radius: 8px;
	color: rgba(255, 255, 255, .85);
	cursor: pointer;
	display: block;
	font: inherit;
	font-size: 13.5px;
	padding: 9px 13px;
	text-align: left;
	text-decoration: none;
	transition: background .18s, border-color .18s, color .18s, transform .15s;
	width: 100%;
}

.chatbot-option:nth-child(2) { animation-delay: .05s; }
.chatbot-option:nth-child(3) { animation-delay: .1s;  }
.chatbot-option:nth-child(4) { animation-delay: .15s; }
.chatbot-option:nth-child(5) { animation-delay: .2s;  }
.chatbot-option:nth-child(6) { animation-delay: .25s; }

.chatbot-option:hover,
.chatbot-option:focus-visible,
.chatbot-option-link:hover,
.chatbot-option-link:focus-visible {
	background: var(--bright, #1bf8a6);
	border-color: var(--bright, #1bf8a6);
	color: #0b3b24;
	outline: 0;
	transform: translateX(3px);
}

/* ── Launcher button ─────────────────────────────────────────────────────── */
.chatbot-launcher {
	align-items: center;
	background: var(--bright, #1bf8a6);
	border: 0;
	border-radius: 50px;
	box-shadow: 0 8px 28px rgba(27, 248, 166, .4), 0 2px 8px rgba(0, 0, 0, .25);
	color: #0b3b24;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	gap: 9px;
	letter-spacing: .03em;
	padding: 13px 20px 13px 15px;
	text-transform: uppercase;
	transition: background .2s, box-shadow .2s, transform .2s;
}

.chatbot-launcher:hover,
.chatbot-launcher:focus-visible {
	background: #fff;
	box-shadow: 0 12px 36px rgba(27, 248, 166, .35), 0 2px 8px rgba(0, 0, 0, .2);
	outline: 0;
	transform: translateY(-3px);
}

.chatbot-launcher-icon {
	align-items: center;
	display: flex;
	height: 22px;
	justify-content: center;
	width: 22px;
}

.icon-close { display: none; }

.chatbot-launcher.is-open .icon-chat  { display: none; }
.chatbot-launcher.is-open .icon-close { display: block; }

/* ── Notification bubble ─────────────────────────────────────────────────── */
.chatbot-notify {
	background: #fff;
	border-radius: 12px;
	bottom: 80px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
	color: #1e1e1e;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	opacity: 0;
	padding: 12px 36px 12px 16px;
	pointer-events: none;
	position: absolute;
	right: 0;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s;
	white-space: nowrap;
}

.chatbot-notify::before {
	background: var(--bright, #1bf8a6);
	border-radius: 50%;
	bottom: -5px;
	content: '';
	height: 10px;
	position: absolute;
	right: 22px;
	width: 10px;
}

.chatbot-notify.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.chatbot-notify p { margin: 0; }

.chatbot-notify-close {
	background: none;
	border: 0;
	color: #999;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	padding: 2px;
	position: absolute;
	right: 10px;
	top: 10px;
}

.chatbot-notify-close:hover { color: #333; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
	.chatbot {
		bottom: 16px;
		right: 16px;
	}

	.chatbot-panel {
		width: calc(100vw - 32px);
	}

	.chatbot-launcher-label {
		display: none;
	}

	.chatbot-launcher {
		border-radius: 50%;
		height: 52px;
		padding: 0;
		width: 52px;
		justify-content: center;
	}
}
