/* Compound interest calculation page styles. The layout intentionally follows the loan tool result pattern. */

.compound-interest-form-stack {
  display: grid;
  gap: 1rem;
}

.compound-interest-field-group {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.55);
}


.compound-interest-tool-form .field-input,
.compound-interest-money-input-wrap {
  min-height: 58px;
}

.compound-interest-tool-form .field-input {
  height: 58px;
}

.compound-interest-money-input-wrap .field-input {
  width: 100%;
}

.compound-interest-money-input-wrap {
  position: relative;
  min-width: 0;
}

.compound-interest-money-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-weight: 800;
  z-index: 2;
  pointer-events: none;
}

.compound-interest-money-input {
  padding-left: 40px;
}

.compound-interest-summary-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.compound-interest-summary-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%);
}

.compound-interest-summary-hero > div {
  min-width: 0;
}

.compound-interest-summary-hero-value {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0.25rem 0 0.5rem;
}

.compound-interest-rate-box {
  min-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
}

.compound-interest-rate-box strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 1.35rem;
  line-height: 1.08;
  margin-top: 0.15rem;
}

.compound-interest-summary-shell .result-card {
  min-width: 0;
}

.compound-interest-summary-shell .result-card strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.08;
}

.compound-interest-details-toggle {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 0.85rem 1rem;
}

.compound-interest-details-toggle > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.compound-interest-details-toggle > summary::-webkit-details-marker {
  display: none;
}

.compound-interest-details-toggle > summary::after {
  content: "+";
  float: right;
  font-size: 1.1rem;
}

.compound-interest-details-toggle[open] > summary::after {
  content: "−";
}

@media (max-width: 767.98px) {
  .compound-interest-summary-hero {
    flex-direction: column;
  }

  .compound-interest-rate-box {
    min-width: 0;
  }
}


@media (max-width: 767.98px) {
  .compound-interest-field-group {
    padding: 0.9rem;
  }
}
