.hot-tool {
  color: #23332d;
  font-family: inherit;
  line-height: 1.55;
}

.hot-tool *,
.hot-tool *::before,
.hot-tool *::after {
  box-sizing: border-box;
}

.hot-tool .calculator-card {
  margin: 0 0 2.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #d6e2dc;
  border-radius: 1.1rem;
  background: #f7faf8;
  box-shadow: 0 12px 32px rgb(34 65 51 / 7%);
}

.hot-tool .tool-kicker {
  margin: 0 0 .25rem;
  color: #486f5b;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hot-tool .tool-heading {
  margin: 0 0 .4rem;
  color: #193b2b;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.hot-tool .tool-intro,
.hot-tool .field-help {
  color: #53665c;
}

.hot-tool .tool-intro {
  max-width: 62ch;
  margin: 0 0 1.35rem;
}

.hot-tool fieldset {
  min-width: 0;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid #d7e1dc;
  border-radius: .8rem;
}

.hot-tool legend {
  padding: 0 .4rem;
  color: #234b36;
  font-weight: 750;
}

.hot-tool .ingredient-row,
.hot-tool .input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.hot-tool .ingredient-row {
  align-items: end;
  margin-bottom: .85rem;
  padding: .85rem;
  border: 1px solid #e0e8e4;
  border-radius: .7rem;
  background: #fff;
}

.hot-tool label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .32rem;
  color: #2f473a;
  font-size: .9rem;
  font-weight: 650;
}

.hot-tool input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .58rem .68rem;
  border: 1px solid #aebfb5;
  border-radius: .5rem;
  background: #fff;
  color: #182b21;
  font: inherit;
  font-weight: 450;
}

.hot-tool input:focus,
.hot-tool button:focus-visible {
  outline: 3px solid #7bc79c;
  outline-offset: 2px;
}

.hot-tool .remove-ingredient,
.hot-tool .secondary-button,
.hot-tool .primary-button {
  min-height: 44px;
  padding: .58rem .9rem;
  border: 1px solid #658773;
  border-radius: .55rem;
  background: #fff;
  color: #234b36;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.hot-tool .remove-ingredient {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 40px;
  padding-inline: .75rem;
  color: #6b3b32;
  border-color: #c9aaa4;
}

.hot-tool .primary-button {
  border-color: #245c3e;
  background: #245c3e;
  color: #fff;
}

.hot-tool button:hover:not(:disabled) {
  filter: brightness(.95);
}

.hot-tool button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.hot-tool .field-help {
  display: block;
  margin: .28rem 0 0;
  font-size: .82rem;
  font-weight: 400;
}

.hot-tool .wide-field {
  grid-column: 1 / -1;
}

.hot-tool .pricing-grid {
  margin-top: .5rem;
}

.hot-tool .action-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.3rem;
}

.hot-tool .form-error {
  min-height: 1.4em;
  margin: .65rem 0;
  color: #9b3024;
  font-weight: 650;
}

.hot-tool .results {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #bdd6c7;
  border-radius: .8rem;
  background: #fff;
}

.hot-tool .results p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .15rem 0;
}

.hot-tool .results .result-total {
  margin-top: .4rem;
  padding-top: .4rem;
  border-top: 1px solid #e0e8e4;
  color: #193b2b;
}

.hot-tool .disclaimer {
  margin: 1rem 0 0;
  color: #59665f;
  font-size: .84rem;
}

.hot-tool .guide-copy {
  max-width: 75ch;
  margin: 0 auto;
}

.hot-tool .guide-copy section {
  margin: 2.2rem 0;
}

.hot-tool .guide-copy h2 {
  color: #193b2b;
  line-height: 1.25;
}

.hot-tool .guide-copy h3 {
  margin-bottom: .25rem;
  color: #284b38;
  font-size: 1.05rem;
}

.hot-tool .guide-copy h3 + p {
  margin-top: .2rem;
}

.hot-tool .formula-list {
  margin: 1rem 0;
  padding: .65rem 1rem;
  border-left: 3px solid #6da483;
  background: #f4f8f5;
}

.hot-tool .formula-list p {
  margin: .35rem 0;
}

.hot-tool .copy-buffer {
  position: fixed;
  left: -10000px;
  top: 0;
}

@media (min-width: 700px) {
  .hot-tool .ingredient-row {
    grid-template-columns: 1.2fr 1fr .65fr 1fr auto;
  }

  .hot-tool .remove-ingredient {
    grid-column: auto;
  }

  .hot-tool .input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .hot-tool .ingredient-fieldset,
  .hot-tool .input-grid,
  .hot-tool .pricing-fieldset,
  .hot-tool .action-row,
  .hot-tool .form-error,
  .hot-tool .guide-copy {
    display: none;
  }

  .hot-tool .calculator-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
