/* =========================================================
   BABE Global Floating Actions
   Sitewide WhatsApp / Book / Top
   ========================================================= */

.babe-floating-actions {
  --babe-float-black: #050505;
  --babe-float-charcoal: #15111d;
  --babe-float-white: #ffffff;
  --babe-float-lilac: #d9ccff;
  --babe-float-lilac-strong: #8f72ff;
  --babe-float-green: #25d366;

  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  left: auto;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.babe-floating-actions__button {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  width: 58px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 204, 255, 0.24), transparent 36%),
    linear-gradient(135deg, var(--babe-float-black), var(--babe-float-charcoal));
  color: var(--babe-float-white);
  text-decoration: none;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.26),
    0 0 0 4px rgba(217, 204, 255, 0.13);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition:
    width 0.24s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.babe-floating-actions__button:hover,
.babe-floating-actions__button:focus-visible {
  width: 158px;
  justify-content: flex-start;
  padding-inline: 18px;
  transform: translateY(-2px);
  border-color: rgba(217, 204, 255, 0.42);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.32),
    0 0 0 5px rgba(217, 204, 255, 0.24);
  outline: none;
}

.babe-floating-actions__button svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: currentColor;
  color: #fff;
}

.babe-floating-actions__button span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    max-width 0.22s ease,
    opacity 0.18s ease;
}

.babe-floating-actions__button:hover span,
.babe-floating-actions__button:focus-visible span {
  max-width: 98px;
  opacity: 1;
}

.babe-floating-actions__button--whatsapp::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--babe-float-green);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.13);
}

.babe-floating-actions__button--book {
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 204, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #050505, #09090b);
}

.babe-floating-actions__button--top {
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 204, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #15111d, #050505);
}

.babe-floating-actions__button--top svg {
  width: 21px;
  height: 21px;
}

/* Keep GTranslate separate on the opposite side */
.gt_float_switcher,
.gtranslate_wrapper,
#gtranslate_wrapper {
  z-index: 9990;
}

/* Mobile: compact bottom-right icon stack */
@media (max-width: 760px) {
  .babe-floating-actions {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .babe-floating-actions__button {
    width: 52px;
    min-height: 52px;
  }

  .babe-floating-actions__button:hover,
  .babe-floating-actions__button:focus-visible {
    width: 52px;
    padding-inline: 0;
    justify-content: center;
  }

  .babe-floating-actions__button span,
  .babe-floating-actions__button:hover span,
  .babe-floating-actions__button:focus-visible span {
    max-width: 0;
    opacity: 0;
  }

  .babe-floating-actions__button svg {
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .babe-floating-actions__button,
  .babe-floating-actions__button span {
    transition: none;
  }
}
