@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

.nf-calc {
  --bg: #eeebe4;
  --white: #ffffff;
  --card-border: #ddd8ce;
  --olive: #799a0b;
  --olive-dark: #556020;
  --olive-light: #8a9b38;
  --olive-muted: #b5c070;
  --sage-bg: #cdd8a8;
  --sage-light: #dce7bf;
  --text-dark: #1e2318;
  --text-mid: #555e44;
  --text-muted: #8a9278;
  --input-border: #d9e2c5;
  --bar-pellet: #799a0b;
  --bar-active-fuel: #c2cda9;
  --bar-others: #e5eada;
  --bar-co2-pellet: #e8e0d4;
  --bar-co2-active: #d4a0a2;
  --bar-co2-others: #eadada;
  --green-wow: #6b7a28;
  --saving-positive: #22863a;
  --saving-negative: #c04040;
  --radius-card: 8px;
  --radius-input: 4px;
  --radius-btn: 6px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
}

.nf-calc * {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

.nf-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px 24px;
}

.nf-input-card h2 {
  display: none;
}

.nf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px 24px;
}

.nf-grid .nf-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nf-field span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  color: #0e2c2c;
}

.nf-calc .nf-tooltip-wrap {
  position: relative;
  display: inline-flex;
  cursor: help;
  color: #799a0b !important;
}

.nf-calc .nf-tooltip-wrap .nf-tooltip {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 280px;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
  color: #fff;
  background: rgba(30, 35, 24, 0.95);
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 9;
}

.nf-calc .nf-tooltip-wrap:hover .nf-tooltip,
.nf-calc .nf-tooltip-wrap:focus .nf-tooltip,
.nf-calc .nf-tooltip-wrap:focus-within .nf-tooltip,
.nf-calc .nf-tooltip-wrap:active .nf-tooltip,
.nf-calc .nf-tooltip-wrap.is-open .nf-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
}

.nf-control {
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  background: #fff;
}

.nf-control select,
.nf-control input {
  width: 100%;
  border: 0;
  padding: 14px 16px;
  background: transparent;
  height: initial;
  color: #799a0b;
}
.nf-control input::placeholder {
  color: #d2debb;
}

.nf-control select {
  padding-right: 54px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.5581 8.55806C17.8022 8.31398 18.1978 8.31398 18.4419 8.55806C18.686 8.80214 18.686 9.19777 18.4419 9.44185L12.4419 15.4418C12.1978 15.6859 11.8022 15.6859 11.5581 15.4418L5.55812 9.44185C5.31404 9.19777 5.31404 8.80214 5.55812 8.55806C5.8022 8.31398 6.19783 8.31398 6.44191 8.55806L12 14.1162L17.5581 8.55806Z' fill='%2382A419'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) 50%;
}

.nf-control.with-unit {
  display: grid;
  grid-template-columns: 1fr auto;
}

.nf-control.with-unit b {
  border-left: 1px solid var(--input-border);
  min-width: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #82a419;
  font-size: 14px;
  padding: 0 5px;
  font-weight: 400;
  background: #f5f6f2;
}

.nf-input-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.nf-input-footer p {
  margin: 0;
  font-size: 14px;
  color: #0e2c2c;
}

.nf-input-footer button {
  border: 0;
  background: var(--olive);
  color: #f4f3f0;
  border-radius: var(--radius-btn);
  min-width: 160px;
  font-size: 16px;
  line-height: 1.125;
  font-weight: 600;
  cursor: pointer;
  padding: 11px;
}

.nf-btn-text-reveal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  vertical-align: middle;
}

.nf-btn-text-reveal,
.nf-btn-text-reveal:hover,
.nf-btn-text-reveal:focus,
.nf-btn-text-reveal:focus-visible {
  text-decoration: none;
}

.nf-calc .nf-input-footer button.nf-btn-text-reveal:hover,
.nf-calc .nf-input-footer button.nf-btn-text-reveal:focus,
.nf-calc .nf-input-footer button.nf-btn-text-reveal:focus-visible {
  background: var(--olive);
  color: #f4f3f0;
}

