/* Standalone Form Image Carousel CSS (independent of page CSS)
   Provides slide-out/in animations used by the external JS module.
   Scope kept minimal to avoid leaking styles. */

/* Slide-out / Slide-in animation used when changing the preview image */
@keyframes _fic_slide-out-left {
  0% {
    transform: translateX(0%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(25%) scale(0.98);
    opacity: 0;
  }
}

@keyframes _fic_slide-in-right {
  0% {
    transform: translateX(-25%) scale(0.98);
    opacity: 0;
  }

  100% {
    transform: translateX(0%) scale(1);
    opacity: 1;
  }
}

/* Fade-out / Fade-in animation */
@keyframes _fic_fade-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes _fic_fade-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Classes toggled by the module */
._fic_slide-out {
  animation: _fic_slide-out-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

._fic_slide-in {
  animation: _fic_slide-in-right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

._fic_fade-out {
  animation: _fic_fade-out 0.3s ease-in forwards !important;
}

._fic_fade-in {
  animation: _fic_fade-in 0.3s ease-out forwards !important;
}

#ccf-isolated-container [data-fic-main-image],
#ccf-isolated-container .ccf-product-main-image {
  transition: transform 0.3s ease-in-out;
}

#ccf-isolated-container [data-fic-main-image]:hover,
#ccf-isolated-container .ccf-product-main-image:hover {
  transform: scale(1.10) !important;
  /* Zoom in 10% more than its real size on mouse over */
  z-index: 10;
  /* Bring the image to front on hover */
}



/* CCF-UPLOADER-FIX-START */
#ccf-isolated-container .results-section {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: 10px !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow-y: visible !important;
  transition: none !important;
}

#ccf-isolated-container .results-section.active {
  max-height: none !important;
  opacity: 1 !important;
  overflow-y: visible !important;
}

#ccf-isolated-container .results-section>.file-result-item,
#ccf-isolated-container .file-result-item {
  width: 100% !important;
  max-width: 480px !important;
  box-sizing: border-box !important;
  margin: 6px auto !important;
  float: none !important;
  clear: both !important;
}

#ccf-isolated-container .results-section * {
  float: none !important;
  clear: both !important;
}

/* CCF-UPLOADER-FIX-END */

/* Product-specific suffixed text animations (unique suffix: 92746130518207439)
   These classes are added/removed by the product's JS and reuse the keyframes
   already defined above to avoid duplicating keyframe definitions. */
._ccf_fade-out-92746130518207439 {
  animation: _fic_fade-out 0.4s ease-in forwards !important;
}
._ccf_fade-in-92746130518207439 {
  animation: _fic_fade-in 0.4s ease-out forwards !important;
}
._ccf_text-slide-out-92746130518207439 {
  animation: _fic_slide-out-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}
._ccf_text-slide-in-92746130518207439 {
  animation: _fic_slide-in-right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

/* Fixed-width carousel column on desktop (450px) and full-width on mobile */
@media (min-width: 900px) {
  #ccf-isolated-container .ccf-product-image-container {
    width: 450px;
    flex: 0 0 450px;
    max-width: 450px;
    box-sizing: border-box;
  }
  /* Ensure layout alignment when using fixed column */
  #ccf-isolated-container .ccf-main-layout-container {
    align-items: start;
  }
}

@media (max-width: 899px) {
  #ccf-isolated-container .ccf-product-image-container {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Keep caption title on a single line by default; JS will reduce font-size to avoid truncation */
#ccf-isolated-container .ccf-image-text-below-image .ccf-product-category-title {
  /* Keep single-line layout; JS will reduce font-size to avoid truncation.
     Use !important to override other product CSS that applies ellipsis. */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  display: block;
  max-width: 100% !important;
}

/* Hover zoom: 1s accelerated zoom-in and smooth return when mouse leaves.
   Uses a fast ease-in curve so the enter feels accelerated and a smooth return
   because transition applies in both directions from current transform. */
#ccf-isolated-container [data-fic-main-image],
#ccf-isolated-container .ccf-product-main-image {
  will-change: transform;
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.2, 1);
}
#ccf-isolated-container [data-fic-main-image]:hover,
#ccf-isolated-container .ccf-product-main-image:hover {
  transform: scale(1.12) !important;
  /* Keep below .ccf-form-options-container (z-index: 2) so zoom never covers the form */
  z-index: 1;
}

/* Accessibility: reduce/disable animations when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  ._ccf_slide-out, ._ccf_slide-in,
  ._ccf_text-slide-out-92746130518207439, ._ccf_text-slide-in-92746130518207439,
  ._ccf_fade-in-92746130518207439, ._ccf_fade-out-92746130518207439 {
    animation-duration: 0.001s !important;
    transition-duration: 0.01s !important;
  }
  #ccf-isolated-container [data-fic-main-image],
  #ccf-isolated-container .ccf-product-main-image {
    transition-duration: 0.01s !important;
  }
}

