.usccu-slc {
  margin: 0 0 3em;
  padding: 1em 30px 0;
  color: #4D4C45;
  font-family: "source-sans-pro", sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
}

.usccu-slc,
.usccu-slc * {
  box-sizing: border-box;
}

.usccu-slc [hidden] {
  display: none !important;
}

.usccu-slc__shell {
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
}

.usccu-slc__header {
  margin: 0 0 1.5em;
}

.usccu-slc__title {
  margin: 0 auto 0.5em;
  color: #990000;
  font-size: 2.5rem;
  line-height: 1.125;
  font-weight: 600;
}

.usccu-slc__intro,
.usccu-slc__panel-copy {
  margin: 0 auto;
  color: #4D4C45;
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 600;
}

.usccu-slc__calc {
  margin: 0;
  display: grid;
  gap: 1em 0;
}

.usccu-slc__controls {
  margin: 0;
  padding: 1em;
  background-color: #F8F7F6;
}

.usccu-slc__form {
  margin: 0;
  display: grid;
  gap: 1.5em 0;
}

.usccu-slc__field {
  margin: 0;
  position: relative;
  display: block;
}

.usccu-slc__label {
  margin: 0 0 0.25em;
  display: inline-block;
  color: #4D4C45;
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.usccu-slc__input {
  margin: 0;
  padding: 0.5em;
  width: 100%;
  color: #4D4C45;
  background-color: #fff;
  border: 1px solid #FFCC00;
  border-radius: 3px;
  font-size: 1.8rem;
  line-height: 1.35;
  box-shadow: none;
}

.usccu-slc__input:focus {
  outline: 2px solid #990000;
  outline-offset: 2px;
}

.usccu-slc__input--dollar {
  padding-left: 1.5em;
  background: url("../../../../themes/usc-credit-union/backgrounds/body_calculator_dollar-sign.svg") #fff no-repeat 0.5em center / 9px 25px;
}

.usccu-slc__input--percent {
  padding-right: 2em;
  background: url("../../../../themes/usc-credit-union/backgrounds/body_calculator_percent-sign.svg") #fff no-repeat calc(100% - 0.5em) center / 20px 25px;
}

.usccu-slc__chart {
  margin: 0;
  align-self: stretch;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

.usccu-slc__chart-top {
  margin: 0 0 1em;
}

.usccu-slc__chart-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  color: #4D4C45;
}

.usccu-slc__chart-title-lg {
  margin: 0;
  color: #990000;
  font-size: 4.2rem;
  line-height: 1;
  font-weight: 600;
  align-self: stretch;
}

.usccu-slc__chart-title-lg::after {
  content: "";
  margin: 0 0.25em;
  display: inline-block;
  width: 1px;
  height: 50%;
  position: relative;
  top: 0;
  background-color: #FFCC00;
}

.usccu-slc__chart-title-sm {
  color: #4D4C45;
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 700;
  align-self: center;
}

.usccu-slc__canvas-wrapper {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 100%;
}

.usccu-slc__canvas-wrapper canvas {
  max-height: 360px;
}

.usccu-slc__result {
  margin: 0;
  display: grid;
  gap: 0.75em 0;
}

.usccu-slc__result > * {
  width: 100%;
}

.usccu-slc__result p,
.usccu-slc__result ul {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.35;
}

.usccu-slc__result-heading,
.usccu-slc__result-total {
  font-weight: 700;
}

.usccu-slc__result-total {
  text-align: right;
}

.usccu-slc__legend-list {
  padding: 0;
  list-style: none;
}

.usccu-slc__legend-list li {
  margin: 0;
  padding: 1em 0.75em;
  display: grid;
  grid-template-columns: minmax(9.5rem, 34%) 1fr;
  gap: 0 0.5em;
  align-content: center;
  border-bottom: 1px solid #ACABA0;
}

.usccu-slc__legend-list li:first-child {
  border-top: 1px solid #ACABA0;
}

.usccu-slc__legend-label {
  text-align: left;
  display: inline-block;
  white-space: nowrap;
}

.usccu-slc__legend-label::before {
  content: "";
  margin: 0 1em 0 0;
  display: inline-block;
  position: relative;
  width: 17px;
  height: 17px;
  vertical-align: middle;
}

.usccu-slc__legend-label--current::before {
  background-color: #ACABA0;
}

.usccu-slc__legend-label--one::before {
  background-color: #990000;
}

.usccu-slc__legend-label--two::before {
  background-color: #FFCC00;
}

.usccu-slc__legend-value {
  text-align: right;
}

.usccu-slc__legend-value span {
  display: block;
}

.usccu-slc__disclosure {
  margin: 0.75em 0 0;
  color: #767676;
  font-size: 1.4rem;
  line-height: 1.5;
}

.usccu-slc__message {
  margin: 1em 0 0;
  padding: 1em;
  color: #990000;
  background-color: #99000015;
  border: 1px solid #990000;
  border-radius: 3px;
  font-size: 1.6rem;
  line-height: 1.5;
}

.usccu-slc__panel {
  margin: 0;
  padding: 0.75em;
}

.usccu-slc__hubspot {
  margin: 0;
  padding: 0;
  min-height: 14rem;
  background-color: transparent;
}

.usccu-slc .hbspt-form form {
  display: grid;
  gap: 1em;
}

.usccu-slc .hbspt-form .hs-form-field {
  margin: 0;
}

.usccu-slc .hbspt-form label {
  margin: 0 0 0.25em;
  display: inline-block;
  color: #4D4C45;
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 700;
}

.usccu-slc .hbspt-form input,
.usccu-slc .hbspt-form select,
.usccu-slc .hbspt-form textarea {
  margin: 0;
  padding: 0.5em;
  width: 100%;
  color: #4D4C45;
  background-color: #fff;
  border: 1px solid #FFCC00;
  border-radius: 3px;
  font-size: 1.8rem;
  line-height: 1.35;
}

.usccu-slc .hbspt-form .hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border: 1px solid #FFCC00;
  background: #FFCC00;
  color: #4D4C45;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1.35;
  font-weight: 700;
}

@media (min-width: 900px) {
  .usccu-slc__title {
    font-size: 3.4rem;
  }

  .usccu-slc__intro,
  .usccu-slc__panel-copy {
    font-size: 2.4rem;
  }
}

@media (min-width: 1000px) {
  .usccu-slc {
    margin-bottom: 1.5em;
  }

  .usccu-slc__calc {
    grid-template-columns: 265px calc(100% - 2em - 565px) 300px;
    gap: 0 1em;
  }

  .usccu-slc__controls {
    padding: 0.75em;
  }

  .usccu-slc__form {
    gap: 0.85em 0;
  }

  .usccu-slc__label {
    font-size: 1.45rem;
  }

  .usccu-slc__input {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    font-size: 1.6rem;
  }

  .usccu-slc__chart-top {
    margin-bottom: 0.5em;
  }

  .usccu-slc__result {
    align-self: center;
    gap: 0.5em 0;
  }

  .usccu-slc__result p,
  .usccu-slc__result ul {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .usccu-slc__legend-list li {
    padding: 0.55em 0.5em;
  }

  .usccu-slc__disclosure {
    margin-top: 0.5em;
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .usccu-slc__chart-title-lg {
    font-size: 3rem;
  }
}

@media (min-width: 1100px) {
  .usccu-slc__chart-title-lg {
    font-size: 3.8rem;
  }
}

@media (min-width: 1200px) {
  .usccu-slc__chart-title-lg {
    font-size: 4.4rem;
  }
}
