/* Treasure v1.40 — WooCommerce shop/category mobile sort dropdown.
   Repaints the narrow right edge to cover a theme/native icon fragment.
   The real select, keyboard access, choices and sorting request stay native. */
@media (max-width: 767px) {
  body.woocommerce form.woocommerce-ordering,
  body.woocommerce-page form.woocommerce-ordering {
    position: relative !important;
  }

  body.woocommerce form.woocommerce-ordering select.orderby,
  body.woocommerce-page form.woocommerce-ordering select.orderby {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    padding-right: 43px !important;
  }

  /* Cover extra native/theme arrow artwork inside the rightmost 40px.
     The overlay doesn't intercept taps: the select remains fully functional. */
  body.woocommerce form.woocommerce-ordering::after,
  body.woocommerce-page form.woocommerce-ordering::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 43px !important;
    height: auto !important;
    margin: 0 !important;
    border: 1px solid #d9e2ee !important;
    border-left: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 9px 9px 0 !important;
    transform: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2323374b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: 15px 15px !important;
    box-shadow: none !important;
    pointer-events: none !important;
    z-index: 1000 !important;
  }
}

/* Continue the focused border across the repainted right edge. */
@media (max-width: 767px) {
  body.woocommerce form.woocommerce-ordering:focus-within::after,
  body.woocommerce-page form.woocommerce-ordering:focus-within::after {
    border-color: #2b6df2 !important;
  }
}
