/* Resale Fee Calculator (NS76). Source: sites/needle-tools/tools/resale-fee-calculator/tool.css */
.chqt-rf-seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.chqt-rf-seg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.chqt-rf-seg3 button, .chqt-rf-seg2 button { padding: 8px 6px; border-radius: 12px; text-align: center; }
.chqt-rf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.chqt-rf-hint { font-weight: 400; color: var(--chqt-muted); font-size: 13px; }
.chqt-input .chqt-rf-dollar { padding: 0 0 0 12px; }
.chqt[data-tool="resale-fee-calculator"] .chqt-input input { padding-left: 4px; }
.chqt-rf-fig svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: 12px; }
.chqt-rf-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--chqt-line); border-radius: 10px; background: #fff; }
.chqt-rf-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.chqt-rf-table th, .chqt-rf-table td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--chqt-line); }
.chqt-rf-table thead th { background: var(--chqt-cream); font-size: 13px; }
.chqt-rf-table tr:last-child th, .chqt-rf-table tr:last-child td { border-bottom: 0; }
.chqt-rf-table tr.chqt-rf-best th, .chqt-rf-table tr.chqt-rf-best td { font-weight: 700; color: var(--chqt-accent); }
.chqt-rf-box { background: #fff; border: 1px solid var(--chqt-line); border-radius: 10px; padding: 10px 12px; }
.chqt-rf-h { margin: 0 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--chqt-muted); font-weight: 600; }
.chqt-rf-why { margin: 0; padding-left: 18px; font-size: 14px; color: var(--chqt-muted); }
.chqt-rf-why li + li { margin-top: 4px; }
.chqt-rf-why a { color: var(--chqt-ink); }
/* NS121: the newest fee change, dated, under the table */
.chqt-rf-changed { margin: 0; padding: 8px 12px; border-left: 4px solid var(--chqt-accent); border-radius: 10px; background: var(--chqt-cream); font-size: 14px; line-height: 1.45; color: var(--chqt-ink); }
.chqt-rf-changed b { color: var(--chqt-accent); }
.chqt-rf-changed a { color: var(--chqt-ink); text-decoration: underline; }
.chqt-rf-line { margin: 0; font-size: 15px; }
.chqt-rf-line a { color: var(--chqt-accent); font-weight: 600; text-decoration: underline; }
@media (max-width: 460px) { .chqt-rf-seg3 { grid-template-columns: 1fr; } }
/* NS75: the answer on the first phone screen — phones skip the lede, which the labels already say */
@media (max-width: 460px) {
  .chqt[data-tool="resale-fee-calculator"] .chqt-lede { display: none; }
  .chqt[data-tool="resale-fee-calculator"] .chqt-result > .chqt-kicker { display: none; }
}
/* NS75: on phones the answer in one tappable line under the first questions (the full answer is below) */
.chqt-ns-peek { display: none; }
@media (max-width: 460px) {
  .chqt-ns-peek { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; font: inherit; text-align: left; cursor: pointer; border: 0; border-left: 4px solid var(--chqt-accent); border-radius: 10px; background: var(--chqt-cream); color: var(--chqt-ink); }
  .chqt-ns-peek small { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--chqt-muted); }
  .chqt-ns-peek b { font-size: 18px; line-height: 1.25; }
  .chqt-ns-peek[hidden] { display: none; }
}
