/* Shared software-consolidation calculator (parts/nls-savings-calc.php). 2026-11-06. */
.nsc {
  --nsc-ink: #17141a;
  --nsc-muted: #6f6872;
  --nsc-line: #ded8dd;
  --nsc-burgundy: #8c1737;
  --nsc-blush: #f8eef1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  overflow: hidden;
  border: 1px solid var(--nsc-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px -45px rgba(50, 25, 40, .4);
  color: var(--nsc-ink);
  text-align: left;
}
.nsc__inputs { margin: 0; padding: 34px 36px; }
.nsc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.nsc__head h3 { margin: 0; color: var(--nsc-ink); font-size: 22px; font-weight: 800; line-height: 1.2; }
.nsc__head span { padding: 5px 10px; border-radius: 999px; background: var(--nsc-blush); color: var(--nsc-burgundy); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nsc__note { margin: 10px 0 16px; color: var(--nsc-muted); font-size: 15px; line-height: 1.5; }

/* Plan picker + billing toggle (Pricing & Plans) */
.nsc__controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 18px; }
.nsc__plans { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.nsc__plans legend { margin: 0 0 8px; padding: 0; color: var(--nsc-muted); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nsc__plan { position: relative; flex: 1 1 0; min-width: 0; margin: 0; cursor: pointer; }
.nsc .nsc__plan input { position: absolute !important; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0 !important; cursor: pointer; }
.nsc__plan > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border: 1px solid #d9d1d7; border-radius: 12px; background: #fff; text-align: center; transition: border-color .2s, background .2s, box-shadow .2s; }
.nsc__plan b { color: var(--nsc-ink); font-size: 15px; font-weight: 800; white-space: nowrap; }
.nsc__plan small { color: var(--nsc-muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.nsc__plan input:checked + span { border-color: var(--nsc-burgundy); background: #fff7f9; box-shadow: 0 0 0 3px rgba(140, 23, 55, .1); }
.nsc__plan input:checked + span small { color: var(--nsc-burgundy); }
.nsc__plan input:focus-visible + span { outline: 3px solid rgba(140, 23, 55, .35); outline-offset: 2px; }
.nsc__billing { display: inline-flex; flex: 0 0 auto; padding: 4px; border: 1px solid #d9d1d7; border-radius: 999px; background: #f7f3f5; }
.nsc__billing button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #4f4852; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.nsc__billing button.is-active { background: var(--nsc-ink); color: #fff; }

/* Stack rows */
.nsc__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid #eee8ec; }
.nsc__pick { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; color: var(--nsc-ink); font-size: 17px; font-weight: 650; cursor: pointer; }
.nsc .nsc__pick input[type="checkbox"] { position: static !important; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; opacity: 1 !important; accent-color: var(--nsc-burgundy); }
.nsc__amount { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 48px; margin: 0; padding: 0 12px; border: 1px solid #d9d1d7; border-radius: 12px; background: #fff; }
.nsc__amount:focus-within { border-color: var(--nsc-burgundy); box-shadow: 0 0 0 3px rgba(140, 23, 55, .12); }
.nsc__amount b { color: var(--nsc-muted); font-size: 16px; }
.nsc .nsc__amount input { width: 74px; height: auto; min-height: 0; margin: 0; padding: 0; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; color: var(--nsc-ink); font: inherit; font-size: 18px; font-weight: 700; line-height: 1; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.nsc__amount input::-webkit-inner-spin-button,
.nsc__amount input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.nsc__amount small { color: var(--nsc-muted); font-size: 14px; }
.nsc__row.is-off .nsc__amount { opacity: .4; }
.nsc__row.is-off .nsc__pick span { color: var(--nsc-muted); text-decoration: line-through; }

/* Result panel: the period difference is the dominant number. */
.nsc__result { display: flex; flex-direction: column; gap: 14px; padding: 34px 36px; background: linear-gradient(150deg, #2a0f1c 0%, #171217 70%); color: #fff; }
.nsc__lines { display: grid; gap: 0; margin: 0; }
.nsc__lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nsc__lines dt { display: flex; flex-direction: column; gap: 2px; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.35; }
.nsc__lines dt small { color: rgba(255, 255, 255, .56); font-size: 13px; }
.nsc__lines dd { margin: 0; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.nsc__big { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.nsc__big span { color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.4; }
.nsc__big strong { color: #ff8fab; font-size: clamp(56px, 5.4vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.nsc.is-negative .nsc__big strong { color: #fff; font-size: clamp(44px, 4vw, 60px); }
.nsc__keep { margin: 0; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.5; }
.nsc__more,
.nsc__separate { margin: 0; color: rgba(255, 255, 255, .74); font-size: 14.5px; line-height: 1.5; }
.nsc__small { margin: 0; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.5; }
.nsc__keep[hidden],
.nsc__more[hidden] { display: none; }
.nsc__result .nsc__cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: flex-start; min-height: 56px; margin-top: auto; padding: 0 26px; border: 1px solid #c41e4b; border-radius: 999px; background: #c41e4b; color: #fff !important; font-size: 17px; font-weight: 700; text-decoration: none; }
.nsc__result .nsc__cta:hover { border-color: #a3173e; background: #a3173e; color: #fff; }
.nsc__result .nsc__cta:focus-visible { outline: 3px solid rgba(255, 143, 171, .6); outline-offset: 3px; }
.nsc__disclosure { max-width: 1000px; margin: 20px 0 0; color: var(--nsc-muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 980px) {
  .nsc { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nsc { border-radius: 20px; }
  .nsc__inputs,
  .nsc__result { padding: 24px 18px; }
  .nsc__controls { flex-direction: column; align-items: stretch; }
  .nsc__billing { align-self: flex-start; }
  .nsc__plan b { font-size: 14px; }
  .nsc__plan small { font-size: 13px; }
  .nsc__pick { gap: 10px; font-size: 15.5px; }
  .nsc__amount { height: 46px; padding: 0 10px; }
  .nsc .nsc__amount input { width: 56px; font-size: 17px; }
  .nsc__lines dd { font-size: 21px; }
  .nsc__big strong { font-size: 56px; }
  .nsc__result .nsc__cta { align-self: stretch; justify-content: center; }
}
