@import url('/fonts/cormorant-figtree.css');

/* ==========================================================================
   508 Ministry Real-Time Notification Bell + Phone Web Push Opt-In
   Sunlit Luminous Porcelain, Warm Gold & Royal Cobalt Design System
   Matches the new sunlit animated FAQ section on 508ministry.com
   Self-hosted Cormorant + Figtree fonts. Zero em dashes. Ad-safe copy.
   ========================================================================== */

@keyframes m508PushShimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes m508PushFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes m508PushBellPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 190, 58, 0.52); }
  50% { box-shadow: 0 0 0 8px rgba(245, 190, 58, 0); }
}

/* --------------------------------------------------------------------------
   1. MAIN SUNLIT OPT-IN CARD (Persistent Banner + Onboarding "STRONGLY RECOMMENDED")
   -------------------------------------------------------------------------- */
.m508-push-card {
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin: 14px auto 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 58%, #EEF6FF 100%);
  border: 1.5px solid #CFE3FA;
  box-shadow:
    0 16px 38px -22px rgba(29, 78, 216, 0.24),
    0 2px 10px -4px rgba(14, 37, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  color: #0E254D;
  box-sizing: border-box;
  z-index: 20;
}

.m508-push-card *,
.m508-push-card *::before,
.m508-push-card *::after {
  box-sizing: border-box;
}

.m508-push-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1D4ED8 0%, #60A5FA 42%, #F5BE3A 76%, #D99B16 100%);
}

.m508-push-card.is-onboarding {
  border-color: #E5B946;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 45%, #F2F8FF 100%);
  box-shadow:
    0 20px 44px -22px rgba(29, 78, 216, 0.26),
    0 0 0 3px rgba(246, 195, 67, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  margin: 18px auto 22px;
}

.m508-push-card.is-active-subscribed {
  border-color: #34D399;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF7 100%);
  padding: 15px 20px;
}

.m508-push-card.is-active-subscribed::before {
  background: linear-gradient(90deg, #059669 0%, #34D399 55%, #F5BE3A 100%);
}

.m508-push-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.m508-push-head-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 320px;
}

.m508-push-medallion {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(180deg, #FFE89A 0%, #F5BE3A 100%);
  border: 1.5px solid #D99B16;
  color: #0C2146;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -10px rgba(217, 155, 22, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  animation: m508PushBellPulse 2.8s ease-in-out infinite;
}

.m508-push-medallion svg {
  width: 24px;
  height: 24px;
}

.m508-push-card.is-active-subscribed .m508-push-medallion {
  background: linear-gradient(180deg, #D1FAE5 0%, #6EE7B7 100%);
  border-color: #10B981;
  color: #064E3B;
  animation: none;
}

.m508-push-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.m508-push-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
}

.m508-push-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE692 0%, #F6C343 100%);
  border: 1px solid rgba(217, 155, 22, 0.45);
  color: #0C2146;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
  box-shadow: 0 5px 14px -6px rgba(217, 155, 22, 0.5);
}

.m508-push-eyebrow.is-cobalt {
  background: linear-gradient(180deg, #EFF6FF 0%, #DCEBFF 100%);
  border-color: #BFDBFE;
  color: #1D4ED8;
  box-shadow: none;
}

.m508-push-eyebrow.is-live {
  background: linear-gradient(180deg, #ECFDF5 0%, #D1FAE5 100%);
  border-color: #6EE7B7;
  color: #065F46;
  box-shadow: none;
}

.m508-push-heading {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(23px, 2.7vw, 31px);
  font-weight: 700;
  line-height: 1.12;
  color: #0C224A;
  letter-spacing: -0.01em;
}

.m508-push-sub {
  margin: 5px 0 0;
  font-size: 14.5px;
  line-height: 1.52;
  color: #3B557D;
}

.m508-push-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.m508-push-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE48A 0%, #F5BE3A 56%, #E5A524 100%);
  border: 1.5px solid #C98B10;
  color: #0B1F42;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 10px 22px -10px rgba(217, 155, 22, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.m508-push-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px -10px rgba(217, 155, 22, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  filter: brightness(1.03);
}

.m508-push-btn-primary:active {
  transform: translateY(0);
}

.m508-push-btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.m508-push-btn-primary svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.m508-push-btn-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #C8DFFA;
  color: #466089;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.m508-push-btn-dismiss:hover {
  background: #F0F7FF;
  border-color: #93C5FD;
  color: #0E254D;
}

.m508-push-status-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 13px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 600;
}

