.rentrx-scroll-container {
    display: flex;
    justify-content: center;
}

.rentrx-category-scroll-wrapper {
    display: flex;
    justify-content: flex-start;
    /* ← important fix */
    overflow-x: auto;
    gap: 12px;
    padding: 1em;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
    scroll-padding-left: 1em;
    /* optional – helps maintain left-edge padding */
}

.rentrx-category-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.rentrx-category-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.category-filter-btn {
    flex-shrink: 0;
    padding: 0.5em 1.2em;
    font-size: 0.95rem;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    color: #fff;
    background-color: #ccc;
    /* fallback for buttons without inline bg */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.category-filter-btn:hover {
    transform: scale(1.05);
}

.category-filter-btn:focus {
    outline: none;
    box-shadow: none;
}

.xcategory-filter-btn.active {
    z-index: 2;
    filter: brightness(0.85);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}
.category-filter-btn.active {
    outline: 2px solid #222;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}
