.collection__toolbar .collection__sort {
  display: none;
}

collection-section[data-filter-position="drawer"] {
  .collection__sticky-header {
    flex-direction: row;
    align-items: center;
  }

  .collection__sticky-header--minimal {
    border-top: 1px solid var(--color-border);

    @media (min-width: 1200px) {
      border-top: none;
    }
  }

  .collection__toolbar {
    order: -1;
    justify-content: flex-start;
  }

  .collection__toolbar--minimal {
    border-top: none;
    top: 0;
  }

  .collection__subheader {
    order: 1;
    margin-left: auto;
    flex: 0 0 auto;
    width: auto;
  }

  .collection__filter-trigger.wt-filter__trigger {
    margin-right: 0;
  }

  @media (min-width: 1200px) {
    .collection__filter-trigger.wt-filter__trigger::after {
      display: none;
    }
  }

  .collection__body {
    > .collection__counter.mobile {
      display: none;
    }

    .collection__subheader .collection__counter {
      display: flex;
      width: auto;
      text-align: right;
      justify-content: flex-end;
      flex: 0 0 auto;
      white-space: nowrap;

      .counter__value {
        white-space: nowrap;
        flex: 0 0 auto;
      }
    }
  }
}

.gero-facet-sort__list {
  gap: calc(var(--gap, 8px) * 1.5);
}

.gero-facet-sort__option {
  display: flex;
  align-items: center;
  gap: calc(var(--gap, 8px) * 1.25);
  cursor: pointer;
  font-size: max(calc(var(--font-base-size) - 0.2rem), 1.2rem);
}

.gero-facet-sort__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gero-facet-sort__input:checked + .gero-facet-sort__radio {
  border-color: var(--color-text);
}

.gero-facet-sort__input:checked + .gero-facet-sort__radio::after {
  transform: scale(1);
}

.gero-facet-sort__input:focus-visible + .gero-facet-sort__radio {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.gero-facet-sort__radio {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  position: relative;
}

.gero-facet-sort__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-text);
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
}

.wt-filter--drawer .wt-filter__footer__body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: calc(var(--gap, 8px) * 1.5);

  .wt-cart__cta,
  facet-remove {
    flex: 1 1 50%;
    min-width: 0;
  }

  .wt-cart__cta {
    order: 2;
    min-height: var(--input-height);
    border-radius: 0;
    clip-path: none;
    transition: background 0.3s ease-in, color 0.3s ease-in;
  }

  .wt-cart__cta::after {
    display: none;
  }

  @media (hover: hover) {
    .wt-cart__cta:hover {
      background: var(--color-button-primary-background-hover);
      color: var(--color-button-primary-text-hover);
    }
  }

  facet-remove {
    display: flex;
    order: 1;
  }

  .wt-filter__clear-all {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
  }

  .wt-filter__remove-all {
    width: 100%;
    margin: 0;
    padding: calc(var(--gap, 8px) * 2) calc(var(--gap, 8px) * 2);
    min-height: var(--input-height);
    line-height: normal;
    border-color: var(--color-button-secondary-border);
    background: var(--color-button-secondary-background);
  }

  .wt-filter__remove-all > span::before,
  .wt-filter__remove-all > span::after {
    display: none;
  }

  @media (hover: hover) {
    .wt-filter__remove-all:hover {
      background: var(--color-button-secondary-background-hover);
      color: var(--color-button-secondary-text-hover);
    }
  }
}
