/**
 * Flavors Stats Counter - base layout & cell styling.
 * Per-instance values (columns, gap, colors, typography, spacing, hover lift)
 * are injected by Elementor control `selectors` as CSS custom properties /
 * scoped rules, so this file stays static and HTTP-cacheable (no per-render
 * inline <style>). The count-up animation is handled by flavor-stats.js, which
 * also honours prefers-reduced-motion by setting final values immediately.
 */

.flavor-stats {
	display: grid;
	grid-template-columns: repeat(var(--flavor-stats-cols, 4), minmax(0, 1fr));
	gap: var(--flavor-stats-gap, 24px);
}

.flavor-stats-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	transition: transform .3s ease, box-shadow .3s ease;
}

.flavor-stats-cell:hover {
	transform: translateY(var(--flavor-stats-lift, 0));
}

/* Icon */
.flavor-stats-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.flavor-stats-icon svg {
	display: block;
}

/* Number line (prefix + value + suffix) */
.flavor-stats-number {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: nowrap;
	line-height: 1.1;
}

.flavor-stats-value {
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.flavor-stats-prefix,
.flavor-stats-suffix {
	line-height: 1.1;
}

/* Label */
.flavor-stats-label {
	display: block;
	line-height: 1.4;
}

/* Circle Progress display style (ported from the retired flavor-counter
   circle-progress skin, upgraded to a real SVG stroke-dashoffset ring that
   flavor-stats.js animates in sync with the count-up). */
.flavor-stats-circle {
	position: relative;
	display: inline-block;
	width: var(--flavor-stats-circle-size, 180px);
	height: var(--flavor-stats-circle-size, 180px);
}

.flavor-stats-ring {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	display: block;
}

.flavor-stats-ring-track,
.flavor-stats-ring-bar {
	fill: none;
	stroke-width: var(--flavor-stats-circle-stroke, 8);
}

.flavor-stats-ring-track {
	stroke: var(--flavor-stats-circle-track, #f0f0f1);
}

.flavor-stats-ring-bar {
	stroke: var(--flavor-stats-circle-bar, #2271b1);
	stroke-linecap: round;
	stroke-dasharray: 282.743;
	stroke-dashoffset: 282.743;
}

.flavor-stats-circle-inner {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Screen-reader copy of the final value (the animated line is aria-hidden). */
.flavor-stats-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
