/* Healthy active Billing & credits only. Other subscription states retain their existing UI. */
.rl-settings__panel--billing { max-width: 1080px; }
.rl-settings-card.rl-billing-active {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fefefe;
  color: #0a0d0f;
  font-family: 'DM Sans', sans-serif;
}

.rl-billing-active .rl-billing-active__head { margin: 0 0 34px; }
.rl-billing-active .rl-billing-active__head h2 {
  margin: 0 0 8px;
  color: #0a0d0f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.rl-billing-active .rl-billing-active__head p {
  color: #5f625f;
  font-size: 14px;
  line-height: 1.5;
}
.rl-billing-active__lifecycle-notice {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 112px;
  margin: 0 0 34px;
  padding: 22px 24px;
  border: 1px solid #fc4128;
  border-radius: 8px;
  background: #fefbfa;
}
.rl-billing-active__lifecycle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #fc4128;
  border-radius: 50%;
  color: #fc4128;
}
.rl-billing-active__lifecycle-icon svg { width: 27px; height: 27px; stroke-width: 1.7; }
.rl-billing-active__lifecycle-copy { min-width: 0; }
.rl-billing-active__lifecycle-copy h3 {
  margin: 0 0 7px;
  color: #0a0d0f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.rl-billing-active__lifecycle-copy p {
  margin: 0;
  color: #5f625f;
  font-size: 14px;
  line-height: 1.5;
}
.rl-billing-active__lifecycle-action {
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid #fc4128;
  border-radius: 8px;
  background: #fc4128;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.rl-billing-active__lifecycle-action:hover:not(:disabled) { border-color: #dc321b; background: #dc321b; }
.rl-billing-active__lifecycle-action:focus-visible { outline: 2px solid #0a0d0f; outline-offset: 3px; }
.rl-billing-active__lifecycle-action:disabled { cursor: wait; opacity: .6; }
.rl-billing-active__section { margin: 0 0 28px; }
.rl-billing-active__section-bar,
.rl-billing-active .rl-checkout-plans__head h2 {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 5px 10px;
  background: #f3f4f8;
  color: #0a0d0f;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.rl-billing-active__table-wrap { min-width: 0; overflow-x: auto; }
.rl-billing-active__table {
  width: 100%;
  border-collapse: collapse;
  color: #5f625f;
  font-size: 12.5px;
  line-height: 1.45;
  table-layout: fixed;
}
.rl-billing-active__table th,
.rl-billing-active__table td {
  padding: 9px 9px;
  border: 0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.rl-billing-active__table thead th {
  padding-top: 19px;
  padding-bottom: 7px;
  color: #5f625f;
  font-size: 12px;
  font-weight: 700;
}
.rl-billing-active__table tbody th { color: #5f625f; font-weight: 500; }
.rl-billing-active__table tbody strong { color: inherit; font-weight: 700; }
.rl-billing-active__table--articles th:nth-child(1) { width: 16%; }
.rl-billing-active__table--articles th:nth-child(2) { width: 44%; }
.rl-billing-active__table--articles th:nth-child(n+3),
.rl-billing-active__table--articles td:nth-child(n+3) { width: 13.33%; text-align: center; }
.rl-billing-active__table--payment th:nth-child(1) { width: 10%; }
.rl-billing-active__table--payment th:nth-child(2) { width: 48%; }
.rl-billing-active__table--payment th:nth-child(3) { width: 12%; }
.rl-billing-active__table--payment th:nth-child(4) { width: 16%; }
.rl-billing-active__table--payment th:nth-child(5) { width: 14%; }
.rl-billing-active__portal-copy {
  margin: 14px 9px 0;
  color: #5f625f;
  font-size: 12.5px;
  line-height: 1.5;
}
.rl-billing-active__text-action,
.rl-billing-active__cancel-action {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.rl-billing-active__text-action { color: #4f68df; }
.rl-billing-active__text-action:hover { text-decoration: underline; }
.rl-billing-active__text-action:disabled { cursor: wait; opacity: .6; }
.rl-billing-active__text-action:focus-visible,
.rl-billing-active__cancel-action:focus-visible { outline: 2px solid #0a0d0f; outline-offset: 4px; }

.rl-billing-active .rl-checkout-plans--billing-active { gap: 0; padding: 0; }
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plans__head {
  display: block;
  margin: 0;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plans__head p {
  margin: 14px 9px 0;
  color: #5f625f;
  font-size: 12.5px;
  line-height: 1.5;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-cadence {
  display: flex;
  width: fit-content;
  margin: 20px auto 28px;
  padding: 4px;
  border-radius: 24px;
  background: #f3f4f8;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-cadence__option {
  min-width: 72px;
  min-height: 34px;
  border-radius: 20px;
  color: #0a0d0f;
  font-size: 12px;
  font-weight: 500;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-cadence__option--active,
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-cadence__option--active:hover:not(:disabled) {
  background: #ffcb9c;
  color: #0a0d0f;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan-grid { gap: 14px; }
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan {
  gap: 9px;
  min-height: 356px;
  padding: 17px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan--recommended {
  border: 3px solid #d9d9d9;
  padding: 15px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__head { min-height: 28px; }
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__head h3 {
  color: #0a0d0f;
  font-size: 16px;
  font-weight: 700;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__badge {
  padding: 3px 7px;
  min-height: 18px;
  border-radius: 3px;
  background: #fc4128;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__best-for {
  min-height: 43px;
  color: #5f625f;
  font-size: 13px;
  line-height: 1.45;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__pricing { min-height: 42px; }
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__price strong {
  color: #0a0d0f;
  font-size: 28px;
  line-height: 34px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__price span { color: #5f625f; font-size: 13px; }
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__action-stack {
  min-height: 75px;
  gap: 4px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan .rl-checkout-plan__polish-action,
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__cta {
  min-height: 36px;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 12px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan .rl-btn--primary {
  border-color: #fc4128;
  background: #fc4128;
  color: #fff;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan .rl-btn--primary:hover:not(:disabled) {
  border-color: #dc321b;
  background: #dc321b;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__cta--current:disabled,
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__cta--unavailable:disabled {
  border: 0;
  background: #f3f4f8;
  color: #5f625f;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__action p { display: none; }
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__secondary-slot {
  min-height: 24px;
  justify-content: center;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan .rl-checkout-plan__sales,
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan .rl-checkout-plan__sales:hover {
  width: auto;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f625f;
  font-size: 12px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__capacities {
  flex: 0 0 auto;
  gap: 6px;
  margin-top: 1px;
  padding-top: 12px;
  border-top: 1px solid #d9d9d9;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__capacities li {
  color: #5f625f;
  font-size: 13px;
  line-height: 18px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan__capacities svg {
  width: 13px;
  height: 13px;
  color: #5f625f;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison-toggle {
  margin: 18px auto 0;
  color: #5f625f;
  font-size: 12.5px;
  font-weight: 500;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison { margin-top: 19px; border-color: #d9d9d9; border-radius: 6px; }
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison__scroll {
  padding: 16px 24px 22px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison table {
  min-width: 640px;
  color: #5f625f;
  font-size: 12px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison thead th {
  background: #fefefe;
  color: #0a0d0f;
  font-size: 13px;
  vertical-align: top;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison th,
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison td {
  padding: 9px 14px;
  border: 0;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison tbody tr:not(.rl-checkout-comparison__group) th,
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison tbody td {
  font-size: 12px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison__group th {
  padding-top: 24px;
  padding-bottom: 12px;
  background: #fefefe;
  color: #0a0d0f;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison__stripe {
  background: #f3f4f8;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison__plan-name {
  display: block;
  font-size: 13px;
  line-height: 18px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison__badge-slot {
  display: block;
  min-height: 20px;
  margin-top: 4px;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison__popular-column {
  border: 0;
  background: transparent !important;
}
.rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison thead th small {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  background: #fc4128;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.rl-billing-active__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rl-billing-active__section--cancel { margin: 42px 0 0; }
.rl-billing-active__cancel-action {
  margin: 13px 9px;
  color: #5f625f;
  font-size: 12.5px;
  line-height: 1.5;
}
.rl-billing-active__cancel-action:hover { text-decoration: underline; }
.rl-billing-active__cancel-action:disabled { cursor: wait; opacity: .6; }

@media (max-width: 760px) {
  .rl-billing-active__lifecycle-notice { grid-template-columns: 48px minmax(0, 1fr); padding: 20px; }
  .rl-billing-active__lifecycle-action { grid-column: 2; justify-self: start; }
  .rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan-grid { grid-template-columns: 1fr; }
  .rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-plan { min-height: 0; }
  .rl-billing-active__table--articles { min-width: 570px; }
  .rl-billing-active__table--payment { min-width: 620px; }
  .rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-comparison__scroll { padding-inline: 16px; }
}
@media (max-width: 480px) {
  .rl-billing-active__lifecycle-notice { gap: 14px; padding: 16px; }
  .rl-billing-active__lifecycle-icon { width: 42px; height: 42px; }
  .rl-billing-active__lifecycle-copy h3 { font-size: 16px; }
  .rl-billing-active__lifecycle-action { width: 100%; justify-self: stretch; }
  .rl-billing-active .rl-billing-active__head { margin-bottom: 28px; }
  .rl-billing-active .rl-billing-active__head h2 { font-size: 18px; }
  .rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-cadence { width: fit-content; }
  .rl-billing-active .rl-checkout-plans--billing-active .rl-checkout-cadence__option { flex: 0 0 auto; }
}
