/* Proposal-only decision routes. Load after the existing catalog/readability styles. */
:root {
  --cm-blue: #123e60;
  --cm-ink: #102f40;
  --cm-muted: #40596b;
  --cm-gold: #f1c963;
  --cm-green: #17483e;
  --cm-actions-space: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

:is(.cm-choice-grid, .cm-enrollment-summary, .cm-community-strip,
    .cm-service-membership, .cm-terms-hint, .cm-mobile-actions) {
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.cm-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-block: 28px 36px;
}
.cm-choice-grid > :is(a, article) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid #bcccd5;
  border-radius: 10px;
  background: #f0f5f8;
  color: var(--cm-ink);
  text-decoration: none;
}
.cm-choice-grid > :is(a, article):nth-child(2) {
  border-color: #a77c1c;
  background: #fff5d8;
}
.cm-choice-grid :is(h2, h3) {
  margin: 0;
  color: var(--cm-ink);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
}
.cm-choice-grid p {
  margin: 0;
  color: var(--cm-muted);
  font-size: .9375rem;
  line-height: 1.6;
}
.cm-choice-grid > a > strong {
  color: var(--cm-ink);
  font-size: 1.125rem;
  line-height: 1.35;
}
.cm-choice-grid :is(.cm-choice-link, article > a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  color: var(--cm-blue);
  font-size: .9375rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cm-choice-grid > a:hover {
  border-color: var(--cm-blue);
  box-shadow: inset 0 0 0 1px var(--cm-blue);
}

.cm-enrollment-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-block: 0 24px;
  padding: 20px;
  border: 1px solid #b9cad4;
  border-left: 4px solid var(--cm-blue);
  border-radius: 8px;
  background: #f0f5f8;
  color: var(--cm-ink);
}
.cm-enrollment-summary > * { min-width: 0; }
.cm-enrollment-summary :is(h2, h3, p) { margin: 0; }
.cm-enrollment-summary :is(h2, h3, strong) {
  color: var(--cm-ink);
  font-size: 1.125rem;
  line-height: 1.4;
}
.cm-enrollment-summary p,
.cm-enrollment-summary .pm-muted {
  color: var(--cm-muted);
  font-size: .875rem;
  line-height: 1.55;
}
.cm-enrollment-summary .pm-price {
  margin: 0;
  color: var(--cm-ink);
  white-space: normal;
}
.cm-enrollment-summary .pm-price strong { font-size: 1.75rem; }
.cm-enrollment-summary .pm-price > span {
  color: var(--cm-muted);
  font-size: .875rem;
}
.cm-enrollment-summary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cm-blue);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

