/* ==========================================================================
   IPOO Notifications — Google Material 3 Redesign
   Search by Order ID / customer / phone / location
   Filters: All · Processing · Out for Delivery · Delivered · Cancelled
   Created in: notifications-screen.css — loaded after screen-system so wins
   ========================================================================== */

/* Screen shell */
#sc-notif {
  display: flex !important;
  flex-direction: column;
  background: var(--md-surface-1) !important;
  color: #1C1410 !important;
  overflow: hidden !important;
}

#sc-notif .scroll.notif-scroll,
#sc-notif #notif-body {
  background: var(--md-surface-1) !important;
}

/* Header — premium dark masthead */
#sc-notif .tbar.dark {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex: 0 0 64px;
  width: 100%;
  height: 64px !important;
  box-sizing: border-box;
  padding: 0 8px 0 6px !important;
  background: linear-gradient(110deg, #1C1410 0%, #6F2B0D 62%, #E8500A 145%) !important;
  border-bottom: 0 !important;
}

#sc-notif .tbar.dark .back-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}

#sc-notif .tbar-title.w {
  display: inline-flex !important;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px;
  color: #fff !important;
  font-family: 'Plus Jakarta Sans','Google Sans','DM Sans',sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

#sc-notif #notif-badge {
  display: none; /* shown via JS */
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #FFE9D6 !important;
  color: #6F2B0D !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

#sc-notif .tbar.dark > button:last-child {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

#sc-notif .tbar.dark > #notif-markall:hover {
  background: rgba(255,255,255,0.24) !important;
}

#sc-notif .tbar.dark > #notif-markall:active {
  transform: scale(0.96);
}

#sc-notif .tbar.dark > #notif-markall:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#sc-notif #notif-markall svg {
  width: 19px;
  height: 19px;
}

#sc-notif #notif-markall #nmarkall-count {
  display: none !important;
}

/* Google M3 Search field */
.notif-search-wrap {
  flex: 0 0 auto;
  padding: 12px 16px 8px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(28,20,16,0.06);
}

.notif-push-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 14px 16px;
  background: #fffaf7;
  border-bottom: 1px solid rgba(28,20,16,0.06);
}

#notif-push-permission[hidden] {
  display: none !important;
}

.notif-push-permission {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(22,16,12,.52);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.notif-push-permission-card {
  width: min(100%, 360px);
  box-sizing: border-box;
  padding: 26px 22px 20px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  background: #fffaf7;
  box-shadow: 0 20px 60px rgba(28,14,6,.28);
  color: #241b17;
  text-align: center;
}

.notif-push-permission-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: rgba(255,77,0,.1);
  color: #e8500a;
}

.notif-push-permission-icon svg {
  width: 26px;
  height: 26px;
}

.notif-push-permission-card h2 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.3;
}

.notif-push-permission-card p {
  margin: 0;
  color: #625d59;
  font-size: 14px;
  line-height: 1.55;
}

.notif-push-permission-actions {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.notif-push-permission-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#notif-push-permission-allow {
  background: #e8500a;
  color: #fff;
}

#notif-push-permission-cancel {
  background: transparent;
  color: #625d59;
}

.notif-push-permission-actions button:focus-visible {
  outline: 3px solid rgba(255,77,0,.42);
  outline-offset: 2px;
}

#notif-push-toggle {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #e8500a;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.notif-push-prompt[hidden] { display: none; }

.notif-push-prompt-copy {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

#notif-push-title {
  color: #1c1410;
  font-size: 14px;
  font-weight: 700;
}

#notif-push-status {
  margin: 0;
  color: #625d59;
  font-size: 12px;
  line-height: 1.4;
}

.notif-push-prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notif-push-prompt-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#notif-push-enable {
  background: #e8500a;
  color: #fff;
}

#notif-push-dismiss {
  background: transparent;
  color: #625d59;
}

.notif-push-prompt-actions button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.notif-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  height: 48px;
  box-sizing: border-box;
  padding: 0 12px 0 14px;
  background: #FFFFFF;
  border: 1px solid rgba(28,20,16,0.10);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(28,20,16,0.06), 0 2px 8px rgba(28,20,16,0.04);
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
}

.notif-search-field:focus-within {
  border-color: #E8500A;
  box-shadow: 0 0 0 3px rgba(232,80,10,0.14), 0 4px 16px rgba(28,20,16,0.08);
  background: #FFFFFF;
}

