/* Treatments — compact patient perspective carousel.
   Native horizontal scrolling, no autoplay and no promotional badge treatment. */
.txr-patient-voices {
  --txr-voice-bg: #ece7de;
  --txr-voice-ink: #18231f;
  --txr-voice-copy: #34413d;
  --txr-voice-meta: #765f41;
  --txr-voice-rule: rgba(24, 35, 31, .16);
  --txr-voice-card: rgba(247, 243, 236, .58);
  --txr-voice-card-border: rgba(24, 35, 31, .13);
  position: relative;
  margin: 0;
  padding: 56px max(22px, calc((100% - 1240px) / 2)) 62px;
  overflow: hidden;
  color: var(--txr-voice-copy);
  background:
    radial-gradient(72% 100% at 100% 0%, rgba(170, 144, 105, .08), transparent 64%),
    var(--txr-voice-bg);
}

.txr-patient-voices__inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--txr-voice-rule);
}

.txr-patient-voices__head,
.txr-patient-voices__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.txr-patient-voices__head {
  margin-bottom: 24px;
}

/* First-launch link-only proof: keep the established visual language without
   reserving carousel space when copied review excerpts are not published. */
.txr-patient-voices--link-only {
  padding-top: 40px;
  padding-bottom: 44px;
}

.txr-patient-voices--link-only .txr-patient-voices__inner {
  padding-top: 18px;
}

.txr-patient-voices--link-only .txr-patient-voices__head {
  margin-bottom: 0;
}

.txr-patient-voices__label,
.txr-patient-voices__source,
.txr-patient-voices__status {
  margin: 0;
  font: 400 10px / 1.45 var(--font-mono, var(--mono, "IBM Plex Mono", monospace));
  letter-spacing: .16em;
  text-transform: uppercase;
}

.txr-patient-voices__label {
  color: var(--txr-voice-meta);
}

.txr-patient-voices__source {
  margin-top: 5px;
  color: rgba(52, 65, 61, .62);
  font-size: 8px;
  letter-spacing: .14em;
}

.txr-patient-voices__google {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  color: var(--txr-voice-meta);
  text-decoration: none;
}

.txr-patient-voices__stars {
  color: #9a7748;
  font: 400 12px / 1 sans-serif;
  letter-spacing: .18em;
}

.txr-patient-voices__google-label {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(118, 95, 65, .38);
  font: 400 9px / 1.4 var(--font-mono, var(--mono, "IBM Plex Mono", monospace));
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease;
}

.txr-patient-voices__google:hover .txr-patient-voices__google-label,
.txr-patient-voices__google:focus-visible .txr-patient-voices__google-label {
  color: #4f3b24;
  border-color: currentColor;
}

.txr-patient-voices__google:focus-visible,
.txr-patient-voices__button:focus-visible,
.txr-patient-voices__track:focus-visible {
  outline: 2px solid #9a7748;
  outline-offset: 4px;
}

.txr-patient-voices__track {
  display: flex;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0 0 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.txr-patient-voices__track::-webkit-scrollbar {
  display: none;
}

.txr-patient-voice {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 calc((100% - 32px) / 3);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  min-height: 220px;
  margin: 0;
  padding: 25px 24px 22px;
  scroll-snap-align: start;
  border: 1px solid var(--txr-voice-card-border);
  border-radius: 2px;
  background: var(--txr-voice-card);
  text-align: center;
}

.txr-patient-voice blockquote {
  max-width: 27ch;
  margin: 0;
  color: var(--txr-voice-ink);
  font: 300 clamp(19px, 1.65vw, 23px) / 1.25 var(--font-serif, var(--serif, "Newsreader", serif));
  letter-spacing: -.018em;
  text-wrap: pretty;
}

.txr-patient-voice figcaption {
  margin-top: 0;
  color: var(--txr-voice-meta);
  font: 400 8.5px / 1.5 var(--font-mono, var(--mono, "IBM Plex Mono", monospace));
  letter-spacing: .13em;
  text-transform: uppercase;
}

.txr-patient-voices__footer {
  margin-top: 18px;
}

.txr-patient-voices__position {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(48vw, 300px);
}

.txr-patient-voices__status {
  flex: 0 0 auto;
  color: var(--txr-voice-meta);
  font-size: 9px;
  letter-spacing: .12em;
}

.txr-patient-voices__progress {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  overflow: hidden;
  background: rgba(24, 35, 31, .15);
}

.txr-patient-voices__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #9a7748;
  transform: scaleX(var(--txr-review-progress, .2));
  transform-origin: left center;
  transition: transform .36s cubic-bezier(.22, .7, .22, 1);
}

.txr-patient-voices__buttons {
  display: flex;
  gap: 8px;
}

.txr-patient-voices__button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(24, 35, 31, .24);
  border-radius: 50%;
  color: #5c472e;
  background: transparent;
  font: 300 17px / 1 sans-serif;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}

.txr-patient-voices__button:hover {
  color: #342719;
  border-color: rgba(92, 71, 46, .58);
  background: rgba(255, 255, 255, .3);
}

.txr-patient-voices__button:disabled {
  opacity: .34;
  cursor: default;
}

@media (max-width: 900px) {
  .txr-patient-voices {
    padding: 50px 36px 54px;
  }

  .txr-patient-voice {
    flex-basis: 43%;
    min-width: 310px;
  }
}

@media (max-width: 700px) {
  .txr-patient-voices {
    padding: 42px 20px 46px;
  }

  .txr-patient-voices__inner {
    padding-top: 19px;
  }

  .txr-patient-voices__head {
    display: block;
    margin-bottom: 19px;
  }

  .txr-patient-voices--link-only {
    padding-top: 34px;
    padding-bottom: 36px;
  }

  .txr-patient-voices--link-only .txr-patient-voices__inner {
    padding-top: 16px;
  }

  .txr-patient-voices--link-only .txr-patient-voices__head {
    margin-bottom: 0;
  }

  .txr-patient-voices__google {
    margin-top: 13px;
  }

  .txr-patient-voices__track {
    gap: 12px;
  }

  .txr-patient-voice {
    flex-basis: min(82vw, 300px);
    min-width: min(82vw, 300px);
    min-height: 220px;
    gap: 20px;
    padding: 22px 20px 20px;
  }

  .txr-patient-voice blockquote {
    font-size: clamp(19px, 5.2vw, 20px);
    line-height: 1.28;
  }

  .txr-patient-voices__footer {
    margin-top: 16px;
  }

  .txr-patient-voices__position {
    min-width: 0;
    width: min(54vw, 190px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .txr-patient-voices__track {
    scroll-behavior: auto;
  }

  .txr-patient-voices__progress::after,
  .txr-patient-voices__google-label,
  .txr-patient-voices__button {
    transition: none;
  }
}
