/* Overlay */
.nastpopup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
}

/* Modal (responsive) */
.nastpopup-modal{
  position: fixed;
  z-index: 9999;
  max-width: 560px;
  width: min(92vw, 560px);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 18px 18px 14px;
  -webkit-overflow-scrolling: touch;
}

.nastpopup-modal.pos-center{ top: 50%; left: 50%; transform: translate(-50%, -50%); }
.nastpopup-modal.pos-bottom-left{ left: 16px; bottom: 16px; transform: none; }
.nastpopup-modal.pos-bottom-right{ right: 16px; bottom: 16px; transform: none; }

.nastpopup-close{
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 26px;
  cursor: pointer;
  padding: 6px;
}

.nastpopup-header h3{
  margin: 0 0 10px 0;
  font-size: 20px;
  padding-right: 36px;
}

/* Image centered */
.nastpopup-image-wrap{
  margin: 10px 0 12px;
  text-align: center;
}
.nastpopup-image{
  display:block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
}

.nastpopup-content{
  font-size: 14px;
  line-height: 1.35;
}

.nastpopup-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 480px){
  .nastpopup-modal{
    width: 94vw;
    padding: 16px 14px 12px;
    border-radius: 12px;
    max-height: 85vh;
  }
  .nastpopup-header h3{ font-size: 18px; }
  .nastpopup-actions{ justify-content: stretch; }
  .nastpopup-actions .btn{ width: 100%; }
}
