/* Fullscreen loader container */
#loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loader animation */
#loader::before,
#loader::after {
  content: "";
  position: absolute;
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
}

#loader::before {
  box-shadow: -25px 0;
  animation: l8-1 1s infinite linear;
}

#loader::after {
  transform: rotate(0deg) translateX(25px);
  animation: l8-2 1s infinite linear;
}

@keyframes l8-1 {
  100% {
    transform: translateX(25px);
  }
}
@keyframes l8-2 {
  100% {
    transform: rotate(-180deg) translateX(25px);
  }
}

/* whatsapp  */

#whatsapp-chat-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

#whatsapp-btn {
  background-color: #25d366;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

#whatsapp-btn img {
  width: 28px;
  height: 28px;
}

.chat-box {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: white;
  color: black;
  padding: 15px;
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 14px;
}

.chat-box a {
  display: inline-block;
  margin-top: 10px;
  color: #25d366;
  font-weight: bold;
  text-decoration: none;
}

.floating-button-group {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

.scroll-top-btn,
#whatsapp-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Scroll-up styles */
.scroll-top-btn {
  background-color: #343a40;
  color: white;
  display: none; /* JS will toggle it */
}

.scroll-top-btn i {
  font-size: 22px;
}

/* WhatsApp styles */
#whatsapp-btn {
  background-color: #25D366;
}

#whatsapp-btn img {
  width: 24px;
  height: 24px;
}

/* Optional: Chat Box Styling */
.chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #fff;
  color: #000;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1001;
}




