/**
 * Müşteri auth SweetAlert2 — GLOBAL (sıfır scope)
 *
 * auth.css içindeki Swal blokları eticaret-css.php tarafından .auth-page ile önekleniyor;
 * SweetAlert kutusu ise body altında oluştuğu için o kurallar uygulanmıyordu.
 *
 * Navbar: z-index ~2147483000 | navbar-right Ajax overlay: ~2147483002
 */

/* Navbar / Ajax overlay üstünde; Tamam ve backdrop tıklanabilsin */
.swal2-container,
.swal2-container .swal2-popup,
.swal2-container .swal2-popup .swal2-actions,
.swal2-container .swal2-popup .swal2-actions button {
  pointer-events: auto !important;
}
.swal2-container {
  z-index: 2147485005 !important;
}

.swal2-container .swal2-popup.auth-swal-popup {
  border-radius: 24px !important;
  font-family: inherit !important;
  padding: 1.9rem 2rem 1.7rem !important;
  width: min(40em, 96vw) !important;
  max-width: 96vw !important;
}

.swal2-container .auth-swal-popup .swal2-icon {
  width: 5.25rem !important;
  height: 5.25rem !important;
  margin: 0.5rem auto 1.1rem !important;
}
.swal2-container .auth-swal-popup .swal2-icon .swal2-icon-content {
  font-size: 3.5rem !important;
}

.swal2-container .auth-swal-popup .swal2-title {
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: #1a1f2b !important;
  line-height: 1.28 !important;
  margin: 0 0 0.6rem !important;
}

.swal2-container .auth-swal-popup .swal2-html-container,
.swal2-container .auth-swal-popup #swal2-html-container {
  font-size: 1.25rem !important;
  line-height: 1.62 !important;
  color: #4b5563 !important;
  margin: 0.4rem 1rem 0 !important;
}

.swal2-container .auth-swal-popup .swal2-actions {
  margin-top: 1.55rem !important;
  z-index: 2 !important;
  position: relative !important;
  pointer-events: auto !important;
}

.swal2-container .auth-swal-popup .swal2-styled.swal2-confirm {
  font-size: 1.18rem !important;
  font-weight: 600 !important;
  padding: 0.85rem 2rem !important;
  border-radius: 12px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative !important;
  z-index: 3 !important;
}

/* Toastlar */
.swal2-container.swal2-bottom-end .swal2-popup.auth-swal-toast.swal2-toast,
.swal2-container .swal2-popup.auth-swal-toast.swal2-toast {
  border-radius: 14px !important;
  padding: 0.95rem 1.05rem !important;
}

.swal2-container .auth-swal-toast .swal2-title {
  font-size: 1.18rem !important;
  font-weight: 600 !important;
}

.swal2-container .auth-swal-toast .swal2-html-container {
  font-size: 1.08rem !important;
}

/* ============================================================
   Custom flash modal (.ef-modal) — SweetAlert2'nin masaüstü
   Tamam butonu kapanma sorununa karşı bağımsız implementasyon.
   ============================================================ */
.ef-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147485050; /* swal2-container (2147485005) üstünde */
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}
.ef-modal.open {
  display: flex;
}
.ef-modal .ef-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 30, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}
.ef-modal .ef-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 2.2rem 2rem 1.7rem;
  width: min(40em, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  animation: efPop 0.18s ease-out;
}
@keyframes efPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.ef-modal .ef-x {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.ef-modal .ef-x:hover {
  background: #f3f4f6;
  color: #111827;
}
.ef-modal .ef-icon {
  width: 84px;
  height: 84px;
  margin: 0.4rem auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ef-modal .ef-icon svg {
  width: 48px;
  height: 48px;
}
.ef-modal .ef-icon--error    { background: #fde8e8; color: #c92a2a; }
.ef-modal .ef-icon--success  { background: #e6f7ee; color: #1a7f54; }
.ef-modal .ef-icon--info     { background: #e0f2fe; color: #075985; }
.ef-modal .ef-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1a1f2b;
  line-height: 1.28;
  margin: 0 0 0.7rem;
}
.ef-modal .ef-text {
  font-size: 1.25rem;
  line-height: 1.62;
  color: #4b5563;
  margin: 0 0.5rem 1.6rem;
}
.ef-modal .ef-ok {
  background: var(--primary, #14b88a);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 2.2rem;
  font-size: 1.18rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.06s;
  font-family: inherit;
  min-width: 140px;
}
.ef-modal .ef-ok:hover {
  background: var(--primary-700, #0f7c5a);
}
.ef-modal .ef-ok:active {
  transform: scale(0.97);
}
