#ifta-whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
}

.ifta-wa-popup {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 328px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

#ifta-whatsapp-widget.is-open .ifta-wa-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ifta-wa-popup-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 6px 6px 0 #00e785;
}

.ifta-wa-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #00e785;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}

.ifta-wa-avatar img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.ifta-wa-greeting {
  margin-bottom: 18px;
}

.ifta-wa-greeting .ifta-wa-hi {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: #111111;
}

.ifta-wa-greeting .ifta-wa-help {
  margin: 0;
  font-size: 15px;
  color: #111111;
}

.ifta-wa-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  padding: 13px 16px;
  border-radius: 12px;
  box-shadow: 5px 5px 0 #00e785;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s ease;
}

.ifta-wa-cta:hover,
.ifta-wa-cta:focus {
  color: #ffffff;
  text-decoration: none;
  transform: translate(-1px, -1px);
}

.ifta-wa-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #00e785;
}

.ifta-wa-cta-icon {
  flex-shrink: 0;
  display: flex;
}

.ifta-wa-cta-text {
  flex: 1;
}

.ifta-wa-cta-arrow {
  flex-shrink: 0;
  display: flex;
  opacity: 0.9;
}

.ifta-wa-tail-wrap {
  position: relative;
  height: 14px;
  margin-top: -1px;
}

.ifta-wa-tail-shadow {
  position: absolute;
  right: 22px;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 14px solid #00e785;
}

.ifta-wa-tail {
  position: absolute;
  right: 24px;
  bottom: 2px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid #ffffff;
}

.ifta-wa-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #00e785;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.ifta-wa-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.ifta-wa-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

#ifta-whatsapp-widget.is-open .ifta-wa-toggle-icon--wa {
  display: none;
}

#ifta-whatsapp-widget:not(.is-open) .ifta-wa-toggle-icon--close {
  display: none;
}

@media (max-width: 480px) {
  #ifta-whatsapp-widget {
    bottom: 16px;
    right: 16px;
  }

  .ifta-wa-popup {
    width: calc(100vw - 32px);
    right: 0;
  }
}
