/*
 * Shared listing controls for Catalogue and Videos only.
 * Loaded explicitly by those two CMS pages.
 */
.page-catalogue .listing-sort-button,
.page-videos .listing-sort-button {
    align-items: center !important;
    appearance: none;
    background: #fff !important;
    border: 1px solid #ced8e6 !important;
    border-radius: 6px !important;
    color: #0754b5 !important;
    cursor: pointer;
    display: inline-flex !important;
    flex: 0 0 48px;
    float: none !important;
    height: 48px !important;
    justify-content: center;
    padding: 0 !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    width: 48px !important;
}

body.page-catalogue #content-block .shop-grid-controls .listing-sort-button::before,
.page-videos .listing-sort-button::before {
    content: "\f063" !important;
    font-family: FontAwesome !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    white-space: normal !important;
}

body.page-catalogue #content-block .shop-grid-controls .listing-sort-button.active::before,
.page-videos .listing-sort-button.active::before {
    content: "\f062" !important;
}

body.page-catalogue #content-block .shop-grid-controls .listing-sort-button::after,
.page-videos .listing-sort-button::after {
    content: none !important;
    display: none !important;
}

.page-catalogue .listing-sort-button:hover,
.page-catalogue .listing-sort-button:focus-visible,
.page-videos .listing-sort-button:hover,
.page-videos .listing-sort-button:focus-visible {
    background: #0754b5 !important;
    border-color: #0754b5 !important;
    color: #fff !important;
    outline: 0;
}

.page-catalogue .listing-pagination,
.page-videos .listing-pagination {
    align-items: center !important;
    background: #fff !important;
    border-top: 1px solid #e6ebf2 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    min-height: 86px;
    padding: 18px 14px !important;
}

.page-catalogue .listing-pagination {
    border: 1px solid #e6ebf2 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(13, 43, 82, 0.08) !important;
    margin-top: 24px !important;
}

.page-catalogue .listing-page-count,
.page-videos .listing-page-count {
    color: #223149 !important;
    float: none !important;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    margin: 0 !important;
}

.page-catalogue .listing-pages,
.page-videos .listing-pages {
    align-items: center;
    display: flex !important;
    float: none !important;
    gap: 10px !important;
    margin: 0 0 0 auto !important;
}

.page-catalogue .listing-pages .square-button,
.page-videos .listing-pages a {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #d6dfeb !important;
    border-radius: 50% !important;
    color: #1d2d45 !important;
    display: inline-flex !important;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    height: 42px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-width: 42px !important;
    padding: 0 !important;
    text-decoration: none;
    width: 42px !important;
}

.page-catalogue .listing-pages .square-button:hover,
.page-catalogue .listing-pages .square-button.active,
.page-videos .listing-pages a:hover,
.page-videos .listing-pages a.active {
    background: #0754b5 !important;
    border-color: #0754b5 !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .page-catalogue .listing-pagination,
    .page-videos .listing-pagination {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 16px;
    }

    .page-catalogue .listing-pages,
    .page-videos .listing-pages {
        margin-left: 0 !important;
        max-width: 100%;
        overflow-x: auto;
    }
}
