/* ==========================================================================
   Chat / Popup Trigger Buttons - v1.0.4
   - Original architecture preserved
   - Open Button (#brxe-qiuyoo), Close Button (#brxe-xyenzf)
   - Fixed: Keeps close button hidden by default while centered when active
   ========================================================================== */

/* 1. Pulse Animation */
.chat-pulse-button {
    animation: soft-pulse 3s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.chat-pulse-button:hover {
    transform: scale(1.1);
}

@keyframes soft-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(97, 154, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(97, 154, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(97, 154, 255, 0);
    }
}

/* 2. Remove focus outlines */
#brxe-qiuyoo:focus, 
#brxe-xyenzf:focus,
.bricks-button:focus,
.bricks-icon:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 3. Target the buttons ONLY when Bricks toggles them active via inline style */
#brxe-qiuyoo[style*="display: block"],
#brxe-xyenzf[style*="display: block"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 4. Icon & SVG alignment reset */
#brxe-qiuyoo .chat-icon,
#brxe-xyenzf .chat-icon,
#brxe-qiuyoo i,
#brxe-xyenzf i,
#brxe-qiuyoo svg,
#brxe-xyenzf svg {
  margin: 0 !important;
  line-height: 1 !important;
  display: block !important;
}