.tpl-infinite-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    margin: 18px 0;
    padding: 12px 16px;
    color: #b5121b;
    background: #fff5f5;
    border: 1px solid #f0c7c9;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.tpl-infinite-scroll-spinner {
    display: none;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 3px solid #efc7c9;
    border-top-color: #b5121b;
    border-radius: 50%;
    box-sizing: border-box;
    animation: tpl-infinite-spin .8s linear infinite;
}

.tpl-infinite-scroll-loader.is-loading .tpl-infinite-scroll-spinner {
    display: inline-block;
}

.tpl-infinite-scroll-loader.is-finished {
    color: #555;
    background: #f7f7f7;
    border-color: #e5e5e5;
}

.tpl-infinite-scroll-loader.has-error {
    color: #7a2529;
    background: #fff8e8;
    border-color: #ead7a8;
}

/* Keep the standard pagination in the HTML for non-JavaScript navigation and crawlers. */
.tpl-pagination-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes tpl-infinite-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .tpl-infinite-scroll-loader {
        min-height: 52px;
        margin: 14px 0;
        font-size: 14px;
    }
}
