/* Homepage Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Simulate Fancybox Wrapper */
.fancybox-wrap {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 90% !important;
  max-width: 600px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.fancybox-inner {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  position: relative;
  width: 100% !important;
  height: auto !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.it429-fancybox-close {
  position: absolute;
  top: -12px; /* Adjusted to sit nicely on corner */
  right: -12px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.8); /* Darker background */
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.it429-fancybox-close:hover {
  background: #000;
}

/* Carousel Styles */
.it429-owl-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.owl-stage-outer {
  overflow: hidden;
}

.owl-stage {
  display: flex;
  transition: transform 0.5s ease;
}

.owl-item {
  flex: 0 0 100%;
  width: 100%;
}

.it429_item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Dots */
.owl-dots {
  text-align: center;
  margin-top: 10px;
}

.owl-dot {
  display: inline-block;
  width: 8px; /* Reduced from 10px for PC */
  height: 8px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background-color 0.2s;
}

.owl-dot.active {
  background: #ff6b00;
}

/* Today Not Show */
.it429-todayNotShow {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.it429-todayNotShow input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.it429-todayNotShow label {
  cursor: pointer;
  user-select: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .fancybox-wrap {
    width: 95% !important;
  }
  
  .fancybox-inner {
    padding: 10px;
  }

  .owl-dot {
    width: 6px;
    height: 6px;
    margin: 0 3px;
  }

  .it429-fancybox-close {
    width: 24px;
    height: 24px;
    font-size: 12px;
    top: -10px;
    right: -10px;
  }
}
