.held {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control, 8px);
}
.held header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
/* A rental's picture sits beside its name and plan. */
.held-what:has(.held-picture) {
  display: grid;
  grid-template-columns: 88px 1fr;
  column-gap: 16px;
  align-items: center;
}
.held-picture {
  grid-row: span 2;
}
.held-picture img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}
.held h2 {
  margin: 0;
  font-size: 19px;
}
/* The term a subscription was bought on, under the thing it is for. */
.held-plan {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}
/* Status is the first thing a worried customer looks for, so it carries colour as well as a word. */
.held-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.held-status[data-status="ACTIVE"] {
  border-color: rgba(127, 209, 138, 0.5);
  color: #7fd18a;
}
.held-status[data-status="PAUSED"] {
  border-color: rgba(214, 172, 75, 0.5);
  color: var(--gold);
}
.held-status[data-status="CANCELLED"] {
  border-color: color-mix(in srgb, var(--error) 50%, transparent);
  color: var(--error);
}
.held-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 24px;
  margin: 16px 0 0;
}
.held-facts div {
  margin: 0;
}
.held-facts dt {
  color: var(--muted);
  font-size: 13px;
}
.held-facts dd {
  margin: 3px 0 0;
  font-variant-numeric: tabular-nums;
}
.held-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.held-actions:empty {
  margin-top: 0;
}
.held-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.subs-none {
  color: var(--muted);
}

/* Asking to end a rental is the one action that stops something, so it reads as such. */
.held-actions .danger {
  margin-left: auto;
  color: var(--error);
}
.held-invoice {
  text-align: right;
}
.held-invoice .button {
  min-height: 0;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.2;
}
/* The state under each name reads at a glance, in the colours the cards use. */
.account-nav small[data-tone="active"] {
  color: #7fd18a;
}
.account-nav small[data-tone="paused"] {
  color: var(--gold);
}
.account-nav small[data-tone="cancelled"] {
  color: var(--error);
}
.held-payments {
  margin-top: 22px;
}
.held-payments h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.held-payments table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.held-payments th {
  color: var(--muted);
  font-weight: 400;
  text-align: left;
}
.held-payments th,
.held-payments td {
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid var(--line);
}
.held-payments .failed td {
  color: var(--error);
}
