@import url("./caldesk-calorie-calculator.css");

/* Coach cost-migration calculator: extends the shared calculator shell with
   a comparison table, checkbox row, and savings banner. */

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 4px 0 0;
}

.checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkbox-row span {
  display: block;
}

.checkbox-row small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.cost-table {
  width: 100%;
  margin: 20px 0 8px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cost-table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 8px;
}

.cost-table th,
.cost-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cost-table th:last-child,
.cost-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cost-table tfoot th,
.cost-table tfoot td {
  border-top: 2px solid var(--ink);
  border-bottom: none;
  font-weight: 700;
}

.cost-table-group + .cost-table-group {
  margin-top: 28px;
}

.cost-table-group h3 {
  margin: 0 0 4px;
}

.savings-banner {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--panel);
}

.savings-banner strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.savings-banner-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.savings-banner-row:first-of-type {
  border-top: none;
}

.extrapolation-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.source-note-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-note-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.source-note-list li:first-child {
  border-top: none;
}
