.cvp-trusted-by {
  --logo-size: min(112px, calc(25vw - 16px));
  --logo-gap: 8px;
  background: #f3f4f5;
  border-block-end: 1px solid #dfe1e4;
  padding-block: 24px 28px;
}

.cvp-trusted-by__inner {
  display: grid;
  gap: var(--logo-gap);
  margin-inline: auto;
  width: min(1320px, calc(100% - 32px));
}

.cvp-trusted-by__heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-block-end: 8px;
}

.cvp-trusted-by__heading h2 {
  color: #202528;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.cvp-trusted-by__origin {
  align-items: center;
  color: #4b4e52;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.28;
  margin: 0;
  max-width: 50%;
}

.cvp-trusted-by__origin img {
  box-shadow: 0 0 0 1px #dfe1e4;
  flex: none;
  height: auto;
  width: 27px;
}

.cvp-trusted-by__row {
  min-width: 0;
  overflow: hidden;
}

.cvp-trusted-by__track {
  animation: cvp-trusted-by-scroll 43s linear infinite;
  display: flex;
  width: max-content;
}

.cvp-trusted-by__row + .cvp-trusted-by__row .cvp-trusted-by__track {
  animation-direction: reverse;
}

.cvp-trusted-by__logos {
  display: flex;
  flex: none;
  gap: var(--logo-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  /* Match the space between tiles at the join between the two lists. */
  padding-inline-end: var(--logo-gap);
}

.cvp-trusted-by__logos li {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #dedfe2;
  border-radius: 8px;
  box-sizing: border-box;
  flex: none;
  overflow: hidden;
  width: var(--logo-size);
}

.cvp-trusted-by__logos img {
  display: block;
  height: 100%;
  width: 100%;
}

@keyframes cvp-trusted-by-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 640px) {
  .cvp-trusted-by {
    --logo-gap: 12px;
    padding-block: 28px 32px;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .cvp-trusted-by__row {
    mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cvp-trusted-by__row {
    overflow-x: auto;
  }

  .cvp-trusted-by__track {
    animation: none;
  }

  .cvp-trusted-by__logos[aria-hidden="true"] {
    display: none;
  }
}
