.calculator {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    margin: auto;
    box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05), 0px 1px 4px rgba(12, 12, 13, 0.1);
  }

  .calculator__top {
    padding: 16px 16px 0px 16px;
  }
  
  .calculator__field {
    margin-bottom: 20px;
  }
  
  .calculator__input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .calculator_field__legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
    color: #64748B;
    margin-top: 8px;
  }
  
  input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    box-shadow: inset 0px 4px 4px rgba(255, 255, 255, 0.25);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background: linear-gradient(to right, #d97706 0%, #d97706 50%, #F1F5F9 50%, #F1F5F9 100%);
    background-repeat: no-repeat;
    background-size: 100% 8px;
  }  
  
  input[type="range"]::-webkit-slider-runnable-track {
    height: 36px;
    background: transparent;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: #d97706;
    cursor: grab;
    border: 4px solid #ffffff;
    box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
                0px 1px 4px rgba(12, 12, 13, 0.1),
                inset 0px 7px 6px rgba(255, 255, 255, 0.18);
  }
  
  input[type="range"]::-moz-range-track {
    height: 8px;
    background: transparent;
    border-radius: 9999px;
  }
  
  input[type="range"]::-moz-range-progress {
    height: 8px;
    background: #d97706;
    border-radius: 9999px;
    box-shadow: inset 0px 4px 4px rgba(255, 255, 255, 0.25);
  }
  
  input[type="range"]::-moz-range-thumb {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: #d97706;
    cursor: grab;
    border: 4px solid #ffffff;
    box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
                0px 1px 4px rgba(12, 12, 13, 0.1),
                inset 0px 7px 6px rgba(255, 255, 255, 0.25);
  }
  
  input[type="range"]::-ms-track {
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
  
  input[type="range"]::-ms-fill-lower {
    background: #d97706;
    border-radius: 9999px;
    box-shadow: inset 0px 4px 4px rgba(255, 255, 255, 0.25);
  }
  
  input[type="range"]::-ms-fill-upper {
    background: #F1F5F9;
    border-radius: 9999px;
  }
  
  input[type="range"]::-ms-thumb {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: #d97706;
    cursor: grab;
    border: 4px solid #ffffff;
    box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
                0px 1px 4px rgba(12, 12, 13, 0.1),
                inset 0px 7px 6px rgba(255, 255, 255, 0.25);
  }
   
  .calculator__label {
    font-weight: 450;
  }

  .calculator__input-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .calculator__input-wrapper input {
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
    line-height: 36px;
    font-weight: 700;
    text-align: right;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    height: 36px;
    outline: none;
  }

  #amountInput {
    padding-right: 32px;
    width: 108px;
    transition: border-color .2s ease;
  }

  #durationInput {
    padding-right: 80px;
    width: 116px;
    transition: border-color .2s ease;
  }

  .calculator__input-wrapper input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(246, 162, 59, 0.35);
  }
  
  .calculator__suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 36px;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
  }  
  
  .calculator__summary {
    margin-top: 24px;
  }
  
  .calculator__summary div {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    background-color: #F8FAFC;
    font-size: 14px;
    border-top: 1px solid #E2E8F0;
    color: #475569;
  }

  .calculator__summary div:last-child {
    border-bottom: 1px solid #E2E8F0;
  }

.calculator__summary-value {
    font-weight: 700;
    color: #020617;
}

.calculator__submit {
    padding: 24px 16px;
}

/* RESIZE */
@media (min-width: 576px) {
  .calculator {
    max-width: 360px;
  }
}

/* HOVER EFFECTS */
@media (hover: hover) and (pointer: fine) {
  #amountInput:hover {
    border-color: #d97706;
  }
  #durationInput:hover {
    border-color: #d97706;
  }
  }