.notif-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #857370;
}

.notif-search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: 'DM Sans','Google Sans',sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1C1410;
}

.notif-search-field input::placeholder {
  color: #9A8A84;
  font-weight: 500;
}

.notif-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28,20,16,0.06);
  color: #5C4F4A;
  cursor: pointer;
}

.notif-search-clear svg { width: 14px; height: 14px; }

/* Filter chips — M3 Filter chip horizontal scroll */
#notif-filters,
.nchips-scroll {
  flex: 0 0 auto;
  display: block;
  max-width: 760px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px 16px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(28,20,16,0.06);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#notif-filters::-webkit-scrollbar { display: none; }

.nchips {
  display: inline-flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.nchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(28,20,16,0.12);
  background: #FFFFFF;
  color: #3D2E28;
  font-family: 'DM Sans',sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, color 160ms, box-shadow 160ms;
}

.nchip:hover { border-color: rgba(232,80,10,0.22); background: #FFF7F2; }

.nchip.sel {
  background: #E8500A;
  border-color: #E8500A;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(232,80,10,0.22);
}

.nchip .nchip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 11px;
  font-weight: 800;
}

.nchip.sel .nchip-count { background: rgba(255,255,255,0.18); }
.nchip:not(.sel) .nchip-count { background: rgba(232,80,10,0.10); color: #8A3A10; }

/* Scroll area */
#sc-notif .notif-scroll,
#sc-notif .scroll.notif-scroll {
  display: block !important;
  flex: 1 1 0 !important;
  min-height: 0;
  padding: 14px 0 96px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--md-surface-1) !important;
}

/* Body container */
#sc-notif #notif-body {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  width: auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 32px !important;
  box-sizing: border-box;
  background: #FFFFFF;
}

/* Group headers — sticky date dividers */
.ngroup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 6px;
  position: sticky;
  top: -14px;
  z-index: 1;
  background: linear-gradient(180deg, #FFFFFF 72%, rgba(255,255,255,0) 100%);
  font-family: 'Google Sans','DM Sans',sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #857370;
}

