/* =========================================================
   STOKDEPOM – SWEETALERT v1 FINAL OVERRIDE (BODY PREFIX)
   ========================================================= */

body .swal-overlay {
  background: rgba(15,23,42,.45) !important;
  backdrop-filter: blur(6px);
}

/* MODAL */
body .swal-overlay .swal-modal {
  width: calc(100% - 32px) !important;
  max-width: 460px !important;
  padding: 24px 8px 8px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(226,232,240,.9) !important;
  box-shadow: none !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* TITLE */
body .swal-overlay .swal-modal .swal-title {
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 6px 0 !important;
  padding: 0 !important;
  font-family: poppins!important;
}

/* TEXT */
body .swal-overlay .swal-modal .swal-text {
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #475569 !important;
  margin: 4px 0 0 0 !important;
}

/* =========================================================
   ICON FIX
   ========================================================= */

body .swal-overlay .swal-modal .swal-icon {
  margin: 10px auto 12px !important;
  transform: scale(.9);
}

/* SUCCESS – SADE CHECK */
body .swal-icon--success {
  border: none !important;
}

body .swal-icon--success__ring {
    background: #8BC34A;

}

body .swal-icon--success__line {
  background-color: #fff !important;
}

/* ERROR – KIRMIZI DAİRE + X */
body .swal-icon--error {
  border: 1px solid #dc2626;
  background: #dc2626;
}

body .swal-icon--error::before {
  content: "";
  width: 56px;
  height: 56px;
  background: #dc2626;
  border-radius: 50%;
  position: absolute;
  inset: 0;
  margin: auto;
}

body .swal-icon--error__x-mark {
  position: relative;
  z-index: 2;
}

body .swal-icon--error__line {
  background-color: #ffffff !important;
  height: 4px !important;
}

/* =========================================================
   FOOTER
   ========================================================= */

body .swal-overlay .swal-modal .swal-footer {
  background: #ffffff !important;
  border-top: none !important;
  margin-top: 4px !important;
  padding: 14px 0 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

/* BUTTON CONTAINER */
body .swal-overlay .swal-modal .swal-button-container {
  margin: 0 !important;
}

/* BUTTONS */
body .swal-overlay .swal-modal .swal-button {
  border-radius: 4px !important;
  padding: 8px 18px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  border: none !important;
  transition: all .15s ease !important;
}

/* HOVER */
body .swal-overlay .swal-modal .swal-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* CONFIRM */
body .swal-overlay .swal-modal .swal-button--confirm,
body .swal-overlay .swal-modal .swal-button--confirm.btn-theme-3 {
  background: #673ab7 !important;
  color: #ffffff !important;
}

/* SEPETE GİT */
body .swal-overlay .swal-modal .swal-button--cart,
body .swal-overlay .swal-modal .swal-button--cart.btn-theme-4 {
  background: #4CAF50 !important;
  color: #ffffff !important;
}

/* ERROR CONFIRM */
body .swal-overlay .swal-modal.sd-swal-error .swal-button--confirm {
  background: #dc2626 !important;
}

/* MOBILE */
@media (max-width: 480px) {
  body .swal-overlay .swal-modal {
    max-width: 100% !important;
  }

  body .swal-overlay .swal-modal .swal-footer {
    justify-content: right !important;
  }
}