.ap-archive-subcats__controls,
.ap-product-shelf__controls {
  display: none;
  gap: 10px;
}

.ap-archive-subcats.is-scrollable .ap-archive-subcats__controls,
.ap-product-shelf.is-scrollable .ap-product-shelf__controls {
  display: flex;
}

.ap-product-archive .ap-icon-button,
.ap-product-shelf .ap-icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 0;
  color: var(--ap-fg);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  width: 36px;
}

.ap-product-archive .ap-icon-button:focus:not(:focus-visible):not(:hover),
.ap-product-shelf .ap-icon-button:focus:not(:focus-visible):not(:hover) {
  background: #fff !important;
  border-color: var(--ap-border) !important;
  border-style: solid !important;
  border-width: 1px !important;
  color: var(--ap-fg) !important;
  outline: 0;
}

.ap-product-archive .ap-icon-button:hover,
.ap-product-archive .ap-icon-button:focus-visible,
.ap-product-shelf .ap-icon-button:hover,
.ap-product-shelf .ap-icon-button:focus-visible {
  background: var(--ap-primary);
  border-color: var(--ap-primary);
  color: #fff;
}

.ap-product-archive .ap-icon-button:disabled,
.ap-product-shelf .ap-icon-button:disabled {
  background: #fff;
  border-color: var(--ap-border);
  color: #a1a1aa;
  cursor: default;
}
