/* Nesty Content — Custom Testimonials
   Figma "Testimonial" card (node 14:3307): a content photo on top, then a
   light panel with a star rating, a quote and an author row (logo + brand
   name + location). Carousel built on Swiper 11. */

.cew-tm {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* ── Slides: equal height so author rows line up across cards ── */
.cew-tm .swiper-slide {
  height: auto;
  display: flex;
}

/* ── Card ── */
.cew-tm__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

/* ── Photo ── */
.cew-tm__photo {
  height: 177px;
  width: 100%;
  overflow: hidden;
}

.cew-tm__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── Content panel ── */
.cew-tm__content {
  display: flex;
  flex-direction: column;
  gap: 15.2px;
  padding: 16px;
  background: #f5f5f5;
  flex: 1 0 0;
}

/* ── Stars ── */
.cew-tm__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f5821f;
}

.cew-tm__stars svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ── Quote ── */
.cew-tm__quote {
  margin: 0;
  /* Fill the panel so the author row sits at the bottom and aligns across
     cards; min-height reserves ~3 lines so short quotes don't collapse. */
  flex: 1 0 auto;
  min-height: 62.4px;
  font-family: "Aileron", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 20.8px;
  letter-spacing: -0.48px;
  color: #131313;
  word-break: break-word;
}

/* ── Author row ── */
.cew-tm__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cew-tm__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 70px;
  overflow: hidden;
  display: block;
}

.cew-tm__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cew-tm__author-meta {
  display: flex;
  flex-direction: column;
  gap: 3.99px;
  min-width: 0;
}

.cew-tm__name {
  font-family: "Aileron", sans-serif;
  font-weight: 400;
  font-size: 15.1px;
  line-height: 20.8px;
  letter-spacing: -0.48px;
  color: #131313;
}

.cew-tm__location {
  font-family: "Aileron", sans-serif;
  font-weight: 400;
  font-size: 13.3px;
  line-height: 19.88px;
  letter-spacing: -0.42px;
  color: #5c5c5c;
}

/* ── Arrows ── */
.cew-tm__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #131313;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.cew-tm__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.cew-tm__arrow svg {
  width: 20px;
  height: 20px;
}

.cew-tm__arrow--prev {
  left: 8px;
}

.cew-tm__arrow--next {
  right: 8px;
}

/* ── Pagination dots ── */
.cew-tm .swiper-pagination {
  position: static;
  margin-top: 18px;
}

.cew-tm .swiper-pagination-bullet {
  background: rgba(19, 19, 19, 0.3);
  opacity: 1;
}

.cew-tm .swiper-pagination-bullet-active {
  background: #131313;
}

/* ── Editor empty-state ── */
.cew-tm__empty {
  padding: 28px 20px;
  border: 1px dashed #c3c4c7;
  border-radius: 8px;
  text-align: center;
  color: #50575e;
  font-size: 14px;
}