.ngroup-new {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #FFE9D6;
  color: #8A3A10;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Cards — M3 Elevated card */
.ncard {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(28,20,16,0.07);
  box-shadow: 0 2px 10px rgba(28,20,16,0.06), 0 1px 3px rgba(28,20,16,0.04);
  transition: box-shadow 180ms, transform 180ms, border-color 180ms;
  animation: ncardIn 320ms cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes ncardIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ncard:hover {
  border-color: rgba(28,20,16,0.10);
  box-shadow: 0 8px 24px rgba(28,20,16,0.08), 0 2px 8px rgba(28,20,16,0.06);
  transform: translateY(-1px);
}

.ncard.unread {
  border-color: rgba(232,80,10,0.14);
  box-shadow: 0 4px 16px rgba(232,80,10,0.08), 0 1px 4px rgba(28,20,16,0.05);
  background: linear-gradient(180deg, #FFFBF8 0%, #FFFFFF 100%);
}

.ncard.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #FF6A1A 0%, #E8500A 100%);
}

.ncard-del {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220,38,38,0.12);
  border-radius: 999px;
  z-index: 3;
  cursor: pointer;
}

.ncard-del:focus-visible {
  outline: 3px solid rgba(232,80,10,0.35);
  outline-offset: 2px;
}

.ncard-del svg { width: 18px; height: 18px; }

.ncard-main {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 14px 58px 14px 18px;
  cursor: pointer;
  min-width: 0;
  background: transparent;
  transition: transform 200ms cubic-bezier(0.16,1,0.3,1);
}

.nicon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.nicon.orders { background: #FFF0E6; color: #E8500A; border: 1px solid rgba(232,80,10,0.12); }
.nicon.offers { background: #FFF7E6; color: #B4560A; border: 1px solid rgba(180,86,10,0.12); }
.nicon.rewards { background: #F0F7F0; color: #1B7A3D; border: 1px solid rgba(27,122,61,0.12); }
.nicon.system { background: #F5F0FF; color: #6D28D9; border: 1px solid rgba(109,40,217,0.12); }

.nicon svg { width: 20px; height: 20px; display: block; }

.ntext { flex: 1 1 auto; min-width: 0; min-height: 100%; display: flex; flex-direction: column; gap: 4px; }

.ncard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ntitle {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Plus Jakarta Sans','DM Sans',sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #1C1410;
}

.ntitle span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nnew {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #E8500A;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ncard-cat {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(28,20,16,0.06);
  color: #5C4F4A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ncard.unread .ncard-cat { background: rgba(232,80,10,0.10); color: #8A3A10; }

.nbody {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #5C4F4A;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ncard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 12px;
  color: #857370;
}

.ntime { display: inline-flex; align-items: center; gap: 6px; }

.ndot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E8500A;
  box-shadow: 0 0 0 4px rgba(232,80,10,0.14);
  flex-shrink: 0;
}

.nref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #F5F0EC;
  border: 1px solid rgba(28,20,16,0.06);
  font-family: 'Google Sans',monospace;
  font-size: 11px;
  font-weight: 700;
  color: #6B5A53;
}

.nstatus-chip {
  background: #FFF1E8;
  border-color: rgba(232, 80, 10, 0.18);
  color: #7A2E00;
  text-transform: capitalize;
  box-shadow: 0 1px 2px rgba(28, 20, 16, 0.04);
}

.nstatus-delivered {
  background: #EAF7EF;
  border-color: rgba(22, 140, 74, 0.2);
  color: #12633A;
}

.nstatus-cancelled {
  background: #FFF0F0;
  border-color: rgba(190, 45, 45, 0.2);
  color: #8A2020;
}

.nref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}

/* Empty states */
.nempty {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px 28px !important;
  border: 1px dashed rgba(28,20,16,0.10);
  border-radius: 24px;
  background: #FFFBF8 !important;
  text-align: center;
}

.nempty-ic {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 72px !important;
  height: 72px !important;
  margin-bottom: 16px;
  border-radius: 20px;
  background: #FFF0E6 !important;
  color: #E8500A !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.nempty-ic svg { width: 36px !important; height: 36px !important; }

.nempty-ttl {
  display: block !important;
  margin-bottom: 8px;
  color: #1C1410 !important;
  font-family: 'Plus Jakarta Sans','Google Sans',sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.25;
}

.nempty-sub {
  display: block !important;
  max-width: 320px;
  color: #857370 !important;
  font-size: 14px !important;
  line-height: 1.5;
}

.nempty-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(28,20,16,0.12);
  background: #1C1410;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 380px) {
  .notif-search-wrap { padding: 10px 12px 8px; }
  #sc-notif #notif-body { padding: 0 12px 24px !important; }
  .ncard-main { padding: 12px 52px 12px 14px; }
  .ntitle { font-size: 13px; }
}

/* Notification experience refinements */
html body #sc-notif {
  background: #f7f4f1 !important;
  color: #211914 !important;
}

html body #shell #sc-notif {
  background: #f7f4f1 !important;
}

html body #sc-notif .tbar.dark {
  flex-basis: 64px !important;
  height: 64px !important;
  padding: 0 8px 0 6px !important;
  background: linear-gradient(110deg, #1C1410 0%, #6F2B0D 62%, #E8500A 145%) !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #shell .screen#sc-notif > .tbar.dark {
  background: linear-gradient(110deg, #1C1410 0%, #6F2B0D 62%, #E8500A 145%) !important;
}

html body #sc-notif .tbar.dark .back-btn {
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  box-shadow: none !important;
}

html body #shell #sc-notif > .tbar.dark .tbar-title.w {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 750 !important;
}

html body #sc-notif #notif-badge {
  background: #ffe9d6 !important;
  color: #6f2b0d !important;
}

html body #sc-notif .tbar.dark > button:last-child {
  min-height: 40px;
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  font-size: 12px !important;
}

html body #sc-notif .notif-push-opt-in,
html body #sc-notif .notif-search-wrap,
html body #sc-notif #notif-filters {
  background: #fff !important;
}

html body #sc-notif .notif-push-opt-in {
  gap: 8px 12px;
  padding-top: 9px;
  padding-bottom: 9px;
}

html body #sc-notif .notif-search-wrap {
  padding-top: 12px;
}

html body #sc-notif .notif-search-field {
  min-height: 48px;
  border-color: #eee7e2;
  background: #f8f6f4;
  box-shadow: none;
}

html body #sc-notif .notif-search-field:focus-within {
  border-color: #c94a17;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 74, 23, .12);
}

