/* Botões flutuantes — WhatsApp + topo */

.vtk-float-actions {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  pointer-events: none;
}

.vtk-float-actions > * {
  pointer-events: auto;
}

.vtk-float-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.vtk-float-btn__icon {
  display: block;
  flex-shrink: 0;
}

.vtk-float-btn__icon--top {
  width: 24px;
  height: 24px;
}

.vtk-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

.vtk-float-btn:active {
  transform: translateY(0);
}

.vtk-float-btn--wa {
  background: #25d366;
  color: #fff;
}

.vtk-float-btn--wa:hover {
  background: #1ebe57;
  color: #fff;
}

.vtk-float-btn--top {
  background: #fff;
  color: var(--foreground, #0f172a);
  border: 1px solid rgba(15, 23, 42, 0.08);
  opacity: 0;
  max-height: 0;
  min-height: 0;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  border-width: 0;
  box-shadow: none;
  pointer-events: none;
  transform: translateY(10px) scale(0.92);
  transition:
    max-height 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    min-height 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    margin-top 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.28s ease,
    border-width 0.2s ease,
    background 0.2s ease;
}

.vtk-float-actions.is-expanded .vtk-float-btn--top {
  opacity: 1;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  margin-top: 10px;
  border-width: 1px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.vtk-float-btn--top:hover {
  background: var(--secondary, #f4f4f4);
  color: var(--primary, #f97316);
}

.vtk-float-actions.is-expanded .vtk-float-btn--top:hover {
  transform: translateY(-2px) scale(1);
}

body.page-budget .vtk-float-actions {
  display: none !important;
}

@media (max-width: 767.98px) {
  .vtk-float-actions {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vtk-float-btn,
  .vtk-float-btn--top {
    transition: none;
  }
}
