/**
 * Lottoplus777 — SweetAlert2 theme (ใช้คู่กับ js/swal-lp777-init.js)
 * ครอบคลุม: ป๊อปอัพปกติ, toast, โหลด, ปุ่มยืนยัน/ยกเลิก
 */

.lp777-swal-container {
  z-index: 20000 !important;
}

.lp777-swal-popup {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 55%, rgba(15, 23, 42, 1) 100%) !important;
  border: 1px solid rgba(249, 115, 22, 0.45) !important;
  border-radius: 1.35rem !important;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 48px rgba(249, 115, 22, 0.12) !important;
  padding: 1.35rem 1.2rem 1.15rem !important;
  font-family: var(--font-family, 'Kanit', 'Prompt', system-ui, sans-serif) !important;
}

.lp777-swal-title {
  color: #f8fafc !important;
  font-weight: 900 !important;
  font-size: 1.2rem !important;
  line-height: 1.35 !important;
  padding: 0 0.25rem !important;
  margin: 0.35rem 0 0 !important;
}

.lp777-swal-html {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  margin: 0.65rem 0 0 !important;
}

.lp777-swal-html b,
.lp777-swal-html strong {
  color: #fdba74 !important;
  font-weight: 800 !important;
}

.swal2-icon {
  margin: 0.35rem auto 0.25rem !important;
  border-width: 3px !important;
}

.swal2-icon.swal2-success {
  border-color: rgba(52, 211, 153, 0.55) !important;
  color: #6ee7b7 !important;
}

.swal2-icon.swal2-error {
  border-color: rgba(248, 113, 113, 0.5) !important;
  color: #fca5a5 !important;
}

.swal2-icon.swal2-warning {
  border-color: rgba(251, 191, 36, 0.55) !important;
  color: #fcd34d !important;
}

.swal2-icon.swal2-info {
  border-color: rgba(96, 165, 250, 0.55) !important;
  color: #93c5fd !important;
}

.swal2-icon.swal2-question {
  border-color: rgba(249, 115, 22, 0.45) !important;
  color: #fdba74 !important;
}

.lp777-swal-actions {
  margin-top: 1.15rem !important;
  gap: 0.55rem !important;
  width: 100% !important;
}

.lp777-swal-btn {
  margin: 0 !important;
  border-radius: 0.95rem !important;
  padding: 0.65rem 1rem !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.lp777-swal-btn:active {
  transform: scale(0.97) !important;
}

.lp777-swal-btn-confirm {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35) !important;
}

.lp777-swal-btn-confirm:hover {
  filter: brightness(1.06) !important;
}

.lp777-swal-btn-cancel,
.lp777-swal-btn-deny {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  box-shadow: none !important;
}

.lp777-swal-btn-cancel:hover,
.lp777-swal-btn-deny:hover {
  background: rgba(51, 65, 85, 0.95) !important;
}

.lp777-swal-input {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 0.85rem !important;
  color: #f8fafc !important;
  font-family: inherit !important;
}

.lp777-swal-footer {
  color: #64748b !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  margin-top: 0.5rem !important;
}

.lp777-swal-close {
  color: #94a3b8 !important;
  outline: none !important;
}

.lp777-swal-close:hover {
  color: #f8fafc !important;
}

/* Backdrop */
.swal2-container.swal2-backdrop-show {
  background: rgba(2, 6, 23, 0.78) !important;
  backdrop-filter: blur(6px) !important;
}

/* Loader (กำลังดำเนินการ) */
.swal2-loader {
  border-color: rgba(249, 115, 22, 0.25) rgba(249, 115, 22, 0.25) #f97316 transparent !important;
}

/* Toast */
.lp777-swal-toast.lp777-swal-popup,
.swal2-toast.lp777-swal-popup {
  border-radius: 1rem !important;
  border: 1px solid rgba(249, 115, 22, 0.35) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
  padding: 0.65rem 0.85rem !important;
}

.swal2-toast .swal2-title {
  font-size: 0.9rem !important;
  margin: 0 !important;
}

.swal2-toast .swal2-html-container {
  margin: 0.15rem 0 0 !important;
  font-size: 0.8rem !important;
}

/* Progress steps (ถ้ามี) */
.swal2-progress-step.swal2-active-progress-step {
  background: #f97316 !important;
}

/* Validation message */
.swal2-validation-message {
  background: rgba(127, 29, 29, 0.45) !important;
  color: #fecaca !important;
  border-radius: 0.65rem !important;
}

/* Enter animation */
@keyframes lp777-swal-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lp777-swal-enter {
  animation: lp777-swal-in 0.22s ease-out both !important;
}
