/**
 * Featured brand partners carousel only.
 * Scoped to shortcode output — NOT the Bricks wrapper.
 *
 * In Bricks: do NOT add vdd-featured-* classes to the shortcode element.
 * Only the inner HTML from [vdd_featured_brand_partners] should carry them.
 */

/* Reset Bricks shortcode wrapper if carousel global classes were added by mistake */
.brxe-shortcode[class*="vdd-featured-"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  flex: unset !important;
  grid-template-columns: unset !important;
  gap: unset !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  visibility: visible !important;
}

.brxe-shortcode > .vdd-featured-carousel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.brxe-shortcode .vdd-featured-carousel-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.brxe-shortcode .vdd-featured-carousel-track {
  display: flex;
  min-width: 0;
  transition: transform 0.35s ease;
  will-change: transform;
}

.brxe-shortcode .vdd-featured-slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.brxe-shortcode .vdd-featured-brand-card {
  width: 100%;
  max-width: 292px;
  height: 128px;
  justify-self: center;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 34px;
  overflow: hidden;
  box-sizing: border-box;
}

.brxe-shortcode .vdd-featured-brand-card--spacer {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
}

.brxe-shortcode .vdd-featured-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  text-decoration: none;
}

.brxe-shortcode .vdd-featured-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.brxe-shortcode .vdd-featured-brand-logo img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.brxe-shortcode .vdd-featured-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.brxe-shortcode .vdd-featured-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.brxe-shortcode .vdd-featured-dot.is-active {
  background: #fff;
}

@media (max-width: 767px) {
  .brxe-shortcode .vdd-featured-slide {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .brxe-shortcode .vdd-featured-brand-card,
  .brxe-shortcode .vdd-featured-brand-card--spacer {
    max-width: 292px;
    margin-left: auto;
    margin-right: auto;
  }
}
