.wppd-wrap {
  margin: 20px 0;
}

.wppd-heading {
  margin: 0 0 12px;
}

.wppd-stage {
  position: relative;
  touch-action: none;
  overscroll-behavior: contain;
  max-width: 520px;
  width: 100%;
  margin-bottom: 14px;
}

.wppd-product-image {
  display: block;
  width: 100%;
  height: auto;
}

.wppd-print-area {
  position: absolute;
  border: 2px dashed #d90429;
  overflow: hidden;
  touch-action: none;
  box-sizing: border-box;
  background: rgba(255,255,255,0.02);
  z-index: 3;
}

.wppd-print-area-label {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 7px;
  background: rgba(217, 4, 41, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 4px;
  pointer-events: none;
  z-index: 4;
}

.wppd-user-image {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  max-width: none !important;
  max-height: none !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.wppd-actions {
  margin-bottom: 10px;
}

.wppd-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #111827;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.wppd-upload-button input {
  display: none;
}

.wppd-description {
  margin: 10px 0 0;
}

.wppd-message {
  margin-top: 8px;
  font-weight: 600;
}

.wppd-message.is-error {
  color: #b00020;
}

.wppd-message.is-success {
  color: #0f7a2b;
}

.wppd-hidden-fields {
  display: none !important;
}

@media (max-width: 767px) {
  .wppd-stage {
    max-width: 100%;
  }
}


.wppd-gallery-replacement {
  width: 100%;
}

.wppd-gallery-replacement .wppd-wrap {
  margin: 0;
}

.wppd-gallery-replacement .wppd-heading {
  margin: 0 0 12px;
}

.woocommerce div.product div.images .wppd-gallery-replacement .wppd-stage,
.woocommerce-page div.product div.images .wppd-gallery-replacement .wppd-stage {
  max-width: 100%;
}

.wppd-short-description-copy {
  margin: 14px 0 0;
}

.wppd-after-upload-text {
  display: none !important;
}
