/**
 * Standaard opmaak voor de foto-swatch kleurfamilie-carousel op de
 * productpagina. Themes hoeven dit niet meer zelf te leveren — deze CSS
 * wordt door de module zelf ingeladen (zie TckProductFamily::renderWidget()).
 */
.tckproductfamily-carousel .tckproductfamily-carousel-row {
  position: relative;
  display: flex;
  align-items: center;
}

.tckproductfamily-carousel-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  gap: 0.75rem;
  padding: 0.25rem 0;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.tckproductfamily-carousel.is-scrollable .tckproductfamily-carousel-list {
  padding: 0.25rem 2.25rem;
}

.tckproductfamily-carousel-list::-webkit-scrollbar {
  height: 4px;
}

.tckproductfamily-carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.tckproductfamily-carousel-item a:focus {
  outline: 0px;
  outline-offset: -2px;
}

.tckproductfamily-carousel-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  margin: 0;
  text-decoration: none;
}

.tckproductfamily-carousel-item-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tckproductfamily-carousel-thumb {
  position: relative;
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  background-color: #f6f6f6;
  background-size: cover;
  background-position: center;
  border: 1px solid #979797;
  border-radius: 2px;
}

.tckproductfamily-carousel-item-current .tckproductfamily-carousel-thumb {
  border: 2px solid #000;
}

.tckproductfamily-carousel-label:hover .tckproductfamily-carousel-thumb {
  border-color: #000;
}

.tckproductfamily-carousel-caption {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #000;
  max-width: 100px;
  margin-left: auto;
  margin-right: auto;
}

.tckproductfamily-carousel-item-current .tckproductfamily-carousel-caption {
  font-weight: 700;
}

.tckproductfamily-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: #fff;
  border: 1px solid #979797;
  border-radius: 50%;
  cursor: pointer;
}

.tckproductfamily-carousel-arrow .material-icons {
  color: #000 !important;
}

.tckproductfamily-carousel.is-scrollable .tckproductfamily-carousel-arrow {
  display: flex;
}

.tckproductfamily-carousel-arrow-prev {
  left: 0;
}

.tckproductfamily-carousel-arrow-next {
  right: 0;
}
