.floating-contact-menu {
  --floating-y: 62vh;
  position: fixed;
  right: clamp(10px, 1.2vw, 20px);
  top: var(--floating-y);
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.floating-contact-menu__item {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(206, 220, 243, 0.5);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(8, 28, 58, 0.22);
  color: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease,
    background 0.22s ease, border-color 0.22s ease;
}

.floating-contact-menu__item::selection {
  background: transparent;
}

.floating-contact-menu__item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.floating-contact-menu__item--email {
  background: linear-gradient(140deg, #0f65d9, #0a84ff);
  border-color: rgba(119, 185, 255, 0.55);
}

.floating-contact-menu__item--whatsapp {
  background: linear-gradient(140deg, #12a84f, #1fcb68);
  border-color: rgba(129, 232, 166, 0.55);
}

.floating-contact-menu__item--email,
.floating-contact-menu__item--whatsapp {
  box-shadow: 0 15px 32px rgba(7, 34, 72, 0.32);
  animation: floating-contact-breathe 2.2s ease-in-out infinite;
}

.floating-contact-menu__item--whatsapp {
  animation-delay: 0.35s;
}

.floating-contact-menu__item::before {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(10, 33, 68, 0.95);
  color: #e8f2ff;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-contact-menu__item::after {
  content: "";
  position: absolute;
  right: calc(100% + 3px);
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(10, 33, 68, 0.95);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.floating-contact-menu__item:hover,
.floating-contact-menu__item:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 36px rgba(8, 41, 86, 0.36);
  transform: translateY(-3px) scale(1.03);
  filter: saturate(1.09) brightness(1.03);
}

.floating-contact-menu__item:hover::before,
.floating-contact-menu__item:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.floating-contact-menu__item:hover::after,
.floating-contact-menu__item:focus-visible::after {
  opacity: 1;
}

.floating-contact-menu__item:focus-visible {
  outline: 2px solid rgba(116, 189, 255, 0.95);
  outline-offset: 2px;
}

@keyframes floating-contact-breathe {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(7, 34, 72, 0.29);
  }
  50% {
    box-shadow: 0 18px 36px rgba(7, 34, 72, 0.44);
  }
}

@media (max-width: 900px) {
  .floating-contact-menu {
    right: 10px;
  }

  .floating-contact-menu__item {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .floating-contact-menu__item::before,
  .floating-contact-menu__item::after {
    display: none;
  }
}
