/* The existing Trustindex layout stays in charge of its cards and carousel. */
body.single-product .elementor-location-single :is(.bws-template-reviews, .bws-ti-section) {
  --content-width: 1400px;
  --container-max-width: 1400px;
  --padding-left: 24px;
  --padding-right: 24px;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding-inline: 24px !important;
}
body.single-product .elementor-location-single :is(.bws-template-reviews, .bws-ti-section) > .e-con-inner {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 1400px !important;
  min-width: 0;
  margin-inline: auto;
  padding: 0 !important;
}
body.single-product .bws-ti-host,
body.single-product .bws-ti-host > .elementor-widget-container {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-inline: 0 !important;
  padding: 0 !important;
}
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"],
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-widget-container {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .ti-widget-container .ti-widget-header { margin-inline: 0 !important; }
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-widget-container :is(.ti-header-content, .ti-header-rating, .ti-top-rated-title, .ti-name, .ti-date, .ti-review-text-container, .ti-read-more, .ti-reply-by-owner-title) {
  font-family: "BWS Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
/* Compensate for the original 8px padding on each native review item. */
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .ti-reviews-container-wrapper { margin-inline: -8px !important; }
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .ti-widget-header .ti-verified-by { display: none !important; }
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .bws-ti-platforms {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px !important;
  margin-right: 10px !important;
  min-width: 0;
}
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .bws-ti-platforms .ti-header-logo { flex: 0 0 auto !important; max-width: none !important; margin: 0 !important; }
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .bws-ti-trustpilot {
  display: inline-flex !important;
  align-items: center;
  padding-right: 12px !important;
  border-right: 1px solid var(--bws-brand-border,#DDE3DE) !important;
  text-decoration: none;
}
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .bws-ti-trustpilot img {
  display: block !important;
  width: 88px !important;
  height: 22px !important;
  max-width: 88px !important;
  margin: 0 !important;
  object-fit: contain;
}
/* The carousel keeps only platform evidence; customer proof sits above the product. */
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .ti-widget-header .ti-header-content.source-Google {
  margin-block: 0 !important;
  padding-block: 16px !important;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  flex-wrap: wrap !important;
  gap: 12px 16px;
}
body.single-product .bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"] .bws-ti-trustpilot:focus-visible { outline: 2px solid var(--bws-brand-link,#202421); outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1024px) {
  body.single-product .elementor-location-single .bws-template-hero.e-parent { --padding-left: 24px; --padding-right: 24px; padding-inline: 24px !important; }
}
@media (max-width: 767px) {
  body.single-product .elementor-location-single :is(.bws-template-reviews, .bws-ti-section) { --padding-left: 8px; --padding-right: 8px; padding-inline: 8px !important; }
}
/* Shop-wide review count is separate from the platform-specific rating. */
body.single-product .bws-ti-native .ti-widget-header .ti-header-content.source-Google .bws-ti-store-heading {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 1 1 auto !important;
  order: 0 !important;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 0 auto !important;
  color: var(--bws-brand-text,#202421) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  text-align: right !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
body.single-product .bws-ti-native .bws-ti-review-caption { font-size: inherit !important; line-height: inherit; }
body.single-product .bws-ti-native .bws-ti-review-count { color:#267c5f !important; font-size: inherit !important; font-weight: 800 !important; }
body.single-product .bws-ti-native .bws-ti-review-check {
  position: relative;
  display: inline-block;
  flex: 0 0 20px;
  margin-right: 12px !important;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bws-brand-solid,#202421);
}
body.single-product .bws-ti-native .bws-ti-review-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--bws-brand-on-primary,#FFFFFF);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (max-width: 767px) {
  body.single-product .bws-ti-native .ti-widget-header .ti-header-content.source-Google .bws-ti-store-heading {
    flex-basis: 100% !important;
    order: 2 !important;
    font-size: 14px !important;
  }
}

/* A small hand-drawn accent, without another image request. */
body.single-product .bws-ti-native .bws-ti-review-count {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}
body.single-product .bws-ti-native .bws-ti-review-count::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0;
  height: 4px;
  border-radius: 50%;
  background: var(--bws-brand-primary,#202421);
  clip-path: polygon(0 40%,18%20%,38%45%,58%15%,78%35%,100%20%,100%65%,80%85%,60%65%,40%90%,20%65%,0 100%);
  transform: rotate(-3deg);
  opacity: .85;
}

/* Match the shared BWS advantages band. Paint only the product review widget;
   original reviews, ratings, brand images and carousel behavior remain native. */
html:root body.single-product .elementor-location-single :is(.bws-template-reviews,.bws-ti-section):has(.bws-ti-native[data-layout-id="108"][data-pid="1b76e2e51911355c8816d7b5826"]) {
  background:var(--bws-brand-dark,#202421)!important;
  padding-block:clamp(28px,3vw,40px)!important;
  color:var(--bws-brand-on-dark,#FFFFFF);
}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-widget-container {color:var(--bws-brand-on-dark,#FFFFFF)!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-widget-header,
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-review-item .ti-inner {
  background:#FFFFFF06!important;
  border-color:#FFFFFF26!important;
  color:var(--bws-brand-on-dark,#FFFFFF)!important;
  box-shadow:none!important;
}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] :is(.ti-name,.ti-name a,.ti-header-rating,.ti-top-rated-title,.ti-review-text-container,.ti-reply-by-owner-title,.bws-ti-store-heading,.bws-ti-review-caption) {color:var(--bws-brand-on-dark,#FFFFFF)!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-review-text-container :is(strong,b,em,p,span) {color:inherit!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] :is(.ti-date,.ti-reply-by-owner-text) {color:var(--bws-brand-on-dark-muted,#DDE3DE)!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] :is(.ti-read-more,.ti-read-more span,.ti-review-text-container a) {color:var(--bws-brand-on-dark,#FFFFFF)!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-read-more-active {opacity:1!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .bws-ti-review-count::after {background:#35ad84!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .bws-ti-review-check {background:var(--bws-brand-on-dark,#FFFFFF)!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .bws-ti-review-check::after {border-color:var(--bws-brand-ink,#202421)!important;}
/* Retain the supplied Google/Trustpilot assets in their original colors.
   Real inset spacing keeps the white backing clear of the mobile rating row. */
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .bws-ti-platforms {background:#FFFFFF!important;border-radius:6px;padding:6px 8px!important;box-shadow:none!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-controls :is(.ti-prev,.ti-next) {background:#ffffff14!important;border-color:#ffffff26!important;color:var(--bws-brand-on-dark,#FFFFFF)!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .ti-controls :is(.ti-prev,.ti-next)::before {border-color:var(--bws-brand-on-dark,#FFFFFF)!important;}
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] :is(.ti-read-more,.ti-prev,.ti-next,.bws-ti-trustpilot):focus-visible {outline:2px solid var(--bws-brand-on-dark,#FFFFFF)!important;outline-offset:4px;}

/* Green trust count retains contrast on the dark review surface. */
html:root body.single-product .ti-widget.bws-ti-native[data-layout-id="108"][data-set-id="ligth-border"][data-pid="1b76e2e51911355c8816d7b5826"] .bws-ti-review-count {color:#35ad84!important;}
