/* Container */
.lux-savings-calculator {
  max-width: 1200px;
  margin: auto;
  background: linear-gradient(#f7f2ea, #fdfbf7);
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  font-family: inherit;
}

/* Ensure Divi cannot break layout */
.lux-savings-calculator * {
  box-sizing: border-box;
}

/* Slider Section */
.lux-slider-label {
  text-align: center;
  font-size: 14px;
  color: #8c6a2f;
  margin-bottom: 6px;
}

.lux-price-display {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  color: #8c6a2f;
  margin-bottom: 20px;
}

.lux-slider-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lux-slider-wrap span {
  font-size: 14px;
  color: #8c6a2f;
}

/* ======================
   RANGE SLIDER (FIXED)
   ====================== */

.lux-savings-calculator input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #c9a24d, #a67c2e);
  outline: none;
}

/* Chrome / Safari */
.lux-savings-calculator input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
  width: 44px;
  background: #a67c2e;
  border-radius: 50%;
  border: 4px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Firefox */
.lux-savings-calculator input[type=range]::-moz-range-thumb {
  height: 44px;
  width: 44px;
  background: #a67c2e;
  border-radius: 50%;
  border: 4px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Edge */
.lux-savings-calculator input[type=range]::-ms-thumb {
  height: 44px;
  width: 44px;
  background: #a67c2e;
  border-radius: 50%;
  border: 4px solid #ffffff;
  cursor: pointer;
}

/* ======================
   BOTTOM LAYOUT (LOCKED)
   ====================== */

.lux-savings-calculator .lux-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.lux-savings-calculator .lux-left,
.lux-savings-calculator .lux-right {
  flex: 0 0 50%;
}

.lux-savings-calculator .lux-right {
  text-align: right;
}
/* Visually align savings with slider (desktop only) */
@media (min-width: 769px) {
  .lux-savings-calculator .lux-right {
    padding-right: 40px;
  }
}


/* Toggle */
.lux-toggle-title {
  font-size: 18px;
  color: #8c6a2f;
}

.lux-toggle-sub {
  font-size: 14px;
  font-style: italic;
  color: #b08a45;
  margin-bottom: 12px;
}

/* Toggle Switch (Divi-safe) */
.lux-savings-calculator .lux-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.lux-savings-calculator .lux-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lux-savings-calculator .lux-slider {
  position: relative;
  display: block;
  width: 52px;
  height: 28px;
  background-color: #ddd;
  border-radius: 34px;
  transition: 0.4s;
  cursor: pointer;
}

.lux-savings-calculator .lux-slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.4s;
}

.lux-savings-calculator .lux-switch input:checked + .lux-slider {
  background-color: #c9a24d;
}

.lux-savings-calculator .lux-switch input:checked + .lux-slider:before {
  transform: translateX(24px);
}

/* Savings */
.lux-save-title {
  font-size: 18px;
  color: #8c6a2f;
}

.lux-save-amount {
  font-size: 44px;
  font-weight: 700;
  color: #be8e33;
  margin-top: 21px;
}

/* ======================
   MOBILE
   ====================== */

@media (max-width: 768px) {
  .lux-savings-calculator .lux-bottom {
    flex-direction: column;
    text-align: center;
  }

  .lux-savings-calculator .lux-right {
    text-align: center;
  }
}
