/* Edited by Craig Lawrence 2026.09.23 14:20 pm */

/* Toolbar */

.wccp-toolbar{
    position:sticky !important;
    top:50px;
    padding:10px;
    display:flex !important;
    flex-direction:row !important;
    gap: 12px;
    align-items:center;
    border:1px solid #8e0d27;
    z-index:9999;
    color:#000000;
    background:#f6f6f6;
}

.wccp-toolbar input,
.wccp-toolbar select{
    width:auto;
    color:#a60f2d;
    border:1px solid #8e0d27;   
    height: 30px;
}

.wccp-selected{
    border:1px solid #8e0d27;
    color: #a60f2d;
    margin-left:auto; 
    padding: 0px 5px 0px 5px;
    border-radius:4px;
    background:#fff;
    
}

#wccp-sort,
#wccp-order,
#wccp-view{
    background-color:#ffffff;
}

#wccp-count{
    color: #8e0d27;
    font-weight: 500;
}

.wccp-toolbar button{
    padding:0;
    background:#8e0d27;
    color:#ffffff;
    border:1px solid #8e0d27;
    border-radius:4px;
    font-size:16px;
    font-weight: 500;
    height:30px;
    padding: 0px 5px 0px 5px;
}

.wccp-toolbar button:hover{
    background:#ffffff;
    color:#8e0d27;
}


/* Results */

#wccp-results{
    margin:10px 0;
}

.wccp-meta{
    color:#666;
    margin-top:5px;
    font-size:0.85em;
    line-height:1.4;
}

/* LIST VIEW */

.wccp-list .wccp-item{
    display:flex;
    gap:15px;
    padding:10px;
    border-bottom:1px solid #ddd;
    align-items:flex-start;
}

/* Fixed thumbnail area */

.wccp-list .wccp-thumb{
    width:120px;
    min-width:120px;
    max-width:120px;

    height:120px;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    border:1px solid #ddd;
    border-radius:4px;

    background:#fff;
}

/* Thumbnail image */

.wccp-list .wccp-thumb,
.wccp-list .wccp-thumb img{
    width:120px !important;
    max-width:120px !important;
    min-width:120px !important;

    height:120px !important;
    max-height:120px !important;
    min-height:120px !important;

    object-fit:contain !important;
}

.wccp-list .wccp-content{
    flex:1;
}

.wccp-meta{
    color:#666;
    margin-top:5px;
}


.wccp-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr))
    gap:5px;
}

.wccp-grid .wccp-item{
    display:flex !important;
    flex-direction:column !important;
    background:#f6f6f6;
    border:1px solid #8e0d27;
    border-radius:5px;
    padding:10px;
}

/* image area */

.wccp-grid .wccp-thumb{
    width:100% !important;
    aspect-ratio:1 / 1 !important;

    overflow:hidden !important;

    display:block !important;

    margin-bottom:10px;
}

/* image */

.wccp-grid .wccp-thumb img{
    width:100% !important;
    height:100% !important;

    object-fit:cover !important;

    display:block !important;
}

/* Tablet */

@media(max-width:900px){

    .wccp-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .wccp-toolbar{
        flex-wrap:wrap;
    }
}

/* Mobile */

@media(max-width:600px){

    .wccp-toolbar{
        top:0;
    }

    .wccp-grid{
        grid-template-columns:1fr;
    }

}
/* VERSION 1.4.0 STEP 2
   CATEGORY GROUPS */

.wccp-category-group{
    width:100%;
    margin-bottom:25px;
}

.wccp-category-heading{
    margin:5px 0 15px 0; 
    padding: 0px 10px 5px 10px;
    border:1px solid #8e0d27;

    font-size:1.4em;
    font-weight:700;
    color: #fff;
    background:#8e0d27;
}

/* GRID MODE CATEGORY GROUPS */

.wccp-grid .wccp-category-group{
    grid-column:1 / -1;
}

.wccp-grid .wccp-category-products{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

@media(max-width:900px){

    .wccp-grid .wccp-category-products{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}

@media(max-width:600px){

    .wccp-grid .wccp-category-products{
        grid-template-columns:1fr;
    }

}

/* SEARCH */
.wccp-search-wrap{
    display:flex;
    align-items:center;
    gap:4px;
}

#wccp-search{
    border:1px solid #8e0d27;
    border-radius:4px;
    height:30px;
    color:#a60f2d;
    font-size:16px;
    line-height:1;
    padding: 0px 5px 0px 5px;
}

#wccp-clear{
    cursor:pointer;

    width:30px;
    height:30px;

    padding:0;

    border:1px solid #8e0d27;
    border-radius:4px;

    background:#8e0d27;
    color:#ffffff;

    font-size:16px;
    font-weight:bold;
    line-height:1;

    display:flex;
    align-items:center;
    justify-content:center;
}

#wccp-clear:hover{
    background:#ffffff;
    color:#8e0d27;
}