/* Keep the WooCommerce select visible on mobile; Blocksy normally replaces
   its text with an icon. The native select provides keyboard and touch UI. */
body.jph-printblur .jph-catalog-toolbar .woocommerce-ordering {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
    margin: 0;
}

body.jph-printblur .jph-catalog-toolbar .woocommerce-ordering label {
    flex: 0 0 auto;
    margin: 0;
    color: #666;
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
}

body.jph-printblur .jph-catalog-toolbar .woocommerce-ordering select.orderby {
    width: auto;
    min-width: 146px;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #fff;
    background-image: none;
    appearance: auto;
    color: #555;
    font-size: 12px;
    line-height: normal;
    cursor: pointer;
}

body.jph-printblur .jph-catalog-toolbar .woocommerce-ordering select.orderby:focus-visible {
    outline: 2px solid #a81763;
    outline-offset: 3px;
}

body.jph-printblur .jph-catalog-toolbar .woocommerce-ordering .ct-sort-icon {
    display: none;
}

@media (max-width: 767px) {
    body.jph-printblur .jph-catalog-toolbar {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'count' 'ordering' 'chips';
        gap: 10px;
    }

    body.jph-printblur .jph-catalog-toolbar .woocommerce-ordering select.orderby {
        flex: 0 1 auto;
        min-width: 156px;
    }
}
