/* Keep the CMS product name intact for links, search and new-product badges. */
.accordion__button.product-table__bean-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem 0.75rem;
    padding-right: 3.5rem;
}

.product-table__growth-type {
    margin-left: auto;
    color: #007f3e;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    text-transform: none;
}

/* These CMS classes are also used on product pages: scope to the home page. */
.page-home .brands {
    padding-top: 2.5rem;
}

.page-home .brands > .container-sm > h2 {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .page-home .brands {
        padding-top: 4rem;
    }

    .page-home .brands > .container-sm > h2 {
        margin-bottom: 3rem !important;
    }

    .page-home .brands .brands-card {
        display: flex;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .page-home .brands .brands-card__logo {
        flex: 0 0 6.25rem;
        margin-bottom: 2rem;
    }

    .page-home .brands .brands-card__content {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        background: #18271d;
    }

    .page-home .brands .brands-card:nth-child(even) .brands-card__content {
        background: #006b35;
    }

    .page-home .brands .brands-card:nth-child(3) .brands-card__content {
        background: #a83e08;
    }

    .page-home .brands .brands-card__content::after {
        display: none;
    }

    .page-home .brands .brands-card__content > img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .page-home .brands .brands-card__content-text {
        position: static;
        padding: 1.5rem;
        text-align: left;
        overflow-wrap: break-word;
    }

    .page-home .brands .brands-card__content-text p {
        font-size: 1rem !important;
        line-height: 1.6;
        margin: 0;
        min-height: 0;
    }

    .page-home .brands .brands-card__content-text a {
        display: block;
        margin-top: 1rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .page-home .brands .brands-card {
        flex-basis: 50%;
        max-width: 50%;
    }
}
