:root{ --interest-overlay: rgba(15,23,42,.55); }

.interestOverlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--interest-overlay);
  padding: 18px;
  z-index: 9999;
}
.interestOverlay.open{ display:flex; }

.interestModal{
  width: min(980px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius, 14px);
  box-shadow: 0 30px 70px rgba(15,23,42,.22);
}

.interestTop{
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line, #e2e8f0);
  padding: 14px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  z-index: 2;
}
.interestTop h2{
  margin: 0;
  font-size: 18px;
  letter-spacing: -.2px;
}
.interestTop p{
  margin: 4px 0 0;
  color: var(--muted, #475569);
  font-size: 13px;
  max-width: 70ch;
}


.interestNext{
  margin: 8px 0 0;
  color: var(--muted, #475569);
  font-size: 12px;
}

.interestClose{
  appearance: none;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 900;
  color: var(--muted, #475569);
}
.interestClose:hover{
  background: rgba(184,137,43,.08);
  color: var(--ink, #0f172a);
  border-color: rgba(184,137,43,.35);
}

.interestBody{
  padding: 16px;
}

.interestGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items:start;
}

.interestCard{
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius, 14px);
  padding: 14px;
  background: #fff;
}

.interestForm{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.interestForm .full{ grid-column: 1 / -1; }

.interestField label{
  display:block;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  margin: 0 0 6px;
  color: var(--ink, #0f172a);
}
.interestField input,
.interestField select,
.interestField textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  font: inherit;
  color: var(--ink, #0f172a);
  outline: none;
}
.interestField textarea{ min-height: 110px; resize: vertical; }
.interestField input:focus,
.interestField select:focus,
.interestField textarea:focus{
  border-color: rgba(184,137,43,.55);
  box-shadow: 0 0 0 3px rgba(184,137,43,.12);
}

.interestHelp{
  margin: 8px 0 0;
  color: var(--muted, #475569);
  font-size: 12px;
}

.interestSummaryTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
}
.interestSummaryTitle b{ font-size: 14px; }
.interestSummary{
  display:grid;
  gap: 8px;
  color: var(--muted, #475569);
  font-size: 13px;
}
.interestSummary .row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
}
.interestSummary .row span:first-child{ color: var(--ink, #0f172a); font-weight: 800; }
.interestAmount{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(184,137,43,.35);
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}
.interestAmount strong{
  font-size: 18px;
  color: var(--btn, #b8892b);
}

.interestActions{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.interestPayBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--btn, #b8892b);
  background: var(--btn, #b8892b);
  color:#fff;
  font-weight: 900;
  font-size: 14px;
  cursor:pointer;
}
.interestPayBtn:hover{ background: var(--btnHover, #9a6f1f); border-color: var(--btnHover, #9a6f1f); }
.interestPayBtn:disabled{
  cursor:not-allowed;
  opacity: .55;
}
.interestGhost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(184,137,43,.35);
  background: #fff;
  color: var(--btn, #b8892b);
  font-weight: 900;
  font-size: 14px;
  cursor:pointer;
}
.interestGhost:hover{ background: rgba(184,137,43,.08); border-color: rgba(184,137,43,.55); }

.interestStatus{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted, #475569);
}

@media (max-width: 880px){
  .interestGrid{ grid-template-columns: 1fr; }
  .interestForm{ grid-template-columns: 1fr; }
}


.interestConsent{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.4}


.interestConsent a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}

/* ── Consent moved to bottom ── */
.interestConsentBottom {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.interestConsentBottom a { color: #b8892b; text-decoration: underline; }
