/* Chatbot Speed Bubble (the initial floating icon) */
#mxchat-speed-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--mxchat-primary-color, #68fcff);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    transition: transform 0.3s ease, background-color 0.2s ease;
    pointer-events: auto;
}

#mxchat-speed-bubble:hover {
    background-color: var(--mxchat-secondary-color, #4ac9e6);
    transform: scale(1.1);
}

#mxchat-speed-bubble img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#mxchat-speed-bubble.active {
    transform: scale(0);
}

/* Chatbot Main Window Container */
#mxchat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: min(500px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 999999;
    overflow: hidden;
}

/* Hide accessibility plugins inside chatbot */
#mxchat-widget-container * {
    pointer-events: auto !important;
}

#mxchat-widget-container .accessibility-plugin,
#mxchat-widget-container [class*="accessibility"],
#mxchat-widget-container [id*="accessibility"],
#mxchat-widget-container [class*="a11y"],
#mxchat-widget-container [id*="a11y"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* When iOS keyboard is open, we translate the widget up by the keyboard offset */
#mxchat-widget-container.mxchat-avoid-keyboard {
    transform: translateY(calc(-1 * var(--mxchat-keyboard-offset, 0px)));
    will-change: transform;
}

#mxchat-widget-container.open {
    display: flex;
}

