@font-face {
  font-family: 'Gilroy Regular';
  src: url(../fonts/Gilroy-Regular.woff2);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy bold';
  src: url(../fonts/Gilroy-Bold.woff2);
  font-weight: normal;
  font-style: normal;
}

body{
  font-family: 'Gilroy Regular', serif !important;
}

h1{
  color: #17174A !important;
  font-family: 'Gilroy bold', serif !important;
}

.calculator-container{
  display: flex;
  gap: 5rem;
  justify-content: center;
  align-items: flex-start;
}

.chart-cgv-container{
  display: flex;
  flex-direction: column;
  gap: 5rem;
  justify-content: center;
  align-items: flex-start;
}

.chart-canvas-container{
  width: 100% !important;
  height: 280px !important;
}

.monthly-payment-card{
  background: #E7EDF4 0% 0% no-repeat padding-box;
  /*box-shadow: 0px 3px 17px #00000029;*/
  border: 1px solid #BFBFBF;
  border-radius: 10px;
  text-align: center;
  padding: 1rem 0 2.8125rem;
  color: #17174A;
  min-width: 380px;
}

.monthly-payment-card-title{
  font-size: 1.6rem;
  font-weight: bolder;
}

.calculated-monthly-payment{
  font-size: 3rem;
  font-weight: bold;
  font-family: "Gilroy Bold";
  line-height:2.5rem;
}

.button-custom-rate{
  background: #FFC859 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 6px #00000029;
  border-radius: 10px;
  opacity: 1;
  padding: 15px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  margin: auto;
  display: flex;
  align-content: center;
  align-items: center;
}

.button-custom-rate:hover{
  background-color: #fcbd40;
}

.button-custom-rate:active {
  box-shadow: inset 0px 0px 5px #FFC859;
  outline: none;
}

/*.button-custom-rate::after{
  !*!/background-image: url('../images/chevron-right.webp');*!
  background-size: 24px 24px;
  display: inline-block;
  width: 24px;
  height: 24px;
  content:"\f054";
}*/

.monthly-payment-card-footer{
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.free-box{
  display: flex;
  align-items: center;
  gap: 5px;
}

.free-box::before{
  background-image: url('../images/Icon_check_orange.webp');
  background-size: 16px 16px;
  display: inline-block;
  width: 16px;
  height: 16px;
  content:"";
}

.speed-box{
  display: flex;
  align-items: center;
  gap: 5px;
}

.speed-box::before{
  background-image: url('../images/hourglass.webp');
  background-size: 15px 21px;
  display: inline-block;
  width: 15px;
  height: 21px;
  content:"";
}

.loan-detail{
  text-align: unset;
  padding: 0px 15px 15px 15px !important;
  color: #17174A !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  width: 100% !important;
  border:0 !important;
  border-collapse:separate !important;
  border-spacing: 0 5px !important;
  box-sizing: border-box !important;
}

#totalCost{
  font-size: 1.4rem;
  line-height: 1.7rem;
}

.loan-detail td{
  padding: 0.2rem 0.4rem 0.1rem 0.4rem !important;
}

.loan-detail tr td:last-child{
  text-align: right !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

.table-parenthesis{
  font-size: 0.6rem;
  font-weight: 400;
}

.tr-highlight > td:last-child{
  background-color: #FEDCBF;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.tr-highlight > td:first-child{
  background-color: #FEDCBF;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

premista-accordion summary{
  background: #FFFFFF !important;
  box-shadow: 0px 3px 6px #00000029 !important;
  border: 1px solid #BFBFBF !important;
  border-radius: 10px !important;
  opacity: 1 !important;
  letter-spacing: 0px !important;
  color: #17174A !important;
  width: 346px !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 700 !important;
  cursor:pointer !important;
  padding: 1rem !important;
  user-select: none !important;
}

premista-accordion summary:hover{
  background: #BFBFBF;
}

premista-accordion summary::marker {
  content: '';
}

premista-accordion summary:after {
  content: '';
  width: 24px;
  height: 24px;
  background-color: #17174A;
  background: url('../images/chevron-right.webp');
  background-size: cover;
  margin-left: auto;
  transition: 0.2s;
}

premista-accordion details{
  width: 380px !important;
}

premista-accordion details:first-child{
  margin-bottom:1rem;
}

premista-accordion details[open]{
  margin-bottom:0;
}

premista-accordion details  summary:after {
  transform: rotate(90deg);
}

premista-accordion details[open]  summary:after {
  content: '';
  width: 24px;
  height: 24px;
  background-color: #17174A;
  background: url('../images/chevron-right.webp');
  background-size: cover;
  transform: rotate(270deg);
  margin-left: auto;
  transition: 0.2s;
}

.calculator-col{
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 380px;
  width: 100%;
}

@media (max-width: 1400px) {
  .calculator-container{
    flex-direction: column;
    align-items: center;
    padding: 5px;
  }



  .chart-cgv-container{
    flex-direction: column-reverse;
    margin-top: 1rem;
  }

  premista-accordion summary{
    min-width: 280px !important;
  }



  @media (max-width: 400px) {
    .monthly-payment-card{
      min-width: 360px !important;
    }

    premista-accordion details{
      max-width: 360px !important;
    }

    premista-accordion summary {
      max-width: 320px !important;
    }

    .calculator-col{
      max-width: 360px !important;
    }
  }
}