body.jie-storefront-page .homepage-calculator-preview .hw-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #d0e1ee;
  border-radius: 5px;
  overflow: hidden;
  background: #f9fbfd;
}
body.jie-storefront-page .homepage-calculator-preview .hw-tabs button {
  appearance: none;
  border: 0;
  border-right: 1px solid #d0e1ee;
  background: transparent;
  padding: 8px 4px;
  color: #48647e;
  font: inherit;
  font-size: 10px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
body.jie-storefront-page .homepage-calculator-preview .hw-tabs button:last-child { border-right: 0; }
body.jie-storefront-page .homepage-calculator-preview .hw-tabs button:hover { background: #eef6fc; }
body.jie-storefront-page .homepage-calculator-preview .hw-tabs button[aria-selected="true"] {
  background: #e4f1fa;
  color: #245e8d;
  font-weight: 600;
}

body.jie-storefront-page .homepage-calculator-preview .hw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}
body.jie-storefront-page .homepage-calculator-preview .hw-grid[data-mode="dilution"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.jie-storefront-page .homepage-calculator-preview .hw-field {
  display: grid;
  gap: 3px;
  min-height: 40px;
  padding: 7px;
  border: 1px solid #d7e4ee;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  color: #688099;
}
body.jie-storefront-page .homepage-calculator-preview .hw-field > span:first-child {
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.jie-storefront-page .homepage-calculator-preview .hw-input {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
}
body.jie-storefront-page .homepage-calculator-preview .hw-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px dashed #c4d8e8;
  background: transparent;
  padding: 0 0 1px;
  color: #17395e;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
body.jie-storefront-page .homepage-calculator-preview .hw-input input:focus {
  outline: none;
  border-bottom-color: #2f6ea8;
  background: #f2f9ff;
}
body.jie-storefront-page .homepage-calculator-preview .hw-input em {
  font-style: normal;
  font-size: 9px;
  color: #7b8b9c;
  white-space: nowrap;
}
body.jie-storefront-page .homepage-calculator-preview .hw-field.is-result {
  border-color: #b7d7f2;
  background: #eef7ff;
}
body.jie-storefront-page .homepage-calculator-preview .hw-field.is-result output {
  font-size: 12px;
  font-weight: 700;
  color: #17603f;
  white-space: nowrap;
}
body.jie-storefront-page .homepage-calculator-preview .hw-field[hidden] { display: none; }

@media (max-width: 760px) {
  body.jie-storefront-page .homepage-calculator-preview .hw-grid,
  body.jie-storefront-page .homepage-calculator-preview .hw-grid[data-mode="dilution"] {
    grid-template-columns: minmax(0, 1fr);
  }
  body.jie-storefront-page .homepage-calculator-preview .hw-tabs button { font-size: 9px; padding: 6px 3px; }
}