html body #sc-notif #notif-filters,
html body #sc-notif .nchips-scroll {
  padding-top: 8px;
  padding-bottom: 10px;
  border-bottom-color: #eee7e2;
}

html body #sc-notif .nchip {
  min-height: 36px;
  border-color: #e8dfd9;
  color: #51443d;
  font-weight: 650;
}

html body #sc-notif .nchip.sel {
  border-color: #8e3412;
  background: #8e3412;
  box-shadow: none;
}

html body #sc-notif .notif-scroll,
html body #sc-notif .scroll.notif-scroll {
  padding-top: 8px !important;
  background: #f7f4f1 !important;
}

html body #sc-notif #notif-body {
  gap: 8px;
  background: transparent !important;
}

html body #sc-notif .ngroup {
  top: -8px;
  padding: 16px 4px 8px;
  background: linear-gradient(180deg, #f7f4f1 78%, rgba(247, 244, 241, 0));
  color: #75675f;
  letter-spacing: .045em;
}

html body #sc-notif .ngroup-new {
  background: #fbe8dc;
  color: #8e3412;
}

html body #sc-notif #notif-body > .ncard {
  border: 1px solid #eee7e2;
  border-radius: 16px;
  background: var(--md-surface-2);
  box-shadow: 0 1px 3px rgba(45, 31, 22, .045);
  animation-duration: 180ms;
}

html body #sc-notif #notif-body > .ncard:hover {
  border-color: #e3d7cf;
  box-shadow: 0 5px 16px rgba(45, 31, 22, .075);
  transform: translateY(-1px);
}

html body #sc-notif #notif-body > .ncard.unread {
  border-color: #f0cdbb;
  background: var(--md-surface-2);
  box-shadow: 0 2px 8px rgba(128, 58, 24, .065);
}

html body #sc-notif #notif-body > .ncard.broadcast {
  border-color: #ead9cd;
  background: var(--md-surface-2);
  box-shadow: 0 2px 8px rgba(128, 58, 24, .055);
}

html body #sc-notif .ncard.broadcast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #d86a32, #9e3b15);
}

html body #sc-notif .ncard.unread::before {
  width: 3px;
  background: #b94716;
}

html body #sc-notif .ncard-main {
  appearance: none;
  border: 0;
  border-radius: inherit;
  color: inherit;
  font: inherit;
  text-align: left;
}

html body #sc-notif .ncard-main:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(201, 74, 23, .38);
  outline-offset: -3px;
}

html body #sc-notif .nicon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: none;
}

html body #sc-notif .nicon.orders {
  background: #fff0e7;
  color: #a33b10;
}

html body #sc-notif .nicon.offers {
  background: #fff4dc;
  color: #8a5a00;
}

html body #sc-notif .nicon.rewards {
  background: #eaf6ed;
  color: #26713f;
}

html body #sc-notif .nicon.support,
html body #sc-notif .nicon.system {
  background: #eef3ff;
  color: #3559a8;
}

html body #sc-notif .ntitle {
  color: #211914;
  font-size: 14px;
  font-weight: 750;
}

html body #sc-notif .nnew {
  background: #a33b10;
  letter-spacing: .025em;
}

html body #sc-notif .ncard-cat {
  background: #f4f0ed;
  color: #675a53;
}

html body #sc-notif .ncard-title-group {
  flex: 1 1 auto;
  display: grid;
  min-width: 0;
  gap: 4px;
}

html body #sc-notif .ncard-issuer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8e3b17;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
}

html body #sc-notif .ncard-issuer svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex: 0 0 auto;
}

html body #sc-notif .ncard.unread .ncard-cat {
  background: #fff0e7;
  color: #8e3412;
}

html body #sc-notif .nbody {
  color: #625953;
  line-height: 1.5;
}

html body #sc-notif .ndot {
  background: #b94716;
  box-shadow: 0 0 0 3px rgba(185, 71, 22, .12);
}

html body #sc-notif .ncard-del {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #74665e;
  border-color: #eee7e2;
}

html body #sc-notif .ncard-del:hover,
html body #sc-notif .ncard-del:focus-visible {
  background: #fff0ed;
  color: #a22b21;
}

html body #sc-notif .nempty {
  min-height: 260px;
  border-color: #e9dfd8;
  border-radius: 20px;
  background: #fff !important;
}

