/* r3-sell: sale prices and countdowns, payment options, store credit, bank transfers, organisation seats, waitlists. Colours come from the theme variables. */

/* ---------- Sale price ---------- */
.sell-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.sell-price__was { color: var(--muted); font-weight: 400; font-size: .85em; }
.sell-price__now { color: var(--brand-ink); font-weight: 700; }
.sell-price--large .sell-price__now { font-size: 1.15em; }
.sell-badge {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 2px 7px; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand-ink);
}
.sell-countdown { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.sell-countdown--card { margin-top: 6px; font-size: 12px; }
.sell-countdown--large { display: block; margin: 4px 0 8px; font-size: 13.5px; }

/* ---------- How to pay ---------- */
.sell-pay { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 10px 0; display: grid; gap: 6px; min-width: 0; }
.sell-pay__legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.sell-pay__opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; min-height: 32px; }
.sell-pay__opt input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

/* ---------- Shared bits ---------- */
.sell-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 8px 0; }
.sell-row > .fld__input { flex: 1 1 220px; min-width: 0; }
.sell-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.sell-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.sell-form__wide { grid-column: 1 / -1; }
.sell-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 10px 0; }
.sell-facts dt, .sell-bank__facts dt { font-size: 12px; color: var(--muted); }
.sell-facts dd, .sell-bank__facts dd { margin: 2px 0 0; }
.sell-plus { color: var(--brand-ink); font-weight: 600; white-space: nowrap; }
.sell-minus { color: var(--muted); white-space: nowrap; }
.sell-ok { color: var(--brand-ink); font-weight: 600; }
.sell-note { max-width: 220px; }
.sell-state { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.sell-state--running, .sell-state--active { border-color: var(--brand); color: var(--brand-ink); }
.sell-state--scheduled, .sell-state--overdue { color: var(--ink); }
.sell-state--ended, .sell-state--cancelled, .sell-state--expired { color: var(--muted); }

/* ---------- Store credit ---------- */
.sell-wallet { display: grid; gap: 16px; }
.sell-wallet__amount { font-size: 28px; font-weight: 700; color: var(--ink); margin: 6px 0; }
.sell-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; max-width: 320px; }
.sell-link { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

/* ---------- Bank transfer ---------- */
.sell-bank { text-align: left; }
.sell-bank__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.sell-bank__ref { font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.sell-bank__instructions { white-space: pre-wrap; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }

/* ---------- Organisation seats ---------- */
.sell-seats__count { width: 120px; }
.sell-seats__custom { display: inline-flex; }
.sell-billing { margin-top: 12px; }
.sell-billing > summary { cursor: pointer; font-weight: 600; }
.sell-billing .sell-form { margin-top: 12px; }
.sell-admin .profileform__h { margin-top: 14px; }

/* ---------- Waitlists and places ---------- */
.sell-places { margin-top: 16px; }
.sell-session { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; margin-top: 6px; font-size: 13px; }
.sell-mywait { margin-bottom: 16px; }
.sell-mywait__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sell-mywait__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sell-mywait__item--offer { border-color: var(--brand); }

@media (max-width: 640px) {
    .sell-row { align-items: stretch; }
    .sell-row > .btn { width: 100%; }
    .sell-note { max-width: none; width: 100%; }
    .sell-wallet__amount { font-size: 24px; }
}
