/* Disable animations but ensure messages are visible */
.wpcf7-response-output {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    display: block !important;
    opacity: 1 !important;
    position: static !important;
    visibility: visible !important;
}

.wpcf7-response-output.run-animation {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    display: block !important;
    opacity: 1 !important;
    position: static !important;
    visibility: visible !important;
}

.wpcf7-not-valid-tip-text {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    display: block !important;
    opacity: 1 !important;
    position: static !important;
    visibility: visible !important;
}

/* Ensure the response output shows when form has errors */
.wpcf7-form.invalid .wpcf7-response-output {
    display: block !important;
    opacity: 1 !important;
}

/* Ensure it's hidden initially */
.wpcf7-response-output[aria-hidden="true"] {
    display: none !important;
}

.wpcf7-response-output[aria-hidden="false"] {
    display: block !important;
}

.wpcf7-not-valid-tip-text {
	color: red;
}

.elementor-element-565661b {
  justify-content: center;
}

.newsletter-bottom .wpcf7-response-output {
  margin-left: 0 !important;
  margin-top: 0 !important;
}

.service-card-unit {
	padding-left: 10px;
	padding-right: 10px;
}

.review-slider .swiper {
	margin: 0;
}

.newsletter-shortcode .newsletter-col label {
	width: 100%;
}

#floating-chatbot-button {
	right: 70px;
	bottom: 10px;
}

#floating-chatbot #mxchat-chatbot #chat-container #input-container {
	background-color: white !important;
}

#floating-chatbot .exit-chat svg {
	fill: white !important;
}

.elementor-custom-embed-play i,
.elementor-custom-embed-play svg {
  opacity:1;
}

.service-card .elementor-widget-text-editor .elementor-widget-container {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: calc(2.4em * 2 - 2px);
}

/* Replace your existing #floating-chatbot-button rules with this single consolidated rule */
#floating-chatbot-button {
    /* Core positioning */
    position: fixed !important;
    bottom: 10px;
    right: 70px;
    
    /* Appearance */
    width: 60px;
    height: 60px;
    background-color: #ff6633 !important;
    color: #fff !important;
    border-radius: 50%;
    
    /* Layout */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Interaction */
    cursor: pointer;
    font-size: 1.25rem;
    
    /* Effects */
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2) !important;
    transition: opacity 1s ease-in-out, transform .3s;
    opacity: 1;
    
    /* Critical mobile fixes */
    z-index: 100000;
    transform: translateZ(0); /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    will-change: transform;
    touch-action: manipulation;
}

/* Mobile adjustments */
@media (max-width: 550px) {
    #floating-chatbot-button {
        bottom: 20px !important;
        right: 60px !important;
        position: fixed !important; /* Force fixed on mobile */
    }
}

/* Tablet adjustments - fix floating issue */
@media (min-width: 551px) and (max-width: 1024px) {
    #floating-chatbot-button {
        position: fixed !important; /* Force fixed on tablet */
        transform: translateZ(0) !important; /* Force hardware acceleration */
        -webkit-transform: translateZ(0) !important;
        will-change: transform !important;
    }
}

/* iOS Safari specific fix */
@supports (-webkit-touch-callout: none) {
    #floating-chatbot-button {
        bottom: calc(30px + env(safe-area-inset-bottom));
        right: calc(15px + env(safe-area-inset-right));
    }
    
    @media (max-width: 550px) {
        #floating-chatbot-button {
            bottom: calc(15px + env(safe-area-inset-bottom)) !important;
            right: calc(10px + env(safe-area-inset-right)) !important;
        }
    }
}

/* Enhanced tablet fix */
@media (min-width: 551px) and (max-width: 1024px) {
    #floating-chatbot-button {
        position: fixed !important;
        position: -webkit-sticky !important; /* Fallback for some browsers */
        bottom: 20px !important;
        right: 70px !important;
        transform: translate3d(0,0,0) !important; /* Better than translateZ */
        -webkit-transform: translate3d(0,0,0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        will-change: auto !important; /* Sometimes 'transform' causes issues */
        z-index: 2147483647 !important; /* Maximum z-index */
    }
    
    /* Ensure no parent transforms interfere */
    body {
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/* Force repaint on tablets */
@media (min-width: 551px) and (max-width: 1024px) {
    #floating-chatbot-button::after {
        content: '';
        position: absolute;
        width: 1px;
        height: 1px;
        animation: forceRepaint 1s infinite;
    }
}

@keyframes forceRepaint {
    from { opacity: 0.99999; }
    to { opacity: 1; }
}

div.wpac {
	font-family: inherit !important;
}
