/* ظرف کلی */
.gfap-wrap { display: inline-block; }

.gfap-button {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79,70,229,.35);
  transition: transform .12s ease, box-shadow .2s ease;
}
.gfap-button:hover { transform: translateY(-1px); }
.gfap-button:active { transform: translateY(0); box-shadow: 0 3px 12px rgba(79,70,229,.35); }

.gfap-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 9998;
}

.gfap-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(720px, 92vw);
  max-height: 86vh;
  transform: translate(-50%, -46%) scale(.96);
  opacity: 0;
  visibility: hidden;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transition: opacity .2s ease, transform .22s ease, visibility .2s ease;
  z-index: 9999;
  overflow: hidden;
}

.gfap-modal-body {
  padding: 20px 22px;
  overflow: auto;
  max-height: 86vh;
}

.gfap-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
  padding:0px !important;
}
.gfap-close:hover { background: rgba(15, 23, 42, 0.12); }

.gfap-overlay.is-open { opacity: 1; visibility: visible; }
.gfap-modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 480px) {
  .gfap-modal-body { padding: 16px; }
  .gfap-button { width: 100%; }
}


/* Prevent initial flash of modal/overlay before JS hooks */
.gfap-overlay,
.gfap-modal {
  display: none;
}
.gfap-overlay.is-open,
.gfap-modal.is-open {
  display: block;
}
