/* ClinMate: one selector, one demonstration, no page-to-page feature jumps. */
#products.cx-active {
  overflow-anchor: none;
  --cx-blue: #0966d8;
  --cx-ink: #162c49;
  --cx-muted: #52667e;
  --cx-line: #dce6f1;
  --cx-screen-height: 300px;
  padding-block: 8px 16px;
}

#products.cx-active > .section-heading {
  max-width: none;
   margin-bottom: 6px;
}

#products.cx-active > .section-heading > h2,
#products.cx-active > .section-heading > p:not(.eyebrow),
#products.cx-active > .section-heading > .product-detail-links {
  display: none;
}

#products.cx-active > .section-heading > .eyebrow {
  margin-bottom: 0 !important;
  padding-block: 4px;
}

#products.cx-active > .product-tabs button {
  gap: 16px;
  min-height: 52px;
  padding: 8px 14px;
  text-align: start;
}

#products.cx-active > .product-tabs strong {
  font-size: 1.12rem;
  line-height: 1.5;
  letter-spacing: -.025em;
}

#products.cx-active > .product-tabs span {
  font-size: .875rem;
  line-height: 1.4;
}

#products.cx-active #product-panel[data-product="clin"] {
  display: block;
  min-height: 0;
  margin-top: 14px;
}

#products.cx-active #product-panel[data-product="clin"] > .product-copy,
#products.cx-active #product-panel[data-product="clin"] > .product-screenshot {
  display: none;
}

#products.cx-active #clinmate-capabilities.cx-explorer {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--cx-ink);
}

#products .cx-explorer [hidden] {
  display: none !important;
}

#products .cx-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 14px;
}

#products .cx-intro > div:first-child {
  min-width: 0;
}

#products .cx-intro h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.035em;
  text-wrap: balance;
}

#products .cx-intro h3 strong {
  font-weight: 600;
}

#products .cx-intro h3 span {
  margin-inline-start: .45em;
}

#products .cx-intro p {
  margin-top: 4px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--cx-muted);
}

#products .cx-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

#products .cx-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: .875rem;
  line-height: 1.45;
}

#products .cx-actions .button {
  min-height: 44px;
  padding: 10px 19px;
  border-radius: 4px;
  background: var(--cx-blue);
  color: white;
}

#products .cx-actions .button:hover {
  background: #0754b6;
}

#products .cx-actions .text-link {
  padding-block: 6px;
  border-bottom: 1px solid #b5c7dd;
  color: #24558e;
}


#products .cx-layout {
  display: grid;
  grid-template-columns: minmax(340px, .38fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
  min-width: 0;
}

#products .cx-selector {
  min-width: 0;
  border-top: 1px solid var(--cx-line);
}

#products .cx-choice {
  min-width: 0;
  border-bottom: 1px solid var(--cx-line);
}

#products .cx-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #52667e;
  text-align: start;
  font-size: calc(1rem - 2px);
  font-weight: 500;
  line-height: 1.5;
  transition: color .16s ease;
}

#products .cx-tab small {
  font-size: calc(.75rem - 2px);
  font-weight: 500;
  letter-spacing: .03em;
  color: #667e9a;
}

#products .cx-tab-sign {
  display: none;
}

#products .cx-tab::after {
  content: "+";
  margin-inline-start: auto;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 400;
  color: #748ba5;
}

#products .cx-tab:hover,
#products .cx-tab[aria-selected="true"] {
  color: var(--cx-blue);
}

#products .cx-tab[aria-selected="true"]::after {
  content: "−";
  color: var(--cx-blue);
}

#products .cx-description {
  padding: 1px 0 14px;
}

#products .cx-description p {
  margin: 0;
  font-size: calc(.9375rem - 2px);
  line-height: 1.75;
  color: #415b77;
  overflow-wrap: anywhere;
}

#products .cx-note {
  display: block;
  margin-top: 8px;
  font-size: calc(.8125rem - 2px);
  line-height: 1.6;
  color: #657b94;
}

#products .cx-stage {
  min-width: 0;
  height: calc(var(--cx-screen-height) + 180px);
  min-height: 0;
}

#products .cx-description {
  height: var(--cx-description-height, auto);
}

#products .cx-measure-description {
  position: absolute;
  visibility: hidden;
  width: 100%;
  height: auto;
  pointer-events: none;
}

#products .cx-selector { position: relative; }

#products .cx-media-panel .inline-player-fallback {
  height: calc(var(--cx-screen-height) + 44px);
  overflow: auto;
}

#products .cx-media-panel .inline-player-fallback img {
  width: 100%;
  height: calc(var(--cx-screen-height) - 100px);
  object-fit: contain;
}

#products #cx-demo-workspace .inline-player-fallback img {
  height: calc(var(--cx-screen-height) + 44px);
}

#products .cx-motion-toggle[hidden] {
  display: inline-flex !important;
  visibility: hidden;
}

#products .cx-pane,
#products .cx-media-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#products .cx-demo-list {
  display: flex;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  margin: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd9e9 transparent;
  border-bottom: 1px solid var(--cx-line);
}

