/* RS_MEMBERSHIP_RENEW_CHANGE_FLOW_V1 — scoped premium membership flow styles */
#membershipFlowView[hidden], #membershipCycleNotice[hidden], #membershipStatusNotice[hidden] { display: none !important; }
body.rs-membership-flow-page .section-head.center,
body.rs-membership-flow-page #membershipPlans,
body.rs-membership-flow-page #membershipSummary,
body.rs-membership-flow-page .rs-mf-summary-shell-hidden,
body.rs-membership-flow-page .dedicated-showcase-card,
body.rs-membership-flow-page .addon-strip,
body.rs-membership-flow-page .privacy-note,
body.rs-membership-flow-page .site-footer { display: none !important; }
body.rs-membership-active-overview .section-head.center,
body.rs-membership-active-overview #membershipPlans { display: none !important; }
.rs-membership-flow { width: 100%; max-width: 760px; margin: 0 auto; }
.rs-mf-page-head { margin: 8px 0 22px; }
.rs-mf-page-head h1, .rs-mf-empty h1 { margin: 0 0 8px; color: var(--maroon-800, #4A0E17); font-family: var(--font-head, Georgia, serif); font-size: clamp(1.8rem, 5vw, 2.35rem); line-height: 1.08; }
.rs-mf-page-head p:not(.rs-mf-eyebrow), .rs-mf-empty p { margin: 0; color: var(--charcoal-700, #51473F); }
.rs-mf-eyebrow { margin: 0 0 7px; color: var(--gold-700, #9C7629); font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.rs-mf-current-card, .rs-mf-action-card, .rs-mf-plan-option, .rs-mf-mini-current { border: 1px solid var(--line, #E7D9C5); border-radius: 16px; background: var(--paper, #FFFDFA); box-shadow: 0 4px 16px rgba(67, 34, 18, .045); }
.rs-mf-current-card { padding: 20px; margin-bottom: 16px; background: linear-gradient(145deg, #FFFDF9 0%, #F8F0E3 100%); }
.rs-mf-current-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.rs-mf-current-head h2 { margin: 0; color: var(--maroon-800, #4A0E17); font-family: var(--font-head, Georgia, serif); font-size: 1.45rem; }
.rs-mf-active-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #B9DCC5; border-radius: 999px; padding: 5px 11px; background: #EAF7EF; color: #22643B; font-size: .76rem; font-weight: 800; }
.rs-mf-active-pill span { width: 7px; height: 7px; border-radius: 50%; background: #31824D; }
.rs-mf-current-grid { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 18px; align-items: stretch; }
.rs-mf-current-facts { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.rs-mf-current-facts p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--charcoal-700, #51473F); font-size: .94rem; }
.rs-mf-current-facts strong { color: var(--charcoal-900, #302923); }
.rs-mf-icon { display: inline-flex; color: var(--gold-700, #9C7629); flex: none; }
.rs-mf-usage { display: flex; flex-direction: column; gap: 5px; border-left: 1px solid var(--line, #E7D9C5); padding-left: 16px; font-size: .78rem; color: var(--muted, #74685E); }
.rs-mf-usage strong { color: var(--maroon-800, #4A0E17); font-size: 1rem; }
.rs-mf-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #E9DED2; margin: 0 0 7px; }
.rs-mf-progress span { display: block; height: 100%; border-radius: inherit; background: var(--maroon-700, #6E1423); }
.rs-mf-cycle-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 15px 16px; border: 1px solid #E8D7B5; border-radius: 14px; background: #F8EFDE; color: var(--charcoal-700, #51473F); }
.rs-mf-note-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--gold-700, #9C7629); font-weight: 900; flex: none; min-width: 22px; min-height: 22px; }
.rs-mf-cycle-note p { margin: 0; font-size: .88rem; line-height: 1.55; }
.rs-mf-cycle-note strong { color: var(--maroon-800, #4A0E17); }
.rs-mf-action-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rs-mf-action-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 17px; text-decoration: none; color: inherit; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.rs-mf-action-card:hover, .rs-mf-action-card:focus-visible { color: inherit; border-color: var(--gold-500, #C0973F); box-shadow: 0 8px 22px rgba(67, 34, 18, .09); transform: translateY(-1px); }
.rs-mf-action-renew { background: linear-gradient(120deg, #FFFBF9, #FFFDFB); border-color: #F0DBD5; }
.rs-mf-action-change { background: linear-gradient(120deg, #FFFCF5, #FFFDF9); border-color: #EEDDBB; }
.rs-mf-action-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #FBE9E7; color: var(--maroon-700, #6E1423); }
.rs-mf-action-icon-gold { background: #FFF0D2; color: var(--gold-700, #9C7629); }
.rs-mf-action-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rs-mf-action-copy > strong { color: var(--maroon-800, #4A0E17); font-family: var(--font-head, Georgia, serif); font-size: 1.2rem; line-height: 1.18; }
.rs-mf-action-copy > span { color: var(--charcoal-700, #51473F); font-size: .9rem; line-height: 1.4; }
.rs-mf-action-copy em { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 4px; border-radius: 8px; padding: 7px 9px; background: #FBEAE7; color: var(--maroon-800, #4A0E17); font-size: .77rem; font-style: normal; font-weight: 700; }
.rs-mf-action-copy em svg { width: 16px; height: 16px; }
.rs-mf-action-change .rs-mf-action-copy em { background: #F9EFDC; color: #80530E; }
.rs-mf-chevron { color: var(--maroon-700, #6E1423); font-size: 2rem; font-weight: 400; line-height: 1; }
.rs-mf-footer-note { margin: 16px 0 0; color: var(--muted, #74685E); font-size: .8rem; text-align: center; line-height: 1.5; }
.rs-mf-empty { padding: 22px; border: 1px solid var(--line, #E7D9C5); border-radius: 16px; background: var(--paper, #FFFDFA); }
.rs-mf-empty .btn { margin-top: 16px; }
.rs-mf-mini-current { margin: 0 0 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; background: #F8F0E3; }
.rs-mf-mini-current span { color: var(--gold-700, #9C7629); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.rs-mf-mini-current strong { color: var(--maroon-800, #4A0E17); font-size: .93rem; }
.rs-mf-plan-options { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rs-mf-plan-option { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; width: 100%; padding: 17px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.rs-mf-purchase-plan { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.rs-mf-purchase-plan:hover, .rs-mf-purchase-plan:focus-visible { color: inherit; border-color: var(--gold-500, #C0973F); box-shadow: 0 8px 22px rgba(67, 34, 18, .09); transform: translateY(-1px); outline: none; }
.rs-mf-purchase-mark { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; color: var(--gold-700, #9C7629); }
.rs-mf-purchase-mark svg { width: 23px; height: 23px; }
.rs-mf-purchase-cta { grid-column: 2 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; padding: 10px 12px; border-radius: 10px; background: var(--maroon-700, #6E1423); color: #fff; font-weight: 800; font-size: .9rem; }
.rs-mf-purchase-plan:hover .rs-mf-purchase-cta, .rs-mf-purchase-plan:focus-visible .rs-mf-purchase-cta { background: var(--maroon-800, #4A0E17); }
.rs-mf-plan-option:hover:not(:disabled), .rs-mf-plan-option:focus-visible:not(:disabled) { border-color: var(--gold-500, #C0973F); outline: none; }
.rs-mf-plan-option.is-selected { border: 1.5px solid var(--maroon-700, #6E1423); background: linear-gradient(130deg, #FFF9F8, #FDF1F0); box-shadow: 0 0 0 2px rgba(110, 20, 35, .06); }
.rs-mf-plan-option.is-current { cursor: not-allowed; background: #FFFDF9; }
.rs-mf-radio { width: 24px; height: 24px; border: 2px solid #D9CBB9; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rs-mf-plan-option.is-selected .rs-mf-radio { border-color: var(--maroon-700, #6E1423); }
.rs-mf-plan-option.is-selected .rs-mf-radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--maroon-700, #6E1423); }
.rs-mf-plan-main { display: flex; flex-direction: column; gap: 4px; }
.rs-mf-plan-title { color: var(--maroon-800, #4A0E17); font-family: var(--font-head, Georgia, serif); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.rs-mf-plan-duration { color: var(--muted, #74685E); font-size: .84rem; }
.rs-mf-plan-price { color: var(--maroon-800, #4A0E17); font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.rs-mf-plan-tags { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 1px 0 4px; }
.rs-mf-tag { display: inline-flex; align-items: center; border-radius: 7px; padding: 4px 8px; font-size: .68rem; line-height: 1.2; font-weight: 800; }
.rs-mf-tag-current { color: #6D4B12; border: 1px solid #E4C98A; background: #FFF0CC; }
.rs-mf-tag-best { color: #4A0E17; border: 1px solid #C58A22; background: linear-gradient(135deg, #F7D98B 0%, #D9A441 55%, #B87516 100%); }
.rs-mf-plan-benefits { grid-column: 2 / -1; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line, #E7D9C5); padding-top: 12px; color: var(--charcoal-700, #51473F); font-size: .84rem; line-height: 1.35; }
.rs-mf-plan-benefits span::first-letter { color: var(--maroon-700, #6E1423); }
.rs-mf-current-footnote { grid-column: 2 / -1; color: var(--muted, #74685E); font-size: .76rem; line-height: 1.4; }
.rs-mf-selection-help { margin: 12px 0; color: var(--muted, #74685E); font-size: .82rem; }
.rs-mf-continue { display: flex; justify-content: center; gap: 10px; align-items: center; }
.rs-mf-continue:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.rs-membership-cycle-notice { margin: 0 0 16px; padding: 16px; border-radius: 14px; border: 1px solid #E8D7B5; background: #F8EFDE; color: var(--charcoal-700, #51473F); }
.rs-membership-cycle-notice strong { display: block; margin-bottom: 5px; color: var(--maroon-800, #4A0E17); }
.rs-membership-cycle-notice p { margin: 0; line-height: 1.55; font-size: .88rem; }
@media (min-width: 760px) {
  .rs-mf-action-list { grid-template-columns: 1fr 1fr; }
  .rs-mf-action-card { grid-template-columns: 54px minmax(0, 1fr) 12px; gap: 10px; padding: 16px; }
  .rs-mf-action-icon { width: 50px; height: 50px; }
  .rs-mf-action-icon svg { width: 26px; height: 26px; }
}
@media (max-width: 420px) {
  .rs-mf-current-card { padding: 16px; }
  .rs-mf-current-grid { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
  .rs-mf-usage { padding-left: 10px; font-size: .72rem; }
  .rs-mf-action-card { grid-template-columns: 52px minmax(0, 1fr) 10px; gap: 10px; padding: 14px; }
  .rs-mf-action-icon { width: 48px; height: 48px; }
  .rs-mf-action-icon svg { width: 25px; height: 25px; }
  .rs-mf-action-copy > strong { font-size: 1.08rem; }
  .rs-mf-action-copy > span { font-size: .85rem; }
  .rs-mf-action-copy em { font-size: .72rem; padding: 6px 7px; }
  .rs-mf-plan-option { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 14px; gap: 8px; }
  .rs-mf-plan-price { font-size: 1.12rem; }
}

/* RS_MEMBERSHIP_ROOT_CARD_FIX_V2.1: no loader; preserve route-correct payment summary. */
#paymentPlanCard[hidden] { display: none !important; }
.rs-membership-cycle-notice.is-error { border-color: #E7B8B8; background: #FFF5F4; }
.rs-membership-cycle-notice.is-error button { margin-top: 10px; }

/* RS_MEMBERSHIP_ROOT_CARD_STATE_HANDLING_V2_1 */
#membershipStatusNotice[hidden] { display: none !important; }
.rs-mf-purchase-plan .rs-mf-plan-tags { align-items: flex-start; }


/* RS_MEMBERSHIP_CYCLE_NOTICE_HYBRID_V1: larger info icon + gold left accent. */
.rs-mf-cycle-note {
  border-left: 4px solid #C0973F;
  padding: 14px 16px 14px 12px;
  gap: 12px;
}
.rs-mf-cycle-note .rs-mf-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #FFF0D2;
  color: #9C7629;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;
}
.rs-mf-cycle-note .rs-mf-note-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
