/**
 * Fusion Foams — Indian B2B Conversion Engine
 * Floating WhatsApp Quick-Inquiry & Mobile Sticky Action Bar
 * Optimized for Indian Procurement Officers, Tier-1 Buyers & MSME Fabricators
 */

/* ==============================================================================
   1. Floating WhatsApp Quick-Inquiry Widget (Desktop & Tablet)
   ============================================================================== */
.ff-floating-whatsapp-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
  display: flex;
  align-items: center;
  user-select: none;
}

.ff-whatsapp-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.ff-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff !important;
}

.ff-whatsapp-icon {
  font-size: 32px;
  line-height: 1;
}

/* Online status pill badge */
.ff-whatsapp-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.ff-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: ffPulse 1.8s infinite;
}

@keyframes ffPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Hover Tooltip */
.ff-whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ff-whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #1e293b;
}

.ff-whatsapp-btn:hover .ff-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==============================================================================
   2. Sticky Mobile Quick-Action Bar (≤ 768px)
   ============================================================================== */
.ff-mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.ff-mobile-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none !important;
  color: #334155 !important;
  border-right: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.ff-mobile-btn:last-child {
  border-right: none;
}

.ff-mobile-btn i {
  font-size: 1.05rem;
}

.ff-mobile-call i { color: #d80b32; }
.ff-mobile-call:active { background: #fee2e2; }

.ff-mobile-wa i { color: #25D366; }
.ff-mobile-wa:active { background: #dcfce7; }

.ff-mobile-sample i { color: #0284c7; }
.ff-mobile-sample:active { background: #e0f2fe; }

@media (max-width: 768px) {
  body {
    padding-bottom: 56px !important;
  }
  .ff-floating-whatsapp-wrap {
    bottom: 70px !important;
    right: 16px !important;
  }
  .ff-whatsapp-btn {
    width: 48px !important;
    height: 48px !important;
  }
  .ff-whatsapp-icon {
    font-size: 26px !important;
  }
  .ff-whatsapp-tooltip {
    display: none !important;
  }
}

/* ==============================================================================
   3. Indian B2B Commercial Procurement Trust Ribbon
   ============================================================================== */
.ff-india-trust-ribbon {
  background: #0f172a;
  color: #f8fafc;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ff-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .ff-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 540px) {
  .ff-trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.ff-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ff-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(216, 11, 50, 0.12);
  color: #ff5470;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid rgba(216, 11, 50, 0.25);
}

.ff-trust-text h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
}

.ff-trust-text p {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