.m508-push-status-msg.is-ios {
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #F5BE3A;
  color: #78350F;
}

.m508-push-status-msg.is-error {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.m508-push-status-msg.is-ok {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

/* --------------------------------------------------------------------------
   2. NEW SUNLIT ANIMATED FAQ-STYLE DROPDOWN ("Why would I want to get push notifications")
      Clones the exact aesthetic of #faq .n5-faq > details in home-lower-vibe.css
   -------------------------------------------------------------------------- */
.m508-push-faq-wrap {
  margin-top: 15px;
}

.m508-push-faq {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFDFE 100%);
  border: 1.5px solid #D6E7FA;
  border-radius: 18px;
  box-shadow:
    0 10px 26px -18px rgba(29, 78, 216, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.m508-push-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(186, 224, 255, 0.26) 48%,
    rgba(255, 232, 163, 0.18) 54%,
    rgba(255, 255, 255, 0) 78%
  );
  transform: translateX(-120%);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.m508-push-faq:not([open]):hover::before {
  transform: translateX(120%);
}

.m508-push-faq:not([open]):hover {
  border-color: #93C5FD;
  box-shadow: 0 14px 32px -18px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.m508-push-faq[open] {
  border-color: #E5B946;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FAFF 100%);
  box-shadow:
    0 22px 46px -24px rgba(29, 78, 216, 0.22),
    0 0 0 3px rgba(246, 195, 67, 0.14);
}

.m508-push-faq > summary {
  position: relative;
  z-index: 1;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 18px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0E254D;
  line-height: 1.35;
  user-select: none;
}

.m508-push-faq > summary::-webkit-details-marker {
  display: none !important;
}

.m508-push-faq > summary::before,
.m508-push-faq > summary::after {
  display: none !important;
  content: none !important;
}

.m508-push-faq-sum-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.m508-push-faq-qbadge {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(180deg, #EFF6FF 0%, #DCEBFF 100%);
  border: 1px solid #C6DDFB;
  color: #1D4ED8;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.m508-push-faq[open] .m508-push-faq-qbadge {
  background: linear-gradient(180deg, #FFE48A 0%, #F5BE3A 100%);
  border-color: #D99B16;
  color: #0C2146;
}

.m508-push-faq-qtext {
  color: #0E254D;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.m508-push-faq-chev {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F7FF;
  border: 1.5px solid #C8DFFA;
  color: #1D4ED8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.m508-push-faq-chev svg {
  width: 18px;
  height: 18px;
}

.m508-push-faq[open] > summary .m508-push-faq-chev {
  transform: rotate(180deg);
  background: linear-gradient(180deg, #FFE48A 0%, #F5BE3A 100%);
  border-color: #D99B16;
  color: #0C2146;
  box-shadow: 0 6px 14px -6px rgba(217, 155, 22, 0.55);
}

.m508-push-faq-body {
  position: relative;
  z-index: 1;
  padding: 16px 18px 20px;
  border-top: 1px solid #E3EFFC;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FF 100%);
}

.m508-push-faq[open] .m508-push-faq-body {
  animation: m508PushFadeIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.m508-push-faq-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #EBF4FF;
  border: 1px solid #CBE0FA;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.m508-push-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.m508-push-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 15px;
  background: #FFFFFF;
  border: 1px solid #DCEBFA;
  box-shadow: 0 8px 20px -16px rgba(15, 39, 86, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.m508-push-benefit:hover {
  transform: translateY(-1px);
  border-color: #E5B946;
  box-shadow: 0 12px 24px -16px rgba(29, 78, 216, 0.24);
}

.m508-push-benefit.is-full {
  grid-column: 1 / -1;
}

.m508-push-b-ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, #EFF6FF 0%, #DCEBFF 100%);
  border: 1px solid #C6DDFB;
  color: #1D4ED8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m508-push-b-ico.is-gold {
  background: linear-gradient(180deg, #FFF3C4 0%, #FCE08B 100%);
  border-color: #E5B946;
  color: #7C4D03;
}

.m508-push-b-ico svg {
  width: 19px;
  height: 19px;
}

.m508-push-b-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.m508-push-b-copy h4 {
  margin: 0 0 3px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #0E254D;
  line-height: 1.3;
}

.m508-push-b-copy p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.52;
  color: #3C567D;
}

.m508-push-faq-cta-row {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #E3EFFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.m508-push-faq-note {
  font-size: 13px;
  color: #466089;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. FLOATING COMPACT SUNLIT PILL (when user clicks "Remind me later")
   -------------------------------------------------------------------------- */
.m508-push-float-pill {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2147482800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE89A 0%, #F5BE3A 100%);
  border: 1.5px solid #C98B10;
  color: #0B1F42;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 12px 28px -8px rgba(12, 33, 70, 0.36),
    0 0 0 3px rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m508-push-float-pill:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    0 16px 32px -8px rgba(12, 33, 70, 0.44),
    0 0 0 3px rgba(255, 255, 255, 0.96);
}

@media (min-width: 769px) {
  .m508-push-float-pill {
    left: auto;
    right: 92px;
    bottom: 18px;
    transform: none;
  }
  .m508-push-float-pill:hover {
    transform: translateY(-2px);
  }
}

.m508-push-float-pill svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   4. REAL-TIME NOTIFICATION BELL FOR /social/ TOPBAR + POPOVER
   -------------------------------------------------------------------------- */
.m508-social-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.m508-social-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 168, 75, 0.82);
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FF 100%);
  color: #0E254D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(14, 37, 77, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.m508-social-bell-btn:hover {
  transform: translateY(-1px);
  border-color: #D99B16;
  box-shadow: 0 6px 14px rgba(217, 155, 22, 0.28);
}

.m508-social-bell-btn svg {
  width: 19px;
  height: 19px;
}

.m508-social-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #EF4444 0%, #B91C1C 100%);
  color: #FFFFFF;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.45);
}

.m508-social-bell-pop {
  position: fixed;
  z-index: 2147483050;
  width: min(380px, calc(100vw - 24px));
  max-height: min(560px, calc(100dvh - 88px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%);
  border: 1.5px solid #CFE3FA;
  box-shadow: 0 24px 60px -16px rgba(12, 33, 70, 0.36);
  font-family: 'Figtree', system-ui, sans-serif;
  color: #0E254D;
  overflow: hidden;
}

.m508-social-bell-pop[hidden] {
  display: none !important;
}

.m508-sbp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #0E254D 0%, #1B3B73 100%);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(245, 190, 58, 0.45);
}

.m508-sbp-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

.m508-sbp-hbtns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m508-sbp-hbtn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.m508-sbp-hbtn:hover {
  background: rgba(245, 190, 58, 0.26);
  border-color: #F5BE3A;
}

/* Push status bar inside BOTH /social/ and /outreach-agent/ Notification Bell popovers */
.m508-bell-push-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #FFFDF5 0%, #F4F9FF 100%);
  border-bottom: 1px solid #DCEBFA;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 12.5px;
  color: #0E254D;
}

.m508-bell-push-bar.is-on {
  background: linear-gradient(180deg, #ECFDF5 0%, #F4FBF8 100%);
  border-bottom-color: #A7F3D0;
  color: #065F46;
}

.m508-bell-push-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #C98B10;
  background: linear-gradient(180deg, #FFE48A 0%, #F5BE3A 100%);
  color: #0C2146;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.m508-bell-push-btn.is-secondary {
  background: #FFFFFF;
  border-color: #A7F3D0;
  color: #065F46;
}

.m508-sbp-list {
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.m508-sbp-item {
  display: block;
  padding: 11px 13px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #DCEBFA;
  text-decoration: none;
  color: #0E254D;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.m508-sbp-item.is-unread {
  background: linear-gradient(180deg, #FFFDF7 0%, #F2F8FF 100%);
  border-color: #E5B946;
  box-shadow: 0 6px 16px -12px rgba(29, 78, 216, 0.28);
}

.m508-sbp-item:hover {
  border-color: #60A5FA;
}

.m508-sbp-itop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.m508-sbp-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m508-sbp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D97706;
  flex-shrink: 0;
}

.m508-sbp-ititle {
  font-size: 13.5px;
  font-weight: 800;
  color: #0C224A;
  line-height: 1.32;
}

.m508-sbp-ibody {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #415B82;
}

.m508-sbp-ifoot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
}

.m508-sbp-cta {
  color: #1D4ED8;
  font-weight: 700;
}

.m508-sbp-empty {
  padding: 26px 16px;
  text-align: center;
  color: #466089;
  font-size: 13.5px;
}

/* Mobile Responsive Refinements */
@media (max-width: 720px) {
  .m508-push-card {
    margin: 10px 10px 14px;
    padding: 16px 15px;
    border-radius: 18px;
  }
  .m508-push-head-left {
    gap: 11px;
  }
  .m508-push-medallion {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .m508-push-actions {
    width: 100%;
  }
  .m508-push-btn-primary {
    width: 100%;
  }
  .m508-push-btn-dismiss {
    width: 100%;
  }
  .m508-push-faq > summary {
    padding: 12px 14px;
    font-size: 15px;
  }
  .m508-push-faq-qtext {
    font-size: 14.8px;
  }
  .m508-push-faq-body {
    padding: 14px 13px 16px;
  }
  .m508-push-benefits {
    grid-template-columns: 1fr;
  }
  .m508-push-float-pill {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    font-size: 12.8px;
    padding: 8px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m508-push-medallion,
  .m508-push-faq::before,
  .m508-push-faq-body,
  .m508-push-faq-chev,
  .m508-push-btn-primary {
    animation: none !important;
    transition: none !important;
  }
}

/* === 508 PUSH MOBILE FEEDBACK TOAST & BELL STATUS (2026-11-25) === */
.m508-bell-push-msg {
  padding: 9px 14px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
  background: #EFF6FF;
  color: #1E3A8A;
  border-bottom: 1px solid #BFDBFE;
}
.m508-bell-push-msg.is-ok {
  background: #ECFDF5;
  color: #065F46;
  border-bottom-color: #A7F3D0;
}
.m508-bell-push-msg.is-error {
  background: #FEF2F2;
  color: #991B1B;
  border-bottom-color: #FECACA;
}
.m508-bell-push-msg.is-ios {
  background: #FFFBEB;
  color: #92400E;
  border-bottom-color: #FDE68A;
}
.m508-push-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483600;
  width: min(360px, calc(100vw - 24px));
  padding: 12px 16px;
  border-radius: 14px;
  background: #0D1E3A;
  color: #FFFDF8;
  border: 1.5px solid #D4A84B;
  box-shadow: 0 18px 42px rgba(11, 27, 58, 0.38);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
}
.m508-push-toast.is-ok {
  background: #064E3B;
  border-color: #34D399;
}
.m508-push-toast.is-error {
  background: #7F1D1D;
  border-color: #FCA5A5;
}
.m508-push-toast.is-ios {
  background: #13284C;
  border-color: #F5BE3A;
}
/* === END 508 PUSH MOBILE FEEDBACK === */


/* === M508_PHONE_QR_MODAL_CSS_V1: Cell Phone Push Option & QR Pairing Modal === */
.m508-push-btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE89A 0%, #F5BE3A 100%);
  border: 1.5px solid #C98A0E;
  color: #0C2146;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(217, 155, 22, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
}
.m508-push-btn-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(217, 155, 22, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.m508-push-btn-phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.m508-bell-push-btn.is-gold {
  background: linear-gradient(180deg, #FFE89A 0%, #F5BE3A 100%);
  border: 1px solid #C98A0E;
  color: #0C2146;
  font-weight: 800;
}
.m508-phone-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483610;
  background: rgba(9, 22, 48, 0.68);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.m508-phone-modal-backdrop[hidden] {
  display: none !important;
}
.m508-phone-modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 62%, #EEF6FF 100%);
  border: 2px solid #E5B946;
  border-radius: 24px;
  padding: 26px 26px 24px;
  box-shadow: 0 28px 64px rgba(8, 20, 44, 0.45);
  font-family: 'Figtree', system-ui, sans-serif;
  color: #0E254D;
  text-align: center;
}
.m508-phone-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0E254D;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.m508-phone-modal-title {
  margin: 4px 0 8px;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #0C2146;
}
.m508-phone-modal-sub {
  margin: 0 auto 18px;
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #36507A;
}
.m508-phone-qr-grid {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 18px;
  align-items: center;
  text-align: left;
  background: #FFFFFF;
  border: 1.5px solid #D6E6FA;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}
.m508-phone-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.m508-phone-qr-box svg {
  width: 172px;
  height: 172px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  padding: 6px;
  background: #FFFFFF;
}
.m508-phone-qr-cap {
  font-size: 11.5px;
  font-weight: 700;
  color: #1D4ED8;
  text-align: center;
}
.m508-phone-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m508-phone-step {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 13px;
  padding: 11px 13px;
}
.m508-phone-step strong {
  display: block;
  font-size: 13.5px;
  color: #0C2146;
  margin-bottom: 4px;
}
.m508-phone-step p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.48;
  color: #3B5378;
}
.m508-phone-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 640px) {
  .m508-phone-qr-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .m508-phone-steps {
    text-align: left;
  }
  .m508-push-btn-phone {
    width: 100%;
  }
}
