/* =======================================================================
   💎 COMPONENT 2: TWO-ROW HORIZONTAL SCROLLABLE CHIPS ENGINE
   ======================================================================= */

.custom-category-matrix-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hide scrollbar browser extensions tracking mechanics */
.category-chip-row {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 2px 4px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; /* Smooth iOS kinetic bounce */
}

.category-chip-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera scrollbar engine disable */
}

/* Base button chip layout design templates settings */
.category-chip-row .chip-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    height: 32px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Hover & Active selection behavior matrix */
.category-chip-row .chip-item:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.category-chip-row .chip-item.active {
    background: #1a202c; /* All button dark configuration */
    color: #ffffff;
    border-color: #1a202c;
    box-shadow: 0 4px 10px rgba(26, 32, 44, 0.25);
}

/* =======================================================================
   🔥 ADD THIS AT THE BOTTOM OF THE FILE (Share mode layout fallback fix)
   ======================================================================= */
body.share-active .custom-category-matrix-box {
    display: flex !important; /* Share box open hone par bhi chips chipenge nahi */
}