.shopds-filter-switch {
  position: relative;
  flex: 0 0 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--shopds-range-rail);
  box-shadow: inset 0 0 0 1px currentColor;
}

.shopds-filter-switch__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--shopds-button-primary);
}

.shopds-filter-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 12px;
  border-radius: inherit;
  background: var(--brand-shop-text);
}

.shopds-price-motion {
  position: relative;
  height: 28px;
  margin-inline: 7.5px;
}

.shopds-price-motion__rail,
.shopds-price-motion__tips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shopds-price-motion__rail::before,
.shopds-price-motion__fill {
  position: absolute;
  top: 12px;
  height: 4px;
  border-radius: 999px;
}

.shopds-price-motion__rail::before {
  content: "";
  inset-inline: 0;
  background: var(--shopds-range-rail);
}

.shopds-price-motion__fill { background: var(--shopds-button-primary); }

.shopds-price-motion__thumb {
  position: absolute;
  top: 50%;
  translate: -50% -50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand-shop-text);
}

.shopds-price-motion > .dual-range {
  left: -7.5px;
  width: calc(100% + 15px);
  opacity: 0;
}

.shopds-price-motion:has(input:first-of-type:focus-visible) .shopds-price-motion__thumb:nth-of-type(2),
.shopds-price-motion:has(input:last-of-type:focus-visible) .shopds-price-motion__thumb:last-of-type {
  outline: 2px solid var(--brand-shop-text);
  outline-offset: 2px;
}

.shopds-price-motion__tips {
  z-index: 2;
  visibility: hidden;
}

.shopds-price-motion__tips[data-visible="true"] { visibility: visible; }

.shopds-price-motion__tips span {
  position: absolute;
  bottom: 100%;
  translate: -50% 0;
  transform-origin: center bottom;
  padding: 3px 6px;
  border-radius: 7px;
  background: var(--shopds-button-primary);
  color: var(--shop-text-on-brand);
  font-size: 11px;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.shopds-quantity-roll {
  position: relative;
  min-width: 0;
}

.shopds-quantity-roll__digits {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  font-variant-numeric: tabular-nums lining-nums;
}

.shopds-quantity-roll__digits span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: inherit;
}

body .shopds-product-page .shopds-product-quantity .shopds-quantity-roll:has(.shopds-quantity-roll__digits) input:not(:focus) {
  color: transparent;
}

.shopds-quantity-roll:focus-within .shopds-quantity-roll__digits { visibility: hidden; }

.shopds-product-quantity button[aria-disabled="true"] { opacity: .4; }
