/**
 * WhatsApp contact entry point.
 * Floating launcher only: ink body, gold hairline, WhatsApp-green glyph.
 * Anchored bottom-left so it never competes with the cart or the bottom-right toast.
 */
.nacre-whatsapp {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  --nacre-wa-lift: 0px;
}

.nacre-whatsapp__bubble {
  position: relative;
  max-width: min(288px, 78vw);
  padding: 14px 40px 14px 16px;
  background: var(--ink);
  color: #f4f1ea;
  border: 1px solid rgba(179, 137, 77, 0.42);
  border-radius: 2px;
  box-shadow: var(--shadow-dark);
  font-size: 13px;
  line-height: 1.5;
}

.nacre-whatsapp__bubble::after {
  content: "";
  position: absolute;
  left: 23px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-right: 1px solid rgba(179, 137, 77, 0.42);
  border-bottom: 1px solid rgba(179, 137, 77, 0.42);
  transform: rotate(45deg);
}

.nacre-whatsapp__nudge {
  margin: 0;
  color: inherit;
}

.nacre-whatsapp__dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(244, 241, 234, 0.62);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background-color 160ms ease;
}

.nacre-whatsapp__dismiss:hover,
.nacre-whatsapp__dismiss:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nacre-whatsapp__dismiss svg {
  width: 14px;
  height: 14px;
}

.nacre-whatsapp__launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #23201a, #0f0e0c 68%);
  border: 1px solid rgba(179, 137, 77, 0.5);
  box-shadow: 0 12px 30px rgba(15, 14, 12, 0.28);
  color: #25d366;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.nacre-whatsapp__launcher:hover,
.nacre-whatsapp__launcher:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(216, 189, 140, 0.85);
  box-shadow: 0 18px 38px rgba(15, 14, 12, 0.34);
}

.nacre-whatsapp__launcher:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.nacre-whatsapp__glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.nacre-whatsapp__glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .nacre-whatsapp {
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--nacre-wa-lift));
    gap: 10px;
  }

  .nacre-whatsapp__launcher {
    width: 52px;
    height: 52px;
  }

  .nacre-whatsapp__bubble {
    max-width: min(232px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nacre-whatsapp__launcher,
  .nacre-whatsapp__dismiss {
    transition: none;
  }

  .nacre-whatsapp__launcher:hover,
  .nacre-whatsapp__launcher:focus-visible {
    transform: none;
  }
}
