/* ==========================================================================
   FLOATING CONTACT WIDGET - DeepLaxmi Textiles
   Fixed position on left screen edge with slide-out phone number display
   ========================================================================== */

.floating-contact-container {
  position: fixed;
  left: 24px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

/* Individual Item Group */
.floating-item-group {
  display: flex;
  align-items: center;
  position: relative;
}

/* Buttons */
.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}

.btn-phone {
  background-color: var(--primary-red);
}

.btn-phone:hover {
  background-color: var(--primary-red-hover);
  transform: scale(1.08);
}

.btn-wa {
  background-color: #25D366; /* Standard WhatsApp Green */
}

.btn-wa:hover {
  background-color: #20BA5A;
  transform: scale(1.08);
}

/* Slide-out Pill for Phone/WhatsApp numbers */
.number-display-pill {
  position: absolute;
  left: 25px; /* Halfway of button width for overlap effect */
  background-color: white;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(59, 31, 11, 0.1);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  padding: 8px 16px 8px 36px; /* High left padding to make space for the button overlay */
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.number-link {
  color: var(--text-dark);
  text-decoration: none;
}

.floating-item-group.expanded .number-display-pill {
  transform: scaleX(1);
  opacity: 1;
  pointer-events: auto;
}

.floating-item-group.expanded .floating-btn {
  transform: rotate(360deg);
}

/* Scrolled/Mobile responsive adjustments */
@media (max-width: 768px) {
  .floating-contact-container {
    left: 16px;
    bottom: 24px;
    gap: 12px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
  }

  .number-display-pill {
    left: 22px;
    padding: 6px 12px 6px 30px;
    font-size: 0.85rem;
  }
}
