@charset "UTF-8";
/* ============================================================
   5werk Color Swatches – Circle Style v2
   ============================================================ */
/* --- Container --- */
.fwerk-swatches {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin-bottom: 1rem;
}
.fwerk-swatches--single {
  gap: 0.75rem;
  margin-bottom: 0;
  margin-top: 1rem;
}
.fwerk-swatches--single .fwerk-swatch circle {
  width: 70%;
  height: 70%;
}
.fwerk-swatches--archive {
  margin-top: 0.5rem;
  justify-content: center;
}
.fwerk-swatches--archive .fwerk-swatch {
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
}
.fwerk-swatches--archive .fwerk-swatch--icon img,
.fwerk-swatches--archive .fwerk-swatch--icon span, .fwerk-swatches--archive .fwerk-swatch--3d img,
.fwerk-swatches--archive .fwerk-swatch--3d span {
  width: 2rem;
  height: 2rem;
}
.fwerk-swatches--archive .fwerk-swatch--3d img {
  position: relative;
  right: -0.0625rem;
}

/* --- Base swatch: color circle --- */
.fwerk-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2), 0 0 0.0625rem rgba(0, 0, 0, 0.02);
  transition: box-shadow 180ms ease, transform 120ms ease;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  /* Icon / 3D variants */
}
.fwerk-swatch circle {
  width: 66%;
  height: 66%;
  border-radius: 100%;
}
.fwerk-swatch:hover, .fwerk-swatch:focus-visible {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.18), 0 0 0 0.0625rem rgba(0, 0, 0, 0.08);
}
.fwerk-swatch:hover {
  transform: scale(1.08);
}
.fwerk-swatch:focus-visible {
  transform: scale(1.16);
}
.fwerk-swatch--active {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.18), 0 0 0 0.0625rem rgba(0, 0, 0, 0.08);
  transform: scale(1.16);
}
.fwerk-swatch--icon, .fwerk-swatch--3d {
  background: transparent;
}
.fwerk-swatch--icon img, .fwerk-swatch--3d img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  pointer-events: none;
}
.fwerk-swatch--icon circle.hand-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}
.fwerk-swatch--icon img.hand {
  width: 77%;
  height: 77%;
}
.fwerk-swatch--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* --- 3D Video overlay --- */
.fwerk-3d-hidden {
  visibility: hidden !important;
}

.fwerk-3d-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
}

/* --- Hide the original WooCommerce select when swatches are present --- */
.fwerk-swatch-select {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* --- Layered Video Support (Overlapping Transition) --- */
.fwerk-layered-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Same as .fwerk-3d-video */
  pointer-events: none;
  background: #fff;
  /* Opaque background to hide underlying image */
  /* Let clicks pass through */
}

.fwerk-layered-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* transition removed for direct switch */
  transform: translateZ(0);
}

.fwerk-layered-video--active {
  opacity: 1;
  z-index: 1;
}