/* Custom styles for category thumb containers */
.item_wrap .item_group {
    position: relative;
}

.item_wrap .item_group ol {
    margin: 0;
    padding: 10px;
    list-style: none;
}

/* Apply custom height and scrolling when thumb_height is set */
.item_wrap[data-thumb-height] .item_group {
    height: var(--thumb-height);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.5) transparent;
}

.item_wrap[data-thumb-height] .item_group::-webkit-scrollbar {
    width: 6px;
}

.item_wrap[data-thumb-height] .item_group::-webkit-scrollbar-track {
    background: transparent;
}

.item_wrap[data-thumb-height] .item_group::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 3px;
}

/* Hover effect for scrollbar */
.item_wrap[data-thumb-height] .item_group:hover::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.8);
} 