/* ==========================================================
   Gym Marketing Pros : Trustindex Google widget overrides
   File: assets/css/gmp-reviews.css   Version: 1.0.0
   Prompt: TRUSTINDEX-REVIEWS-STYLING v1.2 (Prompt 03B)
   Design: "What clients say" Google review cards on the
   Testimonials page (Brand Black cards on the Cream Section).
   Trustindex: plugin 14.3, Google slider layout 4,
   set "light-background".

   Scope: every rule starts with
     .ti-widget.ti-goog[data-trustindex-widget]
   so it works wherever the shortcode is placed. No Avada
   container, column, page or section class is used.

   Left alone on purpose (inline styles written by Trustindex
   JavaScript, some with !important):
     .ti-review-content height (Read more), .ti-controls top,
     .ti-prev / .ti-next display, .ti-controls-line .dot
     width and left. Column count (.ti-col-N) is also left
     to Trustindex.
   ========================================================== */


/* ---------- 1. Base type and color ---------- */
.ti-widget.ti-goog[data-trustindex-widget] .ti-widget-container,
.ti-widget.ti-goog[data-trustindex-widget] .ti-widget-container * {
  font-family: var(--awb-typography4-font-family, "Open Sans"), Arial, Helvetica, sans-serif;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-widget-container {
  color: var(--awb-color1, #ffffff);
  margin: 0;
}

/* Cards sit flush with the content edges at every width.
   Trustindex insets the track by 8px from 1024px up. */
@media (min-width: 1024px) {
  .ti-widget.ti-goog[data-trustindex-widget] .ti-reviews-container-wrapper {
    margin: 0 -8px !important;
  }
}

/* Gap between cards: 16px total, as in the design
   (Trustindex default 0 8px kept, stated here so an update
   cannot change it). */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item {
  padding: 0 8px;
}

/* Hover lift: design moves the card up 4px. Trustindex only
   lifts from 480px up; keep that range. */
@media (min-width: 480px) {
  .ti-widget.ti-goog[data-trustindex-widget] .ti-review-item:hover {
    -webkit-transform: translate(0, -4px);
    -ms-transform: translate(0, -4px);
    transform: translate(0, -4px);
  }
}


/* ---------- 2. Card ---------- */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item > .ti-inner {
  background-color: var(--awb-color8, #010000) !important;
  background-image: none !important;
  border-width: 0 !important;
  border-radius: 28px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: clamp(26px, 2.6vw, 36px) !important;
  margin: 0 !important;
  min-height: 340px;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  row-gap: 20px !important;
  position: relative;
  text-align: left;
  color: var(--awb-color1, #ffffff);
}

/* Decorative opening quote mark, top left (aria-hidden in the
   design). Pure decoration: no Trustindex content is hidden or
   rebuilt. Trustindex sets content:unset on every :before, so
   content is restated here at higher specificity. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item > .ti-inner::before {
  content: "\201C";
  position: absolute;
  top: calc(clamp(26px, 2.6vw, 36px) - 4px);
  left: clamp(26px, 2.6vw, 36px);
  height: 48px;
  overflow: hidden;
  font-family: "GMP Roboto Flex", var(--awb-typography1-font-family, "Roboto Flex"), Arial, sans-serif;
  font-weight: 900;
  font-variation-settings: "wdth" 44, "slnt" -8;
  font-size: 88px;
  line-height: 1;
  color: var(--awb-color4, #e73725);
  pointer-events: none;
}

/* Order inside the card: stars (top right), quote, read more,
   photos, then the author row at the bottom. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-stars                  { order: 1; }
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-content         { order: 2; }
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-read-more              { order: 3; }
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-image-container { order: 4; }
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-header          { order: 5; }


/* ---------- 3. Stars ---------- */
/* Row is 48px tall to line up with the quote mark. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-reviews-container-wrapper .ti-inner > .ti-stars {
  display: flex;
  align-items: flex-start;
  align-self: flex-end;
  justify-content: flex-end;
  height: 48px;
  margin: 0 0 0 64px;
  padding: 4px 0 0;
  line-height: 1;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-stars .ti-star {
  width: 16px !important;
  height: 16px !important;
  margin-right: 3px !important;
  flex: none;
}

/* Recolor stars: design star shape as an inline mask, painted
   Brand Red. The img shows a transparent 1x1 GIF so only the
   painted mask is visible. No Trustindex CDN path is used. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item img.ti-star {
  content: url("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.8l-5.2 2.8 1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.8l-5.2 2.8 1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Full star (Trustindex f.svg): Brand Red */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item img.ti-star {
  background: var(--awb-color4, #e73725) !important;
}
/* Half star (h.svg or .h): left half red, right half the card
   divider tone */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item img.ti-star[src*="/star/h."],
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item img.ti-star.h {
  background: linear-gradient(90deg, var(--awb-color4, #e73725) 50%, var(--awb-color17, #2a2626) 50%) !important;
}
/* Empty star (e.svg or .e): card divider tone. The design shows
   5-star reviews only, so this appears only if the rating
   filter changes. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item img.ti-star[src*="/star/e."],
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item img.ti-star.e {
  background: var(--awb-color17, #2a2626) !important;
}

/* Verified badge: kept (Trustindex attribution), spaced to the
   star row. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-stars .ti-verified-review {
  flex: none;
  margin-left: 5px !important;
  margin-top: 1px !important;
}


/* ---------- 4. Review text ---------- */
/* Trustindex fixes the collapsed text box at 87px with an
   inline !important height. 3 lines at up to 29px each fit it
   exactly, so the clamp is 3 lines and the line height is
   capped at 29px (design 1.6). */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-content {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: min(1.6em, 29px);
  font-weight: 400;
  color: var(--awb-color1, #ffffff);
  text-align: left;
  text-wrap: pretty;
  -webkit-line-clamp: 3;
  margin: 0;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-content * {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Read more: card meta label style (Roboto Flex 700, 12px,
   0.14em, uppercase, Soft Muted Text), Brand Red on hover. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-read-more {
  margin-top: -8px;
  padding: 0;
  text-align: left;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-read-more span {
  font-family: "GMP Roboto Flex", var(--awb-typography5-font-family, "Roboto Flex"), Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awb-color13, #a8a29f);
  opacity: 1;
  text-decoration: none !important;
  transition: color 0.25s;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-read-more span:hover {
  color: var(--awb-color4, #e73725);
  text-decoration: none !important;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-read-more span:focus-visible {
  outline: 2px solid var(--awb-color4, #e73725);
  outline-offset: 3px;
  color: var(--awb-color4, #e73725);
}

/* Review photos (when a review has them) */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-image-container {
  margin-top: 0;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-image {
  border-radius: 14px;
}


/* ---------- 5. Author row (bottom) ---------- */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--awb-color17, #2a2626);
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-header .ti-profile-img {
  order: 1;
  flex: none;
  margin: 0 14px 0 0 !important;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-profile-img img,
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-profile-img .ti-profile-img-sprite {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-header .ti-profile-details {
  order: 2;
  row-gap: 3px !important;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-widget-container .ti-review-item .ti-name {
  font-family: "GMP Roboto Flex", var(--awb-typography1-font-family, "Roboto Flex"), Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  color: var(--awb-color1, #ffffff);
  padding-right: 0;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-widget-container .ti-review-item .ti-date {
  font-size: 13px;
  line-height: 1.4;
  color: var(--awb-color13, #a8a29f);
}

/* Google icon: end of the author row, where the design shows
   its "Google" label. Kept relative so its tooltip still
   anchors to it. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-review-item .ti-review-header .ti-platform-icon {
  order: 3;
  flex: none;
  position: relative;
  top: auto;
  right: auto;
  margin-left: 16px;
}


/* ---------- 6. Arrows (Trustindex shows them from 1024px up,
   only when there are more reviews than columns) ---------- */
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls {
  margin-top: -28px;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-next,
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-prev {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--awb-color8, #010000);
  background-color: var(--awb-color3, #f5f1ed);
  color: var(--awb-color8, #010000);
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: none;
  transition: background-color 0.25s, color 0.25s, outline-color 0.25s;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-prev { left: -28px; }
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-next { right: -28px; }

/* Arrow icon: design arrow (shaft plus head) as a mask on the
   Trustindex :before, painted with the button text color. */
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-next:before,
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-prev:before {
  width: 18px;
  height: 18px;
  border-width: 0 !important;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-prev:before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-next:before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Hover and focus: Brand Black fill, white arrow (design). */
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-next:hover,
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-next:focus,
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-prev:hover,
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-prev:focus {
  background-color: var(--awb-color8, #010000) !important;
  color: var(--awb-color1, #ffffff);
  outline-color: transparent !important;
  box-shadow: none;
}
/* Keyboard focus: 2px Brand Red outline, 3px offset (RCM). */
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-next:focus-visible,
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls .ti-prev:focus-visible {
  outline-color: var(--awb-color4, #e73725) !important;
}


/* ---------- 7. Progress line (Trustindex shows it below
   480px) ---------- */
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls-line {
  width: 100%;
  max-width: none;
  height: 2px;
  margin: clamp(24px, 3vw, 32px) 0 0;
  border-radius: 2px;
  background: var(--awb-color22, #d6cec7);
}
.ti-widget.ti-goog[data-trustindex-widget] .ti-controls-line .dot {
  border-radius: 2px;
  background: var(--awb-color5, #d02e1e);
}
