.zuzu-price-history {
	margin: 24px 0 24px;
	margin-inline: -25px;
	padding: 15px 18px 15px;
	border-block: 1px solid #e6e8ec;
	color: #1f2937;
	font-family: inherit;
	line-height: 1.35;
}

.zuzu-price-history *,
.zuzu-price-history *::before,
.zuzu-price-history *::after {
	box-sizing: border-box;
}

/* Title */
.zuzu-price-history__header {
	position: relative;
	margin: 0 0 30px;
}

.zuzu-price-history__title {
	margin: 0 !important;
	padding: 0;
	color: #6b7280;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-align: center;
	text-transform: uppercase;
}

.zuzu-price-history__wishlist {
	position: absolute;
	inset-block-start: 50%;
	transform: translateY(-50%);
	line-height: 1;


	.heart_thumb_wrap {
		display: flex;
		outline: 1px solid #999;
		border-radius: 3px;
		justify-content: center;
		align-items: center;
		margin-inline: 0px;
		padding: 0px 8px;
		font-size: small;
		margin-top: 6px;
		font-weight: 600;

		.thumbscount {
			display: none;
		}

		.cell_wishlist {
			&:hover {
				transform: scale(1.05);
			}

			.heartplus {
				display: flex;
				align-items: center;
				gap: .4em;
				color: #666;
				margin: 0;
			}

			.heartplus.alreadywish:before {
				color: #d04040;
			}

			&:hover .heartplus.alreadywish:not(.wishlisted):before {
				content: "\e935";
			}
		}
	}
}


.zuzu-price-history__wishlist .widheart_thumb_wrap {
	margin: 0;
}

.zuzu-price-history__view {
	display: none;
}

.zuzu-price-history__view.is-active {
	display: block;
}

.zuzu-price-history__toggle {
}

.zuzu-price-history__toggle-btn {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0;
	color: rgb(from #0f172a r g b / 0.55);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: lowercase;
	cursor: pointer;
}

.zuzu-price-history__toggle-btn:hover:not(:disabled):not(.is-active) {
	text-decoration: underline;
}

.zuzu-price-history__toggle-btn.is-active {
	color: #0f172a;
	font-weight: 700;
	cursor: default;
}

.zuzu-price-history__toggle-btn:disabled {
	color: #d1d5db;
	cursor: not-allowed;
}

.zuzu-price-history__toggle-sep {
	color: #d1d5db;
}

.zuzu-price-history__bar-wrap {
	position: relative;
}

.zuzu-price-history__bar {
	position: relative;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(to right, #16a34a 0%, #facc15 50%, #ef4444 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
	overflow: hidden;
}


.zuzu-price-history__tick {
	position: absolute;
	top: 3px;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, .92);
	border-radius: 999px;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, .12);
	transform: translateX(-50%);
	pointer-events: none;
}

.zuzu-price-history__mean-line {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 0;
	border-left: 2px dashed #7c3aed;
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 1;
}

/* Current-price marker (zero-width anchor at the data point) */
.zuzu-price-history__marker {
	position: absolute;
	bottom: 100%;
	width: 0;
	pointer-events: none;
}

.zuzu-price-history__marker-bubble {
	position: absolute;
	bottom: 6px;
	left: 0;
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	padding: 3px 8px;
	background: #fff;
	border: 1px solid oklch(0.32 0 0 / 0.3);
	border-radius: 999px;
	box-shadow: 0 2px 4px rgba(15, 23, 42, .06);
	white-space: nowrap;
	transform: translateX(var(--zuzu-bubble-shift, -50%));
	line-height: normal;
	font-size: 10px;
}

.zuzu-price-history__marker-key {
	color: #6b7280;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.zuzu-price-history__marker-value {
	color: #111827;
	font-weight: 500;
}

.zuzu-price-history__marker-diff {
	color: #6b7280;
	font-size: 9.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
}

