/* Align filter labels with the visible checkbox, without moving its hit area. */
#category #search_filters .zactise-availability-filter .js-search-link,
#category #search_filters .zactise-topic-label {
    transform: translateY(-3px);
}

/* Category sorting uses the same glass surface as the main-menu submenus. */
#category .products-sort-order .select-title,
#category .products-sort-order .dropdown-menu {
    background-color: var(--zactise-menu-glass);
    background-image: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(228, 221, 216, 0.78);
    color: var(--zactise-ink);
}

#category .products-sort-order .select-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
}

#category .products-sort-order .zactise-sort-label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#category .products-sort-order .select-title .material-icons {
    flex: 0 0 auto;
}

#category .products-sort-order .dropdown-menu {
    left: auto;
    right: 15px;
    width: max-content;
    min-width: calc(100% - 30px);
    max-width: calc(100vw - 30px);
    padding: 6px 0;
    box-shadow: 0 12px 28px rgba(68, 55, 46, 0.14);
}

#category .products-sort-order .dropdown-menu .select-list {
    display: block;
    padding: 10px 14px;
    color: var(--zactise-ink);
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: nowrap;
}

#category .products-sort-order .dropdown-menu .select-list:hover,
#category .products-sort-order .dropdown-menu .select-list:focus,
#category .products-sort-order .dropdown-menu .select-list.current {
    background-color: rgba(214, 28, 96, 0.08);
    color: var(--zactise-raspberry);
}

#category .products-sort-order .select-title:focus-visible,
#category .products-sort-order .dropdown-menu .select-list:focus-visible {
    outline: 2px solid var(--zactise-raspberry);
    outline-offset: -2px;
}

/* A modest emphasis on Books; keep the existing menu order and colours. */
@media (min-width: 1200px) {
    #header #_desktop_top_menu #top-menu > li#category-67 > a[data-depth="0"] {
        font-size: 1.0625rem;
        font-weight: 700;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    #header #_desktop_top_menu #top-menu > li#category-67 > a[data-depth="0"] {
        font-size: 1rem;
    }
}
