/* Trustindex widgets (Reviews (Trustindex) Elementor widget + the floating
   certificate badge from inc/trustindex.php). The review-slider look itself
   (white cards, site font) is in layout.css under .reviews-widget. */

/* Badges and buttons: shrink to their own width and line up. */
.pe-trustindex--left,
.pe-trustindex--center,
.pe-trustindex--right {
  display: flex;
}
.pe-trustindex--left { justify-content: flex-start; }
.pe-trustindex--center { justify-content: center; }
.pe-trustindex--right { justify-content: flex-end; }

/* Trustindex makes every widget 100% wide and centres the badge inside it
   (text-align:center + margin:auto), so the wrapper alone can't move it. */
.pe-trustindex--left .ti-widget,
.pe-trustindex--left .ti-widget .ti-widget-container {
  text-align: left !important;
}
.pe-trustindex--left .ti-widget .ti-widget-container {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.pe-trustindex--right .ti-widget,
.pe-trustindex--right .ti-widget .ti-widget-container {
  text-align: right !important;
}
.pe-trustindex--right .ti-widget .ti-widget-container {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Site font in every Trustindex widget, not only the review slider. */
.pe-trustindex .ti-widget,
.pe-trustindex .ti-widget * {
  font-family: var(--font-primary) !important;
}

/* Spacing where the badges sit. */
.hero-content .pe-trustindex { margin-top: 24px; }
.page-header .pe-trustindex { margin-top: 20px; }
.footer-brand .pe-trustindex { margin-top: 20px; }
.contact-form-card .pe-trustindex { margin-top: 20px; }

/* Floating certificate badge: bottom-left, whatever side the Trustindex
   dashboard has it on (the ENT Urgent Care badge owns bottom-right).
   Selector is one step more specific than Trustindex's own, which uses
   !important on the opposite side. */
body .ti-widget.ti-certificate[data-layout-id][data-set-id] .ti-sticky-button.ti-position-right {
  left: var(--ti-cert-badge-position, 15px) !important;
  right: auto !important;
}