/* Work settings are part of the overview frame, not a second page-level navigation. */
#products #cx-demo-workspace .cx-workspace-frame {
  height: calc(var(--cx-screen-height) + 44px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#products #cx-demo-workspace .cx-workspace-frame .inline-player-screen,
#products #cx-demo-workspace .cx-workspace-frame .inline-player-screen .product-inline-video,
#products #cx-demo-workspace .cx-workspace-frame > .product-inline-video {
  height: calc(var(--cx-screen-height) + 44px);
}

#products #clinmate-ads > .cx-ads-cues {
  height: 60px;
  margin: 0;
  overflow: auto;
}

#products #clinmate-ads > .cx-ads-cues > p {
  margin: 0;
}

#products .cx-ads-cues.cx-cue-idle {
  visibility: hidden;
}

#products .cx-stage > .cx-motion-toggle {
  margin-top: 4px;
}

@media (max-width: 760px) {
  #products #cx-demo-workspace .cx-workspace-frame {
    height: calc(var(--cx-screen-height) + 161px);
  }

  #products #cx-demo-workspace .cx-workspace-frame .inline-player-screen,
  #products #cx-demo-workspace .cx-workspace-frame .inline-player-screen .product-inline-video,
  #products #cx-demo-workspace .cx-workspace-frame > .product-inline-video {
    height: calc(var(--cx-screen-height) + 161px);
  }

  #products #clinmate-ads > .cx-ads-cues {
    height: 90px;
  }
}

#products .cx-demo-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #59708b;
  background: transparent;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}

#products .cx-demo-tab:hover {
  color: var(--cx-blue);
}

#products #clinmate-ads .cx-demo-tab {
  font-size: .75rem;
}

#products .cx-demo-tab[aria-selected="true"] {
  border-bottom-color: var(--cx-blue);
  color: var(--cx-blue);
}

#products .cx-media-panel > .product-inline-video,
#products .cx-media-panel .inline-player-screen {
  display: block;
  width: 100%;
  height: var(--cx-screen-height);
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: white;
  box-shadow: none;
  overflow: hidden;
}

#products .cx-media-panel .inline-player {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#products .cx-media-panel .inline-player-screen .product-inline-video,
#products .cx-media-panel > .product-inline-video {
  width: 100%;
  height: var(--cx-screen-height);
  max-width: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: white;
  box-shadow: none;
}

#products .cx-media-panel .inline-player-controls {
  min-height: 44px;
  padding: 0;
  background: white;
}

#products .cx-media-panel .inline-player-controls button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
}

#products .cx-media-panel .inline-player-overlay {
  border: 1px solid #c7d8ed;
  background: #ffffffed;
  box-shadow: none;
}

#products .cx-media-panel > figcaption,
#products .cx-media-caption {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  color: #60758d;
  font-size: .8125rem;
  line-height: 1.6;
}

#products .cx-ads-cues {
  margin-top: 4px;
  min-width: 0;
}

#products .cx-ads-cues > h4,
#products .cx-ads-cues .cm-ads-workflow-heading {
  display: none;
}

#products .cx-ads-cues .cm-ads-workflow,
#products .cx-ads-cues .cx-cue-list,
#products .cx-ads-cues [role="group"] {
  display: flex;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

#products .cx-ads-cues .cm-ads-workflow-step {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
}

#products .cx-ads-cues button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 9px;
  border: 0;
  border-radius: 4px;
  background: #f4f8fc;
  color: #526981;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

#products .cx-ads-cues button:hover,
#products .cx-ads-cues button[aria-pressed="true"] {
  background: #eaf3ff;
  color: #0757b6;
}

#products .cx-ads-cues .cm-ads-workflow-description {
  min-height: 30px;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#products .cx-ads-cues .cm-ads-workflow-description p,
#products .cx-ads-cues > p {
  margin: 5px 0 0;
  color: #526981;
  font-size: .8125rem;
  line-height: 1.65;
}

#products .cx-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--cx-screen-height);
  background: white;
}

#products .cx-illustration .clinmate-support-motion {
  display: block;
  width: min(680px, 94%);
  height: auto;
  max-height: calc(var(--cx-screen-height) - 24px);
  margin: 0;
}

#products .cx-illustration-steps {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0 3%;
  color: #365b86;
  font-size: .9375rem;
  line-height: 1.5;
}

#products .cx-illustration-steps span {
  flex: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

#products .cx-illustration-note,
#products .cx-illustration > p {
  margin-top: 15px;
  color: #63788f;
  font-size: .8125rem;
  line-height: 1.65;
  text-align: center;
}

#products .cx-motion-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #dce6f1;
  border-radius: 4px;
  background: white;
  color: #426386;
  font-size: .8125rem;
  line-height: 1.5;
  white-space: nowrap;
}

#products .cx-motion-toggle:hover {
  border-color: #9ebee8;
  color: var(--cx-blue);
}

#products .cx-illustration [data-clinmate-motion] .cm-flow-signal {
  stroke: #0966d8;
  stroke-width: 1.4;
  stroke-dasharray: 7 93;
  opacity: .75;
  animation: cx-flow-progress 2.8s linear infinite;
  animation-delay: var(--cm-motion-delay, 0s);
}