/* Header Section of Chat Window */
.mxchat-header {
    background: linear-gradient(135deg, var(--mxchat-primary-color, #68fcff) 0%, var(--mxchat-secondary-color, #4ac9e6) 100%);
    color: var(--mxchat-text-color, #fff);
    padding: 15px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(93, 209, 255, 0.959);
}

.mxchat-center-logo {
    position: relative;
    max-height: 40px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    z-index: 1;
}

/* Language Toggle */
.mxchat-language-toggle {
    display: flex;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    justify-content: center;
    flex-shrink: 0;
    border-bottom: 1px solid #dee2e6;
}

.mxchat-lang-btn {
    background: var(--mxchat-primary-color, #68fcff);
    color: var(--mxchat-text-color, #fff);
    border: 2px solid transparent;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mxchat-lang-btn.active {
    background: var(--mxchat-secondary-color, #4ac9e6);
    border: 2px solid var(--mxchat-text-color, #fff);
    transform: scale(1.05);
}

.mxchat-lang-btn:hover {
    background: var(--mxchat-hover-color, #3ba8c4);
    transform: translateY(-1px);
}



/* Close button */
.mxchat-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    font-size: 1.8em;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mxchat-close-btn:hover {
    transform: scale(1.2) rotate(90deg);
    background: rgba(255, 255, 255, 0.3);
}

/* Messages Display Area */
.mxchat-conversation {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width calculation */
    scroll-behavior: smooth; /* Smooth scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #68fcff #f0f0f0; /* For Firefox */
}

/* Custom scrollbar for webkit browsers */
.mxchat-conversation::-webkit-scrollbar {
    width: 6px;
}

.mxchat-conversation::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.mxchat-conversation::-webkit-scrollbar-thumb {
    background: #68fcff;
    border-radius: 3px;
}

.mxchat-conversation::-webkit-scrollbar-thumb:hover {
    background: #4ac9e6;
}

/* Individual Message Bubbles */
.mxchat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mxchat-message.bot {
    align-self: flex-start;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    border-bottom-left-radius: 2px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mxchat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--mxchat-primary-color, #68fcff) 0%, var(--mxchat-secondary-color, #4ac9e6) 100%);
    color: var(--mxchat-text-color, #fff);
    border-bottom-right-radius: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(104, 252, 255, 0.3);
}

/* Slightly bigger styling for contact info message */
.mxchat-message.bot.mxchat-contact-info {
    /* Do not change font size; instead allow wider bubble */
    max-width: 100%;
    line-height: 1.4;
}

/* Keep email on one line inside contact info */
.mxchat-message.bot.mxchat-contact-info a {
    white-space: nowrap;
}

/* Options List Styling */
.mxchat-option-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0; /* Add top margin to separate from message */
    width: 100%; /* Full width of container */
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Space between options */
    box-sizing: border-box; /* Include padding in width */
}

.mxchat-option-item {
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--mxchat-primary-color, #68fcff) 0%, var(--mxchat-secondary-color, #4ac9e6) 100%);
    color: var(--mxchat-text-color, #fff);
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(104, 252, 255, 0.3);
    white-space: nowrap; /* Prevent text wrapping */
    max-width: 100%; /* Ensure it fits within container */
}

.mxchat-option-item:hover {
    background: linear-gradient(135deg, var(--mxchat-secondary-color, #4ac9e6) 0%, var(--mxchat-hover-color, #3ba8c4) 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 12px rgba(74, 201, 230, 0.4);
}

.mxchat-option-item.clicked {
    background: linear-gradient(135deg, #3ba8c4 0%, #2e8b9e 100%);
    transform: scale(0.98);
}

/* Input Area */
.mxchat-input-area {
    display: flex;
    flex-direction: row; /* Changed to row for side-by-side layout */
    padding: 15px;
    border-top: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
    align-items: center;
    gap: 10px; /* Space between input and button */
    position: relative;
    min-height: 70px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
}

.mxchat-input-row {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
}

#mxchat-user-input {
    flex-grow: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    z-index: 999999;
}

/* Larger input appearance for email step */
#mxchat-user-input.mxchat-large-input {
    font-size: 1.05em;
    padding: 14px 18px;
}

#mxchat-user-input:focus {
    border-color: var(--mxchat-primary-color, #68fcff);
    box-shadow: 0 0 0 3px rgba(104, 252, 255, 0.2);
    transform: scale(1.02);
}

/* Avoid iOS Safari keyboard/focus glitches when scaling inputs */
.mxchat-ios #mxchat-user-input:focus {
    transform: none;
}

#mxchat-user-input[readonly] {
    background-color: #f8f8f8;
    cursor: not-allowed;
}

/* Option Button Styling */
.mxchat-option-button {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4ac9e6 0%, #3ba8c4 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(74, 201, 230, 0.3);
    position: relative;
    overflow: visible;
    margin-bottom: 8px;
    word-wrap: break-word;
    white-space: normal;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
}

.mxchat-option-button:hover {
    background: linear-gradient(135deg, #3ba8c4 0%, #2e8b9e 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 16px rgba(59, 168, 196, 0.4);
}

.mxchat-option-button:active {
    transform: scale(0.99);
}

#mxchat-options-container {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 8px;
    order: 2;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mxchat-submit-btn {
    background: linear-gradient(135deg, var(--mxchat-primary-color, #68fcff) 0%, var(--mxchat-secondary-color, #4ac9e6) 100%);
    color: var(--mxchat-text-color, white);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(104, 252, 255, 0.3);
    position: relative;
    overflow: hidden;
    height: 46px; /* Match input height */
}

#mxchat-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#mxchat-submit-btn:hover {
    background: linear-gradient(135deg, var(--mxchat-secondary-color, #4ac9e6) 0%, var(--mxchat-hover-color, #3ba8c4) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(74, 201, 230, 0.4);
}

#mxchat-submit-btn:hover::before {
    left: 100%;
}

/* Voice-to-text button styling */
#mxchat-voice-btn {
    background: linear-gradient(135deg, var(--mxchat-primary-color, #68fcff) 0%, var(--mxchat-secondary-color, #4ac9e6) 100%);
    color: var(--mxchat-text-color, white);
    border: none;
    border-radius: 25px;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(104, 252, 255, 0.3);
    position: relative;
    overflow: hidden;
    height: 46px; /* Match input height */
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mxchat-voice-btn:hover {
    background: linear-gradient(135deg, var(--mxchat-secondary-color, #4ac9e6) 0%, var(--mxchat-hover-color, #3ba8c4) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(74, 201, 230, 0.4);
}

#mxchat-voice-btn:active {
    transform: scale(0.98);
}

#mxchat-voice-btn.recording {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#mxchat-voice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#mxchat-submit-btn:active {
    transform: scale(0.98);
}

#mxchat-error-message {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    font-size: 0.85em;
    font-weight: 600;
    color: #d32f2f;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    padding: 8px 12px;
    border-radius: 8px;
    order: 3;
    border: 1px solid #ef9a9a;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
}

/* Footer and Promo Button */
.mxchat-footer {
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mxchat-footer-text {
    font-size: 0.8em;
    color: #6c757d;
}

.mxchat-branding-link {
    font-size: 0.8em !important;
    color: var(--mxchat-primary-color, #68fcff);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mxchat-branding-link:hover {
    color: var(--mxchat-secondary-color, #4ac9e6);
    text-decoration: underline;
    transform: scale(1.05);
}

/* Force smaller font size for branding link */
#mxchat-widget-container .mxchat-footer .mxchat-branding-link {
    font-size: 0.8em !important;
    font-weight: 600 !important;
}

.mxchat-tail-logo {
    max-height: 20px;
    width: auto;
    opacity: 0.7;
}

.mxchat-promo-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--mxchat-primary-color, #68fcff) 0%, var(--mxchat-secondary-color, #4ac9e6) 100%);
    color: var(--mxchat-text-color, white);
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(104, 252, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Lead collection button styling */
.mxchat-lead-collection-btn {
    background: linear-gradient(135deg, var(--mxchat-primary-color, #68fcff) 0%, var(--mxchat-secondary-color, #4ac9e6) 100%) !important;
    color: var(--mxchat-text-color, white) !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 15px !important;
    cursor: pointer !important;
    margin: 5px !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(104, 252, 255, 0.3) !important;
}

.mxchat-lead-collection-btn:hover {
    background: linear-gradient(135deg, var(--mxchat-secondary-color, #4ac9e6) 0%, var(--mxchat-hover-color, #3ba8c4) 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(74, 201, 230, 0.4) !important;
}

/* FIREWORK/BANG Animation */
@keyframes bang {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Confetti Container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    #mxchat-widget-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        z-index: 999999;
    }

    #mxchat-speed-bubble {
        bottom: 10px;
        right: 10px;
    }

    .mxchat-header,
    .mxchat-footer {
        border-radius: 0;
    }
}

/* Accessibility Plugin Management */
/* Hide accessibility plugins when chatbot is open */
#mxchat-widget-container.open ~ * [class*="accessibility"],
#mxchat-widget-container.open ~ * [id*="accessibility"],
#mxchat-widget-container.open ~ * [class*="a11y"],
#mxchat-widget-container.open ~ * [id*="a11y"],
#mxchat-widget-container.open ~ * [class*="wp-accessibility"],
#mxchat-widget-container.open ~ * [id*="wp-accessibility"],
#mxchat-widget-container.open ~ * [class*="accessibility-widget"],
#mxchat-widget-container.open ~ * [id*="accessibility-widget"],
#mxchat-widget-container.open ~ * [class*="accessibility-toolbar"],
#mxchat-widget-container.open ~ * [id*="accessibility-toolbar"],
#mxchat-widget-container.open ~ * [class*="accessibility-menu"],
#mxchat-widget-container.open ~ * [id*="accessibility-menu"],
#mxchat-widget-container.open ~ * [class*="accessibility-button"],
#mxchat-widget-container.open ~ * [id*="accessibility-button"],
#mxchat-widget-container.open ~ * [class*="accessibility-panel"],
#mxchat-widget-container.open ~ * [id*="accessibility-panel"],
#mxchat-widget-container.open ~ * [class*="accessibility-controls"],
#mxchat-widget-container.open ~ * [id*="accessibility-controls"],
#mxchat-widget-container.open ~ * [class*="accessibility-toggle"],
#mxchat-widget-container.open ~ * [id*="accessibility-toggle"],
#mxchat-widget-container.open ~ * [class*="accessibility-widget"],
#mxchat-widget-container.open ~ * [id*="accessibility-widget"],
#mxchat-widget-container.open ~ * [class*="accessibility-bar"],
#mxchat-widget-container.open ~ * [id*="accessibility-bar"],
#mxchat-widget-container.open ~ * [class*="accessibility-tool"],
#mxchat-widget-container.open ~ * [id*="accessibility-tool"],
#mxchat-widget-container.open ~ * [class*="accessibility-helper"],
#mxchat-widget-container.open ~ * [id*="accessibility-helper"],
#mxchat-widget-container.open ~ * [class*="accessibility-assistant"],
#mxchat-widget-container.open ~ * [id*="accessibility-assistant"],
#mxchat-widget-container.open ~ * [class*="accessibility-plugin"],
#mxchat-widget-container.open ~ * [id*="accessibility-plugin"],
#mxchat-widget-container.open ~ * [class*="accessibility-widget"],
#mxchat-widget-container.open ~ * [id*="accessibility-widget"],
#mxchat-widget-container.open ~ * [class*="accessibility-toolbar"],
#mxchat-widget-container.open ~ * [id*="accessibility-toolbar"],
#mxchat-widget-container.open ~ * [class*="accessibility-menu"],
#mxchat-widget-container.open ~ * [id*="accessibility-menu"],
#mxchat-widget-container.open ~ * [class*="accessibility-button"],
#mxchat-widget-container.open ~ * [id*="accessibility-button"],
#mxchat-widget-container.open ~ * [class*="accessibility-panel"],
#mxchat-widget-container.open ~ * [id*="accessibility-panel"],
#mxchat-widget-container.open ~ * [class*="accessibility-controls"],
#mxchat-widget-container.open ~ * [id*="accessibility-controls"],
#mxchat-widget-container.open ~ * [class*="accessibility-toggle"],
#mxchat-widget-container.open ~ * [id*="accessibility-toggle"],
#mxchat-widget-container.open ~ * [class*="accessibility-widget"],
#mxchat-widget-container.open ~ * [id*="accessibility-widget"],
#mxchat-widget-container.open ~ * [class*="accessibility-bar"],
#mxchat-widget-container.open ~ * [id*="accessibility-bar"],
#mxchat-widget-container.open ~ * [class*="accessibility-tool"],
#mxchat-widget-container.open ~ * [id*="accessibility-tool"],
#mxchat-widget-container.open ~ * [class*="accessibility-helper"],
#mxchat-widget-container.open ~ * [id*="accessibility-helper"],
#mxchat-widget-container.open ~ * [class*="accessibility-assistant"],
#mxchat-widget-container.open ~ * [id*="accessibility-assistant"],
#mxchat-widget-container.open ~ * [class*="accessibility-plugin"],
#mxchat-widget-container.open ~ * [id*="accessibility-plugin"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Alternative: Reposition accessibility plugins to top when chatbot is open */
#mxchat-widget-container.open ~ * [class*="accessibility"]:not([style*="position: fixed"]),
#mxchat-widget-container.open ~ * [id*="accessibility"]:not([style*="position: fixed"]),
#mxchat-widget-container.open ~ * [class*="a11y"]:not([style*="position: fixed"]),
#mxchat-widget-container.open ~ * [id*="a11y"]:not([style*="position: fixed"]) {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 999997 !important;
    max-width: 200px !important;
    max-height: 150px !important;
    overflow: hidden !important;
    transform: scale(0.8) !important;
    transition: all 0.3s ease !important;
}

/* Mobile-specific accessibility handling */
@media (max-width: 768px) {
    #mxchat-widget-container.open ~ * [class*="accessibility"],
    #mxchat-widget-container.open ~ * [id*="accessibility"],
    #mxchat-widget-container.open ~ * [class*="a11y"],
    #mxchat-widget-container.open ~ * [id*="a11y"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
}

/* Ensure accessibility plugins don't interfere with chatbot input */
#mxchat-widget-container.open ~ * [class*="accessibility"] input,
#mxchat-widget-container.open ~ * [id*="accessibility"] input,
#mxchat-widget-container.open ~ * [class*="a11y"] input,
#mxchat-widget-container.open ~ * [id*="a11y"] input {
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Hide accessibility plugins that might be positioned over the chatbot */
body:has(#mxchat-widget-container.open) [class*="accessibility"][style*="position: fixed"],
body:has(#mxchat-widget-container.open) [id*="accessibility"][style*="position: fixed"],
body:has(#mxchat-widget-container.open) [class*="a11y"][style*="position: fixed"],
body:has(#mxchat-widget-container.open) [id*="a11y"][style*="position: fixed"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Color Scheme Definitions */
/* Teal (Default) */
.mxchat-color-teal,
.mxchat-color-teal #mxchat-widget-container,
.mxchat-color-teal #mxchat-speed-bubble {
    --mxchat-primary-color: #68fcff !important;
    --mxchat-secondary-color: #4ac9e6 !important;
    --mxchat-hover-color: #3ba8c4 !important;
    --mxchat-text-color: #fff !important;
}

/* Black */
.mxchat-color-black,
.mxchat-color-black #mxchat-widget-container,
.mxchat-color-black #mxchat-speed-bubble {
    --mxchat-primary-color: #333333 !important;
    --mxchat-secondary-color: #1a1a1a !important;
    --mxchat-hover-color: #000000 !important;
    --mxchat-text-color: #fff !important;
}

/* White */
.mxchat-color-white,
.mxchat-color-white #mxchat-widget-container,
.mxchat-color-white #mxchat-speed-bubble {
    --mxchat-primary-color: #ffffff !important;
    --mxchat-secondary-color: #f0f0f0 !important;
    --mxchat-hover-color: #e0e0e0 !important;
    --mxchat-text-color: #333 !important;
}

/* Red */
.mxchat-color-red,
.mxchat-color-red #mxchat-widget-container,
.mxchat-color-red #mxchat-speed-bubble {
    --mxchat-primary-color: #ff4444 !important;
    --mxchat-secondary-color: #cc0000 !important;
    --mxchat-hover-color: #aa0000 !important;
    --mxchat-text-color: #fff !important;
}

/* Pink */
.mxchat-color-pink,
.mxchat-color-pink #mxchat-widget-container,
.mxchat-color-pink #mxchat-speed-bubble {
    --mxchat-primary-color: #ff69b4 !important;
    --mxchat-secondary-color: #ff1493 !important;
    --mxchat-hover-color: #e0117a !important;
    --mxchat-text-color: #fff !important;
}

/* Gold Yellow */
.mxchat-color-gold,
.mxchat-color-gold #mxchat-widget-container,
.mxchat-color-gold #mxchat-speed-bubble {
    --mxchat-primary-color: #ffd700 !important;
    --mxchat-secondary-color: #ffb347 !important;
    --mxchat-hover-color: #ffa500 !important;
    --mxchat-text-color: #333 !important;
}

/* Green */
.mxchat-color-green,
.mxchat-color-green #mxchat-widget-container,
.mxchat-color-green #mxchat-speed-bubble {
    --mxchat-primary-color: #32cd32 !important;
    --mxchat-secondary-color: #228b22 !important;
    --mxchat-hover-color: #1f7a1f !important;
    --mxchat-text-color: #fff !important;
}

/* Dark Blue */
.mxchat-color-darkblue,
.mxchat-color-darkblue #mxchat-widget-container,
.mxchat-color-darkblue #mxchat-speed-bubble {
    --mxchat-primary-color: #1e3a8a !important;
    --mxchat-secondary-color: #1e40af !important;
    --mxchat-hover-color: #1d4ed8 !important;
    --mxchat-text-color: #fff !important;
}

/* Light Purple */
.mxchat-color-lightpurple,
.mxchat-color-lightpurple #mxchat-widget-container,
.mxchat-color-lightpurple #mxchat-speed-bubble {
    --mxchat-primary-color: #dda0dd !important;
    --mxchat-secondary-color: #ba55d3 !important;
    --mxchat-hover-color: #9932cc !important;
    --mxchat-text-color: #333 !important;
}