/* Stat Counter */
div.stats-desc>div.counter_prefix,
div.stats-desc>div.counter_suffix {
    display: inline
}
.stats-block {
    display: block;
    margin-bottom: 35px
}
.stats-block .stats-number {
    display: inline
}
.stats-block .stats-number,
div.stats-desc > div.counter_prefix,
div.stats-desc > div.counter_suffix {
    font-size: 50px;
    font-weight: $font-weight-bold;
    line-height: 1;
}
div.stats-desc > div.counter_suffix {
    display: none;
}

.stats-left .porto-sicon-left {
    padding-#{$right}: 15px;
}
.stats-left .stats-desc {
    text-align: $left;
    box-sizing: content-box;
    width: auto
}
.stats-top .porto-sicon-top,
.stats-top .stats-desc {
    width: 100%;
    display: block;
    text-align: center
}
.stats-top .porto-icon,
.stats-top .img-icon {
    margin: 0 auto
}
.stats-top .porto-sicon-img {
    margin: 0 auto
}
.stats-top .stats-number {
    padding: 8px 0
}
.stats-right.stats-block {
    display: inline-block;
    width: 100%
}
.stats-right .porto-sicon-right {
    padding-#{$left}: 15px;
}
.stats-right .stats-desc {
    text-align: $right;
}
.stats-block.stats-left,
.stats-block.stats-right {
    @if $rtl == 1{
        direction: rtl
    }
    @else {
        direction: ltr
    }
    display: flex;
    align-items: center;
}
.stats-block {
    .porto-icon.none {
        margin-bottom: 5px;
    }
    .stats-text {
        font-weight: 200;
        font-size: 20px;
        line-height: 1;
        width: 100%;
        text-align: inherit;
    }
    &.counter-single-line {
        text-align: center;

        > div {
            display: inline-block;
            vertical-align: baseline;
            text-align: center;
        }
    }
    &.counter-with-border {
        border: 1px solid var(--porto-gray-2);
        box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.04);
        padding: 25px;
    }
    &.counter-inline {
        margin-bottom: 20px;
        .porto-sicon-top,
        .stats-desc {
            text-align: $left;
        }
        .stats-number,
        div.stats-desc > div.counter_prefix,
        div.stats-desc > div.counter_suffix {
            font-size: 14px;
        }
        div.counter_prefix,
        div.counter_suffix {
            font-weight: $font-weight-normal;
        }
    }

    &.counter-alternative .stats-number {
        font-family: var(--porto-alt-ff),sans-serif;
    }
}

/* theme colors */
/* primary, econdary, tertiary, quaternary, dark, light */
@each $state in $color_states {
    .stats-block.counter-#{nth($state,1)} .stats-number,
    .stats-block.counter-#{nth($state,1)} div.counter_prefix,
    .stats-block.counter-#{nth($state,1)} div.counter_suffix {
        color: var(--porto-#{nth($state,1)}-color);
    }
}