/* Unified contact FAB — kanan bawah: 1 ikon → Chatbot + WhatsApp */
.contact-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .contact-fab {
    right: 1.75rem;
    bottom: 2rem;
  }
}

.contact-fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.contact-fab.is-open .contact-fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-fab-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgb(201 169 98 / 24%);
  background: rgb(18 18 20 / 96%);
  color: #f4efe6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgb(0 0 0 / 38%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.contact-fab-action:hover {
  transform: translateY(-2px);
  border-color: rgb(201 169 98 / 42%);
  box-shadow: 0 14px 32px rgb(0 0 0 / 45%);
}

.contact-fab-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-fab-chat .contact-fab-action-icon {
  color: #fff;
  background: linear-gradient(145deg, #b53434, #6f1d1d 70%, #4a1212);
  border: 1px solid rgb(201 169 98 / 28%);
}

.contact-fab-wa .contact-fab-action-icon {
  color: #fff;
  background: linear-gradient(145deg, #25d366, #128c7e);
  border: 2px solid rgb(255 255 255 / 16%);
}

.contact-fab-action-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.contact-fab-chat .contact-fab-action-icon svg {
  fill: none;
  stroke: currentColor;
}

.contact-fab-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(201 169 98 / 32%);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #b53434, #6f1d1d 68%, #4a1212);
  box-shadow:
    0 12px 28px rgb(79 18 18 / 42%),
    0 0 0 1px rgb(201 169 98 / 14%) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-fab-main:hover {
  transform: scale(1.06);
  box-shadow:
    0 14px 34px rgb(79 18 18 / 50%),
    0 0 0 1px rgb(201 169 98 / 24%) inset;
}

.contact-fab-main svg {
  width: 1.45rem;
  height: 1.45rem;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.contact-fab-main .contact-fab-icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.contact-fab.is-open .contact-fab-main .contact-fab-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.contact-fab.is-open .contact-fab-main .contact-fab-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.contact-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgb(201 169 98 / 45%);
  animation: contact-fab-ping 2.4s ease-out infinite;
  pointer-events: none;
}

.contact-fab.is-open .contact-fab-pulse {
  display: none;
}

@keyframes contact-fab-ping {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Sembunyikan tombol chat lama — tetap ada di DOM untuk fallback hydrate */
.sticky-wa,
.banteng-chat-toggle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

astro-island > div.fixed {
  display: none !important;
}

.banteng-chat-root {
  pointer-events: auto;
}

.banteng-chat-panel {
  pointer-events: auto;
}