/* ==========================================
   Stat Strip
========================================== */

.cmef-stat-strip {
    padding: 20px 20px 0 !important;
}

/* ==========================================
   Layout
========================================== */

.cmef-stat-strip__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.cmef-stat-strip__badge {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    text-align: center;
    background: transparent !important;
}

/* Divider */

.cmef-stat-strip__badge:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 2px;
    height: 50px;
    background: #0e0e55;
}

/* ==========================================
   Icon
========================================== */

.cmef-stat-strip__media {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.cmef-stat-strip__icon {
    display: block;
    width: auto;
    height: auto;
    max-width: 100px;
}

/* ==========================================
   Content
========================================== */

.cmef-stat-strip__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: center;
}

.cmef-stat-strip__counter {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: inherit;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cmef-stat-strip__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cmef-stat-strip__title p {
    display: inline;
    margin: 0;
}

/* ==========================================
   Tablet
========================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .cmef-stat-strip__inner {
        flex-wrap: wrap;
    }

    .cmef-stat-strip__badge {
        padding: 20px;
    }

    /* 3 items */
    .cmef-stat-strip__badge:nth-child(1):nth-last-child(3),
    .cmef-stat-strip__badge:nth-child(2):nth-last-child(2),
    .cmef-stat-strip__badge:nth-child(3):nth-last-child(1) {
        flex: 0 0 33.333%;
    }

    /* 4 items */
    .cmef-stat-strip__badge:nth-child(1):nth-last-child(4),
    .cmef-stat-strip__badge:nth-child(2):nth-last-child(3),
    .cmef-stat-strip__badge:nth-child(3):nth-last-child(2),
    .cmef-stat-strip__badge:nth-child(4):nth-last-child(1) {
        flex: 0 0 50%;
    }

    /* 5 items */
    .cmef-stat-strip__badge:nth-child(1):nth-last-child(5),
    .cmef-stat-strip__badge:nth-child(2):nth-last-child(4),
    .cmef-stat-strip__badge:nth-child(3):nth-last-child(3),
    .cmef-stat-strip__badge:nth-child(4):nth-last-child(2),
    .cmef-stat-strip__badge:nth-child(5):nth-last-child(1) {
        flex: 0 0 33.333%;
    }

    .cmef-stat-strip__badge::after {
        display: none;
    }
}

/* ==========================================
   Mobile
========================================== */

@media (max-width: 767px) {

    .cmef-stat-strip__inner {
        flex-wrap: wrap;
    }

    .cmef-stat-strip__badge {
        flex: 0 0 100%;
        padding: 20px;
    }

    .cmef-stat-strip__badge::after {
        display: none;
    }

    .cmef-stat-strip__badge:not(:last-child) {
        border-bottom: 1px solid #0e0e55;
    }
}