.nf-btn-text-reveal__mask {
  display: block;
  overflow: hidden;
  height: 1.125em;
  line-height: 1.125;
}

.nf-btn-text-reveal__track {
  display: flex;
  flex-direction: column;
  transition: transform 0.38s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.nf-btn-text-reveal:hover .nf-btn-text-reveal__track,
.nf-btn-text-reveal:focus-visible .nf-btn-text-reveal__track {
  transform: translateY(-50%);
}

.nf-btn-text-reveal__face {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.125;
  min-height: 1.125em;
  font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
  .nf-btn-text-reveal__track {
    transition: none;
  }

  .nf-btn-text-reveal:hover .nf-btn-text-reveal__track,
  .nf-btn-text-reveal:focus-visible .nf-btn-text-reveal__track {
    transform: none;
  }
}

.nf-cta {
  background: #d9e2c5;
  margin-top: 24px;
  text-align: center;
  font-weight: 500;
 
}

.nf-cta h3 {
  font-size: 48px;
  margin: 40px auto 80px;
  color: #0e2c2c;
  font-weight: 600;
  max-width: 340px;
  line-height: 1;
}

.nf-cta p {
  font-size: 18px;
  margin: 0 0 16px;
  color: #0e2c2c;
}

.nf-cta a,
.nf-bottom-cta a {
  display: inline-block;
  text-decoration: none;
  color: #0e2c2c;
  background: #fff;
  border-radius: var(--radius-btn);
  min-width: 160px;
  padding: 10px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
}

.nf-cta a.nf-btn-text-reveal,
.nf-bottom-cta a.nf-btn-text-reveal {
  display: inline-flex;
  line-height: 1;
}

.nf-bottom-cta a.nf-btn-text-reveal {
  font-weight: 500;
}

/* Block theme link underlines (including on nested spans). */
.nf-calc .nf-cta a.nf-btn-text-reveal,
.nf-calc .nf-cta a.nf-btn-text-reveal:link,
.nf-calc .nf-cta a.nf-btn-text-reveal:visited,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal:link,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0;
  box-shadow: none;
}

.nf-calc .nf-cta a.nf-btn-text-reveal .nf-btn-text-reveal__mask,
.nf-calc .nf-cta a.nf-btn-text-reveal .nf-btn-text-reveal__track,
.nf-calc .nf-cta a.nf-btn-text-reveal .nf-btn-text-reveal__face,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal .nf-btn-text-reveal__mask,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal .nf-btn-text-reveal__track,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal .nf-btn-text-reveal__face {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.nf-calc .nf-cta a.nf-btn-text-reveal:hover,
.nf-calc .nf-cta a.nf-btn-text-reveal:focus,
.nf-calc .nf-cta a.nf-btn-text-reveal:focus-visible,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal:hover,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal:focus,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal:focus-visible {
  color: #0e2c2c;
  background: #fff;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0;
  box-shadow: none;
}

.nf-calc .nf-cta a.nf-btn-text-reveal:hover .nf-btn-text-reveal__face,
.nf-calc .nf-cta a.nf-btn-text-reveal:focus .nf-btn-text-reveal__face,
.nf-calc .nf-cta a.nf-btn-text-reveal:focus-visible .nf-btn-text-reveal__face,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal:hover .nf-btn-text-reveal__face,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal:focus .nf-btn-text-reveal__face,
.nf-calc .nf-bottom-cta a.nf-btn-text-reveal:focus-visible .nf-btn-text-reveal__face {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.nf-cta a.nf-btn-text-reveal .nf-btn-text-reveal__mask,
.nf-bottom-cta a.nf-btn-text-reveal .nf-btn-text-reveal__mask {
  line-height: 1;
  height: 1em;
}

.nf-cta a.nf-btn-text-reveal .nf-btn-text-reveal__face,
.nf-bottom-cta a.nf-btn-text-reveal .nf-btn-text-reveal__face {
  min-height: 1em;
  line-height: 1;
}

.nf-bottom-cta a.nf-btn-text-reveal .nf-btn-text-reveal__face {
  font-weight: regular;
  font-weight: 500;
}

.nf-bottom-cta a.nf-btn-text-reveal .nf-btn-text-reveal__mask {
  font-weight: 500;
}

.nf-bottom-cta a.nf-btn-text-reveal .nf-btn-text-reveal__track {
  font-weight: 500;
}
.nf-results {
  margin-top: 18px;
  scroll-margin-top: 90px;
  background: #ecefe6;
  padding: 24px 16px;
  border-radius: var(--radius-card);
}

.nf-saving-card {
  text-align: center;
  margin-bottom: 14px;
}

.nf-saving-card p {
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 9px;
  color: #0e2c2c;
}

.nf-saving-card h3 {
  margin: 0;
  color: #5f7d49;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}

.nf-saving-card h3.negative {
  color: var(--saving-negative);
}

#nf_saving_line {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  color: #0e2c2c;
}
#nf_saving_line strong {
  font-weight: 600;
}
#nf_saving_line span {
  font-weight: 600;
  color: #799a0b;
}

