.rosella-focus-testimonials {
  --fts-slide-width: 400px;
  --fts-slide-gap: 24px;
  --fts-autoplay-speed: 500ms;
  --fts-transition-speed: 0.5s;
  --fts-inactive-opacity: 0.35;
  --fts-viewport-padding-y: 0px;
  --fts-dot-gap: 10px;
  --fts-dot-size: 8px;
  --fts-dot-active-width: 28px;
  --fts-dot-color: #d1d5db;
  --fts-dot-active-color: #f97316;
  --fts-quote-active-color: #f97316;
  --fts-quote-inactive-color: #fdba74;

  container-type: inline-size;
  --fts-slide-effective: min(
    var(--fts-slide-width),
    calc((100cqi - var(--fts-slide-gap)))
  );

  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.rosella-focus-testimonials.--single {
  --fts-slide-effective: min(var(--fts-slide-width), 100cqi);
}

.rosella-focus-testimonials__viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: var(--fts-viewport-padding-y) 0;
  min-height: 200px;
}

.rosella-focus-testimonials__slide {
  position: absolute;
  top: 0;
  width: var(--fts-slide-effective);
  transition:
    left var(--fts-transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
    opacity var(--fts-transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
    transform var(--fts-transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left, opacity, transform;
}

.rosella-focus-testimonials__slide.--active {
  left: calc(50% - var(--fts-slide-effective) / 2);
  z-index: 3;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.rosella-focus-testimonials__slide.--prev {
  left: calc(
    50% - var(--fts-slide-effective) / 2 - var(--fts-slide-effective) -
      var(--fts-slide-gap)
  );
  z-index: 2;
  opacity: var(--fts-inactive-opacity);
  transform: scale(1);
  pointer-events: auto;
  cursor: pointer;
}

.rosella-focus-testimonials__slide.--next {
  left: calc(
    50% - var(--fts-slide-effective) / 2 + var(--fts-slide-effective) +
      var(--fts-slide-gap)
  );
  z-index: 2;
  opacity: var(--fts-inactive-opacity);
  transform: scale(1);
  pointer-events: auto;
  cursor: pointer;
}

.rosella-focus-testimonials__slide.--hidden {
  left: calc(50% - var(--fts-slide-effective) / 2);
  z-index: 1;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.rosella-focus-testimonials__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.rosella-focus-testimonials__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.rosella-focus-testimonials__card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rosella-focus-testimonials__name {
  display: block;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.rosella-focus-testimonials__title {
  display: block;
  margin: 0;
  line-height: 1.4;
}

.rosella-focus-testimonials__quote {
  flex-shrink: 0;
  line-height: 1;
  transition: color var(--fts-transition-speed) ease;
}

.rosella-focus-testimonials__slide.--active .rosella-focus-testimonials__quote {
  color: var(--fts-quote-active-color);
}

.rosella-focus-testimonials__slide:not(.--active)
  .rosella-focus-testimonials__quote {
  color: var(--fts-quote-inactive-color);
}

.rosella-focus-testimonials__quote svg,
.rosella-focus-testimonials__quote i {
  display: block;
  width: 1em;
  height: 1em;
  fill: var(--fts-quote-active-color);
  color: var(--fts-quote-active-color);
}

.rosella-focus-testimonials__text {
  margin: 0;
  line-height: 1.7;
}

.rosella-focus-testimonials__text p:last-child {
  margin-bottom: 0;
}

.rosella-focus-testimonials__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--fts-arrow-size, 40px);
  height: var(--fts-arrow-size, 40px);
  border: none;
  border-radius: 50%;
  background: var(--fts-arrow-bg, rgba(0, 0, 0, 0.08));
  color: var(--fts-arrow-color, #374151);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}

.rosella-focus-testimonials__arrow:hover {
  background: var(--fts-arrow-bg-hover, rgba(0, 0, 0, 0.14));
}

.rosella-focus-testimonials__arrow.--prev {
  left: 0;
}

.rosella-focus-testimonials__arrow.--next {
  right: 0;
}

.rosella-focus-testimonials__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rosella-focus-testimonials__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--fts-dot-gap);
  padding: 24px 0 0;
}

.rosella-focus-testimonials__dot {
  width: var(--fts-dot-size);
  height: var(--fts-dot-size);
  border: none;
  border-radius: 2px;
  background: var(--fts-dot-color) !important;
  cursor: pointer;
  padding: 0;
  transition:
    width 0.3s ease,
    background 0.3s ease,
    border-radius 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rosella-focus-testimonials__dot.--active {
  width: var(--fts-dot-active-width);
  border-radius: 2px;
}

button.rosella-focus-testimonials__dot:active,
button.rosella-focus-testimonials__dot:hover,
button.rosella-focus-testimonials__dot:focus {
  background: transparent;
  background-color: transparent;
  border-color: transparent;
}

.rosella-focus-testimonials__dot.--active::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--fts-dot-active-color);
  animation: rs-pagination-bullet-active-before var(--fts-autoplay-speed)
    ease-in-out forwards;
}

@keyframes rs-pagination-bullet-active-before {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

.rosella-focus-testimonials__viewport.--grabbing {
  cursor: grabbing;
}

.rosella-focus-testimonials__viewport:not(.--grabbing) {
  cursor: grab;
}

.rosella-focus-testimonials.--single
  .rosella-focus-testimonials__slide.--active {
  left: calc(50% - var(--fts-slide-effective) / 2);
}
