/*
 * Gloo AI Assistant - WordPress Plugin Frontend Styles
 * Floating chat interface with configurable branding
 * 
 * Changes made:
 * - Updated from Church Law & Tax specific to generic Gloo AI branding  
 * - Updated all prefixes from CLT to GLOOAI for consistency
 * - Added comprehensive markdown processing CSS for GlooAI API responses
 * - Enhanced styling for headers, lists, code blocks, citations, and interactive elements
 * - Improved typography and accessibility for better user experience
 * - Added consistent list styling with .glooai-ai-response-list class
 * - Enhanced mobile responsiveness for phones and tablets (full-screen on mobile, 420px on tablets/small laptops)
 * - Added 13" MacBook screen size support (769px-1024px breakpoint)
 * 
 * Bug Fix (October 28, 2025):
 * - Fixed mobile layout: Removed conflicting .glooai-ai-chat-container class selector rules
 *   from mobile media query that were overriding full-screen layout with fixed 450px dimensions
 * - Mobile devices (≤768px) now correctly display chat container at 100% width/height
 * - Fixed iOS auto-zoom: Increased input field font-size to 16px on mobile (iOS zooms on inputs <16px)
 * - Added overflow:hidden and left:0 to prevent content overflow causing zoom
 * - Increased mobile input height to 36px to accommodate larger font size
 */

/* Floating Chat Bubble */
.glooai-ai-chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 96px;
    height: 96px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    outline: none;
    animation: bubblePulse 2s infinite;
}

/* Hide chat bubble initially when checking Advantage membership (prevents flash) */
.glooai-ai-chat-bubble.glooai-ai-checking-membership {
    display: none !important;
}

.glooai-ai-chat-bubble:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.16);
    border-color: #b6c2cf;
}

@keyframes bubblePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 0 0 10px rgba(59, 130, 246, 0.08);
    }
}

.glooai-ai-chat-bubble.open {
    background: #dc3545;
}

.glooai-ai-chat-bubble-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.glooai-ai-chat-bubble-icon-fallback {
    width: 40px;
    height: 40px;
    fill: #007cba;
    transition: all 0.3s ease;
}

.glooai-ai-chat-bubble.open .glooai-ai-chat-bubble-icon {
    transform: scale(0.8);
}

.glooai-ai-chat-bubble.open .glooai-ai-chat-bubble-icon-fallback {
    transform: rotate(45deg);
}

/* Chat Container */
.glooai-ai-chat-container {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 600px;
    height: 680px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    min-height: 480px;
    max-height: 720px;
}

.glooai-ai-chat-container.fullscreen {
    position: fixed;
    top: 20px;
    left: 50px;
    right: 20px;
    bottom: 80px; /* Leave space for chat bubble */
    width: auto;
    height: auto;
    border-radius: 8px;
    z-index: 1002;
}

/* Chat Header */
.glooai-ai-chat-header {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    min-height: 72px;
    position: relative;
    z-index: 10;
}

.glooai-ai-chat-container.fullscreen .glooai-ai-chat-header {
    border-radius: 8px 8px 0 0;
}

.glooai-ai-chat-title-section {
    flex: 1;
}

.glooai-ai-chat-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: white;
}

.glooai-ai-chat-subtitle {
    display: none; /* Hidden as requested */
}

.glooai-ai-chat-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.glooai-ai-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
}

.glooai-ai-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Refresh/Clear button styling */
.glooai-ai-control-btn.refresh-btn {
    font-size: 18px;
}

/* Conversation Management - Hidden */
.glooai-ai-conversation-bar {
    display: none !important; /* Hidden as requested - force hide */
    padding: 8px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 40px;
}

.glooai-ai-conversation-selector {
    display: none !important; /* Hidden as requested */
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    min-width: 120px;
}

.glooai-ai-new-conversation-btn {
    display: none !important; /* Hidden as requested */
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.glooai-ai-new-conversation-btn:hover {
    background: #005a8b;
}

/* Messages Area */
.glooai-ai-messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0; /* Allow it to shrink */
    height: calc(100% - 136px); /* 72px header + 64px input */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 124, 186, 0.3) transparent; /* Firefox */
}

