/**
 * Animated Counters widget.
 */

.dw-counter {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--dw-space-2);
	padding: var(--dw-space-5);
	text-align: center;
}

.dw-counter__icon {
	display: inline-flex;
	margin-block-end: var(--dw-space-2);
	color: var(--dw-color-primary);
	font-size: 40px;
	line-height: 1;
}

.dw-counter__icon svg {
	width: 40px;
	height: 40px;
	fill: currentColor;
}

.dw-counter__number {
	color: var(--dw-color-heading);
	font-family: var(--dw-font-heading);
	font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
	font-weight: 800;
	font-stretch: var(--dw-heading-stretch);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.dw-counter__label {
	font-size: var(--dw-fs-sm);
	font-weight: 600;
}

.dw-on-dark .dw-counter__number,
.dw-on-dark .dw-counter__label {
	color: var(--dw-color-white);
}

/* Optional vertical dividers between items (wide screens). */
@media (min-width: 1025px) {
	.dw-counters-dividers-yes .dw-counter + .dw-counter {
		border-inline-start: 1px solid var(--dw-color-border);
	}

	.dw-on-dark .dw-counters-dividers-yes .dw-counter + .dw-counter,
	.dw-counters-dividers-yes .dw-on-dark .dw-counter + .dw-counter {
		border-inline-start-color: rgba(255, 255, 255, 0.15);
	}
}

.dw-on-dark .dw-counter__icon {
	color: var(--dw-color-accent);
}

/* Underline below each number. */
.dw-counters-underline-yes .dw-counter__number::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	margin: var(--dw-space-4) auto 0;
	background-color: var(--dw-color-cta);
}

.dw-on-dark .dw-counters-underline-yes .dw-counter__number::after,
.dw-counters-underline-yes .dw-on-dark .dw-counter__number::after {
	background-color: currentColor;
}

.dw-counters-underline-yes .dw-counter__label {
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
