/* Gardenline CURRENT v0.5.5 — velikost stromů */

.tree-size-field {
  grid-column: 1 / -1;
  gap: 8px;
  padding: 10px 11px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f9f4;
}

.tree-size-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tree-size-heading > span {
  font-size: 9px;
  font-weight: 800;
  color: #586571;
}

.tree-size-heading strong {
  min-width: 50px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #e6f2e3;
  color: #34713a;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.tree-size-field input[type="range"] {
  --range-progress: 30%;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: ew-resize;
  accent-color: #4f9654;
}

.tree-size-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f9654 0 var(--range-progress), #d7e0d7 var(--range-progress) 100%);
}

.tree-size-field input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #4f9654;
  box-shadow: 0 1px 5px rgba(32, 82, 39, .32);
  -webkit-appearance: none;
}

.tree-size-field input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #d7e0d7;
}

.tree-size-field input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #4f9654;
}

.tree-size-field input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #4f9654;
  box-shadow: 0 1px 5px rgba(32, 82, 39, .32);
}

.tree-size-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .tree-size-field {
    padding: 11px 12px 10px;
  }

  .tree-size-heading > span,
  .tree-size-heading strong {
    font-size: 11px;
  }

  .tree-size-field input[type="range"] {
    height: 34px;
  }

  .tree-size-field input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -9px;
  }

  .tree-size-field input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }
}
