.qh-widget {
	--qh-primary: #DABC76;
	--qh-text: #1a1a1a;
	--qh-bg: #ffffff;
	--qh-border: #e5e7eb;
	--qh-radius: 12px;
	--qh-shadow: 0 10px 40px rgba(0,0,0,0.15);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	position: fixed;
	z-index: 99999;
	bottom: 24px;
	line-height: 1.5;
	box-sizing: border-box;
}

.qh-widget.qh-widget--right { right: 24px; }
.qh-widget.qh-widget--left { left: 24px; }

.qh-fab {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--qh-primary);
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 12px 12px 12px 20px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
	transition: transform 0.2s, box-shadow 0.2s;
	line-height: 1.3;
}

.qh-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.qh-fab__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.qh-fab__title {
	display: block;
	font-weight: 600;
	font-size: 14px;
}

.qh-fab__subtitle {
	display: block;
	font-weight: 400;
	font-size: 12px;
	opacity: 0.85;
}

.qh-fab__icon-wrap {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.qh-fab__icon {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qh-fab__icon svg {
	width: 20px;
	height: 20px;
}

.qh-fab__icon--close { display: none; }

.qh-widget.is-open .qh-fab__icon--open { display: none; }
.qh-widget.is-open .qh-fab__icon--close { display: flex; }

.qh-panel {
	position: absolute;
	bottom: calc(100% + 16px);
	width: 360px;
	max-width: calc(100vw - 48px);
	background: var(--qh-bg);
	border-radius: var(--qh-radius);
	box-shadow: var(--qh-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 70vh;
}

.qh-widget--right .qh-panel { right: 0; }
.qh-widget--left .qh-panel { left: 0; }

.qh-widget.is-open .qh-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.qh-panel__header {
	background: var(--qh-primary);
	color: #fff;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.qh-panel__title {
	font-size: 16px;
	font-weight: 600;
}

.qh-panel__close {
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qh-panel__body {
	overflow-y: auto;
	flex: 1 1 auto;
}

.qh-panel__list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.qh-panel__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	cursor: pointer;
	transition: background 0.15s;
	border-bottom: 1px solid var(--qh-border);
}

.qh-panel__item:last-child { border-bottom: none; }

.qh-panel__item:hover { background: #f8fafc; }

.qh-item__icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--qh-primary);
}

.qh-item__icon svg,
.qh-item__icon img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.qh-item__text {
	flex: 1;
	font-size: 14px;
	color: var(--qh-text);
	font-weight: 500;
}

.qh-item__arrow {
	color: #9ca3af;
	font-size: 20px;
	line-height:1;
	transition: transform 0.15s;
}

.qh-panel__item:hover .qh-item__arrow {
	transform: translateX(3px);
	color: var(--qh-primary);
}

.qh-panel__detail {
	display: none;
	padding: 20px;
}

.qh-panel__detail.is-active { display: block; }

.qh-detail__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: var(--qh-primary);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 0 0 12px;
	margin-bottom: 8px;
}

.qh-detail__title {
	font-size: 16px;
	font-weight: 600;
	color: var(--qh-text);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.qh-detail__title-icon {
	width: 28px;
	height: 28px;
	color: var(--qh-primary);
}

.qh-detail__content p {
	font-size: 14px;
	color: #374151;
	margin: 0 0 12px;
	line-height: 1.6;
}

.qh-detail__image {
	width: 100%;
	border-radius: 8px;
	margin: 12px 0;
	display: block;
}

.qh-detail__button {
	display: inline-block;
	background: var(--qh-primary);
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	margin-top: 8px;
	transition: opacity 0.15s;
}

.qh-detail__button:hover {
	opacity: 0.9;
	color: #fff;
}

.qh-panel__footer {
	border-top: 1px solid var(--qh-border);
	padding: 16px 20px;
	background: #f9fafb;
	flex-shrink: 0;
}

.qh-panel__footer-text {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 8px;
	text-align: center;
}

.qh-panel__footer-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #fff;
	color: var(--qh-primary);
	border: 1px solid var(--qh-border);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s;
}

.qh-panel__footer-link:hover {
	background: #f0fdf4;
}

.qh-whatsapp-icon {
	font-size: 16px;
}
@media (max-width: 767px) {
	.qh-widget.qh-widget--right {
	bottom: 75px;
}
}
@media (max-width: 480px) {
	.qh-panel {
		width: calc(100vw - 48px);
		max-height: 65vh;
	}
	.qh-fab__content {
		display: none;
	}
	.qh-fab {
		padding: 12px;
		border-radius: 50%;
	}
	.qh-fab__icon-wrap {
		width: 36px;
		height: 36px;
	}
}
