/* Floating Action Buttons Styles */
.floating-actions-container {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 99999; /* Ensure it is above everything */
  align-items: center;
  pointer-events: none; /* Let clicks pass through the container itself */
}

.floating-btn {
  pointer-events: auto; /* Re-enable clicks on the buttons */
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.3s ease, 
              background-color 0.3s ease, 
              opacity 0.4s ease, 
              visibility 0.4s ease;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  position: relative;
}

/* WhatsApp Button styling */
.floating-btn.whatsapp-btn {
  background-color: #25D366;
  color: #ffffff;
}
.floating-btn.whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
}

/* Call Button styling */
.floating-btn.call-btn {
  background-color: #007AFF;
  color: #ffffff;
}
.floating-btn.call-btn:hover {
  background-color: #0066d6;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.35);
}

/* Track Order — direct link, no modal */
a.floating-track-btn {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease,
              background-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  background-color: #2B140E;
  color: #e5b869;
  position: relative;
}
a.floating-track-btn:hover {
  background-color: #3d1e16;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 20px rgba(43, 20, 14, 0.35);
  color: #f3d392;
}
a.floating-track-btn:focus-visible {
  outline: 3px solid #FF9500;
  outline-offset: 3px;
}
a.floating-track-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
a.floating-track-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  display: block;
}
.header__icon[aria-label="Track Your Order"] svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}

/* Scroll To Top Button styling */
.floating-btn.scroll-to-top-btn {
  background-color: #2B140E;
  color: #FFF7EB;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none; /* Disabled when hidden */
}
.floating-btn.scroll-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-btn.scroll-to-top-btn:hover {
  background-color: #3d1e16;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 20px rgba(43, 20, 14, 0.35);
}

/* Icons styling */
.floating-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}

/* Keyboard focus states for accessibility */
.floating-btn:focus-visible {
  outline: 3px solid #FF9500;
  outline-offset: 3px;
}

/* Click / Active state animation */
.floating-btn:active {
  transform: translateY(0) scale(0.95) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustment for Mobile/Tablets */
@media (max-width: 768px) {
  .floating-actions-container {
    right: 16px;
    bottom: 16px;
    gap: 12px;
  }
  .floating-btn {
    width: 46px;
    height: 46px;
  }
  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
  a.floating-track-btn {
    width: 46px;
    height: 46px;
  }
  a.floating-track-btn svg {
    width: 22px;
    height: 22px;
  }
}
