/* ── Q-COMMERCE LANDING PAGES ACCENTS & OVERRIDES ──────────────── */

:root {
  --platform-accent: #E60023; /* fallback brand red */
}

/* Custom classes for setting brand colors on body */
body.blinkit-page {
  --platform-accent: #ECBE25; /* Blinkit Yellow */
}

body.zepto-page {
  --platform-accent: #7E2E84; /* Zepto Purple */
}

body.instamart-page {
  --platform-accent: #FC8019; /* Instamart Orange */
}

/* Override background transparency rules from style.css for Q-Commerce pages */
body.qc-page > header.bg-\[\#212121\],
body.qc-page > section.bg-\[\#212121\] {
  background-color: #212121 !important;
}

body.qc-page > header.bg-velocity-red,
body.qc-page > section.bg-velocity-red {
  background-color: #E60023 !important;
}

body.qc-page > section.bg-white {
  background-color: #ffffff !important;
}

body.qc-page > section.bg-light-gray,
body.qc-page > section.bg-\[\#F5F5F5\] {
  background-color: #F5F5F5 !important;
}

body.qc-page > footer {
  background-color: #F5F5F5 !important;
}

html.dark body.qc-page > section.dark\:bg-ambitious-black {
  background-color: #212121 !important;
}

html.dark body.qc-page > section.dark\:bg-card-dark {
  background-color: #2a2a2a !important;
}

html.dark body.qc-page > footer {
  background-color: #212121 !important;
}

/* Custom platform accent text and border utilities */
.text-platform {
  color: var(--platform-accent);
}

.border-platform {
  border-color: var(--platform-accent);
}

.bg-platform-light {
  background-color: rgba(var(--platform-accent-rgb, 230, 0, 35), 0.1);
}

/* ── WHATSAPP FLOATING BUTTON ─────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ── STICKY CALL TO ACTION TAB ────────────────────────────────── */
.sticky-call-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right bottom;
  background-color: #E60023;
  color: white;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
  z-index: 998;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s ease, margin-right 0.3s;
  margin-right: -2px;
}

.sticky-call-tab:hover {
  background-color: #212121;
}

html.dark .sticky-call-tab:hover {
  background-color: #ffffff;
  color: #212121;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-icon {
    width: 24px;
    height: 24px;
  }
  .sticky-call-tab {
    padding: 10px 20px;
    font-size: 9px;
  }
}
