/* GF Ingetrans - WhatsApp Widget CSS */
:root {
  --gfwa-brand: #25D366;
  --gfwa-icon-color: #ffffff;
}

.gfwa-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  pointer-events: none; /* Let clicks pass through empty space */
}

/* Let children capture clicks */
.gfwa-btn, .gfwa-bubble {
  pointer-events: auto;
}

/* Button Base */
.gfwa-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--gfwa-brand);
  color: var(--gfwa-icon-color);
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15), 0 10px 30px rgba(var(--gfwa-brand), 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.gfwa-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 14px 40px rgba(var(--gfwa-brand), 0.4);
}

.gfwa-btn__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gfwa-btn__icon {
  display: grid;
  place-items: center;
}
.gfwa-btn__icon i,
.gfwa-btn__icon svg {
  fill: currentColor;
}

/* ── TEMPLATES ── */

/* 1. Classic */
.gfwa-tpl-classic .gfwa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* 2. Pill */
.gfwa-tpl-pill .gfwa-btn {
  padding: 12px 24px;
}
.gfwa-tpl-pill .gfwa-btn__icon {
  margin-right: 10px;
}
.gfwa-text {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: var(--gfwa-icon-color);
  white-space: nowrap;
}

/* 3. Bubble */
.gfwa-tpl-bubble .gfwa-container {
  gap: 12px;
}
.gfwa-tpl-bubble.gfwa-bottom {
  flex-direction: column;
  align-items: flex-end;
}
.gfwa-tpl-bubble.gfwa-bottom.gfwa-left {
  align-items: flex-start;
}
.gfwa-tpl-bubble.gfwa-top {
  flex-direction: column-reverse;
  align-items: flex-end;
}
.gfwa-tpl-bubble.gfwa-top.gfwa-left {
  align-items: flex-start;
}

.gfwa-tpl-bubble .gfwa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.gfwa-bubble {
  position: relative;
  background: #ffffff;
  padding: 12px 40px 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: gfwa-slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s forwards;
  border: 1px solid #f1f5f9;
}
.gfwa-bubble .gfwa-text {
  color: #1e293b; /* Dark text for light bubble */
}

/* Caret for Bubble */
.gfwa-bubble::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

/* Positioning Caret based on corner */
.gfwa-bottom.gfwa-right .gfwa-bubble::after {
  bottom: -7px;
  right: 24px;
  transform: rotate(45deg);
}
.gfwa-bottom.gfwa-left .gfwa-bubble::after {
  bottom: -7px;
  left: 24px;
  transform: rotate(45deg);
}
.gfwa-top.gfwa-right .gfwa-bubble::after {
  top: -7px;
  right: 24px;
  transform: rotate(-135deg);
}
.gfwa-top.gfwa-left .gfwa-bubble::after {
  top: -7px;
  left: 24px;
  transform: rotate(-135deg);
}

.gfwa-bubble-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s;
}
.gfwa-bubble-close:hover {
  color: #0f172a;
}

/* Animations */
@keyframes gfwa-slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── PULSE EFFECT ── */
.gfwa-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  z-index: 1;
  background: transparent;
}
.gfwa-has-pulse .gfwa-pulse-ring::before,
.gfwa-has-pulse .gfwa-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 99px;
  border: 2px solid var(--gfwa-brand);
  opacity: 0;
  animation: gfwa-pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.gfwa-has-pulse .gfwa-pulse-ring::after {
  animation-delay: 1s;
}

@keyframes gfwa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
