.la-root {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99980;
	font-family: Inter, system-ui, sans-serif;
}

.la-toggle {
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.la-panel {
	position: absolute;
	left: 0;
	bottom: 68px;
	width: min(360px, calc(100vw - 32px));
	height: min(720px, calc(100vh - 72px));
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.la-root.is-open .la-panel {
	display: flex;
}

.la-head {
	padding: 12px 14px;
	background: #111;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.la-head h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.la-head p {
	margin: 2px 0 0;
	font-size: 11px;
	opacity: 0.8;
}

.la-head button {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

.la-head-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

.la-lang {
	max-width: 110px;
	border: 0;
	border-radius: 6px;
	padding: 4px 6px;
	font-size: 11px;
	background: #2a2a2a;
	color: #fff;
}

.la-catalog {
	border-bottom: 1px solid #eee;
	background: #fff;
	max-height: 280px;
	overflow: auto;
	flex: 0 0 auto;
}

.la-catalog.is-compact {
	max-height: 280px;
}

.la-catalog-head {
	display: flex;
	justify-content: space-between;
	padding: 8px 12px 4px;
	font-size: 11px;
	font-weight: 700;
}

.la-catalog-head a {
	color: #666;
	font-weight: 500;
}

.la-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 10px 8px;
	align-items: center;
}

.la-chips-label {
	width: 100%;
	font-size: 11px;
	font-weight: 700;
	color: #444;
}

.la-chip {
	border: 1px solid #e0e0e0;
	background: #fff;
	border-radius: 999px;
	padding: 5px 10px;
	font-size: 11px;
	cursor: pointer;
}

.la-catalog-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 0 10px 10px;
}

.la-product {
	border: 1px solid #e8e8e8;
	background: #fafafa;
	border-radius: 8px;
	padding: 8px;
	text-align: left;
	line-height: 1.3;
}

.la-product strong {
	display: block;
	font-size: 12px;
	margin-bottom: 4px;
}

.la-product span {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 11px;
	color: #555;
	margin-bottom: 6px;
}

.la-product-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.la-product-row button,
.la-product-row a {
	font-size: 11px;
	border: 0;
	background: #111;
	color: #fff;
	border-radius: 6px;
	padding: 4px 8px;
	text-decoration: none;
	cursor: pointer;
}

.la-product-row a {
	background: #fff;
	color: #111;
	border: 1px solid #ddd;
}

.la-lead {
	display: grid;
	gap: 6px;
	margin-top: 8px;
}

.la-lead input,
.la-lead textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 7px 8px;
	font: inherit;
	font-size: 12px;
}

.la-lead button {
	border: 0;
	background: #111;
	color: #fff;
	border-radius: 6px;
	padding: 8px;
	cursor: pointer;
	font-weight: 700;
}

.la-lead-err {
	margin: 0;
	color: #b91c1c;
	font-size: 11px;
}

.la-hint {
	padding: 4px 12px;
	font-size: 11px;
	color: #888;
	background: #f6f6f4;
}

.la-msg-tr {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px dashed #ddd;
	font-size: 12px;
	color: #444;
}

.la-root[dir='rtl'] .la-msg--user {
	margin-left: 0;
	margin-right: auto;
}

.la-log {
	flex: 1;
	overflow: auto;
	padding: 12px;
	background: #f6f6f4;
}

.la-msg {
	margin: 0 0 10px;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.45;
	max-width: 92%;
}

.la-msg--bot {
	background: #fff;
	border: 1px solid #ececec;
}

.la-msg--user {
	background: #1a1a1a;
	color: #fff;
	margin-left: auto;
}

.la-msg--staff {
	background: #fff8e8;
	border: 1px solid #ead9a8;
}

.la-msg-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 4px;
	opacity: 0.7;
}

.la-toggle--ping {
	animation: la-ping 1.2s ease-in-out infinite;
	background: #b45309;
}

.la-links {
	display: grid;
	gap: 6px;
	margin-top: 8px;
}

.la-links a {
	display: block;
	padding: 8px 10px;
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	color: #111;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
}

.la-form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #eee;
	background: #fff;
}

.la-form textarea {
	flex: 1;
	min-height: 42px;
	max-height: 90px;
	resize: none;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px;
	font: inherit;
	font-size: 13px;
}

.la-form button {
	border: 0;
	background: #111;
	color: #fff;
	border-radius: 8px;
	padding: 0 12px;
	cursor: pointer;
	font-weight: 600;
}

.la-actions {
	display: flex;
	gap: 8px;
	padding: 0 10px 10px;
}

.la-actions button {
	flex: 1;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 8px;
	padding: 7px 8px;
	font-size: 12px;
	cursor: pointer;
}

@keyframes la-ping {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
}

@media (max-width: 782px) {
	.la-root {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		pointer-events: none;
	}

	.la-root.is-open {
		pointer-events: auto;
	}

	.la-panel {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(78px + env(safe-area-inset-bottom, 0px));
		width: auto;
		height: min(72dvh, 620px);
		max-height: calc(100dvh - 96px);
		pointer-events: auto;
	}
}
