/* Musayda WhatsApp chat — brand-aligned floating action */
:root {
  --wa-gold: #d6c39a;
  --wa-gold-light: #e8dcc4;
  --wa-gold-dark: #b8a074;
  --wa-midnight: #0b0b0b;
}

.wa-chat {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "TWK Lausanne", "Inter", system-ui, sans-serif;
}

.wa-chat__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--wa-midnight);
  background: linear-gradient(145deg, var(--wa-gold-light), var(--wa-gold));
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 14px 18px 14px 14px;
  box-shadow:
    0 0 0 1px rgba(184, 160, 116, 0.25),
    0 8px 28px rgba(11, 11, 11, 0.28),
    0 2px 8px rgba(184, 160, 116, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.wa-chat__link:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #f0e6d2, var(--wa-gold-light));
  box-shadow:
    0 0 0 1px rgba(184, 160, 116, 0.4),
    0 12px 36px rgba(11, 11, 11, 0.32),
    0 4px 14px rgba(184, 160, 116, 0.45);
}

.wa-chat__link:focus-visible {
  outline: 2px solid var(--wa-gold-dark);
  outline-offset: 3px;
}

.wa-chat__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa-midnight);
  color: var(--wa-gold-light);
  box-shadow: inset 0 0 0 1px rgba(214, 195, 154, 0.2);
}

.wa-chat__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.wa-chat__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: 4px;
  min-width: 0;
}

.wa-chat__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--wa-midnight);
}

.wa-chat__hint {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(11, 11, 11, 0.58);
}

.wa-chat__pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(214, 195, 154, 0.55);
  animation: waPulse 2.8s ease-out infinite;
}

.wa-chat__link-wrap {
  position: relative;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 195, 154, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(214, 195, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 195, 154, 0);
  }
}

.wa-chat--inline {
  position: static;
  z-index: auto;
  margin-top: 18px;
}

.wa-chat--inline .wa-chat__link {
  width: fit-content;
}

@media (max-width: 640px) {
  .wa-chat__copy {
    display: none;
  }

  .wa-chat__link {
    padding: 12px;
    border-radius: 50%;
  }

  .wa-chat__icon {
    width: 48px;
    height: 48px;
  }

  .wa-chat__icon svg {
    width: 24px;
    height: 24px;
  }
}

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

  .wa-chat__link {
    transition: none;
  }
}
