html,
body {
  overflow-x: clip;
}

#index .dm-home-brand-marquee-module,
#index .dm-home--brand-marquee {
  overflow: hidden;
  background: var(--dm-home-brands-bg, #f2f2f2);
  box-shadow: 0 0 0 100vmax var(--dm-home-brands-bg, #f2f2f2);
  clip-path: inset(0 -100vmax);
}

#index .dm-home--brand-marquee {
  box-sizing: border-box;
  display: grid;
  gap: var(--dm-home-inner-gap, 22px);
  width: 100%;
  max-width: min(var(--dm-home-content-max, 1440px), 100%);
  margin: 0 auto;
  padding: var(--dm-home-section-pad, 20px) 16px;
}

#index .dm-home-brand-marquee__head {
  width: min(100%, 680px);
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

#index .dm-home-brand-marquee__head .dm-home-section__eyebrow {
  display: block;
  margin: 0 0 7px;
  color: var(--dm-home-brands-eyebrow-color, #555555);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

#index .dm-home-brand-marquee__head h2 {
  max-width: 640px;
  margin: 0;
  color: var(--dm-home-brands-title-color, #444444);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.03;
}

#index .dm-home-brand-marquee__head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--dm-home-brands-description-color, #666666);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

#index .dm-home-brand-marquee__footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: min(var(--dm-home-content-max, 1440px), 100%);
  margin: 2px auto 0;
  padding: 13px 0 0;
  border-top: 2px solid #cfcfcf;
}

#index .dm-home-brand-marquee__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 14px;
  color: var(--dm-home-brands-button-color, #ffffff);
  background: var(--dm-home-brands-button-bg, #515151);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

#index .dm-home-brand-marquee__link:hover,
#index .dm-home-brand-marquee__link:focus-visible {
  color: var(--dm-home-brands-button-color, #ffffff);
  background: var(--dm-home-brands-button-bg-hover, #303030);
}

#index .dm-home-brand-marquee {
  display: grid;
  gap: var(--dm-home-inner-gap, 22px);
  overflow: hidden;
}

#index .dm-home-brand-marquee__row {
  --dm-brand-marquee-speed: var(--dm-home-brands-row-speed, 280s);
  overflow: hidden;
}

#index .dm-home-brand-marquee__row--reverse {
  --dm-brand-marquee-speed: var(--dm-home-brands-row-reverse-speed, 328s);
}

#index .dm-home-brand-marquee__track {
  display: flex;
  width: max-content;
  animation: dm-home-brands-marquee var(--dm-brand-marquee-speed) linear infinite;
  will-change: transform;
}

#index .dm-home-brand-marquee__row--reverse .dm-home-brand-marquee__track {
  animation-direction: reverse;
}

#index .dm-home-brand-marquee__row:hover .dm-home-brand-marquee__track,
#index .dm-home-brand-marquee__row:focus-within .dm-home-brand-marquee__track {
  animation-play-state: paused;
}

#index .dm-home-brand-marquee__set {
  display: flex;
  gap: 10px;
  padding-right: 10px;
}

#index .dm-home-brand-marquee__item {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 48px;
  padding: 7px 11px;
  overflow: hidden;
  color: #333333;
  background: #ffffff;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

#index .dm-home-brand-marquee__item:hover,
#index .dm-home-brand-marquee__item:focus-visible {
  color: #1f1f1f;
  box-shadow: 0 2px 8px rgba(38, 38, 38, 0.14);
}

#index .dm-home-brand-marquee__logo {
  display: block;
  width: 100%;
  max-width: 72px;
  max-height: 32px;
  object-fit: contain;
}

#index .dm-home-brand-marquee__name {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
}

#index .dm-home-brand-marquee__logo + .dm-home-brand-marquee__name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes dm-home-brands-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 767.98px) {
  #index .dm-home-brand-marquee__head h2 {
    font-size: 30px;
  }
}

@media (min-width: 768px) {
  #index .dm-home--brand-marquee {
    padding: 28px 24px;
  }

  #index .dm-home-brand-marquee__item {
    width: 150px;
    height: 72px;
    padding: 12px 20px;
    border-radius: 4px;
  }

  #index .dm-home-brand-marquee__logo {
    max-width: 118px;
    max-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #index .dm-home-brand-marquee {
    overflow-x: auto;
    mask-image: none;
    scrollbar-width: none;
  }

  #index .dm-home-brand-marquee::-webkit-scrollbar {
    display: none;
  }

  #index .dm-home-brand-marquee__row {
    overflow: visible;
  }

  #index .dm-home-brand-marquee__row--reverse {
    display: none;
  }

  #index .dm-home-brand-marquee__track {
    animation: none;
  }

  #index .dm-home-brand-marquee__set[aria-hidden="true"] {
    display: none;
  }
}
