/* The checkout — shared by the creator page, the embed and the modal.
   Everything tinted here uses --accent, the creator's colour, never --brand. */

.checkout { display: flex; flex-direction: column; gap: .9rem; }


/* one-time: emoji × quantity */
.unit-row {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .95rem 1.05rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-lg);
}
.unit-emoji { font-size: 1.9rem; line-height: 1; }
.unit-x { font-size: 1.05rem; margin: 0 .1rem; color: var(--ink-3); }
.qty, .unit-row input.qty-custom {
  width: 44px; height: 44px; flex: none;
  font: inherit; font-weight: var(--weight-bold); font-size: 1rem;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  cursor: pointer; text-align: center; padding: 0;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}
.qty:hover { transform: scale(1.06); border-color: var(--accent); }
.qty.on {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent; box-shadow: var(--shadow-sm);
}
/* the element selector is needed to outrank the global `input[type=number]` width */
.unit-row input.qty-custom {
  width: 76px; border-radius: 22px; cursor: text;
  -moz-appearance: textfield;
}
.unit-row input.qty-custom:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }
.qty-custom::-webkit-outer-spin-button, .qty-custom::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit-note { margin: .45rem 0 0; }

/* membership tiers */
.tiers { display: flex; flex-direction: column; gap: .55rem; }
.tier {
  text-align: left; font: inherit; cursor: pointer;
  padding: .9rem 1.05rem; border-radius: var(--r-lg);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.tier:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); }
.tier.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.tier-name { font-weight: var(--weight-semi); }
.tier-price { font-weight: var(--weight-semi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.perks { margin: .55rem 0 0; padding-left: 1.15rem; font-size: var(--text-sm); color: var(--ink-2); }
.perks li { margin: .18rem 0; }

/* optional supporter details */
.details { display: flex; flex-direction: column; gap: .5rem; }
.details input, .details textarea { font-size: var(--text-base); }
.check.opt-in {
  font-size: var(--text-sm);
  color: var(--ink-2);
  padding: .1rem 0 .1rem .1rem;
  align-items: center;
}
.check.opt-in input { margin-top: 0; }


/* fee transparency line — the most important six words on the page */
.check.cover {
  padding: .78rem .9rem; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--text-sm);
}
.cover-title { display: block; font-weight: var(--weight-semi); }
.cover-sub { display: block; margin-top: .12rem; font-variant-numeric: tabular-nums; }

.checkout .pay { margin-top: .15rem; }
.checkout .trust { margin: 0; }

/* compact mode for the 380px embed */
.compact .unit-row { padding: .72rem .8rem; gap: .35rem; }
.compact .unit-emoji { font-size: 1.5rem; }
.compact .qty, .compact .unit-row input.qty-custom { width: 38px; height: 38px; font-size: .9rem; }
.compact .unit-row input.qty-custom { width: 66px; }
.compact .checkout { gap: .7rem; }
