/* ================= CONTAINER ================= */
.wfs-container {
  position: fixed;
  bottom: 90px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.wfs-right { right: 35px; }
.wfs-left { left: 35px; }

/* يظهر بعد السكرول */
.wfs-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ================= LIST ================= */
.wfs-list {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 🔥 إصلاح hidden بدون كسر الأنيميشن */
.wfs-list[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* عند الفتح */
.wfs-open .wfs-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ================= BUTTONS ================= */
.wfs-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  background-clip: padding-box;

  opacity: 0;
  transform: translateY(15px) scale(0.9);

  transition: all 0.35s cubic-bezier(.22,1,.36,1);
}

/* stagger */
.wfs-open .wfs-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* delays */
.wfs-open .wfs-btn:nth-child(1) { transition-delay: 0.05s; }
.wfs-open .wfs-btn:nth-child(2) { transition-delay: 0.1s; }
.wfs-open .wfs-btn:nth-child(3) { transition-delay: 0.15s; }
.wfs-open .wfs-btn:nth-child(4) { transition-delay: 0.2s; }
.wfs-open .wfs-btn:nth-child(5) { transition-delay: 0.25s; }
.wfs-open .wfs-btn:nth-child(6) { transition-delay: 0.3s; }

/* hover */
.wfs-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ================= TOGGLE ================= */
.wfs-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: var(--wfs-primary, #0ea5e9);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.3s ease;
}

/* دوران الزر */
.wfs-open .wfs-toggle {
  transform: rotate(45deg) scale(1.1);
}

/* ================= ICON FIX ================= */
.wfs-toggle svg,
.wfs-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* لو الأيقونة + نص */
.wfs-toggle-icon {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

/* ================= BRAND COLORS ================= */
.wfs-whatsapp { background: #25D366 !important; color: #fff !important; }
.wfs-facebook { background: #1877F2 !important; color: #fff !important; }
.wfs-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; color: #fff !important; }
.wfs-twitter { background: #000 !important; color: #fff !important; }
.wfs-linkedin { background: #0A66C2 !important; color: #fff !important; }
.wfs-tiktok { background: #111 !important; color: #fff !important; }
.wfs-email { background: #EA4335 !important; color: #fff !important; }

/* ================= MOBILE ================= */
.wfs-hide-mobile { display: none; }

@media (min-width: 640px) {
  .wfs-hide-mobile { display: flex; }
}