a.cm-service-membership,
.service a.cm-service-membership {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid #b9ccd8;
  border-radius: 6px;
  background: #edf4f8;
  color: var(--cm-blue);
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.cm-service-membership:hover { background: #dfeaf2; }

.cm-community-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-block: 28px;
  padding: 22px 24px;
  border: 1px solid #c4d1d9;
  border-radius: 8px;
  background: #f0f5f8;
  color: var(--cm-ink);
}
.cm-community-strip > div { flex: 1 1 240px; min-width: 0; }
.cm-community-strip :is(h2, h3) {
  margin: 0 0 8px;
  color: var(--cm-ink);
  font-size: 1.25rem;
  line-height: 1.35;
}
.cm-community-strip p {
  margin: 0;
  color: var(--cm-muted);
  font-size: .9375rem;
  line-height: 1.6;
}
.cm-community-strip nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-community-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--cm-blue);
  border-radius: 5px;
  background: #fff;
  color: var(--cm-blue);
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cm-community-strip a:hover { background: #dfeaf2; }

.cm-terms-hint,
p.cm-terms-hint {
  display: block;
  flex-basis: 100%;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #52616b;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.6;
}
.cm-terms-hint a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.premium-page .pm-product-copy > .cm-terms-hint { font-size:.875rem!important; }
.premium-page .pm-terms { margin-top:20px; padding:16px 0 0; border:0; border-top:1px solid #d4dcd9; background:transparent; color:#52616b; }
.premium-page .pm-terms h3 { margin:0 0 6px; color:#40555e; font-size:.875rem; line-height:1.6; font-weight:650; }
.premium-page .pm-terms p { margin:4px 0; color:#52616b; font-size:.875rem!important; line-height:1.6; }
.cm-checkout-decision .pm-benefits,.cm-checkout-decision .pm-benefits li { color:#40555e; font-size:.875rem; line-height:1.6; }

.pm-trust.cm-trust-compact {
  padding: 12px 15px;
  margin-block: 16px;
  border-left-width: 3px;
  background: #f4f6ee;
  color: #183d38;
}
.pm-trust.cm-trust-compact blockquote { margin-block: 7px; font-size: .875rem; line-height: 1.55; }
.pm-trust.cm-trust-compact .pm-trust-source summary { min-height: 32px; padding-block: 7px; }

:is(.pm-home-vitality, .pm-vitality-hero, [data-member-page="vitality"])
  :is(.cm-enrollment-summary, .cm-community-strip, .cm-service-membership) {
  border-color: #9bb9ab;
  background: #edf4ed;
  color: var(--cm-green);
}
:is(.pm-home-vitality, .pm-vitality-hero, [data-member-page="vitality"])
  :is(.cm-community-strip, .cm-enrollment-summary) a {
  border-color: var(--cm-green);
  color: var(--cm-green);
}

.cm-mobile-actions { display: none; }
.cm-mobile-actions[hidden] { display: none; }

.cm-video-guide { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; align-items: center; margin-block: 56px; padding-block: 32px; border-top: 1px solid #c4d1d9; }
.cm-video-guide h2 { color: var(--cm-ink); font-size: clamp(1.7rem,3vw,2.5rem); line-height: 1.15; }
.cm-video-guide p { color: var(--cm-muted); line-height: 1.7; }
.cm-video-guide figure { margin: 0; min-width: 0; }
.cm-video-guide video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 14px; background: #102f40; }
.cm-video-guide figcaption { margin-top: 12px; font-size: .8125rem; line-height: 1.6; color: var(--cm-muted); }
.cm-video-guide details { margin-top: 18px; }
.cm-video-guide summary { padding-block: 12px; font-size: .875rem; color: var(--cm-blue); cursor: pointer; }
.cm-video-play { margin-top: 12px; min-height: 44px; border: 1px solid #123e60; background: #123e60; color: #fff; border-radius: 6px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.cm-video-play[hidden] { display: none; }
.cm-member-help { display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px; border-top:1px solid #c4d1d9; padding-block:24px; margin-bottom:30px; color:var(--cm-ink); }
.cm-member-help p { margin:0; flex:1 1 240px; color:var(--cm-muted); font-size:.9375rem; }
.cm-member-help a { display:inline-flex; align-items:center; min-height:44px; color:var(--cm-blue); font-weight:750; text-underline-offset:4px; }
.cm-checkout-grid { align-items: start; margin-top: 32px; }
.pm-enrollment { padding-top: 36px; }
.pm-enrollment h1 { font-size: clamp(2rem,4vw,3rem); line-height:1.15; }
.pm-enrollment .pm-progress { margin-block: 24px; }
.cm-checkout-decision { padding: 30px; border: 1px solid #c4d1d9; border-radius: 12px; background:#fff; color: var(--cm-ink); }
.cm-checkout-decision h2 { font-size: 1.75rem; }
.cm-checkout-decision > a { display: flex; margin-block: 18px; }
.cm-checkout-decision .pm-button[aria-disabled="true"] { opacity:1; color:#40596b; background:#e5ebee; border-color:#a7b9c4; cursor:default; pointer-events:none; }
.cm-preview-note { color:var(--cm-muted); font-size:.9375rem; line-height:1.65; }
.cm-terms-page { max-width:900px; }
.cm-terms-page h1 { max-width:20ch; }
.cm-terms-page h2 { font-size:1.375rem; line-height:1.4; margin-top:32px; }
.cm-terms-page p { line-height:1.8; color:var(--cm-muted); }
.cm-terms-page a { overflow-wrap:anywhere; }
aside.cm-service-membership { grid-column:1/-1; border-radius:10px; padding:28px; background:#eef4f8; color:var(--cm-ink); }
aside.cm-service-membership h2 { font-size:1.625rem; color:var(--cm-ink); }
aside.cm-service-membership p { color:var(--cm-muted); }

:is(.cm-choice-grid, .cm-enrollment-summary, .cm-community-strip, .cm-trust-compact)
  :is(a, button, summary):focus-visible,
a.cm-service-membership:focus-visible,
.cm-choice-grid > a:focus-visible,
.cm-mobile-actions > :is(a, button):focus-visible,
.cm-terms-hint a:focus-visible {
  outline: 3px solid #0a5673;
  outline-offset: 4px;
  box-shadow: 0 0 0 3px #fff;
}

@media (max-width: 760px) {
  .cm-video-guide { grid-template-columns:minmax(0,1fr); gap:18px; margin-block:28px; }
  .cm-member-help { align-items:flex-start; }
  .cm-checkout-decision { padding:22px; }
  .pm-enrollment { padding-top:24px; }
  .pm-enrollment h1 { font-size:2rem; }
  .cm-checkout-grid { margin-top:20px; }
  .cm-checkout-decision .pm-button { font-size:.9375rem; }
  .premium-page .pm-product { grid-template-columns: minmax(0, 1fr); }
  .premium-page .pm-product > .pm-product-copy { order: -1; min-width: 0; }
  .premium-page .pm-product > .pm-product-picture { order: 1; }
  .premium-page .pm-product-purchase {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .premium-page .pm-product-purchase .pm-price { white-space: normal; }
  .premium-page .pm-product-purchase .pm-price strong { font-size: 2.25rem; }
  .premium-page .pm-product-purchase .pm-price > span,
  .premium-page .pm-product-purchase .pm-muted { font-size: .9375rem; }
  .premium-page .pm-product-purchase .pm-button {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 1rem;
    line-height: 1.45;
  }
  .cm-choice-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-block: 22px 28px; }
  .cm-choice-grid > :is(a, article) { gap: 8px; padding: 20px; }
  .cm-enrollment-summary { gap: 10px 18px; padding: 16px; }
  .cm-community-strip { align-items: flex-start; padding: 20px; gap: 16px; }
  .cm-community-strip nav { width: 100%; }
  .cm-community-strip nav a { flex: 1 1 120px; }

  html:has(.cm-mobile-actions:not([hidden])) { scroll-padding-bottom: var(--cm-actions-space); }
  body:has(.cm-mobile-actions:not([hidden])) { padding-bottom: var(--cm-actions-space); }
  body:has(.cm-mobile-actions:not([hidden])) .sticky-mobile { display: none; }
  .cm-mobile-actions:not([hidden]) {
    position: fixed;
    inset: auto 0 0;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    padding: 10px max(12px, env(safe-area-inset-right, 0px))
      calc(10px + env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #bacbd6;
    background: #fff;
    box-shadow: 0 -4px 18px #102f401a;
  }
  .cm-mobile-actions > :is(a, button, .pm-button, .btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 10px;
    border: 1px solid var(--cm-blue);
    border-radius: 6px;
    background: var(--cm-blue);
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    font-size: .9375rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transform: none;
    cursor: pointer;
  }
  .cm-mobile-actions > :is(a, button):nth-child(2) {
    border-color: #9b751e;
    background: var(--cm-gold);
    color: var(--cm-ink);
  }
  .cm-mobile-actions > :is(a, button):first-child:hover { background: #0a2d49; color: #fff; }
  .cm-mobile-actions > :is(a, button):nth-child(2):hover { background: #ffdc81; color: var(--cm-ink); }
  .cm-mobile-actions svg { width: 20px; height: 20px; flex: 0 0 20px; }
  [data-member-page="vitality"] .cm-mobile-actions > :is(a, button):first-child {
    border-color: var(--cm-green);
    background: var(--cm-green);
    color: #fff;
  }
  body:has(.cm-mobile-actions:not([hidden])) #clinic-support .cmla-support-trigger,
  body:has(.cm-mobile-actions:not([hidden])) .cmla-a11y-launcher {
    bottom: calc(var(--cm-actions-space) + 10px);
    min-height: 44px;
  }
  body:has(.cm-mobile-actions:not([hidden])) #clinic-support .cmla-support-trigger {
    right: 12px;
    max-width: calc(100vw - 80px);
  }
  body:has(.cm-mobile-actions:not([hidden])) .cmla-a11y-launcher {
    left: 12px;
    width: 44px;
    height: 44px;
    padding: 9px;
    border-radius: 50%;
  }
  body:has(.cm-mobile-actions:not([hidden])) .cmla-a11y-launcher > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body:has(.cm-mobile-actions:not([hidden])) #clinic-support .cmla-support-dialog {
    bottom: calc(var(--cm-actions-space) + 10px);
    max-height: calc(100dvh - var(--cm-actions-space) - 30px);
  }
}

@media (forced-colors: active) {
  .cm-choice-grid > :is(a, article),
  .cm-enrollment-summary,
  .cm-community-strip,
  .cm-service-membership,
  .cm-mobile-actions > :is(a, button) { border: 1px solid ButtonText; }
  .cm-mobile-actions { border-top: 1px solid CanvasText; }
}
/* Keep photographic membership labels readable on light and dark scenes. */
.pm-plan-active-image>span{background:#163e36!important;color:#fff!important;padding:8px 12px;border-radius:4px;line-height:1.5}
