/* Corsia — shop "load more" control. Paired with inc/shop-loadmore.php. */

.corsia-loadmore-nav {
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6em;
    margin: 2.5em 0 1em;
    text-align: center;
}

.corsia-loadmore {
    display: inline-block;
    padding: .75em 2.4em;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.corsia-loadmore:hover,
.corsia-loadmore:focus-visible {
    background: currentColor;
}

/* Keep the label readable when the background flips to currentColor. */
.corsia-loadmore:hover span,
.corsia-loadmore:focus-visible span {
    mix-blend-mode: difference;
}

.corsia-loadmore:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.corsia-loadmore.is-loading {
    opacity: .6;
    pointer-events: none;
}

.corsia-loadmore-status {
    margin: 0;
    font-size: .9em;
    min-height: 1.3em;
}

/* A product appended by the script gets focus for screen-reader continuity;
   that must not paint a stray outline for everyone else. */
ul.products li.product[tabindex="-1"]:focus {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .corsia-loadmore { transition: none; }
}