.zuzu-price-history__marker-diff--up   { color: #ef4444; }
.zuzu-price-history__marker-diff--down { color: #16a34a; }

.zuzu-price-history__marker-pin {
	position: absolute;
	bottom: 0px;
	left: 0;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid oklch(0.32 0 0 / 0.9);
	transform: translateX(-50%);
}

/* Below-bar row: min / mean pill / max */
.zuzu-price-history__ends {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 20px;
	margin-top: 5px;
	font-size: 11px;
	flex-direction: row-reverse;
}

.zuzu-price-history__end-price {
	color: #111827;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.2;
}

.zuzu-price-history__end-price--cool { color: #16a34a; }
.zuzu-price-history__end-price--hot  { color: #ef4444; }

.zuzu-price-history__mean-label {
	position: absolute;
	top: -1px;
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	padding: 2px 7px;
	background: #fff;
	border: 1px solid #e9d5ff;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(124, 58, 237, .10);
	color: #334155;
	font-size: 10px;
	font-weight: 500;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 2;
}

.zuzu-price-history__mean-label > * {
	white-space: nowrap;
}

.zuzu-price-history__mean-label::before {
	content: "";
	width: 5px;
	height: 5px;
	background: #7c3aed;
	border-radius: 999px;
}

.zuzu-price-history__mean-label-key {
	color: #7c3aed;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.zuzu-price-history__cards {
	display: flex;
	flex-wrap: wrap;
	margin-top: 14px;
	direction: ltr;
}

.zuzu-price-history__card {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	padding: 2px 14px;
	background: transparent;
	border: 0;
	border-left: 1px solid rgba(15, 23, 42, .08);
	border-radius: 0;
	box-shadow: none;
	text-align: start;
}

.zuzu-price-history__card:first-child { padding-left: 0;  border-left: 0; }
.zuzu-price-history__card:last-child  { padding-right: 0; }

[dir="rtl"] .zuzu-price-history__card {
	direction: rtl;
}

/* Tints removed from background; the icon still carries the colour. */
.zuzu-price-history__card--cool,
.zuzu-price-history__card--mean,
.zuzu-price-history__card--hot {
	background: transparent;
}

.zuzu-price-history__card-header {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 4px;
}

.zuzu-price-history__card-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	background: rgba(15, 23, 42, .04);
	border-radius: 999px;
	color: #475569;
}

.zuzu-price-history__card--cool .zuzu-price-history__card-icon { background: #dcfce7; color: #16a34a; }
.zuzu-price-history__card--mean .zuzu-price-history__card-icon { background: #f3e8ff; color: #7c3aed; }
.zuzu-price-history__card--hot  .zuzu-price-history__card-icon { background: #fee2e2; color: #ef4444; }

.zuzu-price-history__card-icon svg {
	width: 10px;
	height: 10px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
}

.zuzu-price-history__card-label {
	color: #6b7280;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.zuzu-price-history__card-value {
	color: #0f172a;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.15;
	padding-inline-start: 20px;
}

.zuzu-price-history__card-value--cool { color: #16a34a; }
.zuzu-price-history__card-value--mean { color: #7c3aed; }
.zuzu-price-history__card-value--hot  { color: #ef4444; }

.zuzu-price-history__card-sub {
	margin-top: 2px;
	color: #9ca3af;
	font-size: 9.5px;
	padding-inline-start: 20px;
}

.zuzu-price-history__card-sub--up   { color: #ef4444; font-weight: 600; }
.zuzu-price-history__card-sub--down { color: #16a34a; font-weight: 600; }

@media (max-width: 900px) {
	.zuzu-price-history__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.zuzu-price-history {
		margin-inline: 0;
	}

	.zuzu-price-history__cards {
		display: flex;
		flex-direction: column;
		gap: 0;
		margin-top: 10px;
	}

	.zuzu-price-history__card {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: baseline;
		gap: 1px 8px;
		padding: 7px 2px;
		background: transparent;
		border: 0;
		border-top: 1px solid rgba(15, 23, 42, .06);
		border-radius: 0;
		box-shadow: none;
	}

	.zuzu-price-history__card:first-child {
		border-top: 0;
	}

	/* Reset tinted cards on mobile — only the icon keeps its colour. */
	.zuzu-price-history__card--cool,
	.zuzu-price-history__card--mean,
	.zuzu-price-history__card--hot {
		background: transparent;
		border-color: rgba(15, 23, 42, .06);
	}

	.zuzu-price-history__card-header {
		display: contents;
	}

	.zuzu-price-history__card-icon {
		width: 14px;
		height: 14px;
	}

	.zuzu-price-history__card-icon svg {
		width: 8px;
		height: 8px;
	}

	.zuzu-price-history__card-label {
		font-size: 10px;
		letter-spacing: .04em;
	}

	.zuzu-price-history__card-value {
		grid-column: 3;
		justify-self: end;
		padding: 0;
		font-size: 13px;
	}

	.zuzu-price-history__card-sub {
		grid-column: 2 / 3;
		margin: 0;
		padding: 0;
		font-size: 10px;
	}
}
