/* HG Lestvica nakupa – mobile-first. */

.hg-cl {
	--accent: var(--hg-cl-accent, #42c1ef);
	margin: 12px 0 16px;
	font-size: 14px;
	line-height: 1.4;
}

.hg-cl-message {
	margin: 0 0 26px;
	font-weight: 600;
	color: #23313a;
	text-align: center;
}

/* ----------------------------------------------------------- track */

.hg-cl-track {
	position: relative;
	height: 10px;
	background: #eef2f4;
	border-radius: 999px;
	margin: 0 14px 34px;
}

.hg-cl-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent), #3aa76d);
	border-radius: 999px;
	transition: width .5s cubic-bezier(.22, 1, .36, 1);
}

.hg-cl-station {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: auto;
}

.hg-cl-station-icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #dbe3e7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: all .3s ease;
	box-shadow: 0 1px 4px rgba(20, 40, 50, .1);
}

.hg-cl-station.is-reached .hg-cl-station-icon {
	border-color: var(--accent);
	background: var(--accent);
	filter: none;
	box-shadow: 0 2px 8px rgba(66, 193, 239, .45);
	transform: scale(1.08);
}

.hg-cl-station-amount {
	margin-top: 24px;
	position: absolute;
	top: 100%;
	font-size: 11px;
	color: #7a8790;
	white-space: nowrap;
	margin-top: 6px;
}

.hg-cl-station.is-reached .hg-cl-station-amount {
	color: var(--accent);
	font-weight: 600;
}

.hg-cl--compact .hg-cl-message {
	margin-bottom: 20px;
	font-size: 13px;
}

.hg-cl--compact .hg-cl-track {
	height: 8px;
	margin-bottom: 26px;
}

.hg-cl--compact .hg-cl-station-icon {
	width: 24px;
	height: 24px;
	font-size: 12px;
}

.hg-cl--compact .hg-cl-station-amount {
	display: none;
}

.hg-cl-note {
	margin: 6px 0 0;
	font-size: 12px;
	color: #7a8790;
	text-align: center;
}

/* ---------------------------------------------------------- filler */

.hg-cl-filler {
	margin-top: 14px;
}

.hg-cl-filler-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #23313a;
}

.hg-cl-filler-items {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	padding-bottom: 4px;
}

.hg-cl-item {
	flex: 0 0 128px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #e6ebee;
	border-radius: 12px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: center;
}

.hg-cl-item a {
	text-decoration: none;
	color: inherit;
}

.hg-cl-item img {
	width: 100%;
	height: 76px;
	object-fit: contain;
	border-radius: 8px;
}

.hg-cl-item-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.3;
	min-height: 31px;
}

.hg-cl-item-price {
	font-weight: 700;
	font-size: 13px;
	color: #23313a;
}

.hg-cl-add {
	border: none;
	background: var(--hg-cl-accent, #42c1ef);
	color: #fff;
	border-radius: 999px;
	padding: 7px 0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	min-height: 34px;
	transition: transform .12s ease, opacity .12s ease;
}

.hg-cl-add:active {
	transform: scale(.96);
}

.hg-cl-add:disabled {
	opacity: .65;
	cursor: default;
}

/* ----------------------------------------------------------- gifts */

.hg-cl-gift-badge {
	display: inline-block;
	background: rgba(58, 167, 109, .12);
	color: #2c7a51;
	border-radius: 6px;
	padding: 1px 7px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 6px;
}

.hg-cl-gift-free {
	color: #2c7a51;
	font-weight: 700;
}

/* ---------------------------------------------------------- sticky */

.hg-cl-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
}

.hg-cl-sticky-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	border-top: 1px solid #e6ebee;
	box-shadow: 0 -4px 18px rgba(20, 40, 50, .1);
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	cursor: pointer;
	user-select: none;
}

.hg-cl-sticky-track {
	flex: 0 0 72px;
	height: 7px;
	background: #eef2f4;
	border-radius: 999px;
	overflow: hidden;
}

.hg-cl-sticky-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--hg-cl-accent, #42c1ef), #3aa76d);
	border-radius: 999px;
	transition: width .5s ease;
}

.hg-cl-sticky-text {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: #23313a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hg-cl-sticky-chevron {
	color: #9aa7af;
	transition: transform .25s ease;
}

.hg-cl-sticky.is-open .hg-cl-sticky-chevron {
	transform: rotate(180deg);
}

.hg-cl-sticky-panel {
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -8px 30px rgba(20, 40, 50, .18);
	padding: 18px 16px calc(12px + env(safe-area-inset-bottom));
	max-height: 70vh;
	overflow-y: auto;
	animation: hgClSlideUp .28s ease;
}

@keyframes hgClSlideUp {
	from { transform: translateY(24px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

/* Desktop: sticky only clutters – hide above tablet. */
@media (min-width: 992px) {
	.hg-cl-sticky {
		display: none;
	}
}

/* Lift the AI assistant launcher above the sticky bar on mobile. */
@media (max-width: 991px) {
	body.hg-cl-has-sticky #hg-ai-root .hg-ai-launcher {
		bottom: 74px;
	}

	body.hg-cl-has-sticky #hg-ai-root .hg-ai-teaser {
		bottom: 140px;
	}
}

/* -------------------------------------------------------- confetti */

.hg-cl-confetti {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 99999;
	overflow: hidden;
}

.hg-cl-confetti span {
	position: absolute;
	top: -30px;
	animation: hgClFall 1.6s ease-in forwards;
}

@keyframes hgClFall {
	to {
		transform: translateY(105vh) rotate(340deg);
		opacity: .2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hg-cl *,
	.hg-cl-sticky *,
	.hg-cl-confetti {
		animation: none !important;
		transition: none !important;
	}
}
