/* =======================================
   FLOATING ACTION BUTTONS (Brand Unified)
   ======================================= */
@import "themes.css";

#wa-fab, #instagram-fab {
  position: fixed !important;
  right: 20px !important;
  z-index: 50 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--accent) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

#wa-fab svg, #instagram-fab svg {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor !important;
  fill: none !important;
}

#wa-fab svg {
  fill: currentColor !important;
  stroke: none !important;
}

/* Mobile Positions */
#wa-fab {
  bottom: calc(var(--bottom-nav-height, 56px) + var(--safe-bottom, 0px) + 12px) !important;
}

#instagram-fab {
  bottom: calc(var(--bottom-nav-height, 56px) + var(--safe-bottom, 0px) + 72px) !important;
}

/* Desktop Positions */
@media (min-width: 768px) {
  #wa-fab { bottom: 20px !important; }
  #instagram-fab { bottom: 80px !important; }
}

#wa-fab:hover, #instagram-fab:hover {
  transform: scale(1.08) !important;
}

/* ── DEVARAMANE: Gold FABs matching bottom nav ── */
[data-brand="devaramane"] #wa-fab,
[data-brand="devaramane"] #instagram-fab {
  background: #B8860B !important;
  border: 1px solid rgba(254, 193, 1, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.45) !important;
}

/* Force white icon on the gold background */
[data-brand="devaramane"] #wa-fab svg {
  fill: #fff !important;
  stroke: none !important;
}

[data-brand="devaramane"] #instagram-fab svg {
  stroke: #fff !important;
  fill: none !important;
}

/* ── SILVERYTHM: Teal FABs ── */
[data-brand="silverythm"] #wa-fab,
[data-brand="silverythm"] #instagram-fab {
  background: #064b61 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(6, 75, 97, 0.45) !important;
}

/* ── UDUGORE: Navy FABs ── */
[data-brand="udugore"] #wa-fab,
[data-brand="udugore"] #instagram-fab {
  background: #0D1B4B !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  color: #C9A84C !important;
  box-shadow: 0 4px 20px rgba(13, 27, 75, 0.45) !important;
}

/* ── FAB OVERLAP FIX ──
   The collection animation section (#brand-specific-section)
   gets a higher z-index so it paints above the FABs.
   FABs (z-index: 50) sit below it (z-index: 51) when in that section.
   On all other sections, FABs are visible normally since those
   sections don't have a z-index set.
── */
#brand-specific-section {
  position: relative;
  z-index: 51;
}
