/* Wrapper for styling */
.wcpd-frontend-wrap {
  margin-right: 5px;
}

/* Edit Mode Button */
.wcpd-save-customization-btn {
  width: 100% !important;
  white-space: nowrap;
  text-align: center;
}

/* Slick Slides */
.wcpd-font-slide,
.wcpd-clipart-slide,
.wcpd-color-slide {
  display: inline-block;
  padding: 10px;
  border: 1px solid #eee;
  cursor: pointer;
  text-align: center;
  margin: 0 5px;
  white-space: normal;
}

.wcpd-font-slide.slick-current,
.wcpd-clipart-slide.slick-current,
.wcpd-color-slide.slick-current {
  border-color: #007cba;
  background-color: #f0f7fc;
}

.wcpd-color-slide {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  margin: 5px;
  flex-shrink: 0;
  box-sizing: border-box !important;
  display: inline-block !important;
  /* Slick sometimes overrides this */
}

/* Fix for slick track stretching */
.wcpd-color-selector .slick-track {
  display: flex;
  align-items: center;
}

/* Target Slick Current for Highlight */
.wcpd-font-slide.slick-current,
.wcpd-clipart-slide.slick-current,
.wcpd-color-slide.slick-current {
  border: 2px solid #007cba !important;
  /* Force border */
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  /* Ensure background is reset or kept */
  background-color: #f0f7fc;
  /* Optional highlight bg */
}

.wcpd-font-selector,
.wcpd-clipart-selector,
.wcpd-color-selector {
  margin-bottom: 10px;
}

/* Overlay Visuals */
.wcpd-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Let clicks pass through unless interactive */
  z-index: 10;
}

/* Layering Support */
.wcpd-overlay-container.wcpd-overlay-behind {
  z-index: 1; /* Below product image (which should be z-index 5) */
}

.wcpd-overlay-container.wcpd-overlay-front {
  z-index: 10; /* Above product image */
}

/* Enhance Product Image Interaction */
img.wcpd-product-image-layered {
  position: relative;
  z-index: 5 !important;
  pointer-events: none; /* Allow clicks to pass through to behind layer IF there's something to click */
  /* Note: If we set pointer-events: none, we can't context-menu save image easily, but that's standard for designers */
  /* Checks: Does this break anything? */
  /* If user needs to interact with 'front' layer, z-index 10 handles it. */
  /* If user needs to interact with 'behind' layer, pointer-events:none on image allows it. */
}

.wcpd-overlay-box {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  /* Subtle border */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.wcpd-overlay-box.wcpd-active {
  border: 1px dashed #007cba;
}

.wcpd-overlay-content {
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcpd-overlay-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Slick Arrow Styling */
/* .slick-prev,
.slick-next {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #007cba;
    z-index: 10;
}

.slick-prev:hover,
.slick-next:hover {
    background-color: #005a88;
}

.slick-prev:before,
.slick-next:before {
    font-size: 16px;
    color: #fff;
    opacity: 1;
}

.slick-prev {
    left: -10px;
}

.slick-next {
    right: -10px;
} */

/* Fix for cut-off borders/shadows during scale transform */
.slick-list {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin-top: -10px;
  /* Offset the padding to keep layout tight if needed, checking... actually padding is safer to just have space */
  /* Remove margin offset if we want visual space */
  margin: 0 -5px;
  /* Offset side margins of slides? No, let's just allow vertical space */
}

/* Ensure track allows content to overflow slightly if needed? Slick hard clips. Padding on slick-list is best way. */

/* Wrapper width adjustment to fit arrows? */
.wcpd-font-selector,
.wcpd-clipart-selector,
.wcpd-color-selector {
  margin-bottom: 10px;
  padding: 0 15px;
  /* Make room for arrows */
}

.wcpd-viewer-hidden {
  display: none !important;
}
