/* ============================================================
 * PETPELIA 공통 SweetAlert2 테마 (/js/common/alert.js 전용)
 * - 알림은 $alert / $confirm / $toast 등 공통 함수로만 띄운다.
 * - 버튼은 buttonsStyling:false + 아래 클래스로만 스타일링한다.
 * - 테마: .admin-alert-theme(관리자, primary blue)
 *         .customer-alert-theme(사용자, PETPELIA red)
 * ============================================================ */

.pp-swal-popup {
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  font-family: inherit;
  box-shadow: 0 12px 32px rgb(15 23 42 / 0.14);
}
.pp-swal-title {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 700;
  word-break: keep-all;
}
.pp-swal-text {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.pp-swal-actions {
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.pp-swal-confirm,
.pp-swal-cancel {
  border-radius: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

/* 관리자 테마: 기존 관리자 primary blue */
.admin-alert-theme .pp-swal-confirm {
  background: #0d6efd;
  color: #fff;
}
.admin-alert-theme .pp-swal-confirm:hover {
  background: #0b5ed7;
}

/* 사용자 테마: PETPELIA 브랜드 레드 */
.customer-alert-theme .pp-swal-confirm {
  background: #cc0d39;
  color: #fff;
}
.customer-alert-theme .pp-swal-confirm:hover {
  background: #ad0b30;
}

/* 위험(삭제/탈퇴) 버튼: 테마 공통 레드 */
.pp-swal-confirm.pp-swal-danger {
  background: #dc2626 !important;
  color: #fff;
}
.pp-swal-confirm.pp-swal-danger:hover {
  background: #b91c1c !important;
}

.pp-swal-cancel {
  background: #fff;
  color: #334155;
  border-color: #e2e8f0;
}
.pp-swal-cancel:hover {
  background: #f8fafc;
}
.pp-swal-confirm:focus-visible,
.pp-swal-cancel:focus-visible {
  outline: 2px solid rgb(13 110 253 / 0.4);
  outline-offset: 2px;
}
.customer-alert-theme .pp-swal-confirm:focus-visible {
  outline-color: rgb(204 13 57 / 0.4);
}

.pp-swal-toast {
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.16);
  padding: 0.5rem 1rem;
}
.pp-swal-toast .swal2-title {
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
}
