html.plb-open { overflow: hidden; }

.plb-modal[hidden] { display: none; }

.plb-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.plb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
}

.plb-box {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}

.plb-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.plb-body .product {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.plb-body .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  opacity: 1 !important;
}

.plb-body .summary {
  width: 100% !important;
  float: none !important;
}

.plb-body .plb-added,
.plb-body .plb-loading,
.plb-body .plb-error {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 768px) {
  .plb-box { padding: 20px 15px; }
  .plb-body .product { grid-template-columns: 1fr; gap: 20px; }
}