/**
 * Building Technology logo strip carousel.
 * Loaded after theme + Additional CSS so it wins over the old wrap rules.
 */

.bt-logo-strip {
  padding: 28px 0 32px;
  background: #fff;
}

.bt-logo-strip__title {
  margin: 0 0 20px;
  font-family: "Atkinson Hyperlegible", sans-serif !important;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #0c3e69;
  letter-spacing: 0.01em;
}

.bt-logo-strip__carousel {
  position: relative;
  display: flex !important;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
}

.bt-logo-strip__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bt-logo-strip__viewport::-webkit-scrollbar {
  display: none;
}

.bt-logo-strip__logos,
.bt-logo-strip .bt-logo-strip__logos,
.bt-logo-strip .container .bt-logo-strip__logos {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  width: max-content !important;
  max-width: none !important;
  float: none !important;
}

.bt-logo-strip:not(.is-carousel) .bt-logo-strip__logos {
  justify-content: center !important;
  min-width: 100%;
  box-sizing: border-box;
}

.bt-logo-strip__item,
.bt-logo-strip .bt-logo-strip__item,
.bt-logo-strip .container .bt-logo-strip__item {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
  text-align: center;
}

.bt-logo-strip__nav {
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  color: #555;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.bt-logo-strip.is-carousel .bt-logo-strip__nav {
  display: inline-flex !important;
}

.bt-logo-strip__nav:disabled,
.bt-logo-strip__nav[aria-disabled="true"] {
  opacity: 0.28 !important;
  pointer-events: none;
}

.bt-logo-strip__chevron {
  display: block;
  width: 28px;
  height: 28px;
}

.bt-logo-strip__nav:hover,
.bt-logo-strip__nav:focus-visible {
  color: #222;
  outline: none;
}

.bt-logo-strip__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  min-height: 14px;
}

.bt-logo-strip.is-carousel .bt-logo-strip__dots {
  display: flex !important;
}

.bt-logo-strip__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfcfcf;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.bt-logo-strip__dot.is-active {
  background: #1f1f1f;
}

.bt-logo-strip__img,
.bt-logo-strip__img--solo,
.bt-logo-strip .bt-logo-strip__item img {
  display: block !important;
  height: auto !important;
  width: auto !important;
  max-height: 75px !important;
  max-width: none !important;
  margin: 0 auto;
  object-fit: contain;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
}

.bt-logo-strip__img--hover-swap {
  cursor: pointer;
}

/* Kill legacy Additional CSS wrap / 50% grid on all breakpoints */
@media (max-width: 1024px) {
  .bt-logo-strip__logos,
  .bt-logo-strip .bt-logo-strip__logos,
  .bt-logo-strip .container .bt-logo-strip__logos {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: max-content !important;
  }

  .bt-logo-strip__item,
  .bt-logo-strip .bt-logo-strip__item,
  .bt-logo-strip .container .bt-logo-strip__item {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .bt-logo-strip .bt-logo-strip__item img {
    max-width: none !important;
    width: auto !important;
  }
}

@media (max-width: 767.98px) {
  .bt-logo-strip__carousel {
    padding: 0 2px;
  }

  .bt-logo-strip__nav {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    color: #444;
  }

  .bt-logo-strip__chevron {
    width: 26px;
    height: 26px;
  }

  .bt-logo-strip__logos {
    gap: 22px !important;
    padding: 8px 6px !important;
  }

  .bt-logo-strip .bt-logo-strip__item img {
    max-height: 58px !important;
  }
}

@media (max-width: 991.98px) {
  .bt-logo-strip__title {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .bt-logo-strip {
    padding: 20px 0 24px;
  }
}
