/* ======================================================
   🔔 Notification System — FULL ISOLATED CSS
   ------------------------------------------------------
   ❌ No sf-slider
   ❌ No cart reuse
   ❌ No shared overlay
   ❌ No pseudo elements
   ====================================================== */


/* ======================================================
   🔴 Notification Badge (Bottom Navbar)
====================================================== */
.sf-notification-count {
  position: absolute;
  top: 4px;
  right: 14px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}


/* ======================================================
   🔔 Notification Overlay (DEDICATED)
====================================================== */
#sf-notification-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

#sf-notification-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


/* ======================================================
   🔔 Notification Slider (ISOLATED PANEL)
====================================================== */
#sf-notification-slider {
  position: fixed;          /* ✅ viewport-fixed */
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10020;           /* ✅ above mobile header */

  display: flex;
  flex-direction: column;

  /* HARD RESET — kill inherited artifacts */
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

#sf-notification-slider.active {
  transform: translateX(0);
}

/* ======================================================
   🔔 Overlay (locks viewport, hides header instantly)
====================================================== */
#sf-notification-overlay {
  position: fixed;          /* ✅ viewport-fixed */
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 10010;           /* below slider, above page */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#sf-notification-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ======================================================
   🔔 Header
====================================================== */
#sf-notification-slider .sf-slider-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eaeaea;
  background: #ffffff;
  flex-shrink: 0;
}

#sf-notification-slider .sf-slider-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

#sf-notification-slider .sf-slider-close {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

/* ======================================================
   🔔 Body
====================================================== */
#sf-notification-list {
  flex: 1;
  overflow-y: auto;
  background: #f7f7f7;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* ✅ prevents page scroll bleed */
}

/* ======================================================
   🔔 Notification Rows
====================================================== */
.sf-notification-row {
  padding: 14px 16px;
  border-bottom: 1px solid #ededed;
  background: #ffffff;
}

.sf-notification-row.is-unread {
  background: #eef5ff;
}

.sf-notification-message {
  font-size: 14px;
  line-height: 1.35;
  color: #222;
}

.sf-notification-date {
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}

/* ======================================================
   🔔 Empty / Error States
====================================================== */
.sf-notification-empty,
.sf-notification-error {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: #777;
}
/* ======================================================
   ❌ Notification Close Button — Polished
====================================================== */
.sf-notif-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  color: #333;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.sf-notif-close:hover {
  background: #e6e6e6;
}

.sf-notif-close:active {
  transform: scale(0.92);
}

.sf-notif-close:focus {
  outline: none;
}



/* ======================================================
   🧨 HARD KILL — PREVENT STRAY UI ARTIFACTS
====================================================== */

/* Kill any inherited slider handle / gesture UI */
#sf-notification-slider::before,
#sf-notification-slider::after {
  content: none !important;
  display: none !important;
}

/* Kill accidental border-radius / pills */
#sf-notification-slider *,
#sf-notification-slider *::before,
#sf-notification-slider *::after {
  border-radius: 0 !important;
}
