/* ==========================================================================
   Arvis WhatsApp — FAB styles
   Folosesc variabile din tokens.css + custom.css.
   ========================================================================== */

.arvis-wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 200ms cubic-bezier(0.2, 0, 0, 1);
}

.arvis-wa-fab:hover,
.arvis-wa-fab:focus-visible {
  color: #ffffff;
  background: #1FBB58;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.arvis-wa-fab:active { transform: scale(0.98); }

.arvis-wa-fab__icon {
  width: 28px;
  height: 28px;
  display: block;
}

.arvis-wa-fab__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--arvis-midnight, #111827);
  color: #ffffff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.2, 0, 0, 1);
}

.arvis-wa-fab__label::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--arvis-midnight, #111827);
}

.arvis-wa-fab:hover .arvis-wa-fab__label,
.arvis-wa-fab:focus-visible .arvis-wa-fab__label { opacity: 1; }

@media (max-width: 767px) {
  .arvis-wa-fab {
    right: 16px;
    bottom: 76px; /* deasupra bottom nav-ului mobile (60px) + spatiere */
    width: 50px;
    height: 50px;
  }
  .arvis-wa-fab__icon { width: 24px; height: 24px; }
  .arvis-wa-fab__label { display: none; }
}

/* Pe PDP mobile, ridica FAB-ul si mai mult deasupra sticky CTA-ului.
   PS9 foloseste selectorii body#product / body.id-product / body.page-product. Acoperim toate. */
@media (max-width: 767px) {
  body#product .arvis-wa-fab,
  body.product-page .arvis-wa-fab,
  body.page-product .arvis-wa-fab,
  body[class*="id-product"] .arvis-wa-fab,
  body[class*="product-id"] .arvis-wa-fab {
    bottom: calc(60px + 64px + 12px + env(safe-area-inset-bottom, 0)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arvis-wa-fab { transition: none; }
  .arvis-wa-fab:hover,
  .arvis-wa-fab:focus-visible { transform: none; }
}
