/* === Variant Slider === */
.variant-slider-wrap {
  margin: 15px 0 10px;
  -webkit-user-select: none;
  user-select: none;
}

/* === Min / Max labels row === */
.variant-slider-minmax {
  display: flex;
  justify-content: space-between;
  margin-bottom: -4px;
}

.variant-slider-min,
.variant-slider-max {
  color: #333;
  font-size: 14px;
  line-height: 1;
  top: 0;
  padding: 3px 5px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* === Tooltip === */
.variant-slider-tooltip-row {
  height: 20px;
  position: relative;
  margin: 0 10px;
}

.variant-slider-tooltip {
  position: absolute;
  top: -15px;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.2s ease;
  font-size: 14px;
  line-height: 1;
  text-shadow: none;
  padding: 3px 5px;
  background-color: #4f2915;
  color: white;
  border-radius: 4px;
}

.variant-slider-tooltip.hidden {
  opacity: 0;
  pointer-events: none;
}

.variant-slider-tooltip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #963922;
}

/* === Range input === */
.variant-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #dee4ec;
  border-radius: 4px;
  outline: none;
  margin: 0;
  padding: 0;
  display: block;
  cursor: pointer;
}

.variant-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #963922;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin-top: -7px;
}

.variant-slider-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.variant-slider-input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #963922;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.variant-slider-input::-moz-range-track {
  height: 4px;
  background: #dee4ec;
  border-radius: 4px;
  border: none;
}

.variant-slider-input::-moz-range-progress {
  height: 4px;
  background: #963922;
  border-radius: 4px;
}

/* === Grid ticks — directly under the track === */
.variant-slider-grid {
  display: flex;
  justify-content: space-between;
  margin: 0 10px;
  padding-top: 2px;
}

.variant-slider-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 0;
  overflow: visible;
}

.variant-slider-tick::before {
  content: "";
  display: block;
  width: 1px;
  height: 8px;
  background: #c0c0c0;
}

.variant-slider-tick span {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
  margin-top: 1px;
}

/* When compact, hide every other label text (ticks stay) */
.variant-slider-grid.compact .variant-slider-tick:nth-child(even) span {
  display: none;
}

/* === Info === */
.variant-slider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.variant-slider-price {
  font-size: 15px;
  font-weight: bold;
  color: #963922;
}

.variant-slider-stock {
  font-size: 13px;
  color: #4a4a4a;
}

.variant-slider-stock.out-of-stock {
  color: #c00;
  font-weight: bold;
}
