/* Plan rows: name and price lead, the blurb explains, the action follows. */
.billing-plan {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray, #e5e5e5);
}

.billing-plan:last-of-type {
  border-bottom: none;
}

.billing-plan-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.billing-plan-name {
  font-weight: 600;
}

.billing-plan-price {
  font-variant-numeric: tabular-nums;
  color: var(--medium-gray);
}

.billing-plan-detail {
  margin: 0.25rem 0 0.5rem;
  color: var(--medium-gray);
  font-size: 0.875rem;
  line-height: 1.4;
}

.billing-status-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  margin: 1rem 0;
}

.billing-status-term {
  font-weight: 600;
}

/* Dates carry the meaning on this page, so let them read as data rather than
   as prose running alongside the label. */
.billing-status-value {
  font-variant-numeric: tabular-nums;
  margin: 0;
}

/* Next steps: each row is a destination plus the reason to go there. The
   detail sits under the link so the three titles scan as a column. */
.billing-next-steps {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.billing-next-step {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--secondary-color);
}

.billing-next-step-link {
  font-weight: 600;
}

.billing-next-step-detail {
  color: var(--medium-gray);
  font-size: 0.875rem;
  line-height: 1.4;
}

.billing-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0;
  background: #fff4e5;
  border-bottom: 1px solid #f0d2a8;
  color: #5c3b00;
}

.billing-banner-link {
  font-weight: 600;
  text-decoration: underline;
}

.billing-health-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.billing-health-primary {
  display: block;
  font-weight: 600;
}

.billing-health-detail {
  display: block;
  color: var(--medium-gray);
  font-size: 0.875rem;
}

.billing-health-banner {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fff4e5;
  border: 1px solid #f0d2a8;
  border-radius: 0.25rem;
  color: #5c3b00;
  font-weight: 600;
}
