/**
 * Widget Stylesheet
 * --------------------------------------------------------------------------
 * @author: Andre Goncalves (andre@andregoncalves)
 * @package WP Loan Calculator
 * @since Jun 06 2019
 * @copyright 2020 Andre Goncalves
 * --------------------------------------------------------------------------
 */


body div.wp-loan-calculator {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  grid-template-rows: 1fr;
  margin: 0 !important;
  max-width: 100% !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif
}
.wp-loan-calculator__header *,
.wp-loan-calculator__years__header {
  font-size: 20px;
  margin: 0;
  border: 0;
  text-align: center;
  position: relative;
}
.wp-loan-calculator__header *:before,
.wp-loan-calculator__years__header:before {
  display: none !important;
}
.wp-loan-calculator__header label {
  display: block;
  max-width: 50%;
  margin: 1rem auto;
  font-family: 'Pathway Gothic One', sans-serif;
}
.wp-loan-calculator__header input[type=tel] {
  outline: none;
  -webkit-appearance: none;
  border: 3px solid #e6e6e6;
  border-radius: 5px;
  background-color: #fff;
  line-height: 60px;
  vertical-align: middle;
  height: 66px;
  font-size: 32px;
  width: 100%;
  padding: 0 15px;
  font-family: 'Pathway Gothic One', sans-serif;
  text-align: right;
}
.wp-loan-calculator--invalid .wp-loan-calculator__header input[type=tel] {
  color: #DC5151;
  border-color: #DC5151;
}

.wp-loan-calculator > div {
  padding: 10%;
  border: 1px solid #ccc;
}
.wp-loan-calculator__monthly {
  background: #eee;
}

.wp-loan-calculator__monthly .wp-loan-calculator__header label {
  font-size: 2em;
  max-width: 100%;
}
.wp-loan-calculator__monthly__content {
  border-top: 1px solid #ccc;
  font-size: 18px;
}
.wp-loan-calculator__monthly__content > div {
  display: flex;
  justify-content: space-between;
}
.wp-loan-calculator__years__header {
  margin-top: 1em;
}
.wp-loan-calculator__years ol {
  display: flex;
  list-style: none;
  justify-content: space-between;
  padding: 0;
}
.wp-loan-calculator__years li {
  display: block;
}
.wp-loan-calculator__years input {
  opacity: 0;
}

.wp-loan-calculator__years label {
  font-size: 26px;
  display: block;
  width: 40px;
  border: 1px solid #e8e8e8;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  line-height: 38px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.wp-loan-calculator__years input:checked~label {
  background: #165dbb;
  color: #FFF;
}

.range-style {
  position: relative;
  z-index: 1000;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  height: 10px;
  border-radius: 3px;
  outline: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.9);
}

.wp-loan-calculator div.slider-container {
  position: relative;
}
.thumb-style {
  position: relative;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 15px;
  height: 25px;
  background: #4d91ea;
  border: 1px solid #165dbb;
  border-radius: 100%;
  cursor: pointer;
  z-index: 5000;
  transition: background 0.3s ease-in-out;
}
.thumb-style_hover {
  background: #165dbb;
  transition: background 0.3s ease-in-out;
}
.wp-loan-calculator input[type='range'] {
  position: relative;
  z-index: 1000;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  height: 10px;
  border-radius: 3px;
  outline: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.9);
}
.wp-loan-calculator input[type='range']::-webkit-slider-thumb {
  position: relative;
  -webkit-appearance: none;
          appearance: none;
  width: 15px;
  height: 25px;
  background: #4d91ea;
  border: 1px solid #165dbb;
  cursor: pointer;
  z-index: 5000;
  transition: background 0.3s ease-in-out;
}
input[type='range']::-webkit-slider-thumb:hover,
input[type='range']::-webkit-slider-thumb:active {
  background: #165dbb;
  transition: background 0.3s ease-in-out;
}
input[type='range']::-moz-range-track {
  background: transparent;
}
input[type='range']::-moz-range-thumb {
  position: relative;
  -moz-appearance: none;
       appearance: none;
  width: 15px;
  height: 25px;
  background: #4d91ea;
  border: 1px solid #165dbb;
  border-radius: 100%;
  cursor: pointer;
  z-index: 5000;
  transition: background 0.3s ease-in-out;
}
input[type='range']::-moz-range-thumb:hover,
input[type='range']::-moz-range-thumb:active {
  background: #165dbb;
  transition: background 0.3s ease-in-out;
}
.fill {
  position: absolute;
  z-index: 50;
  top: 19px;
  height: 6px;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(to right, #d6e6fa 0%, #165dbb 100%);
}

.count {
  display: none;
  position: absolute;
  top: -18px;
  left: 0;
  border: 1px solid #165dbb;
  background: #4d91ea;
  color: #fff;
  padding: 2px 5px;
  border-radius: 20px;
  text-align: center;
  width: 18px;
  margin-left: 0px;
  font-size: 11px;
}

.wp-loan-calculator__cta {
  margin: 1em;
  text-align: center;
}
.wp-loan-calculator__cta__button {
  text-decoration: none !important;
  display: inline-block;
  background: #4d91ea;
  color: #FFF;
  padding: 4px 8px;
  border-radius: 5px;
}
.wp-loan-calculator__cta__button:visited,
.wp-loan-calculator__cta__button:focus,
.wp-loan-calculator__cta__button:active {
  color: #FFF;
}

@media (max-width: 480px) {
  .wp-loan-calculator > div {
    padding: 10px;
  }
  .wp-loan-calculator__years__header {
    margin-top: 20px;
  }
  .wp-loan-calculator__header label {
    margin: 20px auto;
  }
  .wp-loan-calculator__header input[type=tel] {
    font-size: 28px;
    height: 46px;
  }
  .wp-loan-calculator__years ol {
    margin: 0;
  }
  .wp-loan-calculator__years li {
    line-height: 1;
  }
  .wp-loan-calculator__monthly .wp-loan-calculator__header label {
    margin: 0 auto;
  }
  body div.wp-loan-calculator {
    grid-template-columns: 1fr;
  }

}

