/* Sedahi Push Recovery — bottom-right slide-in prompt */
.spr-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.06);
  padding: 18px 18px 16px;
  z-index: 999998;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,1,.3,1), opacity .35s ease;
}
.spr-prompt.spr-show {
  transform: translateY(0);
  opacity: 1;
}
.spr-prompt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.spr-prompt-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eb731d 0%, #ff9a3c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(235,115,29,.35);
}
.spr-prompt-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
}
.spr-prompt-sub {
  font-size: 12px;
  color: #718096;
  margin-top: 2px;
}
.spr-prompt-body {
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 14px;
}
.spr-prompt-body strong {
  color: #eb731d;
  font-weight: 700;
}
.spr-prompt-actions {
  display: flex;
  gap: 8px;
}
.spr-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.spr-btn-primary {
  background: linear-gradient(135deg, #eb731d 0%, #ff8c2b 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(235,115,29,.32);
}
.spr-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(235,115,29,.42);
}
.spr-btn-ghost {
  background: #f7fafc;
  color: #718096;
}
.spr-btn-ghost:hover { background: #edf2f7; color: #4a5568; }
.spr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #cbd5e0;
  line-height: 1;
}
.spr-close:hover { color: #718096; }

/* Mobile: keep above sedahi-mobile bottom nav (58px) */
@media (max-width: 768px) {
  .spr-prompt { bottom: calc(70px + env(safe-area-inset-bottom, 0)); right: 12px; left: 12px; width: auto; }
  .spr-toast  { bottom: calc(76px + env(safe-area-inset-bottom, 0)); right: 16px; }
}

/* Success toast after subscribe */
.spr-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2f855a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 999999;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  animation: spr-toast-in .35s cubic-bezier(.2,1,.3,1);
}
@keyframes spr-toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .spr-prompt {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px 14px 12px;
  }
  .spr-prompt-icon { width: 40px; height: 40px; font-size: 20px; }
  .spr-prompt-title { font-size: 14px; }
}