html body #sc-notif .nempty-ic {
  border-radius: 18px;
  background: #fff0e7 !important;
  color: #a33b10 !important;
}

@media (max-width: 380px) {
  html body #shell #sc-notif > .tbar.dark {
    gap: 6px;
  }

  html body #shell #sc-notif > .tbar.dark .tbar-title.w {
    padding: 0 4px;
    font-size: 18px !important;
  }

  html body #shell #sc-notif #notif-badge {
    min-width: 18px !important;
    height: 18px !important;
    margin-left: 4px !important;
    padding: 0 4px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #sc-notif * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Notifications: clear, calm Material-style hierarchy. */
html body #shell #sc-notif,
html body #shell #sc-notif .notif-scroll {
  background: #f6f8fc;
  color: #172033;
}

html body #shell #sc-notif > .tbar.dark {
  flex: 0 0 62px;
  height: 62px;
  padding: 0 16px;
  border-bottom: 1px solid #e8edf5;
  background: #fff;
  box-shadow: none;
}

html body #shell #sc-notif > .tbar.dark .back-btn {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f5fb;
  color: #33445f;
}

html body #shell #sc-notif > .tbar.dark .tbar-title.w {
  padding-left: 10px;
  color: #172033;
  font-family: 'DM Sans', 'Google Sans', Roboto, sans-serif;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

html body #shell #sc-notif #notif-badge {
  background: #eaf3ff;
  color: #145da0;
}

html body #shell #sc-notif #notif-markall {
  flex: 0 0 auto;
  width: auto;
  min-width: 40px;
  min-height: 40px;
  height: 40px;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d9e8fb;
  border-radius: 999px;
  background: #f1f7ff;
  color: #1768b5;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}

html body #shell #sc-notif #notif-markall:hover {
  border-color: #b7d5fb;
  background: #e7f2ff;
}

html body #shell #sc-notif #notif-markall svg {
  width: 17px;
  height: 17px;
}

html body #shell #sc-notif #notif-markall .notif-markall-label {
  display: inline;
  white-space: nowrap;
}

html body #shell #sc-notif .notif-search-wrap {
  padding: 14px 18px 10px;
  border: 0;
  background: #fff;
}

html body #shell #sc-notif .notif-search-field {
  width: 100%;
  max-width: 724px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0 12px 0 15px;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #f7f9fc;
  box-shadow: none;
}

html body #shell #sc-notif .notif-search-field:focus-within {
  border-color: #4a91d9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 110, 230, 0.1);
}

html body #shell #sc-notif .notif-search-icon {
  color: #64748b;
}

html body #shell #sc-notif #notif-search {
  min-width: 0;
  color: #172033;
  font-size: 14px;
}

html body #shell #sc-notif #notif-search::placeholder {
  color: #8792a4;
  opacity: 1;
}

html body #shell #sc-notif .notif-search-clear {
  color: #64748b;
}

html body #shell #sc-notif #notif-filters,
html body #shell #sc-notif .nchips-scroll {
  max-width: none;
  padding: 7px max(18px, calc((100% - 724px) / 2)) 13px;
  border: 0;
  background: #fff;
}

html body #shell #sc-notif .nchips {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 8px;
}

html body #shell #sc-notif .nchip {
  min-height: 36px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid #dfe6ef;
  background: #fff;
  color: #45536a;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

html body #shell #sc-notif .nchip:hover {
  border-color: #b8cde6;
  background: #f4f8fd;
}

html body #shell #sc-notif .nchip.sel {
  border-color: var(--md-primary, #ff4d00);
  background: var(--md-primary, #ff4d00);
  color: var(--md-on-primary, #fff);
  box-shadow: 0 3px 9px rgba(255, 77, 0, 0.2);
}

html body #shell #sc-notif .nchip-count,
html body #sc-notif .nchip:not(.sel) .nchip-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #edf2f8;
  color: #4b5c74;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

html body #shell #sc-notif .nchip.sel .nchip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html body #shell #sc-notif .notif-scroll,
html body #shell #sc-notif .scroll.notif-scroll {
  padding: 10px 0 max(30px, env(safe-area-inset-bottom));
  background: #f6f8fc;
}

html body #shell #sc-notif #notif-body {
  display: flex;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px 28px;
  gap: 5px;
  background: transparent;
}

