/* Matembo WhatsApp edge tab – creative safari enquiry */

.wa-float {
  position: fixed;
  right: 0;
  bottom: clamp(4rem, 10vh, 5.5rem);
  z-index: 850;
  text-decoration: none;
  transform: translateX(calc(100% - 2.35rem));
  transition: transform 0.4s var(--ease-out);
  max-width: 100vw;
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: translateX(0);
}

.wa-float__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 244, 0.96) 100%);
  border: 1px solid rgba(38, 136, 72, 0.22);
  border-right: 0;
  box-shadow:
    -4px 6px 22px rgba(38, 136, 72, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wa-float__pulse {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(37, 211, 102, 0.18);
  animation: wa-pulse 2.6s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: translateY(-50%) scale(0.85); opacity: 0.65; }
  100% { transform: translateY(-50%) scale(1.55); opacity: 0; }
}

.wa-float__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #25d366 0%, #1a9f4a 55%, #16803c 100%);
  color: #fff;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow:
    0 3px 10px rgba(26, 159, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.wa-float__icon i {
  line-height: 1;
}

.wa-float__copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding-right: 0.15rem;
}

.wa-float__label {
  font-family: var(--font-signature);
  font-size: 0.95rem;
  line-height: 1;
  color: var(--color-gold-dark);
}

.wa-float__text {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-dark);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .wa-float {
    bottom: 1rem;
    transform: translateX(calc(100% - 2.15rem));
  }

  .wa-float__icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .wa-float__pulse {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float__pulse {
    animation: none;
  }
}
