/* The amount or limit sits under the copy, so the action reads before its terms. */
.offer-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}

button.offer-row,
a.offer-row {
  cursor: pointer;
}

.offer-row[hidden] {
  display: none;
}

.offer-row__plus {
  color: var(--accent-bright);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.offer-row__copy {
  min-width: 0;
}

.offer-row__title,
.offer-row__sublabel {
  display: block;
}

.offer-row__title {
  color: var(--accent-bright);
  font-size: .8125rem;
  font-weight: 600;
}

.offer-row__sublabel {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.5;
}

.offer-row__trailing {
  grid-column: 2;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
}

.offer-row__trailing:empty {
  display: none;
}

/* The builder's limit row informs rather than acts, so it drops the plus. */
.offer-row--full {
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--bg);
  cursor: default;
}

.offer-row--full .offer-row__plus {
  display: none;
}

.offer-row--full .offer-row__title {
  color: var(--ink-soft);
}

/* A count such as "3 of 3" stays whole beside the copy. */
.offer-row--full .offer-row__trailing {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.cta {
  display: block;
  margin-top: 14px;
  padding: 11px;
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.cta__title {
  display: block;
  color: var(--accent-bright);
  font-size: .8125rem;
  font-weight: 600;
}

.cta__terms {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.5;
}
