.rankup-product-description {
    width: 100%;
}

.rankup-product-description__grid {
    --rankup-cards-columns: var(--rankup-cards-columns-desktop, 3);
    /* Columns butt up against each other so the separators are unbroken, so the
       shortcode's `gap` attribute drives the space between ROWS instead: the
       26px is the items' own breathing room, giving the 46px default. */
    --rankup-cards-row-space: calc(26px + var(--rankup-cards-gap, 20px));
    display: grid;
    grid-template-columns: repeat(var(--rankup-cards-columns), minmax(0, 1fr));
    width: 100%;
}

.rankup-product-description__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 18px 28px 28px;
    text-align: center;
    margin-bottom: 15px;
}

/* Vertical rules only: the last column of each row is skipped, and row spacing
   is padding rather than a grid gap, so the rules run unbroken down the grid
   and no horizontal lines appear. */
.rankup-product-description__item:not(:nth-child(3n)) {
    border-right: 2px solid #dddddd;
}

.rankup-product-description__item:nth-child(n + 4) {
    padding-top: var(--rankup-cards-row-space, 46px);
}

.rankup-product-description__label {
    margin: 0 0 22px;
    max-width: 100%;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    overflow-wrap: break-word;
    color: var(--e-global-color-a91f731);
}

.rankup-product-description__image {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.rankup-product-description__image img {
    display: block;
    width: 150px;
    height: 150px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%!important;
}

@media (max-width: 1024px) {
    .rankup-product-description__grid {
        --rankup-cards-columns: var(--rankup-cards-columns-tablet, 2);
    }

    .rankup-product-description__item {
        border-right: 0 !important;
    }

    .rankup-product-description__item:nth-child(odd) {
        border-right: 1px solid #dddddd !important;
    }

    .rankup-product-description__item:nth-child(n + 3) {
        padding-top: var(--rankup-cards-row-space, 46px);
    }
}

@media (max-width: 767px) {
    .rankup-product-description__grid {
        --rankup-cards-columns: var(--rankup-cards-columns-mobile, 2);
    }

    .rankup-product-description__item {
        padding: 16px 12px 22px;
    }

    .rankup-product-description__item:nth-child(n + 3) {
        padding-top: calc(10px + var(--rankup-cards-gap, 20px));
    }

    .rankup-product-description__label {
        margin-bottom: 16px;
        font-size: 18px;
        line-height: 1.25;
    }

    .rankup-product-description__image img {
        width: 115px;
        height: 115px;
    }
}
