.client-voices__read-more {
  display: none;
}

.client-voices__dialog:not([open]) {
  display: none;
}

@media (max-width: 767px) {
  .client-voices .client-voices__portrait,
  .client-voices .client-voices__portrait-placeholder {
    width: 81.36px;
    height: 81.36px;
  }

  html.testimonial-sheet-ready .client-voices__context-full {
    display: none;
  }

  html.testimonial-sheet-ready .client-voices__read-more {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 11px 0 9px;
    color: var(--testimonials-ink, #f5f2ee);
    font-family: "Suisse Intl", Arial, sans-serif !important;
    font-size: 15px;
    font-weight: 400 !important;
    line-height: 1.2;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--testimonials-card-border, #2f2c34);
    border-radius: 0;
    cursor: pointer;
  }

  .client-voices__read-more > :last-child {
    color: var(--voice-accent, var(--brand-purple));
    font-size: 23px;
    line-height: 1;
  }

  .client-voices__read-more:focus-visible,
  .client-voices__dialog-close:focus-visible,
  .client-voices__dialog-nav-button:focus-visible {
    outline: 2px solid var(--voice-accent, var(--brand-purple));
    outline-offset: 3px;
  }

  .client-voices__header > .client-voices__controls .client-voices__button:disabled {
    background: var(--testimonials-control-bg, #fff);
    cursor: default;
  }

  .client-voices__header > .client-voices__controls .client-voices__button:disabled img {
    opacity: 0.35;
  }

  html.is-testimonial-dialog-open,
  html.is-testimonial-dialog-open body {
    overflow: hidden;
  }

  html.is-testimonial-dialog-open body {
    position: fixed;
    top: var(--testimonial-dialog-lock-top, 0);
    right: 0;
    left: 0;
    width: 100%;
  }

  .client-voices__dialog {
    width: 100%;
    max-width: none;
    max-height: min(calc(88svh + 48px), 96svh);
    margin: auto 0 0;
    padding: 0;
    overflow: hidden;
    color: #f5f2ee;
    background: #17151b;
    border: 1px solid #343039;
    border-bottom: 0;
    border-radius: 0;
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    transition:
      opacity 240ms ease-out,
      transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .client-voices__dialog.is-open {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .client-voices__dialog::backdrop {
    background: rgba(9, 9, 12, 0.72);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .client-voices__dialog-sheet {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    max-height: min(calc(88svh + 48px), 96svh);
    padding: 0;
    overflow: hidden;
  }

  .client-voices__dialog-scroll {
    --testimonial-dialog-header-inset: 16px;
    min-height: 0;
    padding: var(--testimonial-dialog-header-inset) 12px 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .client-voices__dialog-controls {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 16px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: #17151b;
    border-top: 1px solid #343039;
  }

  .client-voices__dialog-nav-button {
    color: #f5f2ee;
    background: #24212a;
    border-color: #343039;
  }

  .client-voices__dialog-nav-button img {
    filter: invert(1);
  }

  .client-voices__dialog-previous img {
    transform: rotate(180deg);
  }

  .client-voices__dialog-nav-button:disabled {
    background: #24212a;
    cursor: default;
  }

  .client-voices__dialog-nav-button:disabled img {
    filter: invert(1);
    opacity: 0.35;
  }

  .client-voices__dialog-progress {
    height: 2px;
    overflow: hidden;
    background: #403b46;
  }

  .client-voices__dialog-progress span {
    display: block;
    width: var(--testimonial-dialog-progress, 25%);
    height: 100%;
    background: var(--voice-accent, var(--brand-purple));
    transition: width 360ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .client-voices__dialog-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .client-voices__dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: var(--testimonial-dialog-header-inset);
    border-bottom: 1px solid #343039;
  }

  .client-voices__dialog-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
  }

  .client-voices__dialog-portrait {
    display: block;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
  }

  .client-voices__dialog-author,
  .client-voices__dialog-role {
    margin: 0;
  }

  .client-voices__dialog-author {
    color: #f5f2ee;
    font-family: "Suisse Intl", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .client-voices__dialog-role {
    margin-top: 3px;
    color: var(--testimonial-paragraph-color, #787878);
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .client-voices__dialog-close {
    display: inline-flex;
    width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #f5f2ee;
    font-family: "Suisse Intl", Arial, sans-serif !important;
    font-size: 14px !important;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .client-voices__dialog-close > :last-child {
    color: var(--voice-accent, var(--brand-purple));
    font-size: 28.6px;
    line-height: 1;
  }

  .client-voices .client-voices__dialog-quote {
    margin: 0;
    padding-top: 32px;
    color: #f5f2ee;
    font-family: "Suisse Intl", Arial, sans-serif !important;
    font-size: clamp(25px, 7.1vw, 30px) !important;
    font-weight: 400;
    line-height: 1.18 !important;
    letter-spacing: -0.025em;
  }

  .client-voices__dialog-context {
    margin-top: 24px;
    color: var(--testimonial-paragraph-color, #787878);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 520px) {
  .client-voices__card {
    /* Preserve the space below the portrait as its height grows by 9.36px. */
    min-height: calc(455.36px + var(--voice-attribution-offset));
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .client-voices__dialog {
    transition: none;
  }

  .client-voices__dialog-progress span {
    transition: none;
  }
}
