.wp-block-nest-animated-counter.nest-counter-block {
    --nest-counter-gap: 10px;
    display: flex;
    flex-direction: column;
    gap: var(--nest-counter-gap);
    width: 100%;
    position: relative;
}

.wp-block-nest-animated-counter .nest-counter-number {
    line-height: 0.95;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    will-change: transform, opacity, filter;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease, text-shadow .35s ease;
}

.wp-block-nest-animated-counter .nest-counter-label {
    line-height: 1.3;
    letter-spacing: 0.01em;
    white-space: pre-line;
}

.wp-block-nest-animated-counter.has-entrance:not(.is-visible) .nest-counter-number,
.wp-block-nest-animated-counter.has-entrance:not(.is-visible) .nest-counter-label {
    opacity: 0;
    transform: translateY(18px);
}

.wp-block-nest-animated-counter.has-entrance .nest-counter-number,
.wp-block-nest-animated-counter.has-entrance .nest-counter-label {
    transition: opacity .7s ease, transform .8s cubic-bezier(.16,1,.3,1), filter .35s ease, text-shadow .35s ease;
}

.wp-block-nest-animated-counter.has-entrance.is-visible .nest-counter-number,
.wp-block-nest-animated-counter.has-entrance.is-visible .nest-counter-label {
    opacity: 1;
    transform: translateY(0);
}

.wp-block-nest-animated-counter.has-entrance.is-visible .nest-counter-label {
    transition-delay: .12s;
}

.wp-block-nest-animated-counter.is-counting .nest-counter-number {
    transform: scale(1.035);
}

.wp-block-nest-animated-counter.has-glow.is-counting .nest-counter-number {
    filter: brightness(1.18);
    text-shadow: 0 0 0.32em currentColor;
}

.wp-block-nest-animated-counter.has-glow.is-complete .nest-counter-number {
    animation: nest-counter-pop .55s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes nest-counter-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.075); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-nest-animated-counter *,
    .wp-block-nest-animated-counter *::before,
    .wp-block-nest-animated-counter *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
