/* Page numbers under the supplier, blog and news lists (inc/oosa-list-pages.php).
   Design copied from the Supplier page. */
.oosa-page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-basis: 100%;   /* own line in the supplier and news card rows */
    grid-column: 1 / -1; /* own line in the blog card grid */
    margin: 20px auto;
}
.oosa-page-numbers a,
.oosa-page-numbers .oosa-page-current {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 5px;
    border: 1px solid #DFE3E8;
    border-radius: 4px;
    background: #fff;
    color: #282D2C;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
}
.oosa-page-numbers .oosa-page-current {
    background: #285EAF;
    border-color: #285EAF;
    color: #fff;
}
.oosa-page-numbers a:hover {
    border-color: #285EAF;
    color: #285EAF;
}
.oosa-page-numbers .oosa-page-prev,
.oosa-page-numbers .oosa-page-next {
    background-repeat: no-repeat;
    background-position: center;
}
.oosa-page-numbers .oosa-page-prev {
    background-image: url(/wp-content/uploads/2025/01/arrow-icon.png);
}
.oosa-page-numbers .oosa-page-next {
    background-image: url(/wp-content/uploads/2025/02/arrow-right.png);
}
.oosa-page-numbers .oosa-page-prev:hover,
.oosa-page-numbers .oosa-page-next:hover {
    background-color: #919EAB;
    border-color: #DFE3E8;
}

/* Supplier cards have no image now (Warren, 5 Nov 2026), so the category chips sit
   inside the card, above the title, from the left. The page's Elementor CSS placed
   them absolutely over the bottom edge of the image. */
#supplier-list .supplier-single-item .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 24px 0;
}
#supplier-list .supplier-single-item span.category {
    position: static;
    margin: 0;
}
#supplier-list .supplier-single-item .supplier-detail {
    padding-top: 12px;
}
@media (max-width: 1199px) {
    #supplier-list .supplier-single-item .categories {
        padding: 16px 16px 0;
    }
}

/* Tabs above the supplier and blog lists go onto the next line on small screens,
   instead of running off the screen with no way to scroll to them. */
div#category-filter-buttons {
    flex-wrap: wrap;
}
@media (max-width: 767px) {
    /* The blog page's Elementor CSS sets nowrap with !important here */
    .oosa-blog-filters .oosa-categories {
        flex-wrap: wrap !important;
        overflow: visible;
    }
}
