/* TAP Besparingscalculator - volledig afgeschermde stijlen voor Avada/WPML */
.tapfc {
  --tapfc-navy: #252D5F;
  --tapfc-red: #E94C4D;
  --tapfc-line: #ECECEC;
  width: 100%;
  max-width: var(--tapfc-max-width, 920px);
  margin: 0 auto;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111;
}
.tapfc *, .tapfc *::before, .tapfc *::after { box-sizing: border-box; }
.tapfc .tapfc__title {
  margin: 0 0 18px;
  padding: 0;
  font: 700 16px/1.5 'Montserrat', Arial, sans-serif;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
}
.tapfc .tapfc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tapfc .tapfc__fields,
.tapfc .tapfc__result {
  background: #fff;
  border: 1px solid var(--tapfc-line);
  border-radius: 8px;
  box-shadow: none;
  min-width: 0;
}
.tapfc .tapfc__fields { padding: 22px 25px 19px; }
.tapfc .tapfc__field + .tapfc__field { margin-top: 28px; }
.tapfc .tapfc__field label {
  display: block;
  color: #131313;
  font: 700 12px/1.5 'Montserrat', Arial, sans-serif;
  letter-spacing: 0;
  margin: 0 0 7px;
}
.tapfc .tapfc__field input[type="number"] {
  display: block;
  width: 100%;
  min-height: 45px;
  height: 45px;
  background: #F7F7F7;
  border: 1px solid #E7E7E7;
  border-radius: 5px;
  padding: 9px 12px;
  box-shadow: none;
  font: 400 13px/1.5 'Montserrat', Arial, sans-serif;
  color: #181818;
  outline-offset: 2px;
  appearance: auto;
}
.tapfc .tapfc__field input[type="number"]:focus-visible { outline: 2px solid var(--tapfc-navy); }
.tapfc .tapfc__field small {
  display: block;
  color: #91949e;
  font: 400 11px/1.5 'Montserrat', Arial, sans-serif;
  margin-top: 7px;
}
.tapfc .tapfc__label-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tapfc .tapfc__label-row label { margin-bottom: 10px; }
.tapfc .tapfc__label-row output {
  font: 700 12px/1.4 'Montserrat', Arial, sans-serif;
  color: #161616;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tapfc .tapfc__field input[type="range"] {
  width: 100%;
  height: 6px;
  min-height: 6px;
  padding: 0;
  border: none;
  margin: 3px 0 0;
  cursor: pointer;
  background: linear-gradient(to right, var(--tapfc-red) 0%, var(--tapfc-red) var(--tapfc-slider-progress, 13.13%), #e3e3e3 var(--tapfc-slider-progress, 13.13%), #e3e3e3 100%);
  border-radius: 10px;
  outline-offset: 9px;
  appearance: none;
  -webkit-appearance: none;
}
.tapfc .tapfc__field input[type="range"]::-webkit-slider-thumb {
  width: 17px; height: 17px; border: 0; border-radius: 50%;
  background: var(--tapfc-red); box-shadow: 0 1px 5px #0003;
  appearance: none; -webkit-appearance: none;
}
.tapfc .tapfc__field input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px; border: 0; border-radius: 50%;
  background: var(--tapfc-red); box-shadow: 0 1px 5px #0003;
}
.tapfc .tapfc__field input[type="range"]:focus-visible { outline: 2px solid var(--tapfc-navy); }
.tapfc .tapfc__range-scale {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font: 400 11px/1.4 'Montserrat', Arial, sans-serif;
  color: #8c8c97;
}
.tapfc .tapfc__result { min-height: 272px; padding: 43px 18px 18px; }
.tapfc .tapfc__result-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.tapfc .tapfc__result-label {
  min-width: 0;
  flex: 1 1 56%;
  color: #101010;
  font: 700 14px/2.02 'Montserrat', Arial, sans-serif;
  overflow-wrap: break-word;
}
.tapfc .tapfc__result-value {
  flex: 0 0 auto;
  color: #101010;
  white-space: nowrap;
  font: 700 14px/1.7 'Montserrat', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.tapfc .tapfc__disclaimer {
  color: #272727;
  font: 400 12px/1.65 'Montserrat', Arial, sans-serif;
  margin: 8px 0 11px;
}
.tapfc .tapfc__bottom-rule { border-top: 1px solid #f0f0f0; margin: 0; }
@media (max-width: 800px) {
  .tapfc .tapfc__grid { grid-template-columns: 1fr; }
  .tapfc .tapfc__result { padding: 23px 20px 18px; min-height: 0; }
  .tapfc .tapfc__result-label { line-height: 1.75; }
  .tapfc .tapfc__fields { padding: 20px; }
}
@media (max-width: 480px) {
  .tapfc .tapfc__title { font-size: 15px; }
  .tapfc .tapfc__result-top { flex-wrap: wrap; gap: 4px 8px; }
  .tapfc .tapfc__result-label { flex: 1 1 100%; font-size: 13px; }
  .tapfc .tapfc__result-value { font-size: 17px; }
}