html body #shell #sc-notif #notif-body > .ngroup {
  position: static;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin: 8px 0 2px;
  padding: 6px 3px;
  background: transparent;
  color: #5e6b80;
  font-family: 'DM Sans', 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

html body #shell #sc-notif #notif-body > .ngroup:first-child {
  margin-top: 0;
}

html body #shell #sc-notif .ngroup-new {
  height: 22px;
  padding: 0 9px;
  border: 1px solid #d9e8fb;
  background: #edf5ff;
  color: #1768b5;
  font-size: 10px;
  letter-spacing: 0;
}

html body #shell #sc-notif #notif-body > .ncard {
  min-width: 0;
  margin: 0 0 9px;
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(29, 48, 77, 0.045);
  animation: ncardIn 180ms ease-out both;
}

html body #shell #sc-notif .ncard,
html body #shell #sc-notif .ncard.unread,
html body #shell #sc-notif .ncard.broadcast {
  background: var(--md-surface-2) !important;
}

html body #shell #sc-notif #notif-body > .ncard:hover {
  border-color: #d3deeb;
  box-shadow: 0 7px 18px rgba(29, 48, 77, 0.08);
  transform: translateY(-1px);
}

html body #shell #sc-notif #notif-body > .ncard.unread {
  border-color: #cbdff5;
  box-shadow: 0 3px 10px rgba(23, 104, 181, 0.07);
}

html body #shell #sc-notif #notif-body > .ncard.unread::before {
  width: 3px;
  background: #1768b5;
}

html body #shell #sc-notif #notif-body > .ncard.support.unread::before {
  background: #006ee6;
}

html body #shell #sc-notif .ncard-main {
  min-height: 94px;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 58px 15px 16px;
}

html body #shell #sc-notif .ncard-main:focus-visible {
  outline: 3px solid rgba(23, 104, 181, 0.3);
  outline-offset: -3px;
}

html body #shell #sc-notif .nicon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 14px;
}

html body #shell #sc-notif .nicon.orders {
  border-color: #dceaff;
  background: #edf5ff;
  color: #1768b5;
}

html body #shell #sc-notif .nicon.offers {
  border-color: #f8e4b6;
  background: #fff8e6;
  color: #946200;
}

html body #shell #sc-notif .nicon.rewards {
  border-color: #d2eadb;
  background: #edf8f0;
  color: #277347;
}

html body #shell #sc-notif .nicon.support,
html body #shell #sc-notif .nicon.system {
  border-color: #d7e8fb;
  background: #eff6ff;
  color: #1768b5;
}

html body #shell #sc-notif .ntext {
  gap: 7px;
}

html body #shell #sc-notif .ncard-head {
  align-items: center;
  gap: 8px;
}

html body #shell #sc-notif .ntitle {
  color: #172033;
  font-family: 'DM Sans', 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

html body #shell #sc-notif .ntitle span:first-child {
  white-space: normal;
}

html body #shell #sc-notif .nnew {
  height: 20px;
  padding: 0 8px;
  background: #e8f2ff;
  color: #145da0;
  font-size: 9px;
  letter-spacing: 0.04em;
}

html body #shell #sc-notif .ncard-cat {
  height: 23px;
  padding: 0 9px;
  border: 1px solid #e4e9f0;
  background: #f5f7fa;
  color: #58667b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

html body #shell #sc-notif .ncard.support .ncard-cat {
  border-color: #d8e8fb;
  background: #eff6ff;
  color: #1768b5;
}

html body #shell #sc-notif .ncard-issuer {
  color: #1768b5;
}

html body #shell #sc-notif .nbody {
  display: -webkit-box;
  overflow: hidden;
  color: #58667b;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html body #shell #sc-notif .nref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1px;
}

html body #shell #sc-notif .nref {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  height: auto;
  padding: 3px 9px;
  overflow-wrap: anywhere;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f6f8fb;
  color: #4e5e75;
  font-family: 'DM Sans', 'Google Sans', sans-serif;
  font-size: 10px;
  font-weight: 650;
}

html body #shell #sc-notif .ncard-meta {
  min-height: 20px;
  margin-top: 2px;
  color: #748197;
  font-size: 11px;
}

html body #shell #sc-notif .ntime {
  gap: 8px;
}

