/* Mobile Chat UI Fixes */

/* 1. Chips Styling (Filter, Block List, Labels) */
.mobile-action-chips {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.mobile-action-chips::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.action-chip:active {
    background-color: #e5e7eb;
    transform: scale(0.98);
}

.action-chip i {
    font-size: 14px;
    color: #0ea5e9;
    /* Premium Blue */
}

/* 2. Message Box Visibility Fix */
/* Force message footer to be visible when chat is active on mobile */
@media (max-width: 991px) {
    #vendor-message-footer.d-block {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 1000;
        padding: 10px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    /* Adjust chat body to not be hidden behind fixed footer */
    .chat-wrapper-details-inner {
        padding-bottom: 80px !important;
    }
}

/* 3. Bottom Sheet Improvements */
.bottom-sheet {
    z-index: 10011 !important;
    /* Above sidebar (10010) and overlay (10009) */
}

/* 4. Client List Toggle Fix */
/* Ensure the 3-dot menu is clickable and visible */
.chat-wrapper-contact-close {
    overflow: visible !important;
}