.ac-patient-videos {
  --ac-patient-text: #f3f7fb;
  --ac-patient-section-bg: #28495c;
  --ac-patient-card: #173447;
  --ac-patient-columns: 3;
  --ac-patient-gap: 24px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-top: 54px;
  scroll-margin-block-start: calc(var(--ac-header-height, 82px) + 20px);
  padding: clamp(18px, 3.5vw, 36px) clamp(12px, 3vw, 34px);
  border: 1px solid #a8c3d833;
  border-radius: 24px;
  background-color: var(--ac-patient-section-bg);
  color: var(--ac-patient-text);
}
.ac-patient-videos .ac-patient-title {
  margin: 0 0 14px;
  color: var(--ac-patient-text);
  font: 500 clamp(25px, 3vw, 36px)/1.2 var(--ff-d, Jost, Roboto, sans-serif);
}
.ac-patient-intro, .ac-patient-editor-hint { margin: 0 0 22px; color: var(--ac-patient-text); font: 15px/1.7 var(--ff-b, Roboto, sans-serif); }
.ac-patient-editor-hint { padding: 14px 18px; border: 1px dashed #9ac5df88; border-radius: 12px; }
.ac-patient-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% + var(--ac-patient-gap)) / var(--ac-patient-columns) - var(--ac-patient-gap));
  gap: var(--ac-patient-gap);
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #83a7bb #183245;
  padding: 12px 0 20px;
}
.ac-patient-rail.ac-scroll-carousel-free { scroll-snap-type: none; scroll-behavior: auto; }
.ac-patient-card { min-width: 0; overflow: hidden; align-self: start; scroll-snap-align: start; border: 1px solid #ffffff24; border-radius: 23px; background: var(--ac-patient-card); }
.ac-patient-videos .ac-media-player { aspect-ratio: 9/16; border-radius: 22px; }
.ac-patient-videos .ac-media-player video { object-fit: var(--ac-patient-fit, contain); }
.ac-patient-videos {
  background-image:
    radial-gradient(ellipse at 90% 0%, #a3d5f019, transparent 58%),
    radial-gradient(ellipse at 2% 100%, #0e293a3d, transparent 57%);
}
.ac-patient-rail[data-ac-patient-count="1"] {
  grid-auto-columns: min(100%, 260px);
  justify-content: center;
}
.ac-patient-card .player-cover[aria-haspopup="dialog"] {
  background: linear-gradient(0deg, #0a2435f2, #0a24355c 48%, #0a24352e);
}
.ac-patient-card .player-cover .play-btn {
  background: linear-gradient(145deg, #356d87, #1a425a);
}
.ac-patient-videos .play-wrap { max-width: 100%; gap: 16px; padding: 16px; text-align: center; font-size: 15px; overflow-wrap: anywhere; }
.ac-patient-videos .play-btn { width: 66px; height: 66px; }
.ac-patient-caption { padding: 18px 20px 22px; }
.ac-patient-videos .ac-patient-caption h4 { margin: 0; color: var(--ac-patient-text); font: 600 16px/1.5 var(--ff-b, Roboto, sans-serif); overflow-wrap: anywhere; }
.ac-patient-videos .ac-patient-caption p { margin: 7px 0 0; color: var(--ac-patient-text); font-size: 14px; line-height: 1.7; }
.ac-patient-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.ac-patient-controls [data-ac-patient-step] { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 1px solid #9ac5df88; border-radius: 50%; background: #ffffff0d; color: var(--ac-patient-text); font-size: 29px; cursor: pointer; }
.ac-patient-controls [data-ac-patient-step]:hover { background: #ffffff1c; }
.ac-patient-controls [data-ac-patient-step]:disabled { opacity: .35; cursor: default; }
.ac-patient-controls .ac-scroll-carousel-toggle { background: #ffffff0d; border-color: #9ac5df88; color: var(--ac-patient-text); }
.ac-patient-controls .ac-scroll-carousel-toggle:hover { background: #ffffff1c; }
.ac-patient-position { min-width: 45px; color: var(--ac-patient-text); text-align: center; font: 500 13px/1.5 var(--ff-b, Roboto, sans-serif); }
.ac-patient-rail:focus-visible, .ac-patient-controls button:focus-visible { outline: 3px solid #b7dbea; outline-offset: 3px; }
.ac-patient-placeholder { display: grid; place-content: center; gap: 18px; aspect-ratio: 9/16; color: #d7eaf6; text-align: center; background: radial-gradient(ellipse at top, #416d85, #142b3b 75%); font: 500 16px/1.5 var(--ff-b, Roboto, sans-serif); }
.ac-patient-placeholder > span:first-child { font-size: 58px; line-height: 1; }
@media (max-width: 1024px) { .ac-patient-videos { --ac-patient-columns: 2; } }
@media (min-width: 761px) {
  .ac-patient-videos:has(> .ac-patient-rail[data-ac-patient-count="1"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
    grid-template-rows: 1fr 1fr;
    column-gap: clamp(24px, 5vw, 70px);
  }
  .ac-patient-videos:has(> .ac-patient-rail[data-ac-patient-count="1"]) .ac-patient-title {
    align-self: end;
  }
  .ac-patient-rail[data-ac-patient-count="1"] {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}
@media (min-width: 601px) {
  .ac-patient-rail.ac-scroll-carousel-active[data-ac-patient-count="2"] {
    --ac-patient-columns: 1.6;
    max-width: 560px;
    margin-inline: auto;
  }
}
@media (min-width: 1025px) {
  .ac-patient-rail.ac-scroll-carousel-active[data-ac-patient-count="3"] {
    --ac-patient-columns: 2.2;
    max-width: 790px;
    margin-inline: auto;
  }
}
@media (max-width: 600px) {
  .ac-patient-videos { --ac-patient-columns: 1.15; --ac-patient-gap: 16px; margin-top: 38px; }
  .ac-patient-videos .ac-patient-title { font-size: 26px; }
}

/* The native dialog keeps the rest of the page out of the tab order. */
body.ac-patient-dialog-open {
  overflow: hidden;
}
html.ac-patient-dialog-open {
  overscroll-behavior: none;
  overflow: hidden;
}
.ac-patient-dialog {
  --ac-patient-dialog-padding: clamp(10px, 2.5vw, 17px);
  --ac-patient-dialog-ratio: .5625;
  --ac-patient-viewport-height: 100vh;
  --ac-patient-video-height: min(calc(.66 * var(--ac-patient-viewport-height)), 680px);
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(calc(100% - max(12px, env(safe-area-inset-left, 0px)) - max(12px, env(safe-area-inset-right, 0px))), clamp(280px, calc(var(--ac-patient-dialog-ratio) * var(--ac-patient-video-height) + 2 * var(--ac-patient-dialog-padding) + 2px), 860px));
  height: fit-content;
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px)) - max(12px, env(safe-area-inset-bottom, 0px)));
  margin: auto;
  padding: var(--ac-patient-dialog-padding);
  overflow: auto;
  overscroll-behavior: contain;
  color: #eef8ff;
  background: linear-gradient(145deg, #24475c, #102b3c 58%, #0c2030);
  border: 1px solid #97bfd75c;
  border-radius: 24px;
  box-shadow: 0 26px 88px #071a2a9c;
  font: 400 .9375rem/1.45 var(--ac-body-font, Roboto, system-ui, sans-serif);
}
.ac-patient-dialog:not([open]) {
  display: none;
}
.ac-patient-dialog[open] {
  display: grid;
  gap: 10px;
}
.ac-patient-dialog::backdrop {
  background: #071b2bdb;
  backdrop-filter: blur(8px);
}
.ac-patient-dialog.is-fallback[open] {
  z-index: 10002;
}
.ac-patient-dialog-backdrop:not([hidden]) {
  position: fixed;
  z-index: 10001;
  inset: 0;
  background: #071b2be8;
}
.ac-patient-dialog-open :is(.bar-mob, .fab, .ac-floating-wa) {
  visibility: hidden;
}
.ac-patient-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ac-patient-dialog-head h2 {
  margin: 0;
  min-width: 0;
  color: #f2f9fd;
  font: 600 clamp(1rem, 3.8vw, 1.35rem)/1.25 var(--ac-heading-font, Jost, Roboto, system-ui, sans-serif);
  overflow-wrap: anywhere;
}
.ac-patient-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  min-height: 44px;
  padding: 7px 11px;
  color: #fff;
  background: #ffffff16;
  border: 1px solid #a9cfe283;
  border-radius: 12px;
  font: 600 .875rem/1.25 var(--ac-body-font, Roboto, system-ui, sans-serif);
  cursor: pointer;
}
.ac-patient-dialog-close span {
  font-size: 1.375rem;
  line-height: 1;
}
.ac-patient-dialog-close:hover {
  background: #ffffff2b;
}
.ac-patient-dialog :is(button, a, video, iframe):focus-visible {
  outline: 2px solid #e0f5ff;
  outline-offset: 3px;
}
.ac-patient-dialog-media {
  width: min(100%, calc(var(--ac-patient-dialog-ratio) * var(--ac-patient-video-height)));
  max-height: var(--ac-patient-video-height);
  aspect-ratio: var(--ac-patient-dialog-ratio);
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: 15px;
  background: #071723;
}
.ac-patient-dialog-media :is(video, iframe) {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.ac-patient-dialog-status {
  margin: 0;
  color: #e5f2f9;
}
.ac-patient-dialog-status:empty,
.ac-patient-dialog-link[hidden],
.ac-patient-dialog-play[hidden] {
  display: none;
}
.ac-patient-dialog-play {
  justify-self: center;
  min-height: 44px;
  max-width: 100%;
  padding: .5em 1em;
  border: 1px solid #98b8cc;
  border-radius: 10px;
  color: #10283a;
  background: #edf7fd;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ac-patient-dialog-link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: #d4efff;
  text-align: center;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .2em;
}
@supports (height: 100dvh) {
  .ac-patient-dialog { --ac-patient-viewport-height: 100dvh; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .ac-patient-dialog {
    --ac-patient-video-height: calc(.54 * var(--ac-patient-viewport-height));
    --ac-patient-dialog-padding: 9px;
    gap: 6px;
  }
}
@keyframes ac-patient-dialog-enter {
  from { opacity: .55; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.ac-motion-off) .ac-patient-dialog[open] {
    animation: ac-patient-dialog-enter .3s cubic-bezier(.22, 1, .36, 1) backwards;
  }
}
