/* Outside the panel's own shadow DOM: the links shown before the panel
   starts, the product area while it updates, the screen-reader notice. */
quicksift-catalog-filters {
  display: block;
}

/* Themes float the sort box (Storefront): the bar starts on its own line. */
.quicksift-filters--bar {
  clear: both;
}

quicksift-catalog-filters:defined > .quicksift-filters__links {
  display: none;
}

.quicksift-filters__links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.quicksift-filters__links > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 2em;
}

.quicksift-filters-loading {
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.quicksift-filters-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) {
  .quicksift-filters-loading {
    transition: none;
  }
}

quicksift-catalog-filters:focus,
quicksift-catalog-filters:focus-visible {
  outline: none;
}

/* Our wrapper around the products has no box (display: contents): its
   blocks fade while the new products load. */
.quicksift-products-area.quicksift-filters-loading > * {
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.15s;
}

/*
 * The theme's sort box («Default sorting») next to the panel: many themes
 * leave it as the browser's plain select, which looks out of place beside
 * the panel. Only pages with the panel load this file.
 */
.woocommerce-ordering select.orderby {
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 36px 0 12px;
  font: inherit;
  font-size: 14px;
  line-height: 36px;
  color: inherit;
  appearance: none;
  cursor: pointer;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid rgb(128 128 128 / 40%);
  border-radius: 8px;
  box-shadow: none;
}

.woocommerce-ordering select.orderby:hover {
  border-color: rgb(128 128 128 / 70%);
}

.woocommerce-ordering select.orderby:focus-visible {
  outline: 2px solid var(--quicksift-filters-accent, #2f6fed);
  outline-offset: 1px;
}

/* The open list is drawn by the system: readable on light and dark themes. */
.woocommerce-ordering select.orderby option {
  color: #1d2327;
  background: #fff;
}
