/**
 * Bike price history chart — paired with price-history-chart-bike.php
 *
 * @package NewTechPrice
 */

.ntp-price-chart__line {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
}

@media (prefers-reduced-motion: no-preference) {
	.ntp-price-chart__line--draw {
		animation: ntp-bike-price-chart-line-draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	}

	@keyframes ntp-bike-price-chart-line-draw {
		to {
			stroke-dashoffset: 0;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.ntp-price-chart__line--draw {
		stroke-dashoffset: 0;
		animation: none;
	}
}

.ntp-price-chart__point circle {
	transition: filter 0.15s ease, transform 0.15s ease;
	transform-box: fill-box;
	transform-origin: center;
}

.ntp-price-chart__point:hover circle {
	transform: scale(1.2);
	filter: drop-shadow(0 0 4px color-mix(in srgb, var(--ntp-accent-color, #00a8ff) 55%, transparent));
}

.ntp-price-history__refresh:disabled {
	opacity: 0.65;
	cursor: wait;
}