html body #shell #sc-notif .ndot {
  width: 7px;
  height: 7px;
  background: #1768b5;
  box-shadow: 0 0 0 3px rgba(23, 104, 181, 0.12);
}

html body #shell #sc-notif .nstatus-chip {
  border-color: #d7e8fb;
  background: #edf5ff;
  color: #1768b5;
}

html body #shell #sc-notif .nstatus-delivered {
  border-color: #d2eadb;
  background: #edf8f0;
  color: #277347;
}

html body #shell #sc-notif .nstatus-cancelled {
  border-color: #f2d6d6;
  background: #fff1f1;
  color: #a13737;
}

html body #shell #sc-notif .ncard-del {
  top: 13px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid #e6ebf2;
  border-radius: 50%;
  background: #fff;
  color: #718096;
  opacity: 0.9;
}

html body #shell #sc-notif .ncard-del:hover,
html body #shell #sc-notif .ncard-del:focus-visible {
  border-color: #f0d7d7;
  background: #fff4f4;
  color: #a13737;
}

html body #shell #sc-notif .nempty {
  min-height: 270px;
  margin-top: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(29, 48, 77, 0.04);
}

html body #shell #sc-notif .nempty-ic {
  background: #edf5ff;
  color: #1768b5;
}

html body #shell #sc-notif .nempty-ttl {
  color: #172033;
}

html body #shell #sc-notif .nempty-sub {
  color: #64748b;
}

html body #shell #sc-notif .notif-push-prompt {
  border-color: #e4eaf2;
  background: #f7faff;
}

html body #shell #sc-notif .notif-push-prompt-actions button:first-child {
  border-radius: 999px;
  background: #1768b5;
  color: #fff;
}

html body #shell #sc-notif button:focus-visible,
html body #sc-notif input:focus-visible {
  outline-color: rgba(23, 104, 181, 0.45);
}

@media (max-width: 520px) {
  html body #shell #sc-notif > .tbar.dark {
    padding-right: 12px;
    padding-left: 10px;
  }

  html body #shell #sc-notif > .tbar.dark .tbar-title.w {
    font-size: 18px;
  }

  html body #shell #sc-notif .notif-search-wrap {
    padding: 11px 14px 8px;
  }

  html body #shell #sc-notif #notif-filters,
  html body #shell #sc-notif .nchips-scroll {
    padding: 6px 14px 11px;
  }

  html body #shell #sc-notif #notif-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  html body #shell #sc-notif .ncard-main {
    gap: 11px;
    padding: 14px 53px 13px 13px;
  }

  html body #shell #sc-notif .nicon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  html body #shell #sc-notif .ntitle {
    font-size: 13px;
  }

  html body #shell #sc-notif .ncard-cat {
    height: 21px;
    padding: 0 7px;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  html body #shell #sc-notif #notif-markall {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  html body #shell #sc-notif #notif-markall .notif-markall-label {
    display: none;
  }

  html body #shell #sc-notif .ncard-head {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  html body #shell #sc-notif #notif-markall {
    flex: 0 0 48px;
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    gap: 0;
  }

  html body #shell #sc-notif #notif-markall .notif-markall-label {
    display: none;
  }
}

/* Keep the notifications masthead consistent with the app's primary top bars. */
html body #shell #sc-notif > .tbar.dark {
  position: relative;
  flex: 0 0 68px;
  min-height: 68px;
  height: 68px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  gap: 10px;
  background: linear-gradient(115deg, #1c1410 0%, #47200f 66%, #a83c10 145%);
  border: 0;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 12px 28px rgba(28, 20, 16, 0.18);
}

html body #shell #sc-notif > .tbar.dark > .back-btn {
  position: relative;
  z-index: 1;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html body #shell #sc-notif > .tbar.dark > .tbar-title.w {
  position: absolute !important;
  z-index: 0;
  top: 50% !important;
  left: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content !important;
  max-width: calc(100% - 144px) !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff;
  font-family: 'Plus Jakarta Sans', 'Google Sans', 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
  transform: translate(-50%, -50%) !important;
}

html body #shell #sc-notif #notif-badge {
  flex: 0 0 auto;
  margin-left: 0;
  background: #fff0e6;
  color: #6f2b0d;
}

html body #shell #sc-notif #notif-markall {
  position: relative;
  z-index: 1;
  margin-left: auto;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html body #shell #sc-notif #notif-markall[hidden] {
  display: none !important;
}
