.motion-partners-marquee,
.motion-partners-marquee * {
  box-sizing: border-box;
}

.motion-partners-marquee {
  --mp-speed: 34s;
  --mp-gap: 42px;
  --mp-logo-height: 74px;
  --mp-border-color: rgba(20, 32, 79, 0.07);
  --mp-border-radius: 8px;
  --mp-title-color: #14204f;
  --mp-title-bubble-bg: #14204f;
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 8px 0 48px;
}

.motion-partners-viewport {
  width: 100%;
  overflow: visible;
  padding: 8px 0 52px;
  margin: -8px 0 -52px;
  -webkit-mask-image: none;
  mask-image: none;
}

.motion-partners-track {
  display: flex;
  width: max-content;
  gap: var(--mp-gap);
  animation: motion-partners-marquee var(--mp-speed) linear infinite;
  will-change: transform;
}

.motion-partners-marquee[data-mp-enhanced="true"] .motion-partners-track {
  animation: none;
}

.motion-partners-marquee.has-pause-on-hover:hover .motion-partners-track {
  animation-play-state: paused;
}

.motion-partners-set {
  display: flex;
  align-items: center;
  gap: var(--mp-gap);
}

.motion-partners-item {
  position: relative;
  display: grid;
  place-items: center;
  min-width: max(136px, calc(var(--mp-logo-height) * 1.75));
  margin: 0;
  isolation: isolate;
}

.motion-partners-logo-wrap {
  display: grid;
  place-items: center;
  min-height: calc(var(--mp-logo-height) + 18px);
  padding: 9px 16px;
  border-radius: var(--mp-border-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--mp-border-color), 0 12px 28px rgba(20, 32, 79, 0.07);
}

.motion-partners-logo-wrap img {
  display: block;
  width: auto;
  max-width: min(220px, 34vw);
  height: var(--mp-logo-height);
  object-fit: contain;
  filter: saturate(0.92);
}

.motion-partners-title {
  position: absolute;
  top: auto;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 20;
  display: block;
  max-width: min(260px, 72vw);
  margin: 8px 0 0;
  color: var(--mp-title-color);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.motion-partners-title::after {
  content: none;
}

@keyframes motion-partners-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - (var(--mp-gap) / 2)), 0, 0);
  }
}

@media (min-width: 981px) {
  .motion-partners-marquee[data-title-desktop="inline"] .motion-partners-title {
    position: static;
    max-width: 230px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .motion-partners-marquee[data-title-desktop="hover-plain"] .motion-partners-item:hover .motion-partners-title,
  .motion-partners-marquee[data-title-desktop="hover-bubble"] .motion-partners-item:hover .motion-partners-title {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .motion-partners-marquee[data-title-desktop="hover-bubble"] .motion-partners-item:hover .motion-partners-title {
    padding: 8px 11px;
    border: 1px solid rgba(20, 32, 79, 0.1);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mp-title-color);
    box-shadow: 0 10px 22px rgba(20, 32, 79, 0.14);
  }

  .motion-partners-marquee[data-title-desktop="hover-bubble"] .motion-partners-item:hover .motion-partners-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(20, 32, 79, 0.1);
    border-bottom: 1px solid rgba(20, 32, 79, 0.1);
    background: #ffffff;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .motion-partners-marquee[data-title-tablet="inline"] .motion-partners-title {
    position: static;
    max-width: 210px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .motion-partners-marquee[data-title-tablet="hover-plain"] .motion-partners-item:hover .motion-partners-title,
  .motion-partners-marquee[data-title-tablet="hover-bubble"] .motion-partners-item:hover .motion-partners-title {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .motion-partners-marquee[data-title-tablet="hover-bubble"] .motion-partners-item:hover .motion-partners-title {
    padding: 7px 10px;
    border: 1px solid rgba(20, 32, 79, 0.1);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mp-title-color);
    box-shadow: 0 10px 22px rgba(20, 32, 79, 0.14);
  }

  .motion-partners-marquee[data-title-tablet="hover-bubble"] .motion-partners-item:hover .motion-partners-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(20, 32, 79, 0.1);
    border-bottom: 1px solid rgba(20, 32, 79, 0.1);
    background: #ffffff;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (max-width: 767px) {
  .motion-partners-marquee {
    --mp-gap: max(22px, calc(var(--mp-gap) * 0.72));
    --mp-logo-height: min(var(--mp-logo-height), 58px);
  }

  .motion-partners-marquee[data-title-mobile="inline"] .motion-partners-title {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    white-space: normal;
    max-width: 160px;
  }

  .motion-partners-marquee[data-title-mobile="hover-plain"] .motion-partners-item:hover .motion-partners-title,
  .motion-partners-marquee[data-title-mobile="hover-bubble"] .motion-partners-item:hover .motion-partners-title {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .motion-partners-marquee[data-title-mobile="hover-bubble"] .motion-partners-item:hover .motion-partners-title {
    padding: 7px 10px;
    border: 1px solid rgba(20, 32, 79, 0.1);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mp-title-color);
    box-shadow: 0 10px 22px rgba(20, 32, 79, 0.14);
  }

  .motion-partners-marquee[data-title-mobile="hover-bubble"] .motion-partners-item:hover .motion-partners-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(20, 32, 79, 0.1);
    border-bottom: 1px solid rgba(20, 32, 79, 0.1);
    background: #ffffff;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-partners-track {
    animation: none;
  }
}