.nf-tabs-card {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.nf-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.nf-tab {
  border: 0;
  border-radius: 6px;
  padding: 5px 16px;
  cursor: pointer;
  font-size: 18px;
  background: transparent;
  color: #0e2c2c;
}

.nf-tab.active {
  background: #d9e2c5;
}

.nf-graph-block {
  background: #fff;
  padding: 32px 24px;
}

.nf-graph-block h4 {
  font-size: 20px;
  margin: 0 0 18px;
  font-weight: 600;
}

.nf-bars-wrap {
  overflow: auto;
}
#nf_cost_bars,
#nf_co2_bars {
  min-width: 980px;
}

.nf-bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 160px;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.nf-bar-label {
  color: #1d342e;
  font-weight: 600;
  position: sticky;
  left: 0;
  background: #fff;
  min-height: 28px;
}

.nf-bar-track {
  width: 100%;
  background: #f9faf6;
  border-radius: 0 4px 4px 0;
  min-height: 28px;
}

.nf-bar-fill {
  min-height: 28px;
  border-radius: 0 4px 4px 0;
  transition: width 0.6s ease;
}

.nf-bar-value {
  color: #747474;
  text-align: right;
}

.nf-table-wrap {
  overflow-x: auto;
  background: #fff;
  padding: 32px 24px;
  padding-left: 0;
}

.nf-tab-panel {
  border-radius: 6px;
  overflow: hidden;
}

.nf-table-wrap table {
  width: 100%;
  min-width: 980px;
  border-collapse: initial;
  border-spacing: 2px;
}

.nf-table-wrap th,
.nf-table-wrap td {
  padding: 12px 0;
  text-align: center;
  color: #65685a;
  font-size: 16px;
  text-transform: uppercase;
}

.nf-table-wrap td:first-child,
.nf-table-wrap th:first-child {
  text-align: left;
  background: #fff;
  padding-left: 24px;
  position: sticky;
  left: 0;
}
.nf-table-wrap td:first-child strong,
.nf-table-wrap th:first-child strong {
  font-weight: 600;
  color: #0e2c2c;
  text-transform: initial;
}
.nf-table-wrap td:not(:first-child) {
  background: #fafbf6;
  border-radius: 6px;
}

.nf-wow {
  color: var(--green-wow);
  font-weight: 700;
}

.nf-vs-positive {
  color: var(--saving-positive);
  font-weight: 700;
}

.nf-vs-negative {
  color: var(--saving-negative);
  font-weight: 700;
}

.nf-bottom-cta {
  text-align: center;
  margin-top: 14px;
  background: transparent;
}
.nf-bottom-cta p {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  color: #0e2c2c;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .nf-grid {
    grid-template-columns: 1fr;
  }

  .nf-input-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nf-input-footer button {
    width: 100%;
  }
}
