/* ==========================================================================
   Highland Testimonial Slider Widget
   ========================================================================== */

/* ------------------------------------------------------------------
   Outer wrapper
   ------------------------------------------------------------------ */
.hcw-testimonial-slider {
  position: relative;
  width: 100%;
}

/* ------------------------------------------------------------------
   Swiper core overrides
   ------------------------------------------------------------------ */
.hcw-ts-swiper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hcw-ts-wrapper {
  display: flex;
  flex-wrap: nowrap;
}

.hcw-ts-swiper .swiper-slide {
  height: auto; /* allow cards to stretch to equal height */
  box-sizing: border-box;
}

/* ------------------------------------------------------------------
   Card
   ------------------------------------------------------------------ */
.hcw-ts-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------
   Stars
   ------------------------------------------------------------------ */
.hcw-ts-stars {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  line-height: 1;
}

.hcw-ts-star {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.hcw-ts-star--filled {
  fill: #fbbc04;
}

.hcw-ts-star--empty {
  fill: #d9d9d9;
}

/* ------------------------------------------------------------------
   Review text
   ------------------------------------------------------------------ */
.hcw-ts-review {
  flex: 1; /* push name / button to bottom */
}

/* ------------------------------------------------------------------
   Reviewer name
   ------------------------------------------------------------------ */
.hcw-ts-name {
  font-weight: 600;
}

/* ------------------------------------------------------------------
   Button
   ------------------------------------------------------------------ */
.hcw-ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
  box-sizing: border-box;
}

.hcw-ts-btn:hover {
  text-decoration: none;
}

.hcw-ts-google-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------
   Navigation arrows
   ------------------------------------------------------------------ */
.hcw-ts-prev,
.hcw-ts-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  background: #ffffff;
  transition: background-color 0.2s ease;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Override Swiper default positioning */
.hcw-ts-prev.swiper-button-prev {
  left: 0;
}

.hcw-ts-next.swiper-button-next {
  right: 0;
}

/* Arrow chevron via Swiper's ::after pseudo-element */
.hcw-ts-prev::after,
.hcw-ts-next::after {
  font-size: 16px;
  color: #333333;
  font-weight: 700;
}

/* Disabled state */
.hcw-ts-prev.swiper-button-disabled,
.hcw-ts-next.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   Pagination dots (placed below the swiper)
   ------------------------------------------------------------------ */
.hcw-ts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  /* margin-top controlled by style control */
}

.hcw-ts-pagination.swiper-pagination {
  position: relative;
  bottom: auto;
  left: auto;
  width: 100%;
}

.hcw-ts-pagination .swiper-pagination-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cccccc;
  opacity: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hcw-ts-pagination .swiper-pagination-bullet-active {
  background: #333333;
}

/* ------------------------------------------------------------------
   Responsive — give sliders breathing room on mobile
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
  .hcw-ts-prev,
  .hcw-ts-next {
    display: none;
  }
}
