/* English source only — Google Translate handles page translation */
.bilingual-es {
  display: none !important;
}

.bilingual-en {
  display: unset !important;
}

/* Fallback when Google Translate is blocked (Spanish hand-translated spans) */
html.lang-fallback-es .bilingual-en {
  display: none !important;
}

html.lang-fallback-es .bilingual-es {
  display: unset !important;
}

/* Two independent floating FABs — bottom-right (language pill stays bottom-left) */
:root {
  --fab-size: 50px;
  --fab-gap: 0.75rem;
  --fab-inset: 1.5rem;
}

@media (min-width: 768px) {
  :root {
    --fab-size: 58px;
    --fab-gap: 0.875rem;
    --fab-inset: 2rem;
  }
}

.floating-widget {
  position: fixed;
  right: max(var(--fab-inset), env(safe-area-inset-right, 0px));
  z-index: 100;
  pointer-events: auto;
}

/* WhatsApp — bottom-right corner */
#whatsapp-btn.floating-widget {
  bottom: max(var(--fab-inset), env(safe-area-inset-bottom, 0px));
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  background: linear-gradient(145deg, #8B7355 0%, #6B5344 55%, #3D3632 100%);
  border: 2.5px solid #FAF8F5;
  box-shadow:
    0 1px 3px rgba(61, 54, 50, 0.1),
    0 2px 8px rgba(61, 54, 50, 0.08),
    inset 0 1px 0 rgba(250, 248, 245, 0.15);
  cursor: pointer;
  text-decoration: none;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Skynet AI bubble anchor — stacked above WhatsApp */
#va-bubble-anchor.floating-widget {
  bottom: calc(
    max(var(--fab-inset), env(safe-area-inset-bottom, 0px)) + var(--fab-size) + var(--fab-gap)
  );
  display: flex;
  flex-shrink: 0;
  line-height: 0;
  width: var(--fab-size);
  height: var(--fab-size);
}

#va-bubble-anchor.va-panel-open {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#whatsapp-btn svg {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  color: #FAF8F5;
  fill: currentColor;
  filter: none;
}

#whatsapp-btn:hover,
#whatsapp-btn:active {
  transform: scale(1.04) translateY(-1px);
  border-color: #FAF8F5;
  box-shadow:
    0 2px 8px rgba(61, 54, 50, 0.12),
    0 4px 12px rgba(61, 54, 50, 0.1),
    inset 0 1px 0 rgba(250, 248, 245, 0.18);
}

#whatsapp-btn:hover svg,
#whatsapp-btn:active svg {
  color: #F5EFE6;
}

.wa-bubble-ripple {
  display: none;
}

@keyframes wa-ripple {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.55); opacity: 0; }
}