﻿/* ---------------------------------------------------
   CLEAN + CONSISTENT CATEGORY HEADER (CJ Style)
---------------------------------------------------- */

/* Kill default jQuery UI accordion icon injection */
.ui-accordion-header .ui-accordion-header-icon {
    display: none !important;
}

.ui-accordion-header {
    display: block !important;
}

    .ui-accordion-header .cj-accordion-header {
        display: flex !important;
    }



/* jQuery UI accordion header baseline override */
.cj-accordion-header {
    background: #f5f5f5 !important;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    margin-bottom: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* --- LEFT SIDE: toggle + image + text --- */
.cj-cat-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Chevron toggle */
.cj-toggle i {
    font-size: 1.2rem;
    color: rgba(0,0,0,0.55);
    transition: transform 0.25s ease;
}

/* Rotate chevron when active */
.ui-accordion-header-active .cj-toggle i {
    transform: rotate(90deg);
    color: rgba(0,0,0,0.75);
}

/* Category thumbnail image */
.cj-thumb img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: inline-block;
}

/* Title text */
.cj-title {
    font-size: 1.05rem;
    color: #4E4E4E;
    font-weight: 600;
}

/* --- RIGHT SIDE (star etc) --- */
.cj-cat-right {
    display: flex;
    align-items: center;
}

.cj-star {
    color: #D4A437;
    font-size: 1.2rem;
}

/* Fix weird inherited focus outline from jQuery UI */
.cj-accordion-header:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove jQuery UI background-image junk */
.cj-accordion-header.ui-state-default,
.cj-accordion-header.ui-state-active {
    background-image: none !important;
}

/* Force header layout to respect left/right structure */
.cj-accordion-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

