/* subscription.css — Omo Space offer card states + mobile sticky bar.
 * Uses the listing pages' existing variables (pine/moss/rule/orange/mint).
 * Both layouts (unlimited-first V1, quiet-upsell V3) share these styles.
 */

/* ── V1: unlimited-first ───────────────────────────────────── */

.button-unlimited {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.offer-ticks {
  margin: 9px 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}
.offer-ticks li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: #365349;
  font-size: 12.5px;
  line-height: 1.5;
}
.offer-tick { color: var(--pine); font-weight: 700; }

.offer-chip-row {
  display: flex;
  gap: 8px;
}
.offer-chip {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid var(--pine);
  border-radius: 11px;
  background: var(--surface);
  padding: 10px 32px 10px 11px;
  cursor: pointer;
}
.offer-chip-icon { flex: none; display: grid; place-items: center; width: 18px; }
.offer-chip-text { flex: 1; min-width: 0; line-height: 1.2; }
.offer-chip-title {
  display: block;
  font-weight: 700;
  color: var(--pine);
  font-size: 12.5px;
  white-space: nowrap;
}
.offer-chip-price {
  display: block;
  color: var(--moss);
  font-size: 11.5px;
  margin-top: 1px;
  white-space: nowrap;
}
.offer-chip .offer-info { width: 18px; height: 18px; }
.offer-chip .offer-info-mark { width: 16px; height: 16px; font-size: 9.5px; }

/* ── V3: quiet upsell ──────────────────────────────────────── */

.offer-upsell {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--moss);
  text-align: center;
  line-height: 1.5;
}
.offer-upsell a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.offer-upsell strong { color: var(--pine); }
.button-run-solid { white-space: nowrap; }

/* ── State B: credits chip ─────────────────────────────────── */

.offer-creditchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--pine);
  font: 700 14px/1.2 var(--body);
}

/* ── Shared bits ───────────────────────────────────────────── */

.sub-manage-link {
  color: var(--pine);
  font: 700 13px/1.2 var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sub-error {
  margin: 0;
  color: #8c2e16;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
}

/* ── Mobile sticky bottom bar ───────────────────────────────── */
.sub-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: 0 -6px 18px rgba(23, 53, 44, .08);
}
.sub-mobile-bar[hidden] { display: none; }
.sub-mobile-price { display: grid; line-height: 1.25; }
.sub-mobile-price strong { font: 700 16px/1.2 var(--body); color: var(--pine); }
.sub-mobile-price span { color: var(--moss); font-size: 11.5px; }
.sub-mobile-bar .button { min-height: 42px; width: auto; padding: 8px 18px; }

@media (max-width: 860px) {
  .sub-mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
  .offer-note { margin-bottom: 8px; }
}
