
.lb-estimator {
  margin: 28px 0;
  padding: clamp(18px, 4vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
  gap: 24px;
  border: 1px solid #e0d8cb;
  border-radius: 6px;
  background: #f7f3ec;
}

.lb-estimator h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.05;
}

.lb-estimator p {
  margin: 0;
}

.lb-eyebrow {
  color: #8a4f2a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lb-estimator-controls {
  display: grid;
  gap: 15px;
}

.lb-estimator-controls label {
  display: grid;
  gap: 7px;
}

.lb-estimator-controls label > span,
.lb-estimator-results span {
  color: #5b5146;
  font-size: .9rem;
  font-weight: 700;
}

.lb-estimator-controls strong,
.lb-estimator-results strong {
  color: #1f1b16;
}

.lb-estimator-controls input {
  width: 100%;
  accent-color: #d9a441;
}

.lb-estimator-controls input[type="range"] {
  --lb-range-progress: 0%;
  position: relative;
  z-index: 1;
  height: 28px;
  min-height: 28px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
  appearance: none;
  -webkit-appearance: none;
}

.lb-estimator-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid #d8cbb7;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9a441 0 var(--lb-range-progress), #fff var(--lb-range-progress) 100%);
}

.lb-estimator-controls input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #1f1b16;
  border-radius: 50%;
  margin-top: -8px;
  background: #d9a441;
  appearance: none;
  -webkit-appearance: none;
}

.lb-estimator-controls input[type="range"]::-moz-range-track {
  height: 8px;
  border: 1px solid #d8cbb7;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9a441 0 var(--lb-range-progress), #fff var(--lb-range-progress) 100%);
}

.lb-estimator-controls input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #1f1b16;
  border-radius: 50%;
  background: #d9a441;
}

.lb-estimator-controls input[type="range"]:focus-visible {
  outline: 3px solid rgba(217, 164, 65, .45);
  outline-offset: 3px;
}

.lb-estimator-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lb-estimator-results div {
  padding: 14px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #e4ded3;
}

.lb-estimator-results strong {
  display: block;
  margin-top: 3px;
  font-size: 1.25rem;
}

html:not([data-lb-theme="light"]) .lb-estimator {
  border-color: #3d3127;
  background: #18120d;
  color: #f8efe1;
}

html:not([data-lb-theme="light"]) .lb-estimator h2,
html:not([data-lb-theme="light"]) .lb-estimator-controls strong,
html:not([data-lb-theme="light"]) .lb-estimator-results strong {
  color: #f8efe1;
}

html:not([data-lb-theme="light"]) .lb-estimator p,
html:not([data-lb-theme="light"]) .lb-estimator-controls label > span,
html:not([data-lb-theme="light"]) .lb-estimator-results span {
  color: #d8c7ad;
}

html:not([data-lb-theme="light"]) .lb-eyebrow {
  color: #d9a441;
}

html:not([data-lb-theme="light"]) .lb-estimator-controls input {
  accent-color: #d9a441;
}

html:not([data-lb-theme="light"]) .lb-estimator-controls input[type="range"] {
  background: transparent;
}

html:not([data-lb-theme="light"]) .lb-estimator-controls input[type="range"]::-webkit-slider-runnable-track {
  border-color: #5a4736;
  background: linear-gradient(90deg, #d9a441 0 var(--lb-range-progress), #100d0a var(--lb-range-progress) 100%);
}

html:not([data-lb-theme="light"]) .lb-estimator-controls input[type="range"]::-webkit-slider-thumb {
  border-color: #f8efe1;
  background: #d9a441;
}

html:not([data-lb-theme="light"]) .lb-estimator-controls input[type="range"]::-moz-range-track {
  border-color: #5a4736;
  background: linear-gradient(90deg, #d9a441 0 var(--lb-range-progress), #100d0a var(--lb-range-progress) 100%);
}

html:not([data-lb-theme="light"]) .lb-estimator-controls input[type="range"]::-moz-range-thumb {
  border-color: #f8efe1;
  background: #d9a441;
}

html:not([data-lb-theme="light"]) .lb-estimator-results div {
  border-color: #3d3127;
  background: #120f0b;
}

@media (max-width: 760px) {
  .lb-estimator,
  .lb-estimator-results {
    grid-template-columns: 1fr;
  }
}
