/* This is only distracting on this page */
.whatsapp-floating-button {
  display: none !important;
}

.calculator-page-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    'title results'
    'form  results';
  gap: 0 1.5rem;
}

.calculator-page-layout__title {
  padding-top: 150px;
  margin-top: -150px;
  grid-area: title;
  margin-bottom: 1rem;
  letter-spacing: -1.44px;
}

.calculator-page-layout__form {
  grid-area: form;
  width: 480px;
  min-width: min(340px, 100%);
  max-width: 100%;
}

.calculator-page-layout__results {
  grid-area: results;
}

.calculator-page-heading-subtext {
  color: #59a088;
  font-size: 0.8em;
  letter-spacing: normal;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: calc(18px / 8 * 9);
  width: 100%;
  color: #0d4f47;
}

.calculator-form__field {
  color: #0d4f47;
  display: flex;
  flex-direction: column;
  font-weight: normal;
  line-height: 22.5px;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  margin-bottom: 0;
}

.calculator-form__field-input {
  font-size: 20px;
  font-weight: normal;
  padding: 16px 14px;
  border-radius: 10px;
  border-color: transparent;
  border-style: solid;
  outline-color: #59a088;
}


.calculator-no-results-placeholder {
  width: 100%;
  max-width: max(30vw, 360px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  margin: 40px auto 0 auto;
}

.calculator-results {
  width: 480px;
  min-width: min(340px, 100%);
  max-width: 100%;
  padding: 2rem min(3rem, 5vw) 3rem min(3rem, 5vw);
  color: #fff;
  background-color: #0d4f47;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.calculator-results__section {
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
  font-size: 20px;
}

.calculator-results__section:not(:first-child) {
  padding-top: 16px;
  border-top: 1px solid white;
}

.calculator-results__emphasized-label {
  --base-emphasized-label-font-size: 18px;

  color: #cb6b40;
  font-size: var(--base-emphasized-label-font-size);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.6px;
}

.calculator-results__emphasized-label:not(:first-child) {
  margin-top: 1em;
}

.calculator-results__emphasized-value {
  color: #fff;
  font-size: calc(var(--base-emphasized-label-font-size, 20px) * 1.6);
  font-style: normal;
  font-weight: 300;
  margin-top: 0.4em;
  line-height: 1;
  letter-spacing: -1.76px;
}

.calculator-results__jump-to-explanation-link {
  margin-left: 4px;
  font-size: 1.2em;
  line-height: 0;
}

.calculator-results__jump-to-explanation-link:not(:hover, :active, :focus) {
  filter: grayscale(0.1);
  opacity: 0.6;
}

.calculator-results__detailed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
  line-height: 1;
  margin-bottom: 12px;
}

.calculator-results__detailed-item>*:nth-child(2) {
  flex-shrink: 0;
  min-width: 8ch;
  text-align: right;
}

.calculator-results__detailed-item:not(.calculator-results__detailed-item--sum) {
  margin-left: 0.5rem;
  font-size: 16px;
  color: #b5cfc7;
}

.calculator-results__detailed-item--sum {
  font-weight: 500;
  font-size: 18px;
  margin-top: 18px;
}

.calculator-button {
  width: max-content;
}

.calculator-button.calculator-button--secondary {
  background: transparent;
  color: white;
  border: 1px solid white;
  margin-top: 1rem;
}

.calculator-button.calculator-button--secondary:is(:hover,:focus) {
  color: #cb6b40;
  border-color: #cb6b40;
  outline-color: #cb6b40;
  outline-style: solid;
}

.only-on-mobile {
  display: none;
}

.calculator-page-explanations {
  display: flex;
  flex-wrap: wrap;
  gap: 0 64px;
}

.calculator-page-explanations__section {
  margin-top: 60px;
}

.calculator-page-explanations__group {
  flex-basis: 300px;
  flex-grow: 1;
  min-width: 400px;
}

.calculator-page-explanations h2 {
  letter-spacing: -0.66px;
  /* account for sticky header with # navigation */
  padding-top: 150px;
  margin-top: -150px;
}

.calculator-page-explanations strong {
  display: block;
  line-height: 1;
  font-weight: 700;
  margin: 36px 0 6px 0;
}

.calculator-page-explanations h2+* {
  margin-top: 0;
}

.calculator-page-explanations table {
  background: #e3f2f1;
  text-align: center;
  width: 100%;
  margin-top: 18px;
  border-radius: 4px;
  box-shadow: 0px 0px 0px 1px #6e9b9a;
}

.calculator-page-explanations :is(th, td) {
  padding: 4px 8px;
  box-shadow: 0px 0px 0px 0.5px #6e9b9a;
  text-wrap: balance;
  border: none;
}

.calculator-page-explanations thead tr :first-child {
  border-right: 1.5px solid #e3f2f1;
  width: 40%;
  border-top-left-radius: 4px;
}

.calculator-page-explanations thead tr :last-child {
  border-top-right-radius: 4px;
}

.calculator-page-explanations tbody tr:last-child :first-child {
  border-bottom-left-radius: 4px;
}

.calculator-page-explanations tbody tr:last-child :last-child {
  border-bottom-right-radius: 4px;
}

.calculator-page-explanations th {
  background: #6e9b9a;
}

@media screen and (max-width: 776px) {
  .calculator-page-layout {
    display: block;
  }

  .calculator-page-layout--showing-results>.calculator-page-layout__form {
    display: none;
  }

  .only-on-mobile {
    display: block;
  }

  .calculator-page-explanations {
    flex-direction: column;
  }

  .calculator-page-explanations__group {
    min-width: 300px;
  }

  .calculator-page-explanations__group:last-of-type {
    padding-bottom: 24px;
  }


  .calculator-page-explanations h2 {
    letter-spacing: -0.66px;
    /* account for sticky header with # navigation */
    padding-top: 80px;
    margin-top: -80px;
  }

  .calculator-no-results-placeholder {
    display: none;
  }
}