.tc-logo-carousel {
  --tc-logo-background: #f7f3e9;
  --tc-logo-active-gap: var(--tc-logo-gap);
  --tc-logo-active-height: var(--tc-logo-height);
  --tc-logo-gap: 56px;
  --tc-logo-height: 42px;
  --tc-logo-padding-y: 20px;
  --tc-logo-speed: 28s;
  background: var(--tc-logo-background);
  overflow: hidden;
  padding: var(--tc-logo-padding-y) 0;
  width: 100%;
}

.tc-logo-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.tc-logo-carousel__track {
  animation: tc-logo-carousel-scroll var(--tc-logo-speed) linear infinite;
  display: flex;
  width: max-content;
  will-change: transform;
}

.tc-logo-carousel[data-direction="right"] .tc-logo-carousel__track {
  animation-direction: reverse;
}

.tc-logo-carousel[data-pause="true"]:hover .tc-logo-carousel__track {
  animation-play-state: paused;
}

.tc-logo-carousel__group {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: var(--tc-logo-active-gap);
  justify-content: space-around;
  min-width: 100vw;
  padding-right: var(--tc-logo-active-gap);
}

.tc-logo-carousel__item,
.tc-logo-carousel__link {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.tc-logo-carousel img {
  display: block;
  height: auto;
  max-height: var(--tc-logo-active-height);
  max-width: 220px;
  object-fit: contain;
  width: auto;
}

.tc-logo-carousel--empty {
  color: #7f8ba1;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

@keyframes tc-logo-carousel-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-logo-carousel__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 18px;
    width: 100%;
  }

  .tc-logo-carousel__group[aria-hidden="true"] {
    display: none;
  }
}

@media only screen and (max-width: 48em) {
  .tc-logo-carousel {
    --tc-logo-active-gap: max(34px, calc(var(--tc-logo-gap) * 0.72));
    --tc-logo-active-height: min(var(--tc-logo-height), 40px);
  }
}
