/* ============================================================
   RVG Form WA Floating Button — Clean Edition (v2.4.8)
   - No shadow or glow
   - Simple hover color transition
   - Fully responsive (mobile + desktop)
   ============================================================ */

/* Wrapper */
#rvgfw-fab {
  position: fixed;
  right: var(--rvgfw-offset, 20px);
  bottom: var(--rvgfw-offset, 20px);
  z-index: 2147483647;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Anchor button */
#rvgfw-fab a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: none !important;           /* No shadow */
  transition: background 0.25s ease;
  line-height: 1;
}

/* Hover state — subtle only */
#rvgfw-fab a:hover {
  background: #1ebe57 !important;
  transform: none !important;
}

/* Icon */
#rvgfw-fab svg {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

/* Label text */
#rvgfw-fab span {
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
}

/* Visibility based on device */
@media (max-width: 1024px) {
  #rvgfw-fab[data-show-mobile="0"] {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  #rvgfw-fab[data-show-desktop="0"] {
    display: none !important;
  }
}

/* Overlay & modal (used when mode = modal) */
#rvgfw-fab-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2147483646;
  background: rgba(2, 6, 23, 0.55);
}

#rvgfw-fab-overlay.active,
#rvgfw-fab-overlay:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

#rvgfw-fab-overlay .rvgfw-fab-modal {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: min(var(--rvgfw-modal-width, 640px), 96vw);
  max-height: var(--rvgfw-modal-maxh, 90vh);
  position: relative;
}

#rvgfw-fab-overlay .rvgfw-fab-modal-body {
  padding: 18px;
  overflow: auto;
  max-height: calc(var(--rvgfw-modal-maxh, 90vh) - 40px);
}

#rvgfw-fab-overlay .rvgfw-fab-close {
  position: absolute;
  top: 10px;
  right: 14px;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}

/* Prevent scroll while modal open */
html:has(#rvgfw-fab-overlay.active),
body:has(#rvgfw-fab-overlay.active) {
  overflow: hidden !important;
}

/* Responsive modal tweaks */
@media (max-width: 768px) {
  #rvgfw-fab-overlay .rvgfw-fab-modal {
    width: 94%;
    margin: 4vh auto;
  }
  #rvgfw-fab-overlay .rvgfw-fab-modal-body {
    padding: 14px;
  }
}
