/**
 * WhatsApp Chat Widget - Minimal Safe CSS v2.0
 * Only essential styles to prevent conflicts
 */

/* Widget container - minimal styles, most are inline */
.whatsapp-widget-safe {
  /* Removed entrance animation to prevent conflicts with pulse animation */
}

/* Removed fixed-color pulse rules - animation is injected dynamically per color */

/* Ensure widget doesn't interfere with page elements */
.whatsapp-widget-safe * {
  box-sizing: border-box !important;
}

.whatsapp-widget-fallback-image {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}

.whatsapp-widget-video {
  position: relative !important;
  overflow: hidden !important;
}

.whatsapp-widget-video--circle {
  border-radius: 9999px !important;
}

.whatsapp-widget-video--girl {
  border-radius: 20px !important;
}

.whatsapp-widget-video-element {
  border-radius: inherit !important;
}

.whatsapp-widget-video-close {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  width: 26px !important;
  height: 26px !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: opacity 0.2s ease !important;
  opacity: 0.8 !important;
}

.whatsapp-widget-video-close:hover,
.whatsapp-widget-video-close:focus {
  opacity: 1 !important;
}

.whatsapp-widget-variant-video_circle1 .whatsapp-widget-video-element,
.whatsapp-widget-variant-video_circle1 .whatsapp-widget-fallback-image {
  transform: scale(1.12) !important;
  transform-origin: center center !important;
}

.whatsapp-widget-variant-icon_classic .whatsapp-widget-fallback-image {
  object-fit: contain !important;
  background-color: transparent !important;
}

/* Focus styles for accessibility */
.whatsapp-widget-safe:focus {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .whatsapp-widget-safe {
    /* Mobile adjustments handled by JavaScript */
  }
  .whatsapp-widget-video--girl {
    border-radius: 16px !important;
  }
}
