.share-float {
  position: fixed;
  right: 40px;
  bottom: 120px; /* sits above the floating WhatsApp button on service details */
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* RTL support */
[dir="rtl"] .share-float {
  right: auto;
  left: 40px;
}

.share-float__btn,
.share-float__item {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.share-float__btn:hover,
.share-float__item:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.share-float__btn {
  background: var(--color-primary, #2d6cdf);
  color: #fff;
  font-size: 20px;
}

.share-float__menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.share-float.is-open .share-float__menu {
  display: flex;
}

.share-float__item {
  color: #fff;
  font-size: 18px;
  opacity: 0.98;
}

.share-float__item:hover,
.share-float__btn:hover {
  color: #fff; /* prevent theme link-hover colors (e.g. red) */
}

.share-float__x-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.share-float__item--email {
  background: #374151;
}
.share-float__item--whatsapp {
  background: #25d366;
}
.share-float__item--facebook {
  background: #1877f2;
}
.share-float__item--x {
  background: #111827;
}
.share-float__item--instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.share-float__item--copy {
  background: #0f766e;
}
.share-float__item--more {
  background: #6b7280;
}

.share-float__item:focus,
.share-float__btn:focus {
  outline: none;
}

.share-float__item:focus-visible,
.share-float__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Small screens: keep away from edges */
@media (max-width: 575px) {
  .share-float {
    right: 18px;
    bottom: 110px;
  }

  [dir="rtl"] .share-float {
    left: 18px;
  }

  .share-float__btn,
  .share-float__item {
    width: 52px;
    height: 52px;
  }
}

