/* Extras for the part and part calculator. The page reuses repayment-calculator-layout.css for everything else. */

.repayment-calculator-container #split-form {
  margin: 0;
}

.repayment-calculator-container .split-message {
  margin: 0;
  color: #243750;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 600;
}

.repayment-calculator-container .split-message:empty {
  display: none;
}

.repayment-calculator-container .split-detail {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Nothing to split yet: show only the message and the comparison figures. */
.repayment-calculator-container [data-status="invalid"] .split-detail,
.repayment-calculator-container [data-status="below-interest"] .split-detail,
.repayment-calculator-container [data-status="invalid"] .split-compare {
  display: none;
}

.repayment-calculator-container [data-status="split"] .split-spare {
  display: none;
}

.repayment-calculator-container .split-bar {
  height: 14px;
  border-radius: 999px;
  background: #d9a441;
  overflow: hidden;
}

.repayment-calculator-container .split-bar-repayment {
  width: 0;
  height: 100%;
  background: #0b3ea9;
  transition: width 0.2s ease;
}

.repayment-calculator-container .split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.repayment-calculator-container .split-card {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid #d7e0ee;
  border-top-width: 5px;
  border-radius: 12px;
  background: #fff;
}

.repayment-calculator-container .split-card-repayment {
  border-top-color: #0b3ea9;
}

.repayment-calculator-container .split-card-io {
  border-top-color: #d9a441;
}

.repayment-calculator-container .split-card h6 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #4b5f7f;
}

.repayment-calculator-container .split-figure {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  font-weight: 700;
  color: #0b1f3a;
  overflow-wrap: anywhere;
}

.repayment-calculator-container .split-card p {
  margin: 0.3rem 0 0;
  color: #4a5b72;
  font-size: 0.98rem;
}

.repayment-calculator-container .split-card .split-pay {
  color: #0b1f3a;
  font-weight: 600;
}

.repayment-calculator-container .split-facts {
  margin: 0;
  padding: 0.3rem 1.1rem;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  background: #fff;
}

.repayment-calculator-container .split-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e6ecf5;
}

.repayment-calculator-container .split-facts > div:last-child {
  border-bottom: 0;
}

.repayment-calculator-container .split-facts dt {
  color: #4a5b72;
}

.repayment-calculator-container .split-facts dd {
  margin: 0;
  font-weight: 700;
  color: #0b1f3a;
  text-align: right;
}

.repayment-calculator-container .split-note {
  margin: 0;
  color: #4a5b72;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .repayment-calculator-container .split-cards {
    grid-template-columns: 1fr;
  }
}
