/*
 * Keeping customers: the before-you-go page (subscriptions/cancel_subscription)
 * and the paused banner (shared/_subscription_paused). Built on the shell
 * tokens (shell.css), so Day and Night follow the shell, and scoped under
 * .shell because Propshaft links every stylesheet on every page. The
 * precompiled Tailwind (cruip/style.css) has no build step, so new pieces
 * get their own rt- classes here.
 */

.shell .rt { display: grid; gap: 16px; max-width: 760px; }

.shell .rt-card {
  display: grid; gap: 8px; padding: 24px;
  border-radius: 16px; background: var(--app-surface); box-shadow: var(--app-lift);
  color: var(--app-ink-2);
}
.shell .rt-card h2 {
  margin: 0; font-family: var(--f-display); font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em;
  color: var(--app-ink);
}
.shell .rt-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.shell .rt-card form { margin: 0; }
/* The way Balzac suggests: one ember hairline, nothing louder. */
.shell .rt-card--main { box-shadow: 0 0 0 1px rgba(255, 90, 60, 0.3), 0 14px 36px -24px rgba(255, 90, 60, 0.6); }
.shell .rt-card--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--app-hair); }

.shell .rt-card .rt-kick {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--app-ink-3);
}

.shell .rt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; margin-top: 8px; }
.shell .rt-stat { display: grid; gap: 2px; align-content: start; }
.shell .rt-stat strong {
  font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--app-ink); font-variant-numeric: tabular-nums;
}
.shell .rt-stat span { font-size: 13px; line-height: 1.4; color: var(--app-ink-2); }

.shell .rt-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; padding: 0; border: 0; }
.shell .rt-option { position: relative; display: block; cursor: pointer; }
.shell .rt-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.shell .rt-option span {
  display: grid; gap: 2px; padding: 12px; border-radius: 12px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--app-hair-2);
  transition: box-shadow 0.15s var(--app-ease), background-color 0.15s var(--app-ease);
}
.shell .rt-option:hover span { background: var(--app-hover); }
.shell .rt-option b { font-size: 14px; font-weight: 600; color: var(--app-ink); }
.shell .rt-option small { font-size: 12px; color: var(--app-ink-3); }
.shell .rt-option input:checked + span { box-shadow: inset 0 0 0 2px var(--app-ink); }
.shell .rt-option input:focus-visible + span { outline: 2px solid var(--app-focus); outline-offset: 2px; }

.shell .rt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }

.shell .rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
  border: 0; border-radius: 10px; background: var(--app-ink); color: var(--app-bg);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: opacity 0.15s var(--app-ease), background-color 0.15s var(--app-ease);
}
.shell .rt-btn:hover { opacity: 0.88; }
.shell .rt-btn--quiet { background: transparent; color: var(--app-ink); box-shadow: inset 0 0 0 1px var(--app-hair-2); }
.shell .rt-btn--quiet:hover { opacity: 1; background: var(--app-hover); }

.shell .rt-card .rt-fine { font-size: 12.5px; color: var(--app-ink-3); }

/* LEGACY_UI: the old layouts have no .shell body, so the banner and the
   before-you-go page wrap themselves in .shell.rt-legacy for the tokens,
   without the shell's page frame. */
.shell.rt-legacy { min-height: 0; margin: 0; background: transparent; }

/* ── Paused banner, above every page while the subscription is paused ── */
.shell .rt-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-bottom: 24px; padding: 14px 18px;
  border-radius: 14px; background: var(--app-surface); box-shadow: var(--app-lift);
}
.shell .rt-banner__text { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.shell .rt-banner__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--app-amber); }
.shell .rt-banner strong { display: block; font-size: 14px; font-weight: 600; color: var(--app-ink); }
.shell .rt-banner p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--app-ink-2); }
.shell .rt-banner form { margin: 0; flex: none; }
.shell .rt-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }

@media (max-width: 640px) {
  .shell .rt-card { padding: 20px; }
  .shell .rt-options { grid-template-columns: minmax(0, 1fr); }
  .shell .rt-banner form, .shell .rt-banner .rt-btn, .shell .rt-banner__actions { width: 100%; }
}
