
.biogeo-assistant-root,
.biogeo-assistant-root * {
	box-sizing: border-box;
}

.biogeo-assistant-root {
	position: fixed;
	right: 24px;
	bottom: 105px;
	z-index: 999999;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.biogeo-assistant-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	padding: 14px 20px;
	background: var(--biogeo-primary, #6f168f);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(0,0,0,.18);
	transition: transform .18s ease, box-shadow .18s ease;
}

.biogeo-assistant-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.biogeo-assistant-launcher-icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255,255,255,.16);
	font-size: 15px;
}

.biogeo-assistant-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20,20,24,.48);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility .18s ease;
	z-index: 999997;
}

.biogeo-assistant-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.biogeo-assistant-panel {
	position: fixed;
	left: 50%;
	top: 50%;
	width: min(520px, calc(100vw - 34px));
	max-height: min(760px, calc(100vh - 50px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	background: var(--biogeo-panel, #fff);
	box-shadow: 0 26px 90px rgba(0,0,0,.32);
	border: 1px solid rgba(0,0,0,.08);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -46%) scale(.97);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	z-index: 999998;
}

.biogeo-assistant-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.biogeo-assistant-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 18px 16px;
	background: linear-gradient(135deg, var(--biogeo-header-start, #79bea2), var(--biogeo-header-end, #79bea2));
	color: #fff;
}

.biogeo-assistant-header strong,
.biogeo-assistant-header span {
	display: block;
}

.biogeo-assistant-header strong {
	font-size: 17px;
}

.biogeo-assistant-header span {
	margin-top: 3px;
	font-size: 12px;
	opacity: .86;
}

.biogeo-assistant-close {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.14);
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.biogeo-assistant-body {
	padding: 20px;
	overflow-y: auto;
	background: var(--biogeo-body, #fbfbfc);
}

.biogeo-chat-message {
	max-width: 92%;
	margin-bottom: 12px;
	padding: 12px 14px;
	border-radius: 14px 14px 14px 5px;
	background: var(--biogeo-card, #fff);
	border: 1px solid #ececf0;
	color: var(--biogeo-text, #24252a);
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 4px 12px rgba(0,0,0,.03);
}

.biogeo-chat-message strong {
	color: var(--biogeo-primary, #6f168f);
}

.biogeo-small-note {
	color: var(--biogeo-muted, #6b6d74);
	font-size: 12px;
}

.biogeo-answer-summary {
	margin: 12px 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f2e8f7;
	color: #54216a;
	font-size: 12px;
	font-weight: 600;
}

.biogeo-options {
	display: grid;
	gap: 9px;
	margin: 12px 0 4px;
}

.biogeo-option {
	width: 100%;
	text-align: left;
	border: 1px solid var(--biogeo-border, #ddd7e4);
	border-radius: 12px;
	padding: 12px 14px;
	background: var(--biogeo-option, #fff);
	color: var(--biogeo-text, #24252a);
	font-size: 14px;
	font-weight: 650;
	cursor: pointer;
	transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.biogeo-option:hover {
	border-color: var(--biogeo-primary, #6f168f);
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(111,22,143,.08);
}

.biogeo-option:disabled {
	opacity: .58;
	cursor: default;
}

.biogeo-result {
	padding: 16px;
	border-radius: 16px;
	background: var(--biogeo-card, #fff);
	border: 1px solid var(--biogeo-border, #e6e2e8);
	box-shadow: 0 7px 20px rgba(0,0,0,.05);
}

.biogeo-result-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	padding: 5px 9px;
	border-radius: 999px;
	background: #edf8f1;
	color: #267a43;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.biogeo-result h3 {
	margin: 0 0 8px;
	color: var(--biogeo-text, #24252a);
	font-size: 20px;
	line-height: 1.25;
}

.biogeo-result p {
	margin: 0 0 14px;
	color: var(--biogeo-muted, #6b6d74);
	font-size: 14px;
	line-height: 1.55;
}

.biogeo-result-actions {
	display: grid;
	gap: 9px;
}

.biogeo-result-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 43px;
	padding: 10px 14px;
	border-radius: 11px;
	text-decoration: none !important;
	font-weight: 750;
}

.biogeo-result-link.primary {
	background: var(--biogeo-primary, #6f168f);
	color: #fff !important;
}

.biogeo-result-link.secondary {
	background: #f4f4f6;
	color: #333 !important;
}

/* Lead form */
.biogeo-lead-box {
	margin-top: 16px;
	padding: 16px;
	border-radius: 16px;
	background: var(--biogeo-card, #fff);
	border: 1px solid var(--biogeo-border, #e6e2e8);
	box-shadow: 0 7px 20px rgba(0,0,0,.04);
}

.biogeo-lead-title {
	font-size: 16px;
	font-weight: 800;
	color: #25262a;
}

.biogeo-lead-subtitle {
	margin-top: 4px;
	color: var(--biogeo-muted, #6b6d74);
	font-size: 12px;
	line-height: 1.45;
}

.biogeo-lead-form {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.biogeo-lead-form label > span:first-child {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 700;
	color: #3f4147;
}

.biogeo-lead-form input[type="text"],
.biogeo-lead-form input[type="email"] {
	width: 100%;
	height: 42px;
	padding: 8px 11px;
	border: 1px solid #d9d9df;
	border-radius: 9px;
	background: var(--biogeo-panel, #fff);
	color: #222;
	font: inherit;
}

.biogeo-lead-form input[type="text"]:focus,
.biogeo-lead-form input[type="email"]:focus {
	outline: none;
	border-color: var(--biogeo-primary, #6f168f);
	box-shadow: 0 0 0 2px rgba(111,22,143,.08);
}

.biogeo-check {
	display: grid !important;
	grid-template-columns: 18px 1fr;
	gap: 8px;
	align-items: start;
	color: #5f6269;
	font-size: 11px;
	line-height: 1.45;
}

.biogeo-check input {
	margin-top: 2px;
}

.biogeo-check a {
	color: var(--biogeo-primary, #6f168f);
}

.biogeo-lead-submit {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-radius: 10px;
	background: var(--biogeo-accent, #2f9d55);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.biogeo-lead-submit:disabled {
	opacity: .65;
	cursor: wait;
}

.biogeo-lead-status {
	color: #b42318;
	font-size: 12px;
	line-height: 1.4;
}

.biogeo-lead-success {
	display: grid;
	gap: 4px;
	padding: 14px;
	border-radius: 12px;
	background: #edf8f1;
	color: #267a43;
}

.biogeo-lead-success strong {
	font-size: 14px;
}

.biogeo-lead-success span {
	font-size: 12px;
}

.biogeo-assistant-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-top: 1px solid var(--biogeo-border, #ececf0);
	background: var(--biogeo-panel, #fff);
	color: #8a8d94;
	font-size: 11px;
}

.biogeo-assistant-footer button {
	border: 0;
	padding: 4px 0;
	background: transparent;
	color: var(--biogeo-primary, #6f168f);
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

body.biogeo-assistant-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.biogeo-assistant-root {
		right: 14px;
		bottom: 90px;
	}

	.biogeo-assistant-panel {
		width: calc(100vw - 24px);
		max-height: calc(100vh - 24px);
		border-radius: 18px;
	}

	.biogeo-assistant-body {
		padding: 16px;
	}
}
