/* Shared mobile controls; colours inherit the established header palette. */
.mobile-ui .mobile-ui-btn--filter[hidden],
html.rg-has-report-entry .rg-problem-report__launch,
.mobile-nav-report:empty { display: none !important; }
.mobile-nav [data-rg-problem-report-open] {
  display: block;
  padding: 16px 20px;
  color: inherit;
  font-size: 14px;
  line-height: 17px;
  text-decoration: none;
}
@media (max-width: 768px) {
  html[data-rg-css] body .mobile-ui > .mobile-ui-btn {
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 3px 0 !important;
    margin: 0 !important;
    gap: 2px !important;
  }
  html[data-rg-css] body .mobile-ui > .mobile-ui-btn--filter[hidden] { display: none !important; }
  html[data-rg-css] body .mobile-ui .mobile-ui-btn--filter { order: 2; color: inherit; background: transparent; border: 0; }
  html[data-rg-css] body .mobile-ui .mobile-ui-btn--filter svg { fill: none !important; stroke: currentColor; }
  html[data-rg-css] body .mobile-ui .mobile-ui-label {
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 12px;
    white-space: nowrap;
    letter-spacing: 0;
    text-transform: none;
  }
  html[data-rg-css] body .mobile-ui > .mobile-ui-btn > svg,
  html[data-rg-css] body .mobile-ui .mobile-nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    margin: 0 !important;
  }
  html[data-rg-css] body .mobile-ui .mobile-nav-btn { right: 0 !important; }
  html[data-rg-css] body .mobile-ui .mobile-nav-icon {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }
  html[data-rg-css] body .mobile-ui .mobile-nav-icon > span {
    top: 8px !important;
    left: 0 !important;
    right: auto !important;
    width: 18px !important;
    margin: 0 !important;
  }
  html[data-rg-css] body .mobile-ui .mobile-nav-icon > span::before,
  html[data-rg-css] body .mobile-ui .mobile-nav-icon > span::after {
    left: 0 !important;
    right: auto !important;
    width: 18px !important;
    margin: 0 !important;
  }
  html.rg-has-header-filter body .catalogue-list-holder.with-filters > .catalogue-filter-trigger {
    display: none !important;
  }
}

/* The mobile chat keeps the bottom corner after removing the report launcher. */
@media (max-width: 768px) {
  html[data-rg-css]:is([data-rg-css~="catalogue"], [data-rg-css~="product"], [data-rg-css~="newui"]) body > .rg-site-chat:not(.rg-site-chat--product-mini):not([hidden]) {
    bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
  }
  html[data-rg-css~="catalogue"][data-rg-css~="newui"] body .catalogue-up:is(.active, .rg-mobile-stack-visible) {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
