.sq-review-product-controls:has(> [data-product-limit]) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  flex: 0 0 auto;
}

.sq-review-product-controls > [data-product-limit] {
  width: auto;
  min-width: 62px;
  line-height: 1.35;
}

@layer sq-mobile-query {
  @media (max-width: 767px) {
    .pl-filter-row :is(.pl-sort-select, .pl-search-box, .pl-search-btn),
    .sr-search-row :is(.sr-search-select, .sr-search-box, .sr-search-btn),
    .sr-filter-row .sr-sort-select {
      height: 38px !important;
      min-height: 38px !important;
      max-height: none !important;
      box-sizing: border-box;
      font-size: 12px !important;
      line-height: 1.35;
    }

    .pl-filter-row #searchInput,
    .sr-search-row #searchInput {
      height: 100% !important;
      min-height: 0 !important;
      min-width: 0;
      font-size: 12px !important;
      line-height: 1.35;
      padding-block: 0 !important;
      box-sizing: border-box;
    }

    :is(.pl-filter-row, .sr-search-row) #searchInput::placeholder {
      font-size: inherit;
    }
  }
}
