/* ==========================================
   1. Popup Modal CSS (पुराना डिज़ाइन)
   ========================================== */
.sdev-sr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 999998;
}
.sdev-sr-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 999999;
  text-align: center;
  max-width: 400px;
  width: 90%;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sdev-sr-title {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 600;
  color: #d63638;
}
.sdev-sr-message {
  margin: 0 0 20px;
  font-size: 15px;
  color: #3c434a;
  line-height: 1.5;
}
.sdev-sr-btn {
  background: #2271b1;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.sdev-sr-btn:hover {
  background: #135e96;
}

/* ==========================================
   2. Frontend Watermark CSS (Text & Image Logo)
   ========================================== */
.sdev-watermark-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0; /* यह लाइन फोटो के नीचे आने वाले अतिरिक्त खाली स्पेस (gap) को हटाती है */
}

/* Text Watermark (टेक्स्ट वाला वॉटरमार्क) */
.sdev-watermark-text {
  position: absolute;
  pointer-events: none;
  color: #ffffff;
  background: #000000;
  padding: 2px 5px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  z-index: 10;
  user-select: none;
  white-space: nowrap;
  font-family: inherit;
  line-height: normal; /* Wrapper की line-height 0 से इसे बचाने के लिए */
}

/* Image Logo Watermark (लोगो वाला वॉटरमार्क) - FIX */
.sdev-watermark-img {
  position: absolute;
  pointer-events: none;
  max-width: 15%; /* फिक्स px की जगह 25% ताकि यह हमेशा असली फोटो से छोटा रहे */
  max-height: 15%;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 10;
  user-select: none;
}

/* Positions (पोज़िशन) */
.pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.sdev-watermark-text.pos-center {
  font-size: 18px;
  padding: 8px 15px;
}
.sdev-watermark-img.pos-center {
  max-width: 40%;
  max-height: 40%;
} /* बीच में लोगो थोड़ा बड़ा (40%) दिखेगा */

/* कोनों (Corners) की पोज़िशन */
.pos-bottom_right {
  bottom: 10px;
  right: 10px;
}
.pos-bottom_left {
  bottom: 10px;
  left: 10px;
}
.pos-top_right {
  top: 10px;
  right: 10px;
}
.pos-top_left {
  top: 10px;
  left: 10px;
}

/* ==========================================
   3. Print Watermark CSS
   ========================================== */
.sdev-print-watermark,
.sdev-print-watermark-img {
  display: none;
}

@media print {
  .sdev-print-watermark {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 70px;
    color: #777777;
    font-weight: bold;
    z-index: 999999;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    text-align: center;
    line-height: 1.2;
  }
  .sdev-print-watermark-img {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    max-height: 70%;
    z-index: 999999;
    pointer-events: none;
    user-select: none;
  }
}
