/* ----- Custom-List C
SS Start ----- */
.shopriteafrica-list {
    position: relative;
    min-height: 200px;
}
.shopriteafrica-list.featured-list .loading-overlay {
    display: none;
}
.mobilerefavail.cmp-image__image {
    display: none;
}
.bannermobile img {
    width: 100%;

}
.shopriteafrica-list .bannermobile img {
    border-radius: 10px 10px 0 0;
}

.cmp-custom-list .cmp-list__item {
    list-style: none;
}
.cmp-custom-list .cmp-list__item::marker {
    color: transparent;
}
.shopriteafrica-list .cmp-custom-list {
    width: auto;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    gap: 4rem;
    margin-top: calc(var(--bs-gutter-y) * -1);
    /*	margin-right: calc(var(--bs-gutter-x) * -.5);
        margin-left: calc(var(--bs-gutter-x) * -.5);*/
    padding: 0;
}
.cmp-custom-list .cmp-list__item {
    list-style: none;
    float: left;
    width: 100%;
    margin-bottom: 0;
}
/*.shopriteafrica-list .cmp-custom-list .cmp-list__item {
	width: 33.33%;
}*/
.shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item .cmp-list__item-description {
    display: none;
}

.cmp-list__item article {
    background-color: #FFF;
    margin: 0;
    width: 100% !important;
    columns: unset;
    height: 100%;
}
.cmp-list__item article .cmp-recipe {
    height: 100%;
    border-radius: 10px;
    border: 1px solid var(--ShA-grey__sky-dark);
}
.cmp-recipe .authoring-mode.recipe-category--title {
    background-color: transparent;
}
.cmp-list__item article .cmp-recipe a.cmp-list__item-link {
    width: 100%;
    margin: 0;
    margin-bottom: 10px;
    object-fit: cover;
    float: none;
    display: block;
    padding: 0;
    position: relative;
    color: #555;
}
.cmp-list__item article .cmp-recipe .article-image .cmp-image__image {
    width: 100%;
    margin: 0;
    margin-bottom: 10px;
    height: 250px;
    object-fit: cover;
}
.cmp-list__item article .cmp-recipe .article-info {
    height: 170px;
    position: relative;
}
.cmp-recipe .recipe-category--option {
    font-size: 12px;
}
.cmp-list__item article .cmp-recipe .article-info .cmp-list__item-title {
    font-size: var(--subtitle2-size);
    line-height: var(--subtitle2-lineheight);
    font-weight: bold;
    display: block;
    display: -webkit-box;
    margin: 0;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ShA-primary__black);
}
.cmp-list__item article .cmp-recipe .article-info .cmp-embed {
    position: absolute;
    bottom: 0;
    /* height: auto; */
    display: block;
}
.cmp-list__item article .cmp-recipe .article-info .cmp-embed .icon-Serves::before, .cmp-list__item article .cmp-recipe .article-info .cmp-embed .icon-Time::before {
    font-size: 22px;
    position: relative;
    top: -2px;
}
.shopriteafrica-list .pagination {
    display: none;
    padding-left: 0;
    list-style: none;
    width: 100%;
    justify-content: center;
}
.shopriteafrica-list .pagination ul {
    margin: 0;
    padding: 0;
    width: 400px;
}
.shopriteafrica-list .pagination ul li {
    padding: 0 12px;
    list-style: none;
}
.previnit {
    float: left;
    width: 50%;
    display: flex;
    justify-content: start;
}
.nextinit {
    float: right;
    width: 50%;
    display: flex;
    justify-content: end;
}
.page-numbers {
    display: flex;
    justify-content: center;
    padding-top: 20px !important;
    margin-bottom: 20px;
}
.shopriteafrica-list .pagination ul li.page-numbers a {
    padding: 0 6px;
}
.prev, .prev:hover, .prev:visited, .next, .next:hover, .next:visited {
    padding: 12px 0;
    background: var(--ShA-grey__sky-dark);
    color: var(--ShA-primary__black);
    width: 150px;
    display: block;
    text-align: center;
}
.loading-overlay {
    position: absolute;
    display: block;
    justify-items: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.loading-overlay img {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

/* ----- Custom-List recipe ----- */
.cmp-recipe .position-additional {
    position: relative;
    text-align: center;
}
.cmp-recipe .banner-page-title {
    font-weight: 700;
    padding: 12px;
}
.cmp-recipe .banner-page-title p {
    margin: 0px;
}
ul.cmp-custom-list .cmp-recipe a:visited, ul.cmp-custom-list .cmp-recipe a:hover {
    color: inherit;
}
.cmp-recipe .cmp-image {
    position: relative;
    margin-bottom: 16px;
}
.cmp-recipe .additional-content-alignment .header-addition {
    position: absolute;
    bottom: auto;
    right: 0;
    background: var(--ShA-primary__white);
    width: max-content;
    display: flex;
    height: auto;
    padding: 6px 10px;
    flex-direction: row;
    justify-content: space-between;
}
.cmp-recipe .additional-content-alignment .header-addition .rec-secondary,
.cmp-recipe .additional-content-alignment .header-addition .recipe-ingredients {
    display: none;
}
.cmp-recipe .rec-primary {
    font-size: calc(var(--body3-size) + 2px);
}
.cmp-recipe .recipe-time .rec-primary {
    position: relative;
    padding-left: 24px;
}

.cmp-recipe .recipe-time .rec-primary::before {
    content: "";
    display: inline-block;
    position: absolute;
    left: 0px;
    top: 0;
    display: inline-block;
    width: 19px; /* Adjust the desired width */
    height: 19px; /* Adjust the desired height */
    background-image: url("../../../../../content/dam/shopriteafrica/system_images/time.svg");
    background-size: cover;
    bottom: 5px;
}

.cmp-recipe .recipe-serving .rec-primary {
    position: relative;
    padding-left: 24px;
}

.cmp-recipe .recipe-serving .rec-primary::before {
    content: "";
    display: inline-block;
    position: absolute;
    left: 0px;
    top: 0;
    display: inline-block;
    width: 19px; /* Adjust the desired width */
    height: 21px; /* Adjust the desired height */
    background-image: url("../../../../../content/dam/shopriteafrica/system_images/serving.svg");
    background-size: cover;
}

.cmp-image__image-res-mobile {
    height: auto;
}
.cmp-recipe .cmp-list__item-description {
    text-align: center;
    display: block;
    padding: 12px;
}

.recipe-pagination {
    position: relative;
    margin: 70px auto;
    display: flex;
    font-size: 16px;
    align-items: baseline;
    justify-content: center;
}
.recipe-pagination li {
    display: block;
    padding: 0 5px;
    width: auto;
    height: 50px;
    text-align: center;
}
.recipe-pagination li a {
    display: block;
    padding: 16px 0 0;
    height: 50px;
    width: 50px;
    text-decoration: none;
}
.recipe-pagination li a:hover {
    color: var(--ShA-primary__red);
}
.recipe-pagination li.active a {
    display: block;
    border-radius: 50%;
    padding: 9px 0 0;
    width: 50px;
    height: 50px;
}
#previous-page {
    /* display: table !important; */
    padding-right: 80px !important;
}
#previous-page a {
    width: auto !important;
}
#previous-page a span {
    padding-right: 15px;
}
#next-page {
    /* display: table !important; */
    padding-left: 80px !important;
}

