[data-ks-brands-carousel] {
  --ks-brands-columns: 4;
  --ks-brands-accent: #775036;
  margin: 0;
  padding-block: 30px;
  border-top: 1px solid #e5e9eb;
  background: #fff;
  font-family: var(--ks-sans, Roboto, Arial, sans-serif);
}

[data-ks-brands-carousel] .ks-brands-heading {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 0 0 20px;
  text-align: center;
}

[data-ks-brands-carousel] .ks-brands-heading p {
  margin: 0;
  color: #79553d;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

[data-ks-brands-carousel] .ks-brands-heading h2 {
  margin: 0;
  color: #282d30;
  font: 500 23px/1.3 var(--ks-sans, Roboto, Arial, sans-serif);
  letter-spacing: -.02em;
}

[data-ks-brands-carousel] .ks-brands-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[data-ks-brands-carousel][data-carousel-ready] .ks-brands-viewport {
  overflow: hidden;
  overflow: clip;
}

[data-ks-brands-viewport][data-can-drag] {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

[data-ks-brands-viewport][data-can-drag] .ks-brand-logo {
  cursor: inherit;
}

[data-ks-brands-viewport][data-dragging] {
  cursor: grabbing;
}

[data-ks-brands-viewport]:focus-visible,
:is(#footer, body) [data-ks-brands-carousel] .ks-brand-logo:focus-visible {
  outline: 2px solid var(--ks-brands-accent);
  outline-offset: -3px;
}

[data-ks-brands-carousel] .ks-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(#footer, body) [data-ks-brands-carousel][data-carousel-ready] .ks-brands-grid {
  display: flex;
  gap: 0;
}

:is(#footer, body) [data-ks-brands-carousel][data-carousel-ready] [data-ks-brands-track].ks-brands-grid > li {
  flex: 0 0 calc(100% / var(--ks-brands-items));
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

[data-ks-brands-carousel] .ks-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 10px 16px;
  border-inline-end: 1px solid #edf0f1;
  background: #fff;
  text-decoration: none;
}

[data-ks-brands-carousel] .ks-brand-logo:hover {
  background: #f8f9f9;
}

[data-ks-brands-carousel] .ks-brand-logo img {
  display: block;
  width: 100%;
  max-width: 138px;
  height: 56px;
  object-fit: contain;
}

:is(#footer, body) [data-ks-brands-carousel] .ks-brand-logo[data-ks-brand-title="azmet"] img {
  max-width: 100px;
}

:is(#footer, body) [data-ks-brands-carousel] .ks-brand-logo[data-ks-brand-title="sadolin"] img {
  height: 72px;
}

:is(#footer, body) [data-ks-brands-carousel] .ks-brand-logo[data-ks-brand-title="koopmans"] img {
  max-width: 130px;
  height: 64px;
}

@media (max-width: 767px) {
  [data-ks-brands-carousel] {
    padding-block: 24px;
  }

  [data-ks-brands-carousel] .ks-brands-heading {
    margin-bottom: 14px;
  }

  [data-ks-brands-carousel] .ks-brands-heading h2 {
    font-size: 21px;
  }

  [data-ks-brands-carousel] .ks-brand-logo {
    min-height: 84px;
    padding: 8px 10px;
  }

  [data-ks-brands-carousel] .ks-brand-logo img {
    height: 42px;
  }

  :is(#footer, body) [data-ks-brands-carousel] .ks-brand-logo[data-ks-brand-title="sadolin"] img {
    height: 60px;
  }

  :is(#footer, body) [data-ks-brands-carousel] .ks-brand-logo[data-ks-brand-title="koopmans"] img {
    height: 50px;
  }
}

@media (max-width: 575px) {
  [data-ks-brands-carousel] {
    --ks-brands-columns: 2;
  }
}
