#muza-help-widget {
	position: fixed;
	z-index: 999999;
	bottom: var(--muza-desktop-bottom);
	right: var(--muza-desktop-right);
}

@media (max-width: 768px) {
	#muza-help-widget {
		bottom: var(--muza-mobile-bottom);
		right: var(--muza-mobile-right);
	}
	#muza-help-widget.muza-chat-open #muza-help-toggle {
		display: none;
	}
	#muza-help-widget.muza-chat-open #muza-help-chat-box {
		bottom: 0;
	}
}

#muza-help-toggle {
	background-color: var(--muza-primary-color);
	color: #fff;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#muza-help-chat-box {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 350px;
	height: 700px;
	max-height: 95vh;
	background: #fafafa;
	border-radius: 20px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.07);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

@media (max-width: 400px) {
	#muza-help-chat-box {
		width: calc(100vw - 40px);
	}
}

.muza-chat-header {
	background-color: var(--muza-primary-color);
	color: #fff;
	padding: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.muza-chat-header h3 {
	margin: 0 !important;
	font-size: 26px !important;
	color: #fff !important;
}

#muza-help-close {
	background: none;
	border: none;
	color: #fff !important;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.muza-chat-messages {
	flex: 1;
	padding: 15px;
	overflow-y: auto;
	background-color: transparent;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.muza-message {
	padding: 10px 15px;
	border-radius: 15px;
	font-size: 14px;
	line-height: 1.4;
}

.muza-message.user {
	background-color: var(--muza-primary-color);
	width: 80%;
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 2px;
}

.muza-message h1, .muza-message h2, .muza-message h3, .muza-message h4, .muza-message h5, .muza-message h6 {
	margin-top: 1.25rem;
}

.muza-message.assistant {
	/* background-color: var(--muza-bg-color); */
	color: #333;
	align-self: flex-start;
	border-bottom-left-radius: 2px;
}

.muza-example-questions {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.muza-example-question-btn {
	background-color: var(--muza-button-color) !important;
	color: var(--muza-button-text-color) !important;
	border: none;
	border-radius: 12px;
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
	text-align: left;
	transition: opacity 0.2s ease;
}

.muza-example-question-btn:hover {
	opacity: 0.8;
}

.muza-chat-input {
	padding: 15px;
	border-top: 1px solid #eee;
	display: flex;
	gap: 10px;
}

.muza-chat-input input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 20px;
	outline: none;
}

.muza-chat-input button {
	background-color: var(--muza-primary-color);
	color: #fff;
	border: none;
	padding: 0 15px;
	border-radius: 20px;
	cursor: pointer;
}

.muza-chat-footer {
	font-size: 11px;
	text-align: center;
	color: #888;
	padding: 5px 15px 10px;
	background: #fff;
	line-height: 1.3;
}

/* Markdown parsing e Liste */
.muza-message.assistant ul {
	margin-top: 5px;
	margin-bottom: 5px;
	padding-left: 20px;
}

/* Quick Replies */
.muza-quick-replies {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 10px;
}
.muza-quick-reply-btn {
	background: #fff;
	border: 1px solid var(--muza-primary-color);
	color: var(--muza-primary-color);
	padding: 5px 12px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s ease;
}
.muza-quick-reply-btn:hover {
	background: var(--muza-primary-color);
	color: #fff;
}

/* Product Cards */
.muza-product-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	margin-top: 10px;
	text-align: center;
	padding-bottom: 10px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.muza-product-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
	max-height: 150px;
	display: block;
}
.muza-product-info {
	padding: 10px;
}
.muza-product-info strong {
	display: block;
	font-size: 14px;
	color: #333;
	margin-bottom: 5px;
}
.muza-product-price {
	display: block;
	color: var(--muza-primary-color);
	font-weight: bold;
	margin-bottom: 10px;
}
.muza-product-card-btn {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	background: var(--muza-primary-color);
	color: #fff;
	border: none;
	padding: 8px;
	width: calc(100% - 20px);
	border-radius: 4px;
	cursor: pointer;
}

/* Typing Indicator Loader */
.muza-typing-indicator {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
}
.muza-typing-indicator span {
	width: 8px;
	height: 8px;
	background-color: var(--muza-primary-color);
	border-radius: 50%;
	display: inline-block;
	animation: muza-bounce 1.4s infinite ease-in-out both;
}
.muza-typing-indicator span:nth-child(1) {
	animation-delay: -0.32s;
}
.muza-typing-indicator span:nth-child(2) {
	animation-delay: -0.16s;
}
@keyframes muza-bounce {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}
