/* Smart Bundle Products - Frontend Styles */

/* Style for bundled product images */
.product-bundle-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}


.product-bundle-images img {
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-bundle-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Modal overlay for enlarged image */
.bundle-image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

/* Container for image and close button */
.modal-image-container {
  position: relative;
  display: inline-block;
}

/* Enlarged image */
.modal-image-container img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: block;
  margin: auto;
}

/* Close button for modal */
.modal-image-container .close-button {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
  z-index: 1001;
  pointer-events: auto;
}

.modal-image-container .close-button:hover {
  background: #e0e0e0;
}

/* Responsive adjustments for modal */
@media (max-width: 600px) {
  .modal-image-container img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .modal-image-container .close-button {
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    font-size: 16px;
    line-height: 25px;
  }
}

/* Bundle Announcement Styles */
.bundle-announcement {
  position: fixed;
  z-index: 10000;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.bundle-announcement-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bundle-announcement-close {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 10001;
  pointer-events: auto;
}

.bundle-announcement-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* Ensure the announcement is above other elements */
@media (max-width: 600px) {
  .bundle-announcement {
    max-width: calc(100% - 20px);
  }

  .bundle-announcement-image img {
    width: 60px;
    height: 60px;
  }

  .bundle-announcement {
    font-size: 13px;
  }
}
