.pricing-form { display: grid; gap: 16px; }

.pricing-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 17px 20px;
  background: #f3f8ff;
}

.pricing-period-label {
  margin: 0 0 3px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 650;
}

.pricing-period-copy { flex: 1 1 300px; }
.pricing-period-copy p { margin: 0; font-size: 13px; line-height: 1.45; }

.pricing-assumptions-copy {
  display: grid;
  gap: 8px;
  padding: 0 20px 16px;
  font-size: 13px;
  line-height: 1.5;
}
.pricing-assumptions-copy p { margin: 0; }
.pricing-assumptions-note { color: var(--secondary); }
ul.pricing-assumptions-note { margin: 0; padding-left: 20px; }

.pricing-results-table { font-variant-numeric: tabular-nums; }
.pricing-results-table.has-forecast { min-width: 895px; }
.pricing-results-table thead th[scope="colgroup"] { color: var(--navy); text-align: center; }
.pricing-results-table thead .pricing-forecast-cell { background: #e9f2fc; }
.pricing-results-table .pricing-forecast-first { border-left: 1px solid var(--border); }
.pricing-results-table tbody th { background: var(--surface); }
.pricing-results-table tbody .pricing-total > * { background: #f3f8ff; font-weight: 680; }
.pricing-results-table tbody tr:last-child th { border-bottom: 0; }
.pricing-margin-target { display: block; margin-top: 2px; color: var(--secondary); font-size: 10px; }
.pricing-results-table .pricing-out-of-policy > th,
.pricing-results-table .pricing-out-of-policy .pricing-forecast-value,
.pricing-policy-status { color: var(--negative); }
.pricing-policy-status { display: block; margin-top: 2px; font-size: 10px; font-weight: 690; }

.pricing-table { min-width: 690px; }
.pricing-table th, .pricing-table td { padding: 8px 12px; }
.pricing-table thead th { font-size: 11px; }
.pricing-table thead th:nth-child(-n + 3), .pricing-table .pricing-policy { text-align: left; }
.pricing-table tbody + tbody tr:first-child > * { border-top: 1px solid var(--border); }
.pricing-table .pricing-channel, .pricing-table .pricing-policy { vertical-align: top; }
.pricing-table .pricing-channel {
  width: 24%;
  background: #f6f8fb;
  color: var(--navy);
  white-space: normal;
}
.pricing-table .pricing-policy { color: var(--secondary); }
.pricing-table .pricing-family { background: transparent; color: var(--text); font-weight: 550; text-align: left; }
.pricing-table .pricing-edit { width: 110px; }
.pricing-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.pricing-table td { font-variant-numeric: tabular-nums; }
.pricing-quote {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.pricing-quote:hover { text-decoration-style: solid; }
.pricing-table .pricing-route-note td { color: var(--secondary); line-height: 1.45; text-align: left; white-space: normal; }

.price-input {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding-left: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.price-input span { color: var(--secondary); }
.price-input input {
  width: 100%;
  min-width: 0;
  padding: 6px 6px 6px 3px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.price-input:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.price-input input:focus-visible { outline: 0; }

.pricing-footer { justify-content: flex-end; }
#goods-pricing-message:not(:empty) { flex: 1 1 260px; }
#goods-pricing-message p { margin: 0; }

@media (max-width: 520px) {
  .pricing-period { padding: 13px; }
  .pricing-table th, .pricing-table td { padding-inline: 7px; }
  .pricing-results-table tr > :first-child { position: sticky; left: 0; padding-inline: 12px; }
  .pricing-results-table.has-forecast thead tr:nth-child(2) > :first-child { position: static; }
}
