/* Desktop product toolbar: compact clear-filter icon, text label remains for assistive technology. */
@media (min-width: 761px) {
  body.storefront .catalog-results-bar #reset-filters {
    display: inline-grid !important;
    place-items: center;
    box-sizing: border-box;
    flex: 0 0 42px;
    inline-size: 42px;
    min-inline-size: 42px;
    block-size: 42px;
    min-block-size: 42px;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--warm-line, #ded5cc) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--warm-ink, #272321) !important;
    font-size: 0 !important;
    line-height: 0;
    white-space: nowrap;
  }

  body.storefront .catalog-results-bar #reset-filters::before {
    content: "";
    display: block;
    inline-size: 19px;
    block-size: 19px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.5 7v5l-3 2v-7z'/%3E%3Cpath d='m17 17 4 4m0-4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.5 7v5l-3 2v-7z'/%3E%3Cpath d='m17 17 4 4m0-4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  body.storefront .catalog-results-bar #reset-filters:hover {
    background: var(--warm-surface, #f8f4ef) !important;
    border-color: var(--warm-frame, #cdbdaf) !important;
  }

  body.storefront .catalog-results-bar #reset-filters:focus-visible {
    outline: 2px solid var(--warm-ink, #272321);
    outline-offset: 2px;
  }
}

/* Keep the battery-type filter and the results actions on one vertical rail. */
@media (min-width: 761px) {
  body.storefront .catalog-results-bar .catalog-sort-label select {
    box-sizing: border-box !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}

@media (min-width: 1101px) {
  body.storefront.category-page .category-filter-line {
    align-items: center !important;
  }

  body.storefront.category-page .category-filter-line .battery-type-filter {
    box-sizing: border-box !important;
    height: 42px !important;
    min-height: 42px !important;
    align-items: center !important;
  }

  body.storefront.category-page .category-filter-line .catalog-results-bar {
    box-sizing: border-box !important;
    height: 42px !important;
    min-height: 42px !important;
    align-items: center !important;
    align-self: center !important;
    margin-block: 0 !important;
  }

  body.storefront.category-page .category-filter-line .catalog-result-actions {
    align-items: center !important;
    height: 42px !important;
  }

  body.storefront.category-page .category-filter-line .battery-type-filter select {
    box-sizing: border-box !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}
