.range{
  height: 80px;
  width: 100%;
  background: #fff;
  padding: 0 50px 0 35px;
  margin-bottom: 0 10px 10px 10px;
}
.sliderValue{
  position: relative;
  width: 100%;
}
.sliderValue span{
  position: absolute;
  height: 45px;
  width: 45px;
  transform: translateX(-70%) scale(0);
  font-weight: 500;
  top: -40px;
  line-height: 55px;
  z-index: 2;
  color: #fff;
  transform-origin: bottom;
  transition: transform 0.3s ease-in-out;
  font-family: 'PT Sans', sans-serif;
  font-size: 14pt;
  padding-left: 13px;
  padding-bottom: 6px;
}
.sliderValue span.show{
  transform: translateX(-70%) scale(1);
}
.sliderValue span:after{
  position: absolute;
  content: '';
  height: 100%;
  width: 100%;
  background: #eb1c24;
  border: 3px solid #fff;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border-bottom-left-radius: 50%;
  box-shadow: 0px 0px 8px rgba(0,0,0,0.1);
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}
.field{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}
.field .value{
  position: absolute;
  font-size: 18px;
  color: #eb1c24;
  font-weight: 600;
}
.field .value.left{
  left: -34px;
}
.field .value.right{
  right: -43px;
}
.range input{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  border: none;
  z-index: 2222;
}
.range input::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: red;
  border-radius: 50%;
  background: #eb1c24;
  border: 1px solid #eb1c24;
  cursor: pointer;
}
.range input::-moz-range-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: red;
  border-radius: 50%;
  background: #eb1c24;
  border: 1px solid #eb1c24;
  cursor: pointer;
}
.range input::-moz-range-progress{
  background: #eb1c24;
}
.range input#downpaymentInput {
  height:auto;
  padding: 10px;
}
/* Container for the switch and labels */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Styling for the switch labels */
.switch-label {
  font-size: 14px;
  color: #000; /* Adjust the color as needed */
}

/* The switch - box around the slider */
.switch {
  position: relative;
  display: inline-block;
  max-width:75px;
  min-width: 70px;
  height: 34px; /* Height of the switch */
}

/* Hide the default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #7a7a7a; /* Background of the slider */
  transition: .4s;
  border-radius: 34px; /* Rounded borders */
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Change background color of slider when it's checked */
input:checked + .slider {
  background-color: #000; /* Active color */
}

/* Move the slider ball to the right when checked */
input:checked + .slider:before {
  transform: translateX(36px);
}

label.switch span.checked + .slider {
  background-color: #000; /* Active color */
}

label.switch span.checked + .slider:before {
  transform: translateX(36px);
}

#toggle-installment-calculator {
  font-size: 15px;
  color: #ff0000;
  cursor: pointer;
  font-weight: bold;
}

.installment-calculator-container {
    display: none;
    border: 1px solid #999;
    padding: 10px;
}

#toggle-installment-calculator:after {
    content: " →"; /* Right arrow */
    display: inline-block; /* Allows transformation */
    transition: transform 0.3s ease; /* Smooth transition for transform property */
}

#toggle-installment-calculator.toggled:after {
    transform: rotate(90deg); /* Rotates the arrow to point downwards */
}

#installmentDetails p:first-child {
  font-size: 15px;
}

#installmentDetails #instalmentAmountDisplay {
  font-weight: bold;
  color: #eb1c24;
}

.santander-opc-button {
  margin-left: 1.5em;
  text-align: right;
  margin-top: -1.2em;
}

.santander-opc-button #toggle-installment-calculator {
  font-size: 10pt;
  position: relative;
  font-weight: bold;
  color: #000;
  background-color: #dbdbdb;
  text-decoration: none;
  padding: 1rem 3rem;
  border: 3px solid #dbdbdb;
}

#order-opc #installment-calculator-container {
  margin-top: 15px;
}

@media only screen 
and (min-width : 320px) 
and (max-width : 480px) {
  .santander-opc-button{
    margin: 10px 0;
  }
}