/* Colors, masks and transition timings from the public quantity slider. */
.shop-quantity-control {
  --duration-qty-glide: .18s;
  --duration-qty-settle: .6s;
  --ease-out-cubic: cubic-bezier(.33, 1, .68, 1);
  --ease-qty-settle: linear(0, .055, .19, .366, .553, .727, .875, .99, 1.07, 1.117, 1.138, 1.138, 1.124, 1.101, 1.075, 1.05, 1.027, 1.009, .995, .986, .982, .98, .982, .988, 1);
  --qty-fill: linear-gradient(90deg, #26097e 0%, #3a0db6 30%, #5a1dd4 55%, #9430d6 80%, var(--qty-heat) 100%);
  --qty-fill-edge: #8454d4;
  --qty-glow-cool: #805cff;
  --qty-glow-hot: #eba8ff;
  --qty-halo-ramp: linear-gradient(90deg, var(--qty-glow-cool) 0%, var(--qty-hue-mid) 50%, var(--qty-hue-late) 71%, var(--qty-glow-hot) 100%);
  --qty-heat: #dc4cc6;
  --qty-hue-late: var(--qty-glow-cool);
  --qty-hue-mid: var(--qty-glow-cool);
  --qty-knob-face: linear-gradient(180deg, #fff 0%, #f4f1fb 50%, #ddd6ee 100%);
  --qty-knob-glow: #ffb8f5;
  --qty-knob-ink: #2b1e6b;
  --qty-knob-shadow: 0 3px 10px #0c063073;
  --qty-rim: #b8b4e3;
  --qty-rim-top: #7b7b7b;
  --qty-tube-ramp: linear-gradient(90deg, var(--qty-glow-cool) 0%, var(--qty-hue-mid) 50%, var(--qty-hue-late) 71%, var(--qty-glow-hot) 100%);
  --qty-last: 9;
  --qty-thumb: 46px;
}
.rg-qty-slider {
  transition:scale var(--duration-qty-settle) var(--ease-qty-settle),translate var(--duration-qty-settle) var(--ease-qty-settle);
  background:#ffffff0f;
  position:relative;
}
.rg-qty-slider:before {
  content:"";
  border-radius:inherit;
  background:linear-gradient(0deg,var(--qty-rim) 0%,var(--qty-rim) 35%,var(--qty-rim) 75%,var(--qty-rim-top) 100%);
  padding:1px;
  position:absolute;
  inset:0;
}
@supports (color:color-mix(in lab,red,red)) {
  .rg-qty-slider:before {
    background:linear-gradient(0deg,var(--qty-rim) 0%,color-mix(in srgb,var(--qty-rim) 55%,transparent) 35%,color-mix(in srgb,var(--qty-rim) 18%,transparent) 75%,color-mix(in srgb,var(--qty-rim-top) 35%,transparent) 100%);
  }
}
.rg-qty-slider:before {
  -webkit-mask-composite:xor;
  pointer-events:none;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor,source-over;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
}
.rg-qty-track {
  container-type:inline-size;
}
.rg-qty-fill,.rg-qty-neon,.rg-qty-tube {
  width:calc((100% - var(--qty-thumb)) * var(--qty-f) + var(--qty-thumb));
  opacity:min(1,calc(var(--qty-f) * var(--qty-last)));
  transition:width var(--duration-qty-glide) var(--ease-out-cubic),opacity var(--duration-qty-glide) var(--ease-out-cubic);
}
.rg-qty-fill {
  background:linear-gradient(#0003,#0003),var(--qty-fill) left / 100cqw 100% no-repeat;
  box-shadow:inset 0 0 0 1px var(--qty-fill-edge);
}
.rg-qty-slider {
  --qty-hue-mid:var(--qty-glow-cool);
}
@supports (color:color-mix(in lab,red,red)) {
  .rg-qty-slider {
    --qty-hue-mid:color-mix(in srgb, var(--qty-glow-cool) 75%, var(--qty-glow-hot));
  }
}
.rg-qty-slider {
  --qty-hue-late:var(--qty-glow-cool);
}
@supports (color:color-mix(in lab,red,red)) {
  .rg-qty-slider {
    --qty-hue-late:color-mix(in srgb, var(--qty-glow-cool) 50%, var(--qty-glow-hot));
  }
}
.rg-qty-slider {
  --qty-tube-ramp:linear-gradient(90deg, var(--qty-glow-cool) 0%, var(--qty-hue-mid) 50%, var(--qty-hue-late) 71%, var(--qty-glow-hot) 100%);
}
@supports (color:color-mix(in lab,red,red)) {
  .rg-qty-slider {
    --qty-tube-ramp:linear-gradient(90deg, color-mix(in srgb, var(--qty-glow-cool) 35%, transparent) 0%, color-mix(in srgb, var(--qty-hue-mid) 67.5%, transparent) 50%, color-mix(in srgb, var(--qty-hue-late) 86%, transparent) 71%, var(--qty-glow-hot) 100%);
  }
}
.rg-qty-slider {
  --qty-halo-ramp:linear-gradient(90deg, var(--qty-glow-cool) 0%, var(--qty-hue-mid) 50%, var(--qty-hue-late) 71%, var(--qty-glow-hot) 100%);
}
@supports (color:color-mix(in lab,red,red)) {
  .rg-qty-slider {
    --qty-halo-ramp:linear-gradient(90deg, color-mix(in srgb, var(--qty-glow-cool) 21%, transparent) 0%, color-mix(in srgb, var(--qty-hue-mid) 40.5%, transparent) 50%, color-mix(in srgb, var(--qty-hue-late) 51.6%, transparent) 71%, color-mix(in srgb, var(--qty-glow-hot) 60%, transparent) 100%);
  }
}
.rg-qty-glow,.rg-qty-heat {
  background:var(--qty-halo-ramp);
  filter:blur(5px);
}
.rg-qty-glow,.rg-qty-wash {
  opacity:.3;
  transition:opacity var(--duration-qty-glide) var(--ease-out-cubic);
}
.rg-qty-wash {
  background:var(--qty-halo-ramp);
}
.rg-qty-tube {
  pointer-events:none;
}
.rg-qty-tube:before {
  content:"";
  border-radius:inherit;
  background:var(--qty-tube-ramp);
  -webkit-mask-composite:xor;
  filter:blur(1px);
  opacity:.3;
  transition:opacity var(--duration-qty-glide) var(--ease-out-cubic);
  padding:4px;
  position:absolute;
  inset:-2px;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor,source-over;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
}
.rg-qty-heat {
  opacity:0;
}
.rg-qty-thumb {
  left:calc((100% - var(--qty-thumb)) * var(--qty-f));
  width:var(--qty-thumb);
  color:var(--qty-knob-ink);
  transition:left var(--duration-qty-glide) var(--ease-out-cubic);
}
.rg-qty-disc {
  background:radial-gradient(70% 55% at 45% 18%,#fffffff2 0%,#ffffff59 55%,transparent 100%),radial-gradient(80% 45% at 50% 100%,#a78cff47 0%,transparent 100%),var(--qty-knob-face);
  box-shadow:inset 0 0 0 1px #fff9,var(--qty-knob-shadow);
  transition:scale var(--duration-qty-glide) var(--ease-out-cubic);
}
.rg-qty-disc:after {
  content:"";
  border-radius:inherit;
  box-shadow:0 0 3px 1px #fff2ff,0 0 12px 6px var(--qty-knob-glow);
  position:absolute;
  inset:0;
}
@supports (color:color-mix(in lab,red,red)) {
  .rg-qty-disc:after {
    box-shadow:0 0 3px 1px #fff2ff,0 0 12px 6px color-mix(in srgb,var(--qty-knob-glow) 65%,transparent);
  }
}
.rg-qty-disc:after {
  opacity:.3;
  transition:opacity var(--duration-qty-glide) var(--ease-out-cubic);
}
.rg-qty-label {
  isolation:isolate;
  transition:scale var(--duration-qty-settle) var(--ease-qty-settle);
}
.rg-qty-slider[data-held] .rg-qty-glow,.rg-qty-slider[data-held] .rg-qty-wash,.rg-qty-slider[data-held] .rg-qty-tube:before,.rg-qty-slider[data-held] .rg-qty-disc:after {
  opacity:1;
}
.rg-qty-slider[data-held] .rg-qty-disc {
  scale:1.06;
}
.rg-qty-slider[data-dragging],.rg-qty-slider[data-dragging] :is(.rg-qty-fill,.rg-qty-neon,.rg-qty-tube,.rg-qty-thumb,.rg-qty-label) {
  transition:none;
}
@media(prefers-reduced-motion:reduce) {
  .rg-qty-slider,.rg-qty-slider :is(.rg-qty-fill,.rg-qty-neon,.rg-qty-tube,.rg-qty-glow,.rg-qty-wash,.rg-qty-thumb,.rg-qty-disc,.rg-qty-label),.rg-qty-tube:before,.rg-qty-disc:after {
    transition:none;
  }
}
.shop-quantity-control { box-sizing:border-box; width:230px; max-width:100%; min-width:0; height:44px; padding:4px; border-radius:999px; }
.shop-quantity-control:has(:focus-visible) { outline:2px solid #846dff; outline-offset:2px; }
.shop-quantity-control .rg-qty-track { width:100%; height:100%; position:relative; }
.shop-quantity-tick { position:absolute; top:50%; width:5px; height:5px; translate:-50% -50%; border-radius:50%; background:#ffffff59; }
.shop-quantity-control :is(.rg-qty-fill,.rg-qty-neon,.rg-qty-tube,.rg-qty-thumb) { position:absolute; inset-block:0; border-radius:999px; }
.shop-quantity-control :is(.rg-qty-fill,.rg-qty-neon,.rg-qty-tube) { left:0; }
.shop-quantity-control .rg-qty-fill { overflow:hidden; }
.shop-quantity-control :is(.rg-qty-disc,.rg-qty-wash) { position:absolute; inset:0; border-radius:inherit; }
.shop-quantity-control :is(.rg-qty-glow,.rg-qty-heat) { position:absolute; inset:-10px; border-radius:inherit; }
.shop-quantity-control .rg-qty-thumb { display:grid; place-items:center; }
.shop-quantity-control .rg-qty-label { display:grid; position:relative; place-items:center; width:100%; height:100%; border-radius:inherit; overflow:hidden; font-weight:800; font-size:15px; }
.shop-quantity-input { position:absolute; inset:4px; width:calc(100% - 8px); height:calc(100% - 8px); margin:0; opacity:0; appearance:none; touch-action:pan-y; cursor:grab; }
.shop-quantity-input:active { cursor:grabbing; }
.shop-quantity-input::-webkit-slider-thumb { appearance:none; width:46px; height:36px; }
.shop-quantity-input::-moz-range-thumb { width:46px; height:36px; border:none; }
@media(max-width:1023px) { .shop-pack-tools > .shop-quantity-control { flex:1; width:auto; } }