#products .cx-illustration [data-clinmate-motion] .cm-event-mark {
  animation: cx-review-pulse 2.8s ease-in-out infinite;
  animation-delay: var(--cm-motion-delay, 0s);
}

#products .cx-illustration [data-clinmate-motion].cm-motion-paused * {
  animation-play-state: paused !important;
}

@keyframes cx-flow-progress {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes cx-review-pulse {
  0%, 48%, 100% { opacity: 1; }
  58%, 78% { opacity: .35; }
}

#products .cx-explorer button:focus-visible,
#products .cx-explorer a:focus-visible {
  outline: 2px solid var(--cx-blue);
  outline-offset: -2px;
}

@media (min-width: 1100px) and (min-height: 850px) {
  #products.cx-active {
    --cx-screen-height: 300px;
  }
}

@media (max-width: 1050px) and (min-width: 761px) {
  #products .cx-layout {
    grid-template-columns: minmax(210px, .35fr) minmax(0, 1fr);
    gap: 24px;
  }

  #products .cx-intro {
    align-items: flex-start;
  }

  #products .cx-actions {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 280px;
  }

}

@media (max-width: 760px) {
  #products.cx-active {
    --cx-screen-height: 290px;
    padding-block: 24px 32px;
  }

  #products.cx-active > .product-tabs button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 62px;
    padding: 8px;
  }

  #products.cx-active > .product-tabs strong {
    font-size: 1rem;
  }

  #products.cx-active > .product-tabs span {
    font-size: .8125rem;
  }

  #products .cx-intro {
    display: block;
    margin-bottom: 18px;
  }

  #products .cx-intro h3 {
    font-size: 1.4rem;
    line-height: 1.45;
  }

  #products .cx-intro h3 span {
    display: block;
    margin-inline-start: 0;
    font-size: 1.15rem;
    margin-top: 2px;
  }

  #products .cx-intro p {
    margin-top: 7px;
    font-size: .9375rem;
  }

  #products .cx-actions {
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
  }

  #products .cx-layout {
    display: block;
  }

  #products .cx-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 14px;
    border: 0;
  }

  #products .cx-choice {
    display: contents;
  }

  #products .cx-tab {
    flex: 0 0 calc((100% - 18px) / 4);
    justify-content: center;
    gap: 0;
    width: calc((100% - 18px) / 4);
    min-height: 48px;
    padding: 7px 4px;
    border: 1px solid #dce6f1;
    border-radius: 4px;
    font-size: calc(.875rem - 2px);
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  #products .cx-tab small,
  #products .cx-tab::after {
    display: none;
  }

  #products .cx-tab[aria-selected="true"] {
    border-color: #a9c8f0;
    background: #edf5ff;
  }

  #products .cx-description {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    padding: 5px 0 0;
  }

  #products .cx-description p {
    font-size: calc(.9375rem - 2px);
    line-height: 1.7;
  }

  #products .cx-note {
    margin-top: 5px;
    font-size: calc(.8125rem - 2px);
  }

  #products .cx-stage {
    height: calc(var(--cx-screen-height) + 320px);
    min-height: 0;
  }

  #products .cx-media-panel .inline-player-controls {
    height: 96px;
  }

  #products .cx-actions {
    gap: 10px 12px;
  }

  #products .cx-actions a {
    font-size: .8125rem;
  }

  #products .cx-actions .button {
    padding-inline: 12px;
  }

  #products .cx-demo-list {
    margin-bottom: 8px;
  }

  #products .cx-demo-tab {
    padding-inline: 10px;
    font-size: .875rem;
  }

  #products .cx-ads-cues button {
    font-size: .8125rem;
  }

  #products .cx-ads-cues .cm-ads-workflow-description {
    min-height: 46px;
  }

  #products .cx-illustration {
    min-height: calc(var(--cx-screen-height) - 30px);
  }

  #products .cx-illustration-steps {
    gap: 8px;
    padding: 0;
    font-size: .875rem;
  }


  #products .cx-motion-toggle {
    margin-top: 7px;
  }
}

@media (max-width: 420px) {
  #products.cx-active {
    --cx-screen-height: 255px;
  }

  #products .cx-intro h3 {
    font-size: 1.3rem;
  }

  #products .cx-intro h3 span {
    font-size: 1.1rem;
  }

  #products .cx-actions .button {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #products .cx-explorer *,
  #products .cx-explorer *::before,
  #products .cx-explorer *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  #products .cx-illustration [data-clinmate-motion].cm-motion-opt-in .cm-flow-signal {
    animation: cx-flow-progress 2.8s linear infinite !important;
    animation-delay: var(--cm-motion-delay, 0s) !important;
  }

  #products .cx-illustration [data-clinmate-motion].cm-motion-opt-in .cm-event-mark {
    animation: cx-review-pulse 2.8s ease-in-out infinite !important;
    animation-delay: var(--cm-motion-delay, 0s) !important;
  }

  #products .cx-illustration [data-clinmate-motion].cm-motion-opt-in.cm-motion-paused * {
    animation-play-state: paused !important;
  }
}
