/* ========= تذييل المتجر — نهاية الصفحة (تدفق عادي؛ أيقونات التواصل ليست position:fixed) ========= */

.saad-store-footer-core {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.saad-store-footer-panel {
  color: #0f172a;
  background: linear-gradient(180deg, #d8e8f8 0%, #e8f2fc 28%, #f4f8fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px 22px 0 0;
  padding: 1.4rem 1.15rem 1.35rem;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 40px rgba(15, 23, 42, 0.08);
}

.saad-store-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.05rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.saad-store-partners--triple {
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
}

.saad-store-partners__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 220px;
}

.saad-store-partners__cell--trusted {
  flex: 1 1 160px;
  max-width: 240px;
  padding: 0.35rem 0.5rem 0.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.saad-store-trusted-line {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  line-height: 1.25;
}

.saad-store-trusted-line--en {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}

.saad-store-partners__img {
  display: block;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.08));
}

.saad-store-partners__img--fw {
  max-height: 54px;
}

.saad-store-partners__img--trusted {
  max-height: 56px;
  max-width: 100%;
}

.site-footer--store a.saad-store-cert-link,
.site-footer--store a.saad-store-cert-link:visited {
  color: #0f172a !important;
}

.saad-store-cert-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0 auto 1rem;
  max-width: 30rem;
  padding: 0.85rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #0f172a !important;
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(59, 130, 180, 0.22);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.saad-store-cert-link:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 106, 82, 0.35);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.saad-store-cert-link__hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}

.saad-store-cert-link strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: #14532d;
}

.saad-store-cert-link__sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.45);
  word-break: break-all;
  max-width: 100%;
}

.saad-store-payments {
  margin-bottom: 1.05rem;
  padding: 0.7rem 0.55rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

.saad-store-payments__strip {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

.saad-store-social-block {
  margin-bottom: 1.1rem;
  padding: 1rem 0.75rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: static !important;
}

.saad-store-social-block__title {
  margin: 0 0 0.15rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.saad-store-social-block__sub {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.45);
}

.saad-store-social-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.65rem;
  position: static !important;
  inset: auto !important;
  transform: none;
}

.saad-store-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.saad-store-footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-footer--store a.saad-store-footer-pill,
.site-footer--store a.saad-store-footer-pill:visited {
  color: #0f172a !important;
}

.saad-store-footer-pill:hover,
.site-footer--store a.saad-store-footer-pill:hover {
  background: #fff;
  color: #14532d !important;
  border-color: rgba(45, 106, 82, 0.35);
}

.saad-store-footer-ribbon {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.15rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: linear-gradient(180deg, #0f241c 0%, #0a1812 100%);
  border: 1px solid rgba(166, 137, 102, 0.25);
  border-top: none;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.saad-store-footer-ribbon__logo {
  display: block;
  width: auto;
  max-width: min(200px, 55vw);
  height: auto;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.saad-store-footer-copy {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(248, 246, 240, 0.92);
  letter-spacing: 0.02em;
}

/* يُضاف من السكربت لكل تذييل يحتوي المحتوى — لا تعتمد على site-footer--injected وحدها */
.site-footer--store,
.site-footer--injected {
  margin-top: 2rem;
  position: relative;
  z-index: 2;
  clear: both;
}

/* أيقونات التواصل داخل التذييل فقط — منع أي تثبيت بالخطأ */
.site-footer--store .saad-store-social-block,
.site-footer--store .saad-store-social-dock,
.site-footer--store .saad-store-social-dock .saad-social-app {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}

.site-footer--store .saad-store-social-dock .saad-social-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.site-footer--store .saad-store-social-dock .saad-social-app:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
}

.site-footer--store .saad-store-social-dock .saad-social-app:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 3px;
}

.site-footer--store .saad-store-social-dock .saad-social-app svg {
  width: 24px;
  height: 24px;
  display: block;
}

.site-footer--store .saad-store-social-dock .saad-social-app {
  color: #fff;
}

.site-footer--store .saad-store-social-dock .saad-social-svg--tt {
  width: 22px;
  height: 22px;
}

.saad-social-app--yt { background: linear-gradient(145deg, #ff0000, #cc0000); }
.saad-social-app--ig {
  background: linear-gradient(145deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
}
.saad-social-app--x { background: linear-gradient(145deg, #0a0a0a, #2d2d2d); }
.saad-social-app--mail { background: linear-gradient(145deg, #2563eb, #1d4ed8); }
.saad-social-app--fb { background: linear-gradient(145deg, #1877f2, #0d5bd4); }
.saad-social-app--tt {
  background: #000;
}
.saad-social-app--li { background: linear-gradient(145deg, #0a66c2, #004182); }

body.saad-chat-has-site-footer .saad-chat-wrap {
  min-height: auto;
}

@media (max-width: 900px) {
  body.saad-chat-has-site-footer.saad-mobile-store-body .saad-chat-wrap {
    padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
  }

  /* شريط التطبيق السفلي الثابت — لا يغطي التذييل */
  body.saad-mobile-store-body .site-footer--store {
    padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
  }

  body:has(.saad-mobile-app-nav) .site-footer--store {
    padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
  }

  body.saad-chat-page .site-footer--store {
    margin-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px));
  }

  body.saad-chat-page.saad-mobile-store-body .site-footer--store {
    margin-bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px));
  }
}