/* Webkit scrollbar styling */
.glooai-ai-messages-container::-webkit-scrollbar {
    width: 6px;
}

.glooai-ai-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.glooai-ai-messages-container::-webkit-scrollbar-thumb {
    background: rgba(0, 124, 186, 0.3);
    border-radius: 3px;
}

.glooai-ai-messages-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 124, 186, 0.5);
}

.glooai-ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.glooai-ai-message.user {
    background: #007cba;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.glooai-ai-message.assistant {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

/* Assistant Avatar */
.glooai-ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -2px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.glooai-ai-message-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.glooai-ai-message-avatar-fallback {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.glooai-ai-message-content-wrapper {
    flex: 1;
    min-width: 0;
}

.glooai-ai-message.error {
    background: #dc3545;
    color: white;
    align-self: center;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.glooai-ai-message.thinking {
    background: #e9ecef;
    color: #6c757d;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    animation: glooai-ai-pulse 1.5s ease-in-out infinite;
}

@keyframes glooai-ai-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Enhanced Markdown Content Styling */
.glooai-ai-message-content.enhanced-markdown-content {
    line-height: 1.6;
    color: #333;
}

.glooai-ai-message-content.enhanced-markdown-content p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.glooai-ai-message-content.enhanced-markdown-content p:last-child {
    margin-bottom: 0;
}

/* Headers in chat messages */
.glooai-ai-message-content.enhanced-markdown-content h1,
.glooai-ai-message-content.enhanced-markdown-content h2,
.glooai-ai-message-content.enhanced-markdown-content h3 {
    color: #2c3e50;
    margin: 16px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.glooai-ai-message-content.enhanced-markdown-content h1:first-child,
.glooai-ai-message-content.enhanced-markdown-content h2:first-child,
.glooai-ai-message-content.enhanced-markdown-content h3:first-child {
    margin-top: 0;
}

.glooai-ai-message-content.enhanced-markdown-content h1 {
    font-size: 18px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 4px;
}

.glooai-ai-message-content.enhanced-markdown-content h2 {
    font-size: 16px;
    color: #007cba;
}

.glooai-ai-message-content.enhanced-markdown-content h3 {
    font-size: 15px;
    color: #5a6c7d;
}

/* Text formatting */
.glooai-ai-message-content.enhanced-markdown-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.glooai-ai-message-content.enhanced-markdown-content em {
    font-style: italic;
    color: #495057;
}

/* Lists */
.glooai-ai-message-content.enhanced-markdown-content ul,
.glooai-ai-message-content.enhanced-markdown-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.glooai-ai-message-content.enhanced-markdown-content li {
    margin-bottom: 2px; /* Reduced spacing between list items */
    line-height: 1.5;
    font-size: 14px; /* Match main text font size */
}

.glooai-ai-message-content.enhanced-markdown-content ul li {
    list-style-type: disc;
}

.glooai-ai-message-content.enhanced-markdown-content ol li {
    list-style-type: decimal;
}

/* Code styling */
.glooai-ai-message-content.enhanced-markdown-content code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 2px 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #e83e8c;
}

.glooai-ai-message-content.enhanced-markdown-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.glooai-ai-message-content.enhanced-markdown-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #495057;
    font-size: inherit;
}

/* Links */
.glooai-ai-message-content.enhanced-markdown-content a {
    color: #007cba;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.glooai-ai-message-content.enhanced-markdown-content a:hover {
    color: #005a8b;
    text-decoration: none;
}

/* Enhanced Citation Links */
.glooai-ai-message-content.enhanced-markdown-content sup {
    font-size: 10px;
    color: #007cba;
    margin-left: 1px;
    font-weight: bold;
}

.glooai-ai-message-content.enhanced-markdown-content .glooai-citation-link {
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 2px;
    padding: 1px 2px;
}

.glooai-ai-message-content.enhanced-markdown-content .glooai-citation-link:hover {
    background: #e3f2fd;
    color: #005a8b;
    transform: scale(1.1);
}

/* Legacy content formatting for backward compatibility */
.glooai-ai-message-content.enhanced-content {
    line-height: 1.7;
}

.glooai-ai-message-content .section-break {
    height: 16px;
}

.glooai-ai-message-content .paragraph-break {
    height: 16px;
    margin: 6px 0;
}

.glooai-ai-message-content .simple-list {
    line-height: 1.6;
    margin: 8px 0;
}

.glooai-ai-message-content .simple-list br {
    line-height: 1.8;
}

.glooai-ai-message-content .enhanced-paragraph {
    margin-bottom: 10px;
    line-height: 1.6;
}

.glooai-ai-message-content .numbered-list-item {
    margin: 12px 0;
    padding: 8px 0;
    line-height: 1.6;
    border-left: 3px solid #e3f2fd;
    padding-left: 12px;
}

/* Citations and Footnotes */
.glooai-ai-message-footnotes {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    font-family: inherit; /* Ensure consistent font family */
    font-size: 13px;
    line-height: 1.4;
}

.glooai-ai-message-footnotes h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    font-family: inherit; /* Ensure consistent font family */
}

.glooai-ai-footnote-item {
    margin-bottom: 8px;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px;
    border-radius: 4px;
    font-family: inherit; /* Ensure consistent font family */
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.glooai-ai-footnote-item:hover {
    background: #f8f9fa;
}

.glooai-ai-footnote-item.highlight {
    background: #fff3cd;
    animation: glooai-ai-highlight 2s ease-in-out;
}

@keyframes glooai-ai-highlight {
    0%, 100% { background: #f8f9fa; }
    50% { background: #fff3cd; }
}

.glooai-ai-footnote-number {
    font-weight: bold;
    color: #007cba;
    font-family: inherit;
    flex-shrink: 0;
    min-width: 24px;
}

.glooai-ai-footnote-link {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: inherit;
    flex-grow: 1;
    word-break: break-word;
}

.glooai-ai-footnote-link:hover {
    text-decoration: underline;
    color: #005a8b;
}

.glooai-ai-footnote-source {
    color: #6c757d;
    font-style: italic;
    font-family: inherit;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Input Area */
.glooai-ai-input-area {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
}

.glooai-ai-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.glooai-ai-input-field {
    flex: 1;
    min-height: 36px;
    max-height: 80px;
    height: 36px;
    padding: 8px 14px;
    border: 1px solid #ced4da;
    border-radius: 18px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: all 0.2s ease;
    overflow-y: auto;
}

.glooai-ai-input-field:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.glooai-ai-input-field::placeholder {
    color: #6c757d;
}

.glooai-ai-send-btn {
    width: 36px;
    height: 36px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.glooai-ai-send-btn:hover:not(:disabled) {
    background: #005a8b;
    transform: scale(1.05);
}

.glooai-ai-send-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Accessibility Enhancements */
.glooai-ai-input-field:focus,
.glooai-ai-send-btn:focus,
.glooai-ai-control-btn:focus,
.glooai-citation-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Membership Redirect Message */
.glooai-membership-redirect {
    padding: 16px;
    background: #f0f7ff;
    border-left: 4px solid #007cba;
    border-radius: 4px;
    margin: 8px 0;
}

.glooai-membership-redirect p {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.6;
}

.glooai-membership-redirect p:last-child {
    margin-bottom: 0;
}

.glooai-membership-redirect a {
    color: #007cba;
    text-decoration: underline;
    font-weight: 500;
}

.glooai-membership-redirect a:hover {
    color: #005a8b;
}

/* Ensure consistent list styling in responses */
.glooai-ai-response-list {
    margin: 1em 0;
    padding-left: 1.5em;
}

.glooai-ai-response-list li {
    margin: 0.5em 0;
    line-height: 1.6;
    font-family: inherit;
    font-size: inherit;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .glooai-ai-chat-container {
        width: 480px;
        height: 580px;
        bottom: 120px;
        right: 15px;
    }
}

/* Tablets and small laptops (including 13" MacBook) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #glooai-ai-chat-container {
        width: 420px !important;
        height: 600px !important;
        max-height: 90vh;
    }
}

/* Mobile phones and tablets (portrait) */
@media (max-width: 768px) {
    #glooai-ai-chat-container {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        overflow: hidden; /* Prevent content from causing zoom */
    }
    
    .glooai-ai-chat-container.fullscreen {
        top: 10px;
        left: 20px;
        right: 10px;
        bottom: 80px; /* Leave space for chat bubble */
        border-radius: 8px;
    }
    
    .glooai-ai-chat-bubble {
        bottom: 15px;
        right: 15px;
    }
    
    #glooai-ai-header {
        padding: 12px 15px;
    }
    
    #glooai-ai-messages {
        padding: 15px;
    }
    
    #glooai-ai-input-area {
        padding: 12px;
    }
    
    .glooai-ai-disclaimer-btn {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 95px;
    }
    
    .glooai-ai-chat-title {
        font-size: 18px;
    }
    
    .glooai-ai-control-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .glooai-ai-control-btn.refresh-btn {
        font-size: 16px;
    }
    
    .glooai-ai-message-avatar {
        width: 28px;
        height: 28px;
    }
    
    .glooai-ai-message-avatar img {
        width: 20px;
        height: 20px;
    }
    
    .glooai-ai-message-avatar-fallback {
        font-size: 12px;
    }
    
    /* Mobile-specific markdown styling */
    .glooai-ai-message-content.enhanced-markdown-content h1,
    .glooai-ai-message-content.enhanced-markdown-content h2,
    .glooai-ai-message-content.enhanced-markdown-content h3 {
        font-size: 14px;
    }
    
    .glooai-ai-message-content.enhanced-markdown-content pre {
        padding: 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .glooai-ai-chat-container {
        width: 380px;
        height: 450px;
    }
    
    .glooai-ai-message {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .glooai-ai-message.assistant {
        padding: 12px;
        gap: 10px;
    }
    
    .glooai-ai-messages-container {
        padding: 15px;
        gap: 12px;
    }
    
    .glooai-ai-input-area {
        padding: 6px 12px;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }
    
    .glooai-ai-input-field {
        font-size: 16px; /* Minimum 16px to prevent iOS auto-zoom */
        padding: 6px 12px;
        height: 36px; /* Increased to accommodate larger font */
        min-height: 36px;
    }
    
    .glooai-ai-send-btn {
        width: 32px;
        height: 32px;
    }
    
    .glooai-ai-message-content.enhanced-markdown-content {
        font-size: 13px;
    }
}

/* Embedded Shortcode Styles */
.glooai-ai-embedded-container {
    width: 100%;
    max-width: 800px;
    height: 600px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    position: relative;
}

.glooai-ai-embedded-container .glooai-ai-chat-header {
    border-radius: 8px 8px 0 0;
}

/* Button-style shortcode */
.glooai-ai-button-trigger {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.glooai-ai-button-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* WordPress specific adjustments */
.glooai-ai-wp-override {
    box-sizing: border-box !important;
}

.glooai-ai-wp-override * {
    box-sizing: border-box !important;
}

/* Hide Intercom CHAT LAUNCHER ONLY for Advantage members
 * 
 * IMPORTANT: We intentionally ONLY hide the chat launcher button, NOT the entire
 * Intercom container. This allows Intercom banners, notifications, and tours to
 * still display for Advantage members. Banners are used for important announcements
 * like holiday hours and service outages.
 * 
 * What we hide:
 *   - .intercom-launcher (the chat bubble button)
 *   - .intercom-launcher-frame (iframe wrapper for launcher)
 * 
 * What we ALLOW to show:
 *   - #intercom-container (main container - holds banners)
 *   - .intercom-lightweight-app (lightweight mode - holds banners)
 *   - .intercom-banner, .intercom-notifications, .intercom-tour, etc.
 * 
 * Uses class-based approach instead of :has() because the chat bubble element
 * exists in DOM for everyone (rendered server-side) but is hidden client-side
 * for non-members. The .glooai-hide-intercom class is added by JavaScript ONLY
 * when the user passes the Piano membership check.
 */
body.glooai-hide-intercom .intercom-launcher,
body.glooai-hide-intercom .intercom-launcher-frame,
.intercom-launcher.hide-for-glooai-assistant {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
} 