/*
 * IAM Artwork Infinite Scroll
 *
 * Only the pagination wrapper positively matched to the active artwork loop is
 * hidden. This is important on WC Vendors storefronts, where other pagination
 * or navigational elements can exist on the same page.
 */
.iam-artwork-infinite-scroll__pagination {
    display: none !important;
}

.iam-artwork-infinite-scroll__status {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    margin: 22px 0 8px;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.72;
    clear: both;
}

.iam-artwork-infinite-scroll__status.is-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 8px -2px 0;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: iam-artwork-scroll-spin 0.75s linear infinite;
}

.iam-artwork-infinite-scroll__status.is-end {
    opacity: 0.6;
}

.iam-artwork-infinite-scroll__status.is-error {
    opacity: 0.82;
}

.iam-artwork-infinite-scroll__sentinel {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    padding: 0;
    clear: both;
    pointer-events: none;
}

@keyframes iam-artwork-scroll-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .iam-artwork-infinite-scroll__status.is-loading::before {
        animation: none;
    }
}
