/* S3 Mortgages — inline calculator results. Palette matches the site's teal. */
.s3mc-freq {
  margin: 18px 0 22px;
  max-width: 420px;
}
.s3mc-freq label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #1f2b33;
  margin-bottom: 6px;
}
.s3mc-freq select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  color: #1f2b33;
  background: #fff;
  border: 1px solid #d5dee3;
  border-radius: 4px;
  cursor: pointer;
}
.s3mc-freq select:focus {
  outline: none;
  border-color: #4aa3bd;
  box-shadow: 0 0 0 3px rgba(74, 163, 189, .18);
}

.s3mc-results {
  display: none;
  margin: 28px 0 8px;
  max-width: 620px;
  background: #fff;
  border: 1px solid #e4ebee;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(31, 43, 51, .07);
  overflow: hidden;
}
.s3mc-results.is-visible { display: block; }

.s3mc-headline {
  background: #4aa3bd;
  color: #fff;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.s3mc-headline-label {
  font-size: 15px;
  font-weight: 600;
  opacity: .93;
  letter-spacing: .01em;
}
.s3mc-headline-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.s3mc-table {
  width: 100%;
  border-collapse: collapse;
}
.s3mc-table td {
  padding: 13px 26px;
  font-size: 15px;
  border-bottom: 1px solid #eef3f5;
}
.s3mc-table tr:last-child td { border-bottom: 0; }
.s3mc-table tr:last-child .s3mc-k,
.s3mc-table tr:last-child .s3mc-v { font-weight: 700; color: #1f2b33; }
.s3mc-k { color: #5b6b76; }
.s3mc-v { text-align: right; font-weight: 600; color: #1f2b33; white-space: nowrap; }
.s3mc-sub { font-weight: 400; color: #8b9aa4; font-size: 13px; }

.s3mc-note {
  margin: 0;
  padding: 15px 26px 19px;
  font-size: 13px;
  line-height: 1.55;
  color: #7b8a94;
  background: #fafcfd;
  border-top: 1px solid #eef3f5;
}

.s3mc-error {
  padding: 18px 24px;
  color: #97321f;
  background: #fdf3f1;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .s3mc-headline { flex-direction: column; align-items: flex-start; }
  .s3mc-headline-value { font-size: 27px; }
  .s3mc-table td { padding: 12px 18px; font-size: 14px; }
  .s3mc-note { padding: 14px 18px 17px; }
}
