/* Product Popup Link - Front styles */
.ppl-no-scroll {
  overflow: hidden !important;
}

.ppl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999; /* above most themes */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ppl-overlay.ppl-open {
  opacity: 1;
  visibility: visible;
}

.ppl-modal {
  position: relative;
  width: 90%;
  height: 80vh;
  max-width: 1080px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ppl-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 18px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.ppl-close:hover,
.ppl-close:focus {
  background: rgba(0,0,0,0.75);
  outline: none;
}

.ppl-content {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  min-height: 0; /* for flexbox with iframe */
}

.ppl-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .ppl-modal {
    width: 100%;
    height: 90vh;
    border-radius: 0;
  }
}

/* Optional wrapper adjustments if needed by theme */
.productpopuplink-wrapper {
  margin-top: 10px;
}

/* If theme button classes differ, you can override here */
.productpopuplink-open.btn {
  white-space: nowrap;
}
