/* ===================================== */
/* Overlay */
/* ===================================== */

.rs-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rs-alert-overlay.rs-show {
  opacity: 1;
}

/* ===================================== */
/* Modal */
/* ===================================== */

.rs-alert-modal {
  background: var(--e-global-color-626339f);
  width: 380px;
  max-width: 92%;
  padding: 45px 30px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  transform: scale(0.85) translateY(30px);
  transition: all 0.25s ease;
}

.rs-alert-overlay.rs-show .rs-alert-modal {
  transform: scale(1) translateY(0);
}

/* ===================================== */
/* Icon */
/* ===================================== */

.rs-alert-icon {
  position: relative;
  font-size: 60px;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove any unwanted background */
.rs-alert-icon,
.rs-alert-icon i,
.rs-alert-icon::before,
.rs-alert-icon::after {
  background: none !important;
  border: none !important;
}

/* Ripple Pulse Effect */
.rs-alert-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: rs-pulse-animation 2s infinite;
}

/* Type Colors */
.rs-alert-success .rs-alert-icon {
  color: #16a34a;
}
.rs-alert-error .rs-alert-icon {
  color: #dc2626;
}
.rs-alert-warning .rs-alert-icon {
  color: #f59e0b;
}
.rs-alert-info .rs-alert-icon {
  color: #2563eb;
}

/* Smooth Pulse Animation (No White Edge) */
@keyframes rs-pulse-animation {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.6;
  }
  70% {
    box-shadow: 0 0 0 28px rgba(0, 0, 0, 0);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    opacity: 0;
  }
}

/* ===================================== */
/* Message */
/* ===================================== */

.rs-alert-message {
  font-size: 18px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ===================================== */
/* Button */
/* ===================================== */

.rs-alert-close-btn {
  background: var(--e-global-color-7f0aaa4);
  color: var(--e-global-color-626339f);
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rs-alert-close-btn:hover {
  background: var(--e-global-color-50dab86);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===================================== */
/* Responsive */
/* ===================================== */

@media (max-width: 480px) {
  .rs-alert-modal {
    padding: 35px 20px 25px;
  }

  .rs-alert-icon {
    font-size: 48px;
  }

  .rs-alert-message {
    font-size: 16px;
  }
}
