/* Overlay background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup box */
.popup-box {
  width: 400px;
  height: 600px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}
.popup-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#popupTimer {
  font-weight: bold;
  color: red;
}

/* Grid */
.image-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.timer-box {
  width: 200px;
  text-align: center;
  cursor: pointer;
}
.timer-box img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 10px;
}

/* Popup box */
.popup-box {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 800px;
  max-height: 600px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.popup-header {
  text-align: center;
  padding: 6px;
  font-weight: bold;
  background: #f5f5f5;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
}

/* Iframe */
.popup-box iframe {
  flex: 1;
  width: 100%;
  border: none;
}


/* popup basic */
#popupOverlay {
  position: fixed;
  inset: 0;
  display: none; /* JS खोलेगा */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  padding: 20px;
}

/* popup box */
.popup-box {
  position: relative;
  width: 380px;
  max-width: 96%;
  background: #fff;
  color: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  padding: 12px;
}

/* Close button (large, visible) */
.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1002;
  display: none; /* initially hidden; JS दिखाएगा */
  border: none;
  background: #222;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* header wait text */
.wait-line {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wait-text {
  color: #ff9800;
  font-size: 15px;
}

.wait-seconds {
  color: #e74c3c;
  font-size: 16px;
  font-weight: 900;
}

/* suffix small 's' */
.sec-suffix { font-size:14px; color:#555; }

/* iframe */
.popup-body iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
  border-radius: 6px;
  background: #fff;
}

/* responsive smaller */
@media (max-width:420px) {
  .popup-box { width: 320px; padding:10px; }
  .popup-body iframe { height: 220px; }
}