#next-page a {
    width: auto !important;
}

#next-page  a span {
    padding-left: 15px;
}

@media (min-width: 320px) {
    .shopriteafrica-list .cmp-custom-list .cmp-list__item {
        flex-basis: 100%;
        max-width: 100%;
        flex-shrink: 0;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
    }
    .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item {
        flex-basis: calc((100% - 4rem) / 2);
        max-width: calc((100% - 4rem) / 2);
        flex-shrink: 0;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
    }
}
@media (min-width: 576px) {
    /*    .shopriteafrica-list .cmp-custom-list .cmp-list__item {
            width: 50%;
        }
        .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item {
                width: 33%;
            }*/
}

@media (min-width: 320px) {
    .cmp-recipe .recipe-time {
        margin-right: 6px;
    }
    .cmp-recipe .recipe-time .rec-primary {
        position: relative;
        padding-left: 20px;
    }
    .cmp-recipe .recipe-time .rec-primary::before {
        content: "";
        display: inline-block;
        position: absolute;
        left: 0;
        top: auto;
        bottom: 6px;
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url("../../../../../content/dam/shopriteafrica/system_images/time.svg");
        background-size: cover;
    }
    .cmp-recipe .recipe-serving .rec-primary::before {
        content: "";
        display: inline-block;
        position: absolute;
        left: 0;
        top: auto;
        bottom: 6px;
        display: inline-block;
        width: 16px;
        height: 18px;
        background-image: url("../../../../../content/dam/shopriteafrica/system_images/serving.svg");
        background-size: cover;
    }
    .cmp-list__4-columns .cmp-recipe .rec-primary {
        font-size: var(--body3-size);
    }
    .cmp-list__4-columns .cmp-recipe .additional-content-alignment .header-addition {
        padding: 2px 5px;
    }
    .cmp-list__4-columns .cmp-recipe .additional-content-alignment .header-addition .recipe-time {
        margin-right: 10px;
    }
    .cmp-list__4-columns .cmp-recipe .recipe-time .rec-primary::before {
        width: 12px;
        height: 12px;
    }
    .cmp-list__4-columns .cmp-recipe .recipe-serving .rec-primary::before {
        width: 14px;
        height: 15px;
        bottom: 5px;
    }
}

