.banana-max-preview-density {
  position: relative;
  z-index: 1;
  display: flex;
  width: auto;
  height: 32px;
  align-items: center;
  gap: 5px;
}

.banana-max-preview-density button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  outline: 0;
  background: transparent;
  color: rgba(72, 76, 84, .28);
  cursor: pointer;
  font: 400 22px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  transition: color 150ms ease, background-color 150ms ease, transform 130ms cubic-bezier(.23, 1, .32, 1);
}

.banana-max-preview-density button:hover:not(:disabled),
.banana-max-preview-density button:focus-visible {
  background: transparent;
  color: rgba(40, 43, 49, .82);
}

.banana-max-preview-density button:active:not(:disabled) {
  transform: scale(.9);
}

.banana-max-preview-density button:disabled {
  color: rgba(72, 76, 84, .12);
  cursor: default;
}

.theme-dark .banana-max-preview-density button {
  color: rgba(238, 239, 242, .28);
}

.theme-dark .banana-max-preview-density button:hover:not(:disabled),
.theme-dark .banana-max-preview-density button:focus-visible {
  background: transparent;
  color: rgba(255, 255, 255, .88);
}

.theme-dark .banana-max-preview-density button:disabled {
  color: rgba(238, 239, 242, .12);
}

@media (prefers-reduced-motion: reduce) {
  .banana-max-preview-density button {
    transition: color 100ms ease, background-color 100ms ease;
  }
}
