

.testimonial {
  perspective-origin: 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  counter-reset: bubble 0;
  overflow: hidden;
  margin: 0;
  background: transparent;
  min-height: 400px;
  flex-grow: 1;
  transform: translateX(0) translateY(0) !important;
  // cursor: auto !important;
}
.testimonial .testimonials {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  height: 100%;
  transform: translateZ(calc(var(--distance) * -1));
  // transition: transform ease-in-out 1s;
  transform-style: preserve-3d;
}
.testimonial .arrow-left,
.testimonial .arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  cursor: pointer;
  color: #1abc9c;
  z-index: 2;
  background: white;
  padding: 5px;
}
.testimonial .arrow-left {
  left: 0px;
}
.testimonial .arrow-right {
  right: 0px;
}
.testimonial .navigation {
  position: absolute;
  bottom: 0.1em;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  cursor: pointer;
}
.testimonial .navigation .nav-dot {
  padding: 5px;
  background: #1abc9c;
  border: 1.5px solid white;
  border-radius: 50%;
}
.testimonial .navigation .focused {
  background: white;
}

.chat-bubble {
  padding: 2em;
  width: min(400px, calc(100vw - 40px));
  box-sizing: border-box;
  background-color: white;
  border-radius: 1em;
  position: absolute;
  transform: translateX(-50%) rotateY(var(--rotation))
    translateZ(var(--distance));
  transition: filter 1s ease;
  backface-visibility: hidden;
  pointer-events: none;
  filter: blur(3px);
}
.chat-bubble.focused {
  filter: blur(0px);
  pointer-events: auto;
}
.chat-bubble i {
  font-size: 30px;
  color: #aaa;
  margin-bottom: 0.5em;
}
.chat-bubble .person {
  display: grid;
  grid-template: auto auto/auto 1fr;
  grid-column-gap: 0.4em;
  margin-top: 1em;
}
.chat-bubble .person .img {
  grid-row: 1/-1;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  object-fit: cover;
}
.chat-bubble .person .name {
  font-weight: bold;
  align-self: end;
}
.chat-bubble .person .role {
  align-self: start;
}
.chat-bubble .content {
  white-space: pre-wrap;
  position: relative;
  max-height: 175px;
  padding: 5px 0;
  overflow-y: auto;
}
.chat-bubble .content:w .truncated::after {
  content: "";
  position: absolute;
  height: 3em;
  width: 3em;
  background-image: black;
  top: 0;
  left: 0;
}
.chat-bubble::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 5%;
  width: 25px;
  height: 15px;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  background-color: inherit;
}
