.bikestore-ai {
	--bikestore-ai-z: 1065;
	position: fixed;
	right: 20px;
	bottom: 88px;
	z-index: var(--bikestore-ai-z);
	font-family: 'Rubik', 'Tahoma', Arial, sans-serif;
}

.bikestore-ai__launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 16px 0 8px;
	border: none;
	border-radius: 999px;
	background: #171717;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bikestore-ai__launcher:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.bikestore-ai.is-open .bikestore-ai__launcher {
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
}

.bikestore-ai__launcher-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%);
	color: #111827;
}

.bikestore-ai__launcher-text {
	font-size: 15px;
	font-weight: 600;
	background: linear-gradient(90deg, #fb923c 0%, #ef4444 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.bikestore-ai__panel {
	position: absolute;
	right: 0;
	bottom: 0;
	width: min(390px, calc(100vw - 24px));
	height: min(620px, calc(100vh - 110px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.bikestore-ai.is-open .bikestore-ai__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.bikestore-ai__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #eef0f4;
}

.bikestore-ai__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.bikestore-ai__brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%);
	color: #111827;
}

.bikestore-ai__brand-title {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.bikestore-ai__beta {
	font-size: 12px;
	color: #9ca3af;
}

.bikestore-ai__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
}

.bikestore-ai__close:hover {
	background: #f3f4f6;
}

.bikestore-ai__messages {
	flex: 1 1 auto;
	overflow: auto;
	padding: 16px;
}

.bikestore-ai__welcome-title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
	color: #111827;
}

.bikestore-ai__welcome-text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
}

.bikestore-ai__suggestions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bikestore-ai__chip {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: none;
	border-radius: 12px;
	background: #f3f4f6;
	color: #111827;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bikestore-ai__chip:hover {
	background: #e9ebf0;
}

.bikestore-ai__bubble {
	max-width: 92%;
	margin: 0 0 12px;
	padding: 11px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.bikestore-ai__bubble--bot {
	background: #f8fafc;
	color: #111827;
	border: 1px solid #eef0f4;
}

.bikestore-ai__bubble--user {
	margin-left: auto;
	background: #171717;
	color: #fff;
}

.bikestore-ai__products-title {
	margin: 4px 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: #111827;
}

.bikestore-ai__products {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 14px;
}

.bikestore-ai__product {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.bikestore-ai__product:hover {
	border-color: #fb923c;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.bikestore-ai__product-thumb {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #f8fafc;
}

.bikestore-ai__product img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bikestore-ai__product-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bikestore-ai__product-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 12px;
	font-weight: 600;
	color: #111827;
	line-height: 1.35;
}

.bikestore-ai__product-price {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

.bikestore-ai__product-action {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #ea580c;
}

.bikestore-ai__view-all {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #111827;
	border-radius: 12px;
	background: #fff;
	color: #111827;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bikestore-ai__view-all:hover {
	background: #111827;
	border-color: #111827;
	color: #fff;
	text-decoration: none;
}

.bikestore-ai__results-bar {
	flex: 0 0 auto;
	padding: 0 12px 10px;
	border-top: 1px solid #eef0f4;
	background: #fff;
}

.bikestore-ai__results-bar[hidden] {
	display: none !important;
}

.bikestore-ai__typing {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 14px;
	background: #f8fafc;
	color: #6b7280;
	font-size: 13px;
}

.bikestore-ai__composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px 12px 10px;
	border-top: 1px solid #eef0f4;
	background: #fff;
}

.bikestore-ai__input {
	flex: 1 1 auto;
	min-height: 42px;
	max-height: 120px;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	resize: none;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	outline: none;
}

.bikestore-ai__input:focus {
	border-color: #fb923c;
	box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.25);
}

.bikestore-ai__send {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 12px;
	background: #171717;
	color: #fff;
	cursor: pointer;
}

.bikestore-ai__send:disabled {
	opacity: 0.55;
	cursor: default;
}

.bikestore-ai__footer {
	padding: 0 16px 12px;
}

.bikestore-ai__disclaimer {
	font-size: 12px;
	color: #9ca3af;
}

@media (max-width: 991px) {
	.bikestore-ai {
		right: 12px;
		bottom: 78px;
	}

	.bikestore-ai__launcher {
		height: 42px;
		padding-right: 14px;
	}

	.bikestore-ai__launcher-text {
		font-size: 14px;
	}

	.bikestore-ai__panel {
		width: calc(100vw - 24px);
		height: min(72vh, 560px);
	}
}
