.tvc-brand-filter {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 20, 19, .12);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 20, 19, .06);
}

.tvc-brand-filter__rail {
  display: grid;
  grid-template-columns: 38px auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.tvc-brand-filter__label {
  display: block;
  margin: 0 0 9px 48px;
  color: #292b2a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tvc-brand-filter__viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}

.tvc-brand-filter__viewport::-webkit-scrollbar {
  display: none;
}

.tvc-brand-filter__track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
}

.tvc-brand-filter__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 132px;
  width: 132px;
  min-height: 70px;
  padding: 9px 10px;
  border: 1px solid rgba(18, 20, 19, .16);
  border-radius: 10px;
  background: #fff;
  color: #292b2a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.tvc-brand-filter__brand:hover,
.tvc-brand-filter__brand:focus-visible {
  border-color: #d8b200;
  background: #fff8d8;
  color: #121413;
  box-shadow: 0 4px 12px rgba(18, 20, 19, .09);
  text-decoration: none;
}

.tvc-brand-filter__brand.is-active {
  border-color: #121413;
  background: #fff8d8;
  color: #121413;
  box-shadow: inset 0 -3px #d8b200;
}

.tvc-brand-filter__logo-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 50px;
  min-width: 0;
  overflow: hidden;
}

.tvc-brand-filter__brand .tvc-brand-filter__logo-box > img.tvc-brand-filter__logo {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.tvc-brand-filter__brand[data-brand-key="14"] .tvc-brand-filter__logo-box {
  width: 108px;
  height: 52px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #292b2a;
}

.tvc-brand-filter__brand[data-brand-key="4"] .tvc-brand-filter__logo,
.tvc-brand-filter__brand[data-brand-key="bombo-bar-juice"] .tvc-brand-filter__logo {
  max-width: 92px;
  max-height: 50px;
}

.tvc-brand-filter__fallback {
  display: none;
  max-width: 96px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
}

.tvc-brand-filter__brand.has-logo-error .tvc-brand-filter__fallback {
  display: block;
}

.tvc-brand-filter__brand small {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(18, 20, 19, .09);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.tvc-brand-filter__brand.is-active small {
  background: rgba(18, 20, 19, .13);
}

.tvc-brand-filter__all {
  flex-basis: auto;
  width: auto;
  min-width: 76px;
  padding: 9px 14px;
}

.tvc-brand-filter__all.is-active {
  border-color: rgba(18, 20, 19, .28);
  background: #f1f2f1;
  color: #292b2a;
  box-shadow: inset 0 -3px #d8b200;
}

.tvc-brand-filter__category-title {
  margin-bottom: 16px;
}

.tvc-brand-filter__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(18, 20, 19, .18);
  border-radius: 50%;
  background: #292b2a;
  color: #fff;
  cursor: pointer;
}

.tvc-brand-filter__arrow span {
  display: block;
  margin-top: -2px;
  font-size: 28px;
  line-height: 1;
}

.tvc-brand-filter__arrow:disabled {
  opacity: .25;
  cursor: default;
}

.tvc-brand-filter:not(.tvc-brand-filter--scrollable) .tvc-brand-filter__arrow {
  visibility: hidden;
}

@media (max-width: 767.98px) {
  .tvc-brand-filter {
    display: block;
    margin-bottom: 14px;
    padding: 10px 0 10px 12px;
    overflow: hidden;
  }

  .tvc-brand-filter__label {
    display: block;
    margin: 0 0 9px 2px;
  }

  .tvc-brand-filter__rail {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .tvc-brand-filter__arrow {
    display: none;
  }

  .tvc-brand-filter__viewport {
    padding-right: 24px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tvc-brand-filter__track {
    min-width: max-content;
  }

  .tvc-brand-filter__brand {
    flex-basis: 118px;
    width: 118px;
    min-height: 64px;
    padding: 8px;
    scroll-snap-align: start;
  }

  .tvc-brand-filter__logo-box {
    width: 94px;
    height: 44px;
  }

  .tvc-brand-filter__brand[data-brand-key="14"] .tvc-brand-filter__logo-box {
    width: 96px;
    height: 46px;
    padding: 6px 9px;
  }

  .tvc-brand-filter__brand[data-brand-key="4"] .tvc-brand-filter__logo,
  .tvc-brand-filter__brand[data-brand-key="bombo-bar-juice"] .tvc-brand-filter__logo {
    max-width: 82px;
    max-height: 44px;
  }

  .tvc-brand-filter__all {
    flex-basis: auto;
    width: auto;
    min-width: 68px;
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tvc-brand-filter__viewport {
    scroll-behavior: auto;
  }

  .tvc-brand-filter__brand {
    transition: none;
  }
}
