/* Only applies when Review Design = Spacerok Cards on the existing widget. */

/* The star is a Font Awesome 5 Free (solid) glyph drawn by the parent's generated jws-style.css, but the parent
   theme no longer loads Font Awesome on the frontend, so without this the stars show as empty boxes.
   Solid weight only, using the file the parent theme already ships (no extra upload needed). */
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url(/wp-content/themes/feedy/assets/font/awesome/fa-solid-900.woff2) format('woff2');
}

.feedy-testimonials-spacerok {
  --feedy-card-bg: var(--pitta-bg); /* the testimonials sit on a white band: grey cards (new name, see testimonial-cards.php) */
  --feedy-card-stars: #f5a000;
  --feedy-card-accent: var(--pitta-red);
  --feedy-card-radius: 24px;
  --feedy-card-padding: 40px;
  --feedy-card-gap: 28px;
}
/* The widget can carry a fixed width at laptop sizes (1200px, left aligned), which pushes the row off centre.
   Full width keeps the carousel centred on the screen with the side reviews showing evenly. */
.elementor-widget-jws_testimonial_slider:has(.feedy-testimonials-spacerok) {
  width: 100% !important;
  max-width: 100% !important;
}
/* Narrower, centred carousel: the three review cards sit in the middle and the reviews on either side
   show in the margins, so it is clear there are more to swipe to. The strip itself is not cropped at
   the carousel edge (overflow visible); the wrapper only clips at the screen edge. */
.feedy-testimonials-spacerok {
  overflow-x: clip;
}
.feedy-testimonials-spacerok .testimonials_slider {
  width: 84%;
  max-width: 1240px;
  margin: 0 auto !important;
}
.feedy-testimonials-spacerok .owl-stage-outer {
  overflow: visible;
}
@media (max-width: 767px) {
  .feedy-testimonials-spacerok .testimonials_slider {
    width: 86%;
  }
}
.feedy-testimonials-spacerok .owl-stage {
  display: flex;
}
.feedy-testimonials-spacerok .owl-item {
  display: flex;
  flex: 0 0 auto;
  float: none;
}
.feedy-testimonials-spacerok .testimonials_slider .slider-item {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  padding: 0 calc(var(--feedy-card-gap) / 2) !important;
}
.feedy-testimonials-spacerok .testimonials_slider .slider-content {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: var(--feedy-card-padding) !important;
  margin: 0 !important;
  border: var(--pitta-border);
  border-radius: var(--feedy-card-radius) !important;
  background: var(--feedy-card-bg) !important;
  box-shadow: none !important;
  text-align: start;
}
/* The widget's own "item background" is saved in the page as white, with a selector more specific than the
   rule above; this one outranks it so the cards stay grey on the white band. */
.elementor .elementor-element .elementor-widget-container .feedy-testimonials-spacerok .testimonials_slider .slider-content {
  background: var(--feedy-card-bg) !important;
}
.feedy-testimonials-spacerok .testimonials-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.feedy-testimonials-spacerok .average-rating {
  margin-bottom: 18px;
}
.feedy-testimonials-spacerok .average-rating .jws-star-rating {
  width: 108px;
  height: 24px;
}
.feedy-testimonials-spacerok .average-rating .jws-star-rating .jws-star-rated:before {
  color: var(--feedy-card-stars);
  font-size: 15px;
  letter-spacing: 5px;
}
.feedy-testimonials-spacerok .testimonials-description {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.feedy-testimonials-spacerok .testimonials-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.feedy-testimonials-spacerok.layout2 .avatar-left {
  flex: 0 0 56px;
  max-width: 56px;
}
.feedy-testimonials-spacerok.layout2 .avatar-left img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}
.feedy-testimonials-spacerok.layout2 .info-right {
  width: auto;
  min-width: 0;
  padding: 0;
}
.feedy-testimonials-spacerok .testimonials-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.feedy-testimonials-spacerok .testimonials-job {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.feedy-testimonials-spacerok .owl-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 38px;
}
.feedy-testimonials-spacerok .owl-dots .owl-dot {
  width: 12px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
}
.feedy-testimonials-spacerok .owl-dots .owl-dot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-radius: 10px;
  background: var(--pitta-border-color);
}
.feedy-testimonials-spacerok .owl-dots .owl-dot.active {
  width: 24px;
}
.feedy-testimonials-spacerok .owl-dots .owl-dot.active span {
  width: 22px;
  background: var(--feedy-card-accent);
}
.feedy-testimonials-spacerok .owl-dot:focus-visible {
  outline: 2px solid var(--feedy-card-accent);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .feedy-testimonials-spacerok {
    --feedy-card-padding: 26px;
    --feedy-card-gap: 16px;
  }
}
