/**
 * Breuls: YITH FILTERS button on mobile (added 2026-11-25).
 * Shows the theme off-canvas (#ridez-canvas-filter) when the YITH modal is open.
 * Rollback: remove this file, js/yith-mobile-filters-fix.js, and the enqueue
 * block marked "Breuls: YITH FILTERS button on mobile" in functions.php.
 */
@media (max-width: 1023px) {
  body.yith-wcan-preset-modal-open #ridez-canvas-filter {
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    transition: none !important;
  }
  /* Put the canvas away again as soon as the YITH modal closes, so the theme's
     0.5s transition does not leave an empty panel with HIDE FILTER on screen. */
  html:not(.off-canvas-active) body:not(.yith-wcan-preset-modal-open) #ridez-canvas-filter {
    visibility: hidden !important;
    transform: translate3d(-100%, 0, 0) !important;
    transition: none !important;
  }
  /* Avoid a second close control while the YITH modal is open */
  body.yith-wcan-preset-modal-open #ridez-canvas-filter .filter-close {
    display: none !important;
  }
  /* Avoid a second overlay; the YITH body:after overlay stays */
  body.yith-wcan-preset-modal-open .ridez-overlay-filter {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  /* body:after is the YITH dimmer; default pointer-events:none so taps did nothing */
  body.yith-wcan-preset-modal-open:after {
    pointer-events: auto !important;
    cursor: pointer;
  }
}