@media (min-width: 768px) {
    article .cmp-article {
        height: 100%;
    }
    article .cmp-image__image {
        margin: 0 !important;
        height: 160px;
        object-fit: cover;
    }
    article .article-info {
        padding-bottom: 40px;
    }
    .shopriteafrica-list .cmp-custom-list .cmp-list__item.featured-recipes-container {
        width: 100%;
        flex: 1;
        max-width: 100%;
    }
    .shopriteafrica-list .cmp-custom-list {
        gap: 2rem;
    }
    .shopriteafrica-list .cmp-custom-list .cmp-list__item {
        flex-basis: calc((100% - 6rem) / 3);
        max-width: calc((100% - 6rem) / 3);
    }
    .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item {
        flex-basis: calc((100% - 6rem) / 4);
        max-width: calc((100% - 6rem) / 4);
    }
}

@media (min-width: 1024px) {
    .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item .cmp-recipe .additional-content-alignment .header-addition {
        position: absolute;
        bottom: auto;
        right: 0;
        background: var(--ShA-primary__white);
        width: max-content;
        display: flex;
        height: auto;
        padding: 6px 10px;
        flex-direction: row;
        justify-content: space-between;
    }
    .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item .cmp-recipe .rec-primary {
        font-size: var(--body3-size);
    }
    .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item .cmp-recipe .recipe-time .rec-primary {
        position: relative;
        padding-left: 18px;
    }
    .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item .cmp-recipe .recipe-time .rec-primary::before {
        content: "";
        display: inline-block;
        position: absolute;
        left: 0;
        top: auto;
        display: inline-block;
        width: 14px; /* Adjust the desired width */
        height: 14px; /* Adjust the desired height */
        background-image: url("../../../../../content/dam/shopriteafrica/system_images/time.svg");
        background-size: cover;
    }
    .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item .cmp-recipe .recipe-serving .rec-primary {
        position: relative;
        padding-left: 18px;
    }
    .shopriteafrica-list.cmp-list__4-columns .cmp-custom-list .cmp-list__item .cmp-recipe .recipe-serving .rec-primary::before {
        content: "";
        display: inline-block;
        position: absolute;
        left: 0;
        top: auto;
        display: inline-block;
        width: 13px; /* Adjust the desired width */
        height: 14px; /* Adjust the desired height */
        background-image: url("../../../../../content/dam/shopriteafrica/system_images/serving.svg");
        background-size: cover;
    }
}
/* ----- Custom-List CSS End ----- */
