.trubrix-calculator {
  --trubrix-color-text: #555555;
  --trubrix-color-border: #cfcfcf;
  --trubrix-color-header-bg: #dbdbdb;
  --trubrix-color-muted: #868b8f;
  --trubrix-color-disabled-bg: #f7f7f7;
}

.trubrix-calculator,
.trubrix-calculator * {
  box-sizing: border-box;
  text-size-adjust: none;
}
.trubrix-calculator {
  max-width: 71.875rem;
  padding: 1rem;
  margin: auto;
  font-family: Verdana, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--trubrix-color-text);
}
.trubrix-calculator__title {
  font-family: Verdana, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--trubrix-color-text);
  letter-spacing: -0.04em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.trubrix-calculator__disclaimer {
  margin-bottom: 1.5em;
  font-style: italic;
  color: var(--trubrix-color-text);
}
.tru-brix-calc__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.tru-brix-calc__grid .input-group {
  flex: 1 1 calc(50% - 1rem);
  min-width: 17.5rem;
  border: 0.125rem solid var(--trubrix-color-border);
  border-radius: 0.5rem;
  padding: 0;
  margin: 0;
}
.tru-brix-calc__grid .input-group legend {
  display: none;
}
.tru-brix-calc__grid .input-group .input-group-label {
  padding: 0.5rem;
  background-color: var(--trubrix-color-header-bg);
}
.tru-brix-calc__grid .input-group .input-group-label h4 {
  font-size: 1.17em;
  font-weight: bold;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
.tru-brix-calc__grid .input-group .input-group-container {
  padding: 1rem;
}
.tru-brix-calc__intro {
  margin: 0 0 1em;
  font-size: 0.875rem;
  color: var(--trubrix-color-muted);
}
.tru-brix-calc__grid .input-container {
  display: flex;
  align-items: center;
  margin-bottom: 1em;
}
.tru-brix-calc__grid .input-container:last-child {
  margin-bottom: 0;
}
.tru-brix-calc__grid .input-label {
  width: 60%;
}
.tru-brix-calc__grid .input-label p {
  display: flex;
  flex-direction: column;
  min-height: 3.125rem;
  margin: 0 1em;
  font-size: 0.875rem;
  justify-content: center;
}
.tru-brix-calc__grid .input-field {
  width: 40%;
}
.tru-brix-calc__grid input[type="text"] {
  width: 100%;
  max-width: 100%;
  height: 3.125rem;
  padding: 0.5rem;
  border: 0.125rem solid var(--trubrix-color-border);
  border-radius: 0.5rem;
  font-family: Verdana, Arial, sans-serif;
  font-size: 1rem;
}
.tru-brix-calc__grid input[type="text"][readonly] {
  background-color: var(--trubrix-color-disabled-bg);
  cursor: default;
}
.tru-brix-calc__note {
  font-size: 0.75rem;
  color: var(--trubrix-color-muted);
  margin-top: 0.125rem;
}
.tru-brix-calc__controls {
  margin-top: 1.5em;
}
.tru-brix-calc__controls input[type="reset"] {
  padding: 1rem 4rem;
  border: 0;
  border-radius: 0.5rem;
  font-family: Verdana, Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--trubrix-color-text);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.25s;
}
.tru-brix-calc__controls input[type="reset"]:hover {
  background-color: var(--trubrix-color-muted);
}
@media (max-width: 48rem) {
  .tru-brix-calc__grid {
    display: block;
  }
  .tru-brix-calc__grid .input-group {
    width: 100%;
    margin-bottom: 1.5em;
  }
  .tru-brix-calc__controls input[type="reset"] {
    width: 100%;
  }
}
