.avis-trust,
.avis-trust * {
  box-sizing: border-box;
}

.avis-produit-auto {
  width: 100%;
  max-width: calc(1170px + 5.2325em);
  margin: 34px auto 28px;
  padding: 0 2.617924em;
}

.avis-trust {
  --trust-green: #00b67a;
  --trust-text: #171717;
  --trust-muted: #6b6b6b;
  --trust-border: #deded8;
  --trust-bg: #fff;
  --trust-gap: 10px;
  --trust-fade: 138px;
  --trust-card: 232px;
  --trust-speed: 46s;
  position: relative;
  width: 100%;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 4px 0;
  font-family: "Trustpilot Default Font", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.avis-trust__summary {
  width: max-content;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 2px;
  padding: 9px 12px;
  border: 1px solid var(--trust-border);
  border-radius: 4px;
  background: var(--trust-bg);
  color: var(--trust-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.avis-trust__summary > div:first-child {
  display: grid;
  gap: 2px;
}

.avis-trust__summary strong {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
}

.avis-trust__summary span {
  color: var(--trust-muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.avis-trust__row {
  display: flex;
  width: max-content;
  gap: var(--trust-gap);
  will-change: transform;
}

.avis-trust__row--right {
  animation: avisTrustRight var(--trust-speed) linear infinite;
}

.avis-trust__row--left {
  animation: avisTrustLeft var(--trust-speed) linear infinite;
}

.avis-trust:hover .avis-trust__row {
  animation-play-state: paused;
}

.avis-trust__track {
  display: flex;
  gap: var(--trust-gap);
}

.avis-trust__card {
  width: var(--trust-card);
  min-height: 228px;
  flex: 0 0 var(--trust-card);
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--trust-border);
  border-radius: 4px;
  background: var(--trust-bg);
  color: var(--trust-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.045);
}

.avis-trust__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}

.avis-trust__stars {
  display: grid;
  grid-template-columns: repeat(5, 20px);
  gap: 2px;
  flex: 0 0 auto;
}

.avis-trust__stars span {
  --trust-star-size: 12.8px;
  width: 20px;
  height: 20px;
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--trust-green);
}

.avis-trust__stars span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--trust-star-size);
  height: var(--trust-star-size);
  transform: translate(-50%, -50%);
  background: #fff;
  clip-path: polygon(50% 0%, 61% 34%, 98% 34%, 68% 54%, 79% 90%, 50% 68%, 21% 90%, 32% 54%, 2% 34%, 39% 34%);
}

.avis-trust__stars--4 span:nth-child(5),
.avis-trust__stars--3 span:nth-child(n+4),
.avis-trust__stars--2 span:nth-child(n+3),
.avis-trust__stars--1 span:nth-child(n+2) {
  background: #d8d8d8;
}

.avis-trust__stars--summary {
  grid-template-columns: repeat(5, 22px);
}

.avis-trust__stars--summary span {
  --trust-star-size: 14px;
  width: 22px;
  height: 22px;
}

.avis-trust__top > span {
  color: #787878;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}

.avis-trust__card h3 {
  margin: 0 0 9px;
  color: var(--trust-text);
  font-size: 15.5px;
  line-height: 1.25;
  font-weight: 700;
}

.avis-trust__card p {
  margin: 0 0 16px;
  color: #343434;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 400;
}

.avis-trust__card strong {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 700;
  position: relative;
  padding-left: 20px;
}

.avis-trust__card strong::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--trust-green);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
}

.avis-trust__card strong::after {
  content: "Client confirme";
  display: block;
  margin-top: 3px;
  color: var(--trust-muted);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 400;
}

.avis-trust__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(16vw, var(--trust-fade));
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.avis-trust__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--trust-bg) 0%, rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0) 100%);
}

.avis-trust__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--trust-bg) 0%, rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0) 100%);
}

@keyframes avisTrustLeft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - (var(--trust-gap) / 2)), 0, 0);
  }
}

@keyframes avisTrustRight {
  from {
    transform: translate3d(calc(-50% - (var(--trust-gap) / 2)), 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1024px) {
  .avis-trust {
    --trust-card: 244px;
    --trust-speed: 36s;
  }
}

@media (max-width: 767px) {
  .avis-produit-auto {
    margin: 24px auto 22px;
    padding: 0 14px;
  }

  .avis-trust {
    --trust-card: 82vw;
    --trust-speed: 28s;
    --trust-fade: 58px;
    gap: 10px;
  }

  .avis-trust__card {
    min-height: 190px;
  }

  .avis-trust__row--left {
    display: none;
  }

  .avis-trust__fade {
    width: var(--trust-fade);
  }

  .avis-trust__summary {
    max-width: calc(100% - 16px);
    gap: 9px;
    padding: 8px 10px;
  }

  .avis-trust__summary strong {
    font-size: 14px;
  }

  .avis-trust__summary span {
    font-size: 11px;
  }

  .avis-trust__stars--summary {
    grid-template-columns: repeat(5, 19px);
  }

  .avis-trust__stars--summary span {
    --trust-star-size: 12.2px;
    width: 19px;
    height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avis-trust__row {
    animation: none;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .avis-trust__row::-webkit-scrollbar {
    display: none;
  }

  .avis-trust__track[aria-hidden="true"] {
    display: none;
  }

  .avis-trust__card {
    scroll-snap-align: start;
  }
}
