.ss-fin-calc{
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 0 28px;
  font-family: inherit;
}
.ss-fin-calc__header{
  text-align: center;
  padding: 8px 10px 22px;
}
.ss-fin-calc__kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 10px;
}
.ss-fin-calc__title{
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 12px;
  font-weight: 600;
}
.ss-fin-calc__sub{
  margin: 0;
  font-size: 14px;
  opacity: .75;
}

.ss-fin-calc__card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.ss-fin-calc__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.ss-field label{
  display:block;
  font-size: 12px;
  opacity: .8;
  margin: 0 0 6px;
}
.ss-input{
  display:flex;
  align-items:center;
  background: #f7f7f8;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ss-input:focus-within{
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}
.ss-prefix{
  font-size: 14px;
  opacity: .65;
  margin-right: 6px;
}
.ss-input input,
.ss-input select{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 0;
}
.ss-field--full{ grid-column: 1 / -1; }

.ss-actions{ margin-top: 4px; }
.ss-btn{
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #0b0f14;
  transition: transform .05s ease, opacity .15s ease;
}
.ss-btn:active{ transform: translateY(1px); }
.ss-btn:hover{ opacity: .92; }

.ss-results{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.ss-results__row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ss-metric{
  background: #fafafa;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px;
}
.ss-metric__label{
  font-size: 12px;
  opacity: .75;
  margin-bottom: 6px;
}
.ss-metric__value{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ss-results__note{
  margin-top: 10px;
  font-size: 12px;
  opacity: .7;
}

@media (max-width: 900px){
  .ss-fin-calc__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-results__row{ grid-template-columns: 1fr; }
}


/* Hide results until Calculate is clicked */
.ss-results.ss-results--hidden{display:none;}



/* --- Chart --- */
.ss-summary{
  margin: 10px 0 14px;
  font-weight: 600;
  opacity: .9;
}

.ss-chart{
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}

.ss-chart__title{
  font-weight: 800;
  margin-bottom: 10px;
}

.ss-chart__canvas-wrap{
  width: 100%;
  overflow: hidden;
}

.ss-chart__canvas{
  width: 100%;
  height: 320px;
  display: block;
}


/* Secondary (ghost) button */
.ss-btn--ghost{background:transparent;border:1px solid rgba(0,0,0,.18);}


:root{ --sscc-site-blue:#00125B; }









/* --- Buttons: layout only (Divi Button settings control color/size/radius/etc.) --- */
.ss-actions{
  display:flex;
  flex-direction: column;
  gap:14px;
  align-items:stretch;
  margin-top: 14px; /* space from Compound Frequency field */
}
.ss-actions .ss-btn{
  width:100%;
}
/* Give Divi room and remove arrow pseudo-element that can affect alignment */
.ss-fin-calc .ss-btn.et_pb_button:after{
  display:none !important;
  content:'' !important;
}



/* --- Default button look (Financier/Divi-friendly) --- */
.ss-fin-calc{
  overflow:hidden; /* prevents hover effects spilling outside module */
}

.ss-actions{
  display:flex;
  flex-direction: column;
  gap:14px;
  align-items:stretch;
  margin-top: 14px;
}

.ss-actions .ss-btn{
  width:100%;
  box-sizing:border-box;
}

/* Base button */
.ss-fin-calc .ss-btn.et_pb_button,
.ss-fin-calc .ss-btn{
  box-sizing:border-box;
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 18px 22px;
  border-radius: 10px; /* match your screenshot shape */
  font-weight: 800;
  line-height: 1;
  border: 2px solid transparent; /* fixed width so hover doesn't change size */
  text-decoration:none;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* remove Divi arrow/pseudo element */
.ss-fin-calc .ss-btn.et_pb_button:after{
  display:none !important;
  content:'' !important;
}

/* Calculate default: dark */
.ss-fin-calc .ss-btn--calc{
  background:#0b0f14;
  color:#fff;
}

/* Clear default: white */
.ss-fin-calc .ss-btn--reset{
  background:#fff;
  color:#0b0f14;
  border-color: rgba(0,0,0,.12);
}

/* Hover stroke stays INSIDE the button (no growth/spill) */
.ss-fin-calc .ss-btn--calc:hover{
  box-shadow: inset 0 0 0 2px var(--sscc-site-blue);
}

.ss-fin-calc .ss-btn--reset:hover{
  box-shadow: inset 0 0 0 2px var(--sscc-site-blue);
  border-color: transparent;
}

/* end default buttons */



/* --- Prevent theme/Divi hover animations from changing size --- */
.ss-fin-calc,
.ss-fin-calc *{
  box-sizing: border-box;
}

.ss-fin-calc .ss-btn,
.ss-fin-calc .ss-btn:hover,
.ss-fin-calc .ss-btn:focus,
.ss-fin-calc .ss-btn:active,
.ss-fin-calc .ss-btn.et_pb_button,
.ss-fin-calc .ss-btn.et_pb_button:hover{
  transform: none !important;
  -webkit-transform: none !important;
  scale: 1 !important;
  letter-spacing: inherit !important;
}

/* Keep padding stable on hover (some themes change padding for button icons) */
.ss-fin-calc .ss-btn:hover,
.ss-fin-calc .ss-btn:focus{
  padding: 18px 22px !important;
}

/* Make sure nothing can visually spill outside the module */
.ss-fin-calc,
.ss-fin-calc .ss-actions{
  overflow: hidden;